/* 云舒到家 H5 支付审核站点 - 移动端优先 */
:root {
  --primary: #496f5d;
  --primary-light: #5a8a72;
  --primary-dark: #3a5849;
  --accent: #52b788;
  --bg: #fbf7ef;
  --bg-alt: #f3ede3;
  --text: #1a1a2e;
  --text-muted: #73796f;
  --white: #ffffff;
  --border: #e8e2d8;
  --shadow: 0 4px 20px rgba(73, 111, 93, 0.08);
  --shadow-lg: 0 12px 40px rgba(73, 111, 93, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --max-width: 960px;
  --header-h: 60px;
  --price: #c45c26;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 17px;
  font-weight: 700;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.nav-desktop {
  display: none;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-desktop a.active { color: var(--primary); }

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 20px;
  box-shadow: var(--shadow);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child { border-bottom: none; }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 24px) 0 32px;
  background: linear-gradient(165deg, #eef5f0 0%, var(--bg) 60%);
}

.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(73, 111, 93, 0.12);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.hero-desc {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-item strong {
  display: block;
  font-size: 18px;
  color: var(--primary);
}

.stat-item span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sections */
section { padding: 36px 0; }

.section-alt { background: var(--bg-alt); }

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:active {
  transform: scale(0.98);
}

.product-card-link {
  display: block;
  color: inherit;
}

.product-card-link:hover { color: inherit; }

.product-thumb {
  height: 100px;
  background: linear-gradient(135deg, #eef5f0, #e2ebe4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
}

.product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  background: var(--price);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
}

.product-body {
  padding: 12px;
}

.product-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
}

.product-summary {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.price {
  color: var(--price);
  font-weight: 800;
}

.price .amount {
  font-size: 20px;
}

.price .unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-buy {
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Features */
.features-grid {
  display: grid;
  gap: 12px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(73, 111, 93, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--primary-dark);
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 16px;
}

/* Product detail */
.page-main {
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 100px;
}

.detail-hero {
  background: linear-gradient(135deg, #eef5f0, #e2ebe4);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 16px;
}

.detail-icon {
  font-size: 64px;
  margin-bottom: 12px;
}

.detail-hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--primary-dark);
}

.detail-price {
  color: var(--price);
  font-size: 28px;
  font-weight: 800;
}

.detail-price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
}

.content-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.content-card p:last-child { margin-bottom: 0; }

.include-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.include-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.include-list li:last-child { border-bottom: none; }

.include-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.meta-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 12px;
}

.meta-item .label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.meta-item .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.fixed-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 253, 248, 0.98);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 90;
}

.fixed-bar .price-info {
  flex: 1;
}

.fixed-bar .price-info .label {
  font-size: 12px;
  color: var(--text-muted);
}

.fixed-bar .price-info .amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--price);
}

.fixed-bar .btn { flex: 1; }

/* Order page */
.order-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.order-form input,
.order-form textarea,
.order-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  margin-bottom: 14px;
}

.order-form textarea {
  min-height: 80px;
  resize: vertical;
}

.order-summary {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.order-row.total {
  border-top: 1px dashed var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
}

.order-row.total .amount { color: var(--price); }

.pay-methods {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.pay-method.selected {
  border-color: var(--primary);
  background: rgba(73, 111, 93, 0.05);
}

.pay-method input { margin: 0; }

.pay-icon {
  width: 32px;
  height: 32px;
  background: #07c160;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.notice-box {
  background: #fff8e6;
  border: 1px solid #f5d88a;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  color: #8a6d1a;
  margin-bottom: 16px;
}

.notice-box.success {
  background: #eef8f0;
  border-color: #b8dfc4;
  color: var(--primary-dark);
}

/* Page hero inner */
.page-hero {
  padding: calc(var(--header-h) + 32px) 0 28px;
  background: linear-gradient(165deg, #eef5f0 0%, var(--bg) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }

.info-table th,
.info-table td {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.info-table th {
  width: 90px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-card a,
.contact-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
}

/* Legal */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 24px) 16px 60px;
}

.legal-content h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}

.legal-content .meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--primary-dark);
}

.legal-content p,
.legal-content li {
  font-size: 14px;
  line-height: 1.75;
}

.legal-content ol,
.legal-content ul {
  padding-left: 20px;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 36px 0 24px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand .logo { color: white; margin-bottom: 10px; }

.footer-brand p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: white;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-col a:hover { color: white; }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover { color: white; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }

  .hero h1 { font-size: 34px; }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 48px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
  }
}
