:root {
  --bg: #faf8f5;
  --bg-alt: #fff7ed;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #78716c;
  --primary: #ea580c;
  --primary-dark: #c2410c;
  --accent: #f59e0b;
  --border: #e7e5e4;
  --shadow: 0 16px 40px rgba(28, 25, 23, 0.08);
  --radius: 14px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  font-size: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(234, 88, 12, 0.12) 0%, transparent 40%),
    var(--bg);
}

.hero-inner {
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-desc {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.28);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-size: 28px;
  line-height: 1;
  color: var(--primary-dark);
}

.hero-stats span {
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.section-desc {
  margin: 0 0 40px;
  text-align: center;
  color: var(--muted);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.product-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.product h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.product-spec {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.product-price {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.product-price strong {
  color: var(--primary-dark);
  font-size: 22px;
}

.product-note {
  margin: 24px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-inner .section-title,
.contact-inner .section-desc {
  text-align: left;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.contact-label {
  font-size: 13px;
  color: var(--muted);
}

.contact-list a {
  color: var(--primary-dark);
  font-weight: 600;
}

.contact-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 10px;
}

.contact-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: #292524;
  color: #d6d3d1;
  text-align: center;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  margin-top: 6px !important;
  font-size: 13px;
  color: #a8a29e;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-inner .section-title,
  .contact-inner .section-desc {
    text-align: center;
  }
}

/* Product extras */
.product-emoji {
  font-size: 40px;
  margin-bottom: 12px;
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  margin-top: 16px;
}

.product .btn-sm {
  width: 100%;
}

/* Payment section */
.payment-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.payment-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.payment-brand h3 {
  margin: 0 0 6px;
}

.payment-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.alipay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1677ff;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.alipay-logo-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.payment-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  margin: 8px 0 !important;
}

.footer-links a {
  color: #fcd34d;
}

.footer-links span {
  margin: 0 6px;
  color: #78716c;
}

.footer-mini {
  padding: 16px 0;
}

.footer-mini a {
  color: #fcd34d;
}

/* Order page */
.order-page {
  padding: 40px 0 64px;
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.order-panel {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.order-panel h1 {
  margin: 0 0 24px;
  font-size: 1.5rem;
}

.order-summary {
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.order-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-product h3 {
  margin: 0 0 4px;
}

.order-form h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(234, 88, 12, 0.25);
  border-color: var(--primary);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}

.checkbox-field input {
  margin-top: 3px;
}

.checkbox-field a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.error-text {
  color: #dc2626;
  font-size: 14px;
  margin: 0 0 12px;
}

.order-pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.order-price-label {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.order-price-total {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
}

.order-price-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.btn-alipay {
  background: #1677ff;
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 119, 255, 0.28);
  min-width: 180px;
}

.order-pay-tip {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.order-aside {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
}

.order-aside h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.order-aside ul {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
}

.order-aside li {
  margin-bottom: 8px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-alt);
  font-size: 13px;
}

.trust-badge .alipay-logo {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

/* Result page */
.result-page {
  padding: 64px 0;
}

.result-box {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.result-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.result-success .result-icon {
  background: #dcfce7;
  color: #16a34a;
}

.result-pending .result-icon {
  background: #fef3c7;
  color: #d97706;
}

.result-fail .result-icon {
  background: #fee2e2;
  color: #dc2626;
}

.result-box h1 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.result-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.result-box .btn {
  margin-top: 20px;
}

/* Legal */
.legal-page {
  padding: 40px 0 64px;
}

.legal-content {
  max-width: 760px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.legal-content h1 {
  margin: 0 0 8px;
}

.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-content h2 {
  margin: 28px 0 12px;
  font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 15px;
}

.legal-back {
  margin-top: 32px;
}

.legal-back a {
  color: var(--primary-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-pay-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-alipay {
    width: 100%;
  }

  .order-pay-tip {
    text-align: center;
  }
}
