/* StmtPDF v7 — Ledger 视觉系统
   设计依据：银行对账单本身（左日期栏、细线行、右对齐金额、已核对章）
   约束：线条只服务数据；无圆角卡片堆叠；无渐变装饰；无小节眉标 */
:root {
  --paper: #EFF1EC;
  --sheet: #FAFBF7;
  --ink: #171A16;
  --ink-2: #3C423B;
  --ink-3: #6A7168;
  --rule: #C6C9BE;
  --rule-soft: #DDE0D6;
  --debit: #A32A1E;
  --credit: #245743;
  --mark: rgba(163, 42, 30, .12);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

.wrap { max-width: 1180px; }

a { color: var(--ink); }

/* ---------------- 顶栏：账单抬头 ---------------- */
.site-header {
  position: static;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: none;
}
.site-header .wrap { height: 64px; }
.site-header .logo img { height: 30px; width: auto; filter: saturate(0) contrast(1.15); }
.site-header .nav { gap: 26px; margin-left: 40px; }
.site-header .nav a {
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  line-height: 64px;
}
.site-header .nav a:hover { background: none; color: var(--ink); }
.site-header .nav a.active { background: none; color: var(--ink); border-bottom-color: var(--debit); }
.site-header .header-right { gap: 18px; }
.site-header .lang summary { font-size: 13.5px; color: var(--ink-3); }
.site-header .signin-btn {
  border: 1px solid var(--ink) !important;
  background: transparent !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  padding: 7px 14px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}
.site-header .signin-btn:hover { background: var(--ink) !important; color: var(--sheet) !important; }

/* ---------------- 首屏：一张对账单 ---------------- */
.x-hero {
  padding: 46px 0 0;
  background: var(--paper);
  border-bottom: 0;
}
.x-hero::after { display: none; }
.x-hero > .wrap { position: static; }

/* 隐藏 v6 的装饰性眉标（不承载信息） */
.x-eyebrow { display: none; }

.x-hero h1 {
  margin: 0 0 16px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Songti SC", "SimSun", serif;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  max-width: 21ch;
}
.x-hero h1 em { font-style: normal; color: var(--ink); border-bottom: 3px solid var(--debit); }
.x-sub {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0;
}
.x-chips { display: none; }

/* ---------------- 区块骨架 ---------------- */
.x-section { padding: 54px 0; border-top: 1px solid var(--rule); }
.x-section.alt { background: transparent; border-top: 1px solid var(--rule); border-bottom: 0; }
.x-section:first-of-type { border-top: 0; }
.x-head { max-width: 66ch; margin-bottom: 28px; }
.x-head h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Songti SC", "SimSun", serif;
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.x-head p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }

.x-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.x-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }

.x-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-soft);
  border-radius: 0;
  padding: 20px 22px 22px 0;
  box-shadow: none;
}
.x-grid-3 > .x-card + .x-card,
.x-grid-2 > .x-card + .x-card { border-left: 1px solid var(--rule-soft); padding-left: 26px; }
.x-card h3 { margin: 10px 0 8px; font-size: 16.5px; font-weight: 700; }
.x-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.x-card .x-ico {
  width: auto; height: auto; border-radius: 0; display: block;
  background: none; color: var(--debit);
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
}

/* 流程：真正的序列，保留编号，用账页栏位而不是卡片 */
.x-step {
  background: transparent; border: 0; border-top: 1px solid var(--ink);
  border-radius: 0; padding: 18px 26px 4px 0;
}
.x-step .n {
  width: auto; height: auto; border-radius: 0; background: none;
  color: var(--debit); font-family: "Iowan Old Style", Palatino, serif;
  font-size: 26px; font-weight: 600; line-height: 1;
}
.x-step h3 { margin: 12px 0 6px; font-size: 16px; }
.x-step p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }

/* 统计行：像账本合计行 */
.x-stat { text-align: left; border-left: 1px solid var(--rule-soft); padding-left: 18px; }
.x-stat .v { font-family: "Iowan Old Style", Palatino, serif; font-size: 28px; font-weight: 600; }
.x-stat .l { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* 银行：账目表 */
.x-bankgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.x-bank {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-soft);
  border-radius: 0; padding: 13px 14px 13px 0;
}
.x-bank .nm { font-weight: 600; font-size: 14.5px; }
.x-bank .tp { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.x-bank .ok { color: var(--credit); font-size: 14px; font-weight: 700; }

/* 底部行动区：纸面 + 粗线，不用深色渐变 */
.x-cta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 0; padding: 28px 30px;
}
.x-cta h2 { color: var(--ink); margin: 0 0 8px; font-family: "Iowan Old Style", Palatino, "Songti SC", serif; font-size: 24px; font-weight: 600; }
.x-cta p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.x-cta .btn-primary { background: var(--ink); border-color: var(--ink); color: var(--sheet); }

/* 按钮：方形墨块 / 下划线文字 */
.btn { border-radius: 2px; }
.btn-primary {
  background: var(--ink); border-color: var(--ink); color: var(--sheet);
  font-weight: 600; padding: 12px 22px;
}
.btn-primary:hover { background: #000; border-color: #000; }
.btn-secondary {
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  border-radius: 0; padding: 4px 0; color: var(--ink); font-weight: 600;
}
.btn-large { padding: 14px 26px; }

/* ---------------- 下载页 ---------------- */
.x-dl {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 20px; align-items: center;
  background: var(--sheet); border: 1px solid var(--ink); border-radius: 0;
  padding: 24px; box-shadow: none;
}
.x-dl .tile {
  width: 60px; height: 60px; border-radius: 0;
  background: var(--ink); color: var(--sheet);
  display: grid; place-items: center; font-family: "Iowan Old Style", Palatino, serif;
  font-size: 26px; font-weight: 600;
}
.x-dl h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.x-dl .meta { color: var(--ink-3); font-size: 13.5px; }
.x-dl .right { text-align: right; }
.x-dl .dl-btn { border-radius: 2px; }
.x-req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; }
.x-req li { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; }
.x-req li::before { content: "—"; color: var(--debit); font-weight: 700; }

/* 时间线：账页流水 */
.x-timeline { border-left: 1px solid var(--rule); margin-left: 4px; padding-left: 18px; }
.x-timeline .item { position: relative; padding-bottom: 18px; }
.x-timeline .item::before {
  content: ""; position: absolute; left: -23px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink-3);
}
.x-timeline .ver { font-weight: 700; font-size: 14px; }
.x-timeline .body { margin-top: 4px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }

/* ---------------- 激活页 ---------------- */
.x-act-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; border-top: 1px solid var(--ink); }
.x-act-grid > .x-card { padding: 24px; border-bottom: 1px solid var(--rule); }
.x-act-grid > .x-card + .x-card { border-left: 1px solid var(--rule-soft); }
.x-notice { border-radius: 0; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; border-left: 3px solid; }
.x-notice.ok { background: #EDF1E8; border-color: var(--credit); color: #1C4433; }
.x-notice.err { background: var(--mark); border-color: var(--debit); color: var(--debit); }

/* ---------------- 套餐：账页列 ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.plan {
  background: transparent; border: 0; border-right: 1px solid var(--rule-soft);
  border-radius: 0; box-shadow: none; padding: 24px 24px 26px;
}
.plan:last-child { border-right: 0; }
.plans .plan:nth-child(3n) { border-right: 0; }
.plans .plan:nth-child(n+4) { border-top: 1px solid var(--rule-soft); }
.plan.popular { background: var(--sheet); border-left: 3px solid var(--debit); }
.plan-tag {
  display: inline-block; background: none; color: var(--debit);
  font-size: 12px; letter-spacing: .04em; padding: 0; border-radius: 0;
}
.plan h3 { font-family: "Iowan Old Style", Palatino, "Songti SC", serif; font-size: 20px; font-weight: 600; margin: 6px 0 4px; }
.plan .desc { color: var(--ink-3); font-size: 13px; }
.plan .price { font-family: "Iowan Old Style", Palatino, serif; font-size: 38px; font-weight: 600; margin-top: 14px; }
.plan .price small { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.plan .price-year { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 18px; border-top: 1px solid var(--rule-soft); }
.plan li { font-size: 14px; color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--rule-soft); display: flex; gap: 8px; }
.plan li i { font-style: normal; color: var(--credit); }
.plan .cta { display: inline-block; border-radius: 2px; padding: 11px 18px; font-weight: 600; font-size: 14px; text-decoration: none; }
.plan .cta-primary { background: var(--ink); color: var(--sheet); }
.plan .cta:not(.cta-primary) { border: 1px solid var(--ink); color: var(--ink); }

/* ---------------- 页脚：账页尾 ---------------- */
.site-footer {
  background: var(--paper); color: var(--ink-2);
  border-top: 3px double var(--ink);
  margin-top: 0; padding: 34px 0 20px;
}
.site-footer .footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; }
.site-footer h4 { color: var(--ink-3); font-size: 12px; letter-spacing: .08em; margin: 0 0 10px; font-weight: 700; }
.site-footer a { color: var(--ink-2); font-size: 14px; display: block; padding: 5px 0; text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.site-footer .footer-brand p { color: var(--ink-3); font-size: 13.5px; line-height: 1.75; max-width: 34ch; }
.site-footer .footer-bottom { border-top: 1px solid var(--rule); margin-top: 24px; padding-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* 会员中心容器跟随新纸面 */
main .card, .card { border-radius: 0; }

@media (max-width: 980px) {
  .x-grid-3, .x-grid-2, .x-bankgrid, .x-req, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans .plan:nth-child(3n) { border-right: 1px solid var(--rule-soft); }
  .plans .plan:nth-child(2n) { border-right: 0; }
  .plans .plan:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .x-act-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .nav { gap: 16px; margin-left: 22px; }
}
@media (max-width: 640px) {
  .site-header .nav { display: none; }
  .x-grid-3, .x-grid-2, .x-bankgrid, .x-req, .plans { grid-template-columns: 1fr; }
  .plans .plan { border-right: 0; }
  .plans .plan:nth-child(n+2) { border-top: 1px solid var(--rule-soft); }
  .x-dl { grid-template-columns: 48px 1fr; }
  .x-dl .right { grid-column: 1 / -1; text-align: left; }
  .x-hero { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------- 首屏：文案 + 对账单样例 ---------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: end;
  padding-bottom: 30px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn-primary { text-decoration: none; }
.hero-actions .btn-secondary { text-decoration: none; font-size: 14px; }

.statement {
  background: var(--sheet);
  border: 1px solid var(--ink);
  padding: 16px 20px 14px;
  position: relative;
  transform: rotate(-.4deg);
}
.statement .s-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; letter-spacing: .06em; color: var(--ink-3);
  border-bottom: 1px solid var(--ink); padding-bottom: 8px;
}
.statement table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.statement th {
  text-align: left; font-weight: 600; color: var(--ink-3);
  font-size: 11px; padding: 8px 0 6px; border-bottom: 1px solid var(--rule);
}
.statement th.num, .statement td.num { text-align: right; }
.statement td { padding: 7px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); }
.statement tr:last-child td { border-bottom: 0; }
.statement tr.neg td.num { color: var(--debit); }
.statement .total td {
  border-top: 1px solid var(--ink); border-bottom: 0;
  font-weight: 700; color: var(--ink); padding-top: 9px;
}
.stamp {
  position: absolute; right: 16px; bottom: 10px;
  transform: rotate(-7deg);
  border: 2px solid var(--debit); color: var(--debit);
  padding: 4px 9px; font-size: 11.5px; letter-spacing: .14em;
  opacity: .82;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 30px;
}
.hero-stat { font-size: 12.5px; color: var(--ink-3); border-left: 1px solid var(--rule); padding-left: 18px; }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat b {
  display: block; margin-bottom: 2px;
  font-family: "Iowan Old Style", Palatino, "Songti SC", serif;
  font-size: 21px; font-weight: 600; color: var(--ink);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .statement { transform: none; }
}

/* ---------------- 在线转换区：从霓虹暗块改为账页工具 ---------------- */
.spc {
  background: var(--sheet);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 34px 0 30px;
}
.spc-head h2 {
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Songti SC", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.spc-l1, .spc-accent { display: inline; }
.spc-accent {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--debit);
}
.spc-head p { color: var(--ink-2); font-size: 15px; }
.spc-destroy { color: var(--credit) !important; }
.spc-badge { display: none; }
.spc-card {
  background: transparent; border: 0; border-radius: 0;
  box-shadow: none; padding: 0;
}
.spc-drop {
  border: 1.5px dashed var(--rule); border-radius: 0;
  background: transparent;
}
.spc-drop:hover, .spc-drop.is-over, .spc-drop:focus-visible {
  border-color: var(--ink); background: #F3F4EF;
}
.spc-ico { display: none; }
.spc-drop-title { color: var(--ink); }
.spc-drop-sub { color: var(--ink-3); }
.spc-chip {
  background: transparent; border: 1px solid var(--rule);
  border-radius: 0; color: var(--ink-2);
}
.spc-chip-size { color: var(--ink-3); }

/* 登录 / 注册：账页双栏 */
#login, #register {
  border-radius: 0 !important;
  border: 1px solid var(--ink) !important;
  background: var(--sheet) !important;
}
.sheet-link {
  border-radius: 0 !important;
  background: var(--sheet) !important;
  border: 1px solid var(--rule) !important;
}
