/* 昭绘江山 · 官网共用样式
   设计语言与工作台页面同源：同一套墨绿配色变量、同一套卡片圆角。
   仅对外页面使用；工作台内部页不引用本文件。
   严格约束：不引入外部字体、图片、图标库，所有资源走相对路径，
   便于整目录上传 OSS 后零外链依赖。 */

:root {
  --bg: #f6f7f5;
  --card: #ffffff;
  --text: #1c2420;
  --text-sub: #5c6b62;
  --line: #e3e8e4;
  --accent: #2f6b4f;
  --accent-dark: #24523c;
  --accent-soft: #eef4f0;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 12px 32px rgba(28, 36, 32, .07);
  --shadow-hover: 0 18px 42px rgba(28, 36, 32, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}
.wrap-narrow { max-width: 820px; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  font-size: 14px;
  color: var(--text-sub);
  padding: 7px 11px;
  border-radius: 9px;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent-dark); }
.nav-link.is-current { color: var(--accent-dark); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 18px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 107, 79, .22);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(47, 107, 79, .28); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(47, 107, 79, .22); }
.btn-ghost {
  background: #fff;
  color: var(--accent-dark);
  border-color: #cfdcd4;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(1px); }
.btn-lg { padding: 14px 30px; font-size: 17px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- 首页首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  text-align: center;
  background:
    radial-gradient(760px 380px at 50% -80px, rgba(47, 107, 79, .13), transparent 70%),
    linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #dce8e1;
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0 0 22px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 48px);
  line-height: 1.25;
  letter-spacing: 1px;
  font-weight: 800;
}
.hero-sub {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-sub);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: #8a978f;
}

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(23px, 3.2vw, 30px);
  letter-spacing: .5px;
}
.section-head p {
  margin: 12px 0 0;
  color: var(--text-sub);
  font-size: 15px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d5e2da; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--text-sub); }

/* ---------- 产品页：功能分栏 ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-figure { order: 1; }
.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.feature h2 { margin: 0 0 12px; font-size: clamp(20px, 2.6vw, 25px); }
.feature p { margin: 0; color: var(--text-sub); font-size: 15px; }
.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-sub);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* 功能示意图：纯 CSS/SVG 线框，不使用任何真实界面截图 */
.figure {
  background: linear-gradient(180deg, #ffffff, #fbfcfb);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}
.figure-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.figure-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dfe7e2;
}
.figure-bar i:first-child { background: #c9d8cf; }
.mock-row {
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  margin-bottom: 9px;
}
.mock-row.w70 { width: 70%; }
.mock-row.w45 { width: 45%; }
.mock-row.plain { background: #f1f4f2; }
.mock-timeline {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.mock-timeline span {
  height: 26px;
  border-radius: 6px;
  background: #d9e6de;
  flex: 1;
}
.mock-timeline span:nth-child(2) { flex: 2; background: #c3d8cb; }
.mock-timeline span:nth-child(3) { flex: 1.5; }
.mock-timeline span:nth-child(4) { flex: .8; background: #e7efea; }
.mock-caption {
  margin-top: 14px;
  border: 1px dashed #cfdcd4;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-sub);
  background: #fff;
}

/* ---------- 支付页 ---------- */
.pay-main { padding: 44px 0 132px; }
.page-title { margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 30px); }
.page-sub { margin: 0 0 30px; color: var(--text-sub); font-size: 15px; }

.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.pay-grid > aside { position: sticky; top: 88px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 22px; }
.panel-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.account-name { font-size: 15px; font-weight: 600; }
.account-desc { font-size: 13px; color: var(--text-sub); margin-top: 2px; }
.points-badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid #d7e5dc;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.points-badge b { font-size: 18px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.stat {
  background: #fafbfa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.stat span { display: block; font-size: 12px; color: var(--text-sub); }
.stat b { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; }

.amount-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.amount-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, .12);
}
.amount-input > span { font-size: 14px; color: var(--text-sub); }
.amount-input .input {
  width: 108px;
  border: 0;
  border-radius: 0;
  padding: 9px 0;
  background: transparent;
}
.amount-input .input:focus { box-shadow: none; }

.recharge-note { margin: 12px 0 0; font-size: 13px; color: var(--text-sub); }
.recharge-note b { font-size: 15px; color: var(--accent-dark); }

.custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sub);
}
.input {
  width: 118px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 107, 79, .12); }
.unit { font-size: 13px; color: var(--text-sub); }

.amount-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.amount-line .label { font-size: 14px; color: var(--text-sub); }
.amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: .5px;
}
.amount small { font-size: 14px; font-weight: 600; margin-right: 2px; }

.pay-method {
  display: grid;
  gap: 10px;
}
.method {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.method:hover { border-color: #b9cfc2; }
.method.is-active { border-color: var(--accent); background: var(--accent-soft); }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c4d2c9;
  flex: 0 0 auto;
  position: relative;
  transition: border-color .16s ease;
}
.method.is-active .radio-dot { border-color: var(--accent); }
.method.is-active .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.method-name { font-size: 14px; font-weight: 600; }
.method-note { font-size: 12px; color: var(--text-sub); margin-left: auto; }
.pay-flag {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
}
.pay-flag.alipay { background: #1677ff; }
.pay-flag.wechat { background: #09bb07; }

.pay-summary-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pay-summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.pay-summary-list .k { color: var(--text-sub); }
.pay-summary-list .v { font-weight: 600; }
.pay-summary-list .v.total { font-size: 20px; font-weight: 800; color: var(--accent-dark); }

.paybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(28, 36, 32, .06);
}
.paybar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.paybar-total { display: flex; align-items: baseline; gap: 8px; }
.paybar-total .label { font-size: 13px; color: var(--text-sub); }
.paybar-total .amount { font-size: 24px; }
.paybar .btn { min-width: 168px; }

/* ---------- 弹层 ---------- */
.mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 28, 24, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.mask[hidden] { display: none; }
.dialog {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(16, 24, 20, .28);
  animation: pop .18s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.dialog h3 { margin: 0 0 6px; font-size: 18px; }
.dialog p.desc { margin: 0 0 18px; font-size: 13px; color: var(--text-sub); }
.dialog-rows { display: grid; gap: 9px; margin-bottom: 20px; }
.dialog-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.dialog-rows .k { color: var(--text-sub); }
.dialog-rows .v { font-weight: 600; }
.dialog-actions { display: flex; gap: 10px; }
.dialog-actions .btn { flex: 1; }
.dialog-success { text-align: center; }
.dialog-success .check {
  width: 52px;
  height: 52px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 条款页 ---------- */
.doc-main { padding: 54px 0 80px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(24px, 3.4vw, 32px); }
.doc-meta { margin: 0 0 30px; font-size: 13px; color: #8a978f; }
.doc h2 { margin: 34px 0 10px; font-size: 17px; }
.doc p { margin: 0 0 10px; font-size: 14px; color: #3d4a43; }
.doc ul { margin: 0 0 10px; padding-left: 22px; font-size: 14px; color: #3d4a43; }
.doc li { margin-bottom: 6px; }
.doc .notice {
  background: var(--accent-soft);
  border: 1px solid #dce8e1;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--accent-dark);
  margin: 0 0 24px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 30px 0 34px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8a978f;
}
.footer-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #8a978f; transition: color .16s ease; }
.footer-links a:hover { color: var(--accent-dark); }

/* ---------- 移动端 ---------- */
@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
  .feature.reverse .feature-text { order: 1; }
  .feature.reverse .feature-figure { order: 2; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-grid > aside { position: static; }
}

@media (max-width: 720px) {
  .hero { padding: 62px 0 56px; }
  .section { padding: 52px 0; }
  .topbar-inner { min-height: 60px; }
  .brand { font-size: 16px; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .nav .btn { padding: 8px 13px; font-size: 13px; }
  .pay-main { padding-bottom: 150px; }
  .paybar-inner { min-height: 68px; }
  .paybar .btn { min-width: 0; flex: 0 0 auto; padding: 11px 20px; }
  .paybar-total .amount { font-size: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 420px) {
  .nav-link.opt { display: none; }
}
