html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.section {
  width: 100vw;
  min-height: unset;
  height: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.section:last-child {
  margin-bottom: 0;
}
.section .illus-img {
  width: 100%;
  max-width: 525px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.section2 {
  width: 100vw;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  margin-top: 0;
  margin-bottom: 0;
  z-index: 2;
  position: relative;
  padding: 0;
}
.section2-inner {
  width: 100%;
  max-width: 100%;
  background: #ffc9d0;
  border-radius: 0;
  padding: 32px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.section3 {
  margin-bottom: 12px;
}
.section5 {
  min-height: unset;
  height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  margin-bottom: 12px;
  margin-top: 12px;
}
.section5 .illus-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.section6 {
  min-height: unset;
  height: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  margin-bottom: 12px;
  margin-top: 12px;
}
.section6 .illus-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}
#testForm {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
}
.input-group {
  width: 100%;
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.input-group input {
  flex: 1;
  padding: 12px 10px;
  font-size: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}
.input-row {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 500px;
  justify-content: center;
  margin: 0 auto 32px auto;
  box-sizing: border-box;
}
.input-col {
  background: #fff;
  border-radius: 16px;
  width: 220px;
  max-width: 44vw;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 12px rgba(255, 105, 135, 0.08);
  padding: 0 0 18px 0;
}

/* 移动端输入框横向并列优化 */
@media (max-width: 768px) {
  .section2-inner {
    padding: 32px 15px 24px 15px;
  }
  
  .input-row {
    gap: 16px;
    margin: 0 auto 24px auto;
    max-width: 100%;
  }
  
  .input-col {
    width: calc(50% - 8px);
    max-width: none;
    min-width: 0;
  }
  
  .big-btn {
    width: 90%;
    max-width: 280px;
    font-size: 36px;
  }
  
  .big-btn-text {
    font-size: 28px;
  }
  
  .privacy-group {
    font-size: 18px;
    max-width: 100%;
  }
  
  .price-tip {
    font-size: 14px;
    max-width: 100%;
  }
}
.input-label {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
  margin-top: -22px;
  border-radius: 0 0 12px 12px;
  padding: 8px 0 6px 0;
  width: 100%;
  text-align: center;
  position: relative;
}
.input-label.boy {
  background: #6ea8ff;
  color: #fff;
  border-radius: 0 0 18px 18px;
  font-size: 20px;
}
.input-label.girl {
  background: #ff8fa8;
  color: #fff;
  border-radius: 0 0 18px 18px;
  font-size: 20px;
}
.input-col input {
  width: 80%;
  margin: 0 auto;
  margin-top: 10px;
  padding: 16px 10px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background: #f5f5f5;
  color: #888;
  text-align: center;
}
#startTest {
  width: 100%;
  padding: 14px 0;
  background: #ffb300;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
#startTest:hover {
  background: #ffa000;
}
.big-btn {
  width: 80%;
  max-width: 320px;
  min-width: 180px;
  padding: 18px 0;
  background: #e94d5f !important;
  color: #fff;
  border: none;
  border-radius: 48px;
  font-size: 40px;
  font-weight: bold;
  margin: 32px auto 24px auto;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 105, 135, 0.10);
  transition: background 0.2s;
  letter-spacing: 2px;
  display: block;
  box-sizing: border-box;
}
.big-btn:hover {
  background: #d43a4c !important;
}
.big-btn-text {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 2px;
}
.privacy-group {
  display: flex;
  align-items: center;
  font-size: 20px;
  margin: 0 auto 18px auto;
  color: #e94d5f;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}
.privacy-group input[type="checkbox"] {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  accent-color: #ff6b9d;
  border-radius: 3px;
  background-color: #ffb3c1;
  border: 1px solid #ff8fa8;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  cursor: pointer;
}

.privacy-group input[type="checkbox"]:checked {
  background-color: #ff6b9d;
  border-color: #ff6b9d;
}

.privacy-group input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}
.privacy-group label {
  color: #e94d5f;
  font-size: 20px;
}
.privacy-group a {
  color: #e94d5f;
  text-decoration: underline;
  margin-left: 2px;
}
.order-link {
  width: 100%;
  text-align: center;
  font-size: 22px;
  margin-bottom: 10px;
}
.order-link a {
  color: #e94d5f;
  text-decoration: underline;
}
.price-tip {
  color: #b94d5f;
  font-size: 16px;
  text-align: center;
  margin: 10px auto 0 auto;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}
.section-inner {
  width: 100%;
  max-width: 525px;
  background: #ffc9d0;
  border-radius: 0;
  padding: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.section-inner img.illus-img {
  margin-bottom: 0;
  border-radius: 0;
}
.section1 .section-inner {
  max-width: 525px;
}
.section1-img {
  max-width: 525px !important;
}
.section2-inner .input-row {
  margin-top: 32px;
}
.pay-section-inner {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(255, 105, 135, 0.08);
  padding: 0 0 32px 0;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 525px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pay-title {
  background: #ffe6ef;
  color: #e94d5f;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  border-radius: 0 0 32px 32px;
  margin-top: 0;
  margin-bottom: 18px;
  padding: 18px 0 8px 0;
  width: 100%;
}
.pay-price-label {
  background: #e94d5f;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  padding: 6px 18px;
  display: inline-block;
}
.pay-price {
  font-size: 22px;
  font-weight: bold;
}
.pay-timer {
  text-align: right;
  color: #e94d5f;
  font-size: 16px;
  font-weight: bold;
}
.pay-timer-count {
  color: #e94d5f;
  font-size: 20px;
  font-weight: bold;
}
.pay-old-price {
  color: #bbb;
  font-size: 16px;
  margin: 8px 0 0 0;
  text-align: left;
  width: 100%;
  padding-left: 18px;
}
.pay-old {
  text-decoration: line-through;
}
.pay-desc {
  color: #444;
  font-size: 18px;
  margin: 18px 0 18px 0;
  text-align: center;
}
.pay-wx-btn {
  width: 90%;
  max-width: 420px;
  background: #10c04e;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  border: none;
  border-radius: 48px;
  padding: 18px 0;
  margin: 18px 0 18px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16,192,78,0.10);
  transition: background 0.2s;
}
.pay-wx-btn:hover {
  background: #0ea144;
}
.pay-cert-row {
  display: flex;
  gap: 12px;
  margin: 18px 0 0 0;
  justify-content: center;
}
.pay-cert {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f5f5f5;
}
.pay-tip {
  color: #10c04e;
  font-size: 16px;
  text-align: center;
  margin: 18px 0 0 0;
}
.pay-result-inner {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(255, 105, 135, 0.08);
  padding: 0 0 32px 0;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  max-width: 525px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pay-result-tip {
  background: #ffe6ef;
  color: #e94d5f;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  border-radius: 0 0 32px 32px;
  margin-top: 0;
  margin-bottom: 18px;
  padding: 18px 0 8px 0;
  width: 100%;
}
.pay-result-pair-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 18px 0 18px 0;
}
.pay-result-person {
  background: #eaf3ff;
  border-radius: 12px;
  width: 120px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #4a90e2;
  font-weight: bold;
}
.pay-result-person.girl {
  background: #ffe6ef;
  color: #e94d5f;
}
.pay-result-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.pay-result-heart {
  width: 60px;
  height: 60px;
  background: #ffb6c1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(255, 105, 135, 0.10);
  border: 4px solid #fff;
  margin: 0 8px;
}
.pay-result-block {
  background: #f8f8f8;
  border-radius: 12px;
  margin: 18px 0 0 0;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  padding: 18px 12px 12px 12px;
  text-align: center;
}
.pay-result-block-title {
  color: #e94d5f;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.pay-result-stars {
  color: #ffd700;
  font-size: 28px;
  margin-bottom: 8px;
}
.pay-result-block-desc {
  color: #444;
  font-size: 16px;
  line-height: 1.7;
}
.blur-block {
  position: relative;
  overflow: visible;
  min-height: auto;
  background: #fff;
  height: auto;
}
.blur-bg {
  filter: blur(6px);
  color: #bbb;
  font-size: 16px;
  line-height: 1.7;
  pointer-events: none;
  user-select: none;
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  text-align: left;
  z-index: 1;
  padding: 20px;
  box-sizing: border-box;
}
.blur-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #e94d5f;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  width: 80%;
  max-width: 300px;
}
.blur-hint {
  color: #e94d5f;
  font-size: 15px;
  font-weight: normal;
  margin-top: 6px;
}
.pay-stat-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(255, 105, 135, 0.10);
  margin: -48px auto 0 auto;
  padding: 18px 18px 12px 18px;
  max-width: 90%;
  text-align: center;
  font-size: 22px;
  color: #444;
  position: relative;
  z-index: 2;
}
.pay-stat-num {
  color: #e94d5f;
  font-weight: bold;
  font-size: 24px;
}
.pay-stat-rate {
  color: #e94d5f;
  font-weight: bold;
  font-size: 22px;
}
.pay-cert-badge {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #10c04e;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 4px;
  min-width: 80px;
  height: 48px;
}
.pay-cert-icon {
  background: #10c04e;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 8px;
}
.pay-cert-text {
  color: #10c04e;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
}
@media (max-width: 700px) {
  .section .illus-img {
    max-width: 98vw;
  }
  #testForm {
    padding: 16px 2vw 10px 2vw;
  }
  .input-group input {
    font-size: 15px;
    padding: 10px 6px;
  }
  .input-col input {
    font-size: 14px;
    padding: 12px 8px;
  }
  #startTest {
    font-size: 16px;
    padding: 12px 0;
  }
  .input-row {
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }
  .input-col {
    width: calc(50% - 6px);
    max-width: 45vw;
    min-width: 100px;
  }
  .input-label {
    font-size: 16px;
  }
  .big-btn {
    font-size: 22px;
    padding: 16px 0;
  }
  .privacy-group label {
    font-size: 16px;
  }
  .order-link {
    font-size: 16px;
  }
  
  /* 移动端图标网格优化 */
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .category-item {
    padding: 4px 1px;
    min-width: 0;
    box-sizing: border-box;
  }
  
  .category-title {
    font-size: 9px;
    line-height: 1.1;
    word-break: break-all;
    overflow-wrap: break-word;
  }
  
  .category-icon-img {
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: contain;
  }
  
  /* 移动端支付页面优化 */
  .pay-result-block {
    width: 95%;
    max-width: none;
    padding: 16px 12px 12px 12px;
    margin: 12px auto;
  }
  
  .analysis-content {
    font-size: 13px;
    line-height: 1.6;
    padding: 0 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .blur-bg {
    padding: 16px 8px;
  }
  
  .blur-cover {
    width: 90%;
    max-width: 280px;
    font-size: 18px;
  }
  
  .blur-hint {
    font-size: 13px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
  }
  
  .category-item {
    padding: 2px 0;
  }
  
  .category-title {
    font-size: 8px;
    line-height: 1.0;
  }
  
  .pay-result-block {
    width: 98%;
    padding: 12px 8px 8px 8px;
    margin: 8px auto;
  }
  
  .analysis-content {
    font-size: 12px;
    line-height: 1.5;
    padding: 0 4px;
  }
  
  .blur-bg {
    padding: 12px 6px;
  }
  
  .blur-cover {
    width: 95%;
    max-width: 260px;
    font-size: 16px;
  }
  
  .blur-hint {
    font-size: 12px;
  }
}
/* 平台首页样式 */
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8f8f8;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.platform-container {
  width: 100%;
  max-width: 525px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.platform-banner {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe6ef 0%, #fff 100%);
}
.banner-slider {
  width: 100%;
  height: 100%;
  position: relative;
}
.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.banner-slide.active {
  opacity: 1;
}
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active {
  background: #e94d5f;
}
.activity-notice {
  background: #fff;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
}
.notice-icon {
  font-size: 16px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  background: #fff;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.category-item:hover {
  background: #f8f8f8;
}
.category-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.category-title {
  font-size: 12px;
  color: #333;
  text-align: center;
  line-height: 1.2;
}
.tab-nav {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
}
.tab-item {
  padding: 12px 16px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tab-item.active {
  color: #e94d5f;
  border-bottom-color: #e94d5f;
}
.assessment-cards {
  padding: 16px;
  background: #f8f8f8;
}
.assessment-card {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-bg {
  padding: 20px;
  position: relative;
  min-height: 120px;
}
.gold-bg {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}
.pink-bg {
  background: linear-gradient(135deg, #ffb6c1 0%, #ffe6ef 100%);
}
.card-tagline {
  font-size: 14px;
  color: #b8860b;
  margin-bottom: 8px;
}
.card-label {
  font-size: 12px;
  color: #b8860b;
  margin-bottom: 8px;
}
.card-title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.card-question {
  color: #000;
  font-size: 14px;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.card-btn {
  background: #e94d5f;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 8px;
}
.card-count {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.card-link {
  background: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
}
.link-btn {
  background: #e94d5f;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  border-top: 1px solid #f0f0f0;
  padding: 8px 0;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.nav-label {
  font-size: 12px;
  color: #666;
}
.image-bg {
  background: none;
  position: relative;
  overflow: hidden;
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}
.card-overlay .card-title {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.card-overlay .card-btn {
  background: #fff;
  color: #e94d5f;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 8px;
}
.card-overlay .card-count {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.category-icon-img {
  width: 80px;
  height: 80px;
  margin-bottom: 6px;
  object-fit: contain;
}
.card-image[src*="p14.png"] {
  object-position: top;
  object-fit: cover;
}
.banner-img[src*="p14.png"] {
  object-position: top;
  object-fit: cover;
}