@charset "utf-8";

/* Page specific styles for jiangai.html */
/* All common styles have been moved to common.css */
.reduce-layout {
  display: flex;
}

.reduce-layout .reduce-instruction {
  width: 330px;
  height: 410px;
  padding: 15px 20px;
  box-sizing: border-box;
  border-radius: 30px;
  background: #F9F9F9;
  margin-right: 20px;
  overflow: auto;
  max-height: 400px;
}

.reduce-layout .reduce-instruction::-webkit-scrollbar {
  width: 3px;
}

.reduce-layout .reduce-instruction::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: #ebebeb;
}

.reduce-layout .reduce-instruction h2 {
  color: #836F6F;
  font-size: 14px;
  font-weight: 600;
}

.reduce-layout .reduce-instruction .instruction-list {
  color: #836F6F;
  text-align: justify;
  font-size: 14px;
  line-height: 160%;
  padding: 0;
  margin: 10px 0;
}

.reduce-layout .reduce-instruction .instruction-list li {
  list-style: none;
  margin-bottom: 10px;
}

.reduce-layout .reduce-instruction .instruction-list li:last-child {
  margin-bottom: 0;
}

/* 媒体查询：适配移动端 */
@media screen and (max-width: 768px) {
  .check-main {
    padding-top: 0;
  }

  .title {
    font-size: 20px;
    margin-top: 20px;
  }

  .reduce-content {
    border-radius: 20px 20px 0 0;
    padding-bottom: 40px;
  }

  .reduce-layout {
    flex-direction: column-reverse;
  }

  .reduce-layout .reduce-instruction {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 20px;
    max-height: none;
  }

  .reduce-input {
    width: 100%;
    height: auto;
    min-height: 400px;
    padding: 20px;
  }

  .reduce-input textarea {
    height: 200px;
  }

  /* Input Area Adaptation */
  .reduce-main .reduce-content .reduce-input .tool-box {
    position: absolute !important;
    top: 20px !important;
    right: 15px !important;
    width: 38px !important;
    height: auto !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background: #fff !important;
    border-radius: 10px;
    padding: 10px 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    gap: 15px;
  }

  .reduce-main .reduce-content .reduce-input .tool-box div {
    margin: 0 auto !important;
  }

  .reduce-main .reduce-content .reduce-input textarea {
    padding-right: 50px !important;
  }

  .tool-bottom-box {
    flex-direction: row;
    height: auto;
    margin-top: 10px;
    padding: 0 5px;
    justify-content: space-between;
    align-items: center;
  }

  .tool-bottom-box>div {
    width: auto;
    display: flex;
    align-items: center;
    margin-bottom: 0;
  }

  .tool-bottom-box>div:last-child {
    flex-direction: row;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
  }

  .buy-btn {
    width: auto;
    margin-bottom: 0;
    display: none !important;
    /* Hide buy button as per image/intent usually */
  }

  .upload-btn {
    width: auto !important;
    margin-right: 0 !important;
    background: #fff !important;
    color: #FF614F !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 20px !important;
    padding: 6px 15px !important;
    font-size: 14px !important;
    height: 36px;
  }

  .upload-btn .upload-btn-icon {
    /* Ensure icon is visible or adjusted if needed */
  }

  .word-count {
    text-align: right;
    margin: 0 10px;
    display: inline-block;
    font-size: 12px;
    white-space: nowrap;
    color: #666;
  }

  .confirm-submit {
    width: auto;
    padding: 0 20px;
    height: 36px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 36px;
  }

  /* 案例展示适配 */
  .case-title-list {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .case-title-list li {
    flex: 0 0 auto;
    padding: 0 15px;
  }

  .reduce-case-content .reduce-case-list {
    flex-direction: column;
    margin-top: 30px;
  }

  .reduce-case-content .reduce-case-list li {
    width: 100%;
    height: auto;
    margin-right: 0;
    margin-bottom: 60px;
  }

  .reduce-case-content .reduce-case-list li:last-child {
    margin-bottom: 0;
  }

  /* 降AI前 标签适配 */
  .reduce-case-content .reduce-case-list li:first-child::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: -15px;
    width: 100px;
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    text-align: center;
    padding-left: 0;
    background: #999;
  }

  /* VS 图标适配 */
  .reduce-case-content .reduce-case-list li:last-child::before {
    left: 50%;
    transform: translateX(-50%);
    top: -55px;
    bottom: auto;
    width: 50px;
    height: 40px;
  }

  /* 降AI后 标签适配 */
  .reduce-case-content .reduce-case-list li:last-child::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: auto;
    top: -15px;
    width: 100px;
    height: 30px;
    line-height: 30px;
    border-radius: 15px;
    text-align: center;
    padding-left: 0;
    background: #FF614F;
  }

  .reduce-case-content .reduce-case-list li .case-words {
    height: auto;
    max-height: 300px;
  }

  .reduce-diff-content {
    flex-direction: column;
  }

  .reduce-diff-content img {
    width: 100%;
    height: auto;
  }

  .reduce-comments-list {
    height: auto;
    overflow: visible;
  }
}