:root {
  --green: #07c160;
  --green-dark: #059669;
  --green-light: #e8f5e9;
  --white: #ffffff;
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #171717;
  --ink-soft: #4d4d4d;
  --ink-muted: #808080;
  --border: rgba(0,0,0,0.08);
  --shadow-border: 0px 0px 0px 1px var(--border);
  --shadow-card: 0px 0px 0px 1px var(--border), 0px 2px 2px rgba(0,0,0,0.04);
  --max-w: 960px;
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.6;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--green); }

/* header */
.header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: var(--shadow-border);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 18px; font-weight: 600; letter-spacing: -0.5px; display: flex; align-items: center; gap: 6px; }
.logo-dot { width: 10px; height: 10px; background: var(--green); border-radius: 50%; display: inline-block; }
.nav { display: flex; gap: 2px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 6px 14px; border-radius: 6px; transition: all 0.15s; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav .active { color: var(--green); background: var(--green-light); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.main { min-height: 60vh; }

/* hero */
.hero { padding: 80px 0 48px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--green);
  background: var(--green-light); padding: 4px 14px; border-radius: 9999px; margin-bottom: 20px;
}
.hero h1 { font-size: 48px; font-weight: 600; letter-spacing: -2px; line-height: 1.1; margin-bottom: 16px; }
@media (max-width: 640px) { .hero h1 { font-size: 36px; letter-spacing: -1.5px; } }
.hero .highlight { color: var(--green); font-style: italic; }
.hero p { font-size: 18px; color: var(--ink-soft); max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
@media (max-width: 640px) { .hero p { font-size: 16px; } }
.hero-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tag {
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  background: var(--bg); padding: 5px 14px; border-radius: 9999px;
  box-shadow: var(--shadow-border);
}

/* section */
.section { margin-bottom: 64px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 20px; font-weight: 600; letter-spacing: -0.8px; }
.section-link { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.section-link:hover { color: var(--green); }

/* card */
.card-grid { display: grid; gap: 12px; }
.card-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .card-grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 20px 24px;
  transition: box-shadow 0.2s, transform 0.2s; display: block; color: inherit;
}
.card:hover { box-shadow: var(--shadow-border), 0px 4px 12px rgba(0,0,0,0.06); transform: translateY(-1px); }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.card-meta { font-size: 12px; color: var(--ink-muted); margin-top: 10px; font-weight: 500; }

/* divider */
.divider { border: none; height: 0; box-shadow: var(--shadow-border); margin: 48px 0; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; }
.footer p { font-size: 13px; color: var(--ink-muted); }

/* page content */
.page { padding: 48px 0; }
.page h1 { font-size: 36px; font-weight: 600; letter-spacing: -1.5px; margin-bottom: 8px; }
.page-desc { font-size: 16px; color: var(--ink-soft); margin-bottom: 32px; max-width: 560px; }
.content { max-width: 680px; }
.content h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.5px; margin: 36px 0 12px; }
.content p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.8; }
.content ul { margin: 10px 0 16px 20px; font-size: 15px; color: var(--ink-soft); }
.content li { margin-bottom: 6px; }
.content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; background: var(--bg); padding: 2px 7px;
  border-radius: 4px; box-shadow: var(--shadow-border);
}

/* product */
.product-price { font-size: 28px; font-weight: 600; letter-spacing: -1px; color: var(--green); margin: 10px 0 6px; }
.buy-btn {
  display: block; text-align: center; padding: 10px 20px;
  background: var(--green); color: var(--white); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.buy-btn:hover { background: var(--green-dark); }
.project-tech { font-size: 12px; color: var(--ink-muted); font-family: ui-monospace, monospace; margin-top: 10px; }
.project-links { display: flex; gap: 12px; margin-top: 10px; }
.project-links a { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.project-links a:hover { color: var(--green); }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 48px 0 32px; }
}

/* ====== 产品详情页 ====== */
.product-hero {
  text-align: center; padding: 48px 0 32px;
}
.product-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -1px; margin-bottom: 8px; }
.product-hero p { font-size: 16px; color: var(--ink-soft); max-width: 500px; margin: 0 auto; }
.product-preview {
  background: var(--bg); border-radius: var(--radius);
  padding: 24px; margin: 24px 0; box-shadow: var(--shadow-card);
  text-align: center;
}
.product-preview img, .product-preview .mock-screen {
  max-width: 100%; border-radius: 4px; box-shadow: var(--shadow-card);
}
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0;
}
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-item {
  background: var(--bg); padding: 16px; border-radius: var(--radius);
  box-shadow: var(--shadow-border);
}
.feature-item .icon { font-size: 24px; margin-bottom: 8px; display: block; }
.feature-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

.pricing-card {
  text-align: center; padding: 32px 24px; margin: 32px 0;
  background: var(--bg); border-radius: var(--radius);
  box-shadow: var(--shadow-border);
}
.pricing-card .price { font-size: 36px; font-weight: 700; color: var(--green); letter-spacing: -1px; }
.pricing-card .price-label { font-size: 14px; color: var(--ink-muted); margin: 4px 0 16px; }
.pricing-card .perks { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; line-height: 1.8; }
.pricing-card .perks span { display: block; }
.pricing-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
@media (max-width: 640px) { .pricing-options { grid-template-columns: 1fr; } }
.pricing-option {
  text-align: center; padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-card); background: var(--surface);
}
.pricing-option.popular {
  border: 2px solid var(--green); position: relative;
}
.pricing-option .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 12px; border-radius: 9999px;
}
.pricing-option .plan-name { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.pricing-option .plan-price { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -1px; }
.pricing-option .plan-desc { font-size: 13px; color: var(--ink-muted); margin: 6px 0 16px; }

.demo-btn {
  display: inline-block; padding: 10px 24px;
  background: var(--white); color: var(--green); border: 1.5px solid var(--green);
  border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.demo-btn:hover { background: var(--green-light); color: var(--green-dark); }

/* ====== 支付弹窗 ====== */
.modal-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  justify-content: center; align-items: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px; padding: 28px 20px;
  max-width: 360px; width: 90%; text-align: center;
  position: relative;
}
.modal-box .close-btn {
  position: absolute; top: 10px; right: 14px;
  font-size: 22px; color: #999; cursor: pointer; border: none; background: none;
}
.modal-box h3 { font-size: 16px; margin-bottom: 4px; }
.modal-box .amount { font-size: 24px; font-weight: 700; color: var(--green); margin: 4px 0 10px; }
.pay-tabs {
  display: flex; gap: 0; margin: 12px auto 16px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); max-width: 240px;
}
.pay-tab {
  flex: 1; padding: 8px 0; font-size: 13px; font-weight: 500;
  cursor: pointer; background: var(--white); color: var(--ink-soft);
  transition: all 0.15s; border: none;
}
.pay-tab.active { background: var(--green); color: #fff; }
.qr-area {
  width: 200px; height: 200px; margin: 0 auto 12px;
  background: var(--bg); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.qr-area img { width: 100%; height: 100%; object-fit: contain; }
.qr-area .placeholder {
  font-size: 13px; color: #bbb; text-align: center; line-height: 1.5;
}
.qr-hint { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.qr-hint strong { color: var(--ink); }
.qr-contact {
  display: inline-block; margin-top: 10px;
  padding: 6px 16px; background: var(--green); color: #fff;
  border-radius: 9999px; font-size: 13px; font-weight: 500;
}
