body {
    background: url('img/bg-watermark.png') repeat center center;
    background-size: contain;
    margin: 0;
    font-family: 'Arial', 'puhui', sans-serif;
  }

  .header-divider {
    border-bottom: 2px dashed #ccc;
    margin: 0 0 16px 0;
  }

  .sp-banner {
    background: #FFC107;
    border-radius: 20px;
    margin: 32px auto 24px auto;
    max-width: 1200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 0;
  }

  .sp-banner-content {
    display: flex;
    align-items: center;
    padding: 7px 6px;
    height: 64px;
    font-size: 1.3rem;
  }

  .sp-label {
    font-weight: bold;
    font-size: 2rem;
    margin: 12px 0 2.5rem 12px;
  }

  .sp-desc {
    font-size: 1.15rem;
    color: #333;
    margin: 0 0 0 5px;
    line-height: 0.9;
  }

  .sp-eng {
    font-size: 0.9rem;
    color: #888;
  }

  .sp-more {
    color: #333;
    background: #fff;
    border-radius: 999px;
    padding: 0.3em 1.2em;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 0 0 4px #ffe082;
    margin-left: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-left: auto;
    transition: box-shadow 0.2s, transform 0.2s;
  }

  .sp-more:hover {
    box-shadow: 0 4px 16px #ffe082;
    transform: translateY(-2px);
  }

  .sp-arrow {
    font-size: 1.2em;
    margin-left: 4px;
  }

  .form-container {
    max-width: 1400px; /* 增加宽度 */
    margin: 16px auto;
    background: #f7f7f7;
    border-radius: 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    padding: 0;
  }

  .form-box {
    display: flex;
    width: 100%;
    background: none;
    border-radius: 32px;
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
    min-height: 520px;
  }

  .sidebar {
    background: #e0e0e0;
    width: 260px;
    padding: 32px 0 32px 0;
    border-radius: 32px 0 0 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.2rem;
  }

  .sidebar h1 {
    font-size: 1.5rem;
    margin: 0 0 2.2rem 32px;
    font-weight: bold;
  }

  .sidebar .unsel {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    padding-left: 32px;
    border-radius: 12px 0 0 12px;
    background: none;
    color: #333;
    margin-bottom: 0;
    transition: 0.2s;
  }

  .sidebar .sel {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: bold;
    padding-left: 32px;
    margin-top: -0.6rem;
    margin-bottom: -0.6rem;
    color: #333;
    transition: 0.2s;
    background: #fff;
  }

  .sidebar .icons {
    width: 28px;
    margin-right: 12px;
  }

  .main {
    flex: 1;
    padding: 32px 56px 24px 56px;
    background: #f7f7f7;
    border-radius: 0 32px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .main h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #222;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右两列布局 */
    gap: 16px; /* 增加间距 */
    align-items: start; /* 让左右两列顶部对齐，避免被高内容撑开 */
  }

  /* 单列布局：只有一个元素的行 */
  .form-row:has(.form-group:only-child) {
    grid-template-columns: 1fr; /* 单列布局 */
  }

  /* 为了兼容性，也可以给特定的行添加类名 */
  .form-row.single-column {
    grid-template-columns: 1fr;
  }

  .form-group {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 0.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-group label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #333;
    text-align: left;
    width: 100%;
  }

  input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 0.7em 1em;
    border-radius: 10px;
    border: 2px solid #ccc;
    font-size: 1rem;
    background: #fff;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
  }

  input[type="text"]:focus {
    border-color: #FFC107;
    outline: none;
  }

  textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.7em 1em;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fff;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
  }

  textarea:focus {
    border-color: #FFC107;
    outline: none;
  }

  textarea[name="description"] {
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    background: transparent;
    padding: 0.7em 0.2em;
    resize: none;
  }

  textarea[name="description"]:focus {
    border-bottom: 2px solid #FFC107;
  }

  .upload-box {
    border: 2px solid #bbb;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 0.2rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
  }

  .upload-box:focus-within {
    border-color: #FFC107;
  }

  .upload-box p {
    color: #888;
    font-size: 1rem;
    margin: 0.5em 0 0 0;
  }

  .gender-icons {
    display: flex;
    gap: 18px;
    margin-top: 0.5em; /* 减少空隙 */
  }

  .gender-icon {
    width: 36px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .gender-icon.active {
    opacity: 1;
    filter: drop-shadow(0 0 4px #FFC107);
  }

  .footer {
    text-align: right;
    margin-top: 1.5rem;
  }

  .footer button {
    background: #FFC107;
    border: none;
    padding: 0.8rem 2.2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #222;
    cursor: pointer;
    box-shadow: 0 0 0 4px #ffe082;
    transition: box-shadow 0.2s, transform 0.2s;
  }

  .footer button:hover {
    box-shadow: 0 4px 16px #ffe082;
    transform: translateY(-2px);
  }

  /* SP-2 页面特定样式 */
.form-group-column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.body-measurements {
  margin: 0; /* Reset margin */
}

  .measurements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    max-width: 100%; /* Fit container */
    margin: 0;
  }  

  .measurement-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .measurement-item label {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-align: left;
  }

  .input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .input-with-unit input {
    flex: 1;
    min-width: 0;
  }

  .input-with-unit .unit {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
  }

  input[type="number"],
  input[type="date"] {
    width: 100%;
    max-width: 100%;
    padding: 0.7em 1em;
    border-radius: 10px;
    border: 2px solid #ccc;
    font-size: 1rem;
    background: #fff;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
  }

  input[type="number"]:focus,
  input[type="date"]:focus {
    border-color: #FFC107;
    outline: none;
  }

  .privacy-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0rem 0;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    justify-content: center;
  }

  .check-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .privacy-notice .link {
    color: #FFC107;
    font-weight: bold;
    cursor: pointer;
    /* text-decoration: underline; */
  }

  .footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
  }

  .btn-back,
  .btn-next {
    flex: 1;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
  }

  .btn-back {
    background: #e0e0e0;
    color: #666;
    box-shadow: 0 0 0 4px #f0f0f0;
  }

  .btn-back:hover {
    box-shadow: 0 4px 16px #e0e0e0;
    transform: translateY(-2px);
  }

  .btn-next {
    background: #FFC107;
    color: #222;
    box-shadow: 0 0 0 4px #ffe082;
  }

  .btn-next:hover {
    box-shadow: 0 4px 16px #ffe082;
    transform: translateY(-2px);
  }

.success-container {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.success-container h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.success-container p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.confirmation-column h3 {
  text-align: left;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.info-item {
  text-align: left;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.info-label {
  font-weight: bold;
  color: #555;
  margin-right: 8px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.image-preview-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

  /* SP-3 页面联系方式样式 */
  .contact-form {
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  .contact-row .form-group {
    flex: 1;
    margin: 0;
  }

  .contact-row .form-group.full-width {
    flex: 1;
  }

  .contact-row:last-child {
    justify-content: flex-start;
  }

  .contact-row:last-child .form-group.full-width {
    max-width: 48%;
  }

  input[type="tel"],
  input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 0.7em 1em;
    border-radius: 10px;
    border: 2px solid #ccc;
    font-size: 1rem;
    background: #fff;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
  }

  input[type="tel"]:focus,
  input[type="email"]:focus {
    border-color: #FFC107;
    outline: none;
  }

  input::placeholder {
    color: #999;
    font-style: italic;
  }

  /* SP-1 页面优化样式 */
  .upload-notice {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: normal;
  }

  /* 多图片上传容器样式 */
  .image-upload-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 一行显示4张图片 */
    gap: 8px;
    max-width: 100%;
    margin-top: 0.5rem;
    max-height: 300px; /* 限制高度，避免撑开布局 */
    overflow-y: auto; /* 添加滚动条 */
  }

  .image-upload-item {
    position: relative;
    width: 100px; /* 缩小图片大小 */
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .image-upload-item:hover {
    border-color: #FFC107;
    background: #fffbf0;
    /* transform: translateY(-1px); */
  }

  .image-upload-item.has-image {
    border: 2px solid #FFC107;
    background: none;
  }

  .image-upload-item input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
  }

  .upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
  }

  .upload-placeholder .upload-icon {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    opacity: 0.6;
  }

  .image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  .image-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
  }

  .image-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
  }

  .upload-count {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }

  /* 统一单按钮样式 */
  .footer .btn-next:only-child {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }

  input::placeholder,
  textarea::placeholder {
    color: #999;
    font-style: italic;
  }

  @media (max-width: 900px) {
    .form-container {
      flex-direction: column;
      border-radius: 16px;
      margin: 16px auto;
      padding: 0;
    }

    .form-box {
      flex-direction: column;
      border-radius: 16px;
      min-height: unset;
    }

    .sidebar {
      width: 100%;
      border-radius: 16px 16px 0 0;
      flex-direction: row;
      gap: 0.2rem;
      padding: 12px 0;
      justify-content: space-around;
    }

    .sidebar h1 {
      display: none;
    }

    .sidebar .unsel {
      font-size: 1rem;
      height: 38px;
      padding-left: 0;
      margin-bottom: 0;
      border-radius: 8px;
      min-width: 0;
      flex: 1;
      justify-content: center;
    }

    .sidebar .sel {
      font-size: 1rem;
      height: 38px;
      padding-left: 0;
      margin-bottom: 0;
      margin-left: 12px;
      border-radius: 8px;
      min-width: 0;
      flex: 1;
      justify-content: center;
    }

    .main {
      border-radius: 0 0 16px 16px;
      padding: 12px;
      gap: 0.8rem;
    }

    .main h2 {
      font-size: 1.25rem;
      margin-bottom: 1rem;
    }

    .footer button {
      width: 100%;
      font-size: 1rem;
      padding: 0.7rem 0;
      border-radius: 8px;
    }

    .sp-banner,
    .sp-banner-content {
      font-size: 1rem;
      height: 70px;
      border-radius: 8px;
      white-space: nowrap;
      padding: 0 4px;
    }

    .sp-label {
      font-size: 1.5rem;
      margin-left: 0;
    }

    .sp-desc {
      line-height: 1.1;
      margin-left: 2px;
      margin-bottom: 3px;
      font-size: 0.9rem;
    }

    .sp-eng {
      font-size: 0.6rem;
      margin-right: 8px;
    }

    .sp-more {
      font-size: 0.9rem;
      padding: 0.3em 1.5em;
    }

    .sp-label,
    .sp-desc,
    .sp-eng,
    .sp-more {
      white-space: nowrap;
    }

    .measurements-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
      max-width: 100%;
    }

    .measurement-item {
      gap: 0.3rem;
    }

    .privacy-notice {
      font-size: 0.8rem;
      padding: 0.8rem;
      margin: 1rem 0;
    }

    .footer {
      flex-direction: column;
      gap: 0.8rem;
    }

    .btn-back,
    .btn-next {
      width: 100%;
      font-size: 1rem;
      padding: 0.7rem;
      border-radius: 8px;
    }

    .contact-form {
      max-width: 100%;
    }

    .contact-row {
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .contact-row .form-group.full-width {
      max-width: 100%;
    }

    .footer .btn-next:only-child {
      width: 100%;
      max-width: none;
    }

    .upload-notice {
      font-size: 0.8rem;
      margin-top: 0.3rem;
    }

    /* 移动端多图片上传样式 */
    .image-upload-container {
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }
    
    .image-upload-item {
      width: 100%;
      height: 100px;
    }

    .upload-placeholder {
      padding: 0.5rem;
      font-size: 0.75rem;
    }

    .upload-placeholder .upload-icon {
      font-size: 1.5rem;
      margin-bottom: 0.2rem;
    }
  }