/* ============================================================
   糯栗记账 Nuoli Ledger
   服务端渲染，零前端框架依赖
   ============================================================ */

:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --card-2: #f7f8fa;
  --border: #e4e7ec;
  --border-strong: #d4d9e2;
  --text: #1a202c;
  --text-2: #4a5568;
  --muted: #8a94a6;
  --primary: #2563eb;
  --primary-soft: #eaf1fe;
  --primary-deep: #1e40af;
  --income: #0e9d58;
  --income-soft: #eaf7f0;
  --expense: #e02d3c;
  --expense-soft: #fdeef0;
  --warn: #d97706;
  --warn-soft: #fff5e6;
  --info: #2563eb;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px -6px rgba(16, 24, 40, .08);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sidebar-w: 224px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --card: #171a23;
  --card-2: #1d2130;
  --border: #262c3d;
  --border-strong: #333c50;
  --text: #e8ebf2;
  --text-2: #b6bfd0;
  --muted: #7c869c;
  --primary: #3b82f6;
  --primary-soft: #1c2540;
  --primary-deep: #60a5fa;
  --income: #34d399;
  --income-soft: #0f2c22;
  --expense: #f8717f;
  --expense-soft: #2b1a1e;
  --warn: #fbbf24;
  --warn-soft: #2c2410;
  --info: #3b82f6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 16px -10px rgba(0, 0, 0, .5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; opacity: .85; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { vertical-align: middle; }

/* ------------------------------ 布局骨架 ------------------------------ */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  overflow-y: auto;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 16px;
  font-weight: 700; font-size: 16px;
}
.brand-logo {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: #FFF3D6; flex: 0 0 30px;
}
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-logo svg:not(.ic) { padding: 2px; }
.brand-logo-img { object-fit: contain; padding: 0; }
.ip-avatar-img { object-fit: contain; display: block; }
.ip-feature-img { object-fit: contain; display: block; }
.ip-hero-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.about-hero-logo.brand-logo-img { padding: 0; }
.about-hero-logo + div { min-width: 0; }

.ledger-switch {
  margin: 0 4px 14px; padding: 9px 10px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ledger-switch label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ledger-switch select {
  width: 100%; border: 0; background: transparent; color: var(--text);
  font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; outline: none;
}

.nav-group { margin-bottom: 6px; }
.nav-title { font-size: 11px; color: var(--muted); padding: 10px 10px 6px; font-weight: 600; letter-spacing: .04em; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--card-2); color: var(--text); }
.nav-item.active {
  background: var(--primary-soft); color: var(--primary); font-weight: 600;
  position: relative;
}
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--primary);
}
.ic { width: 20px; height: 20px; display: block; flex: 0 0 20px; }
.nav-item .ico { width: 18px; text-align: center; font-size: 15px; }
.user-menu-item .ico { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; }
.user-menu-item .ico .ic { width: 20px; height: 20px; }
.nav-item .ico svg.ic { width: 17px; height: 17px; display: block; margin: 0 auto; }
.nav-item .count {
  margin-left: auto; font-size: 11px; background: var(--expense); color: #fff;
  border-radius: 99px; padding: 0 6px; min-width: 18px; text-align: center; line-height: 17px;
}

.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: var(--radius-sm); }
.user-chip:hover { background: var(--card-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 600; flex: 0 0 30px;
}
.user-meta { min-width: 0; }
.user-meta b { display: block; font-size: 13px; font-weight: 600; }
.user-meta span { display: block; font-size: 11px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { flex: 1; min-width: 0; }
.topbar .sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------------- 顶栏用户菜单 ---------------- */
.user-menu { position: relative; flex: none; }
.user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--card);
  border-radius: 999px; padding: 4px 10px 4px 4px;
  cursor: pointer; font-family: var(--font); color: var(--text);
  transition: box-shadow .15s, border-color .15s;
}
.user-menu-btn:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.user-menu-name { font-size: 13px; font-weight: 600; max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-caret { font-size: 10px; color: var(--muted); }
.user-menu-drop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  min-width: 220px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
}
.user-menu-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; background: transparent; border-radius: var(--radius-sm);
  color: var(--text); font-size: 13.5px; font-family: var(--font); cursor: pointer; text-align: left;
}
.user-menu-item:hover { background: var(--card-2); }
/* 自传头像：圆形图片，替代首字母色块 */
.avatar-img { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; display: block; }
/* 可点击换头像的头像：手型 + 悬停光圈提示 */
.avatar-click { cursor: pointer; transition: box-shadow .15s ease; }
.avatar-click:hover { box-shadow: 0 0 0 2px var(--border-strong); }
/* 窄屏：用户菜单收成纯头像圆标 */
@media (max-width: 860px) {
  .user-menu-name, .user-menu-caret { display: none; }
  .user-menu-btn { padding: 3px; border-radius: 50%; }
}

.content { padding: 20px 22px 96px; width: 100%; }

.mobile-nav { display: none; }

/* ------------------------------ 通用组件 ------------------------------ */

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 16px; margin-bottom: 16px;
}
.card.tight { padding: 12px; }
.card-head {
  display: flex; align-items: center; gap: 10px;
  margin: -4px 0 12px;
}
.card-head h2 { flex: 1; min-width: 0; }
.card-head .hint { font-size: 12px; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }

.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 650; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }

.amount { font-variant-numeric: tabular-nums; font-weight: 650; }
.amount.income { color: var(--income); }
.amount.expense { color: var(--expense); }
.amount.neutral { color: var(--text-2); }
.amount.big { font-size: 26px; letter-spacing: -.02em; }
.amount.xl { font-size: 30px; letter-spacing: -.025em; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--card); color: var(--text); font-size: 13.5px; font-family: var(--font);
  font-weight: 550; cursor: pointer; line-height: 1.4; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--card-2); color: var(--text); }
.btn-danger { color: var(--expense); border-color: color-mix(in srgb, var(--expense) 35%, var(--border)); }
.btn-danger:hover { background: var(--expense-soft); color: var(--expense); border-color: var(--expense); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: 7px 9px; }

/* 表单 */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 550; margin-bottom: 6px; }
.field .help { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"],
input[type="email"], input[type="month"], input[type="time"], input[type="search"],
select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--card); color: var(--text);
  font-size: 14px; font-family: var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
textarea { resize: vertical; min-height: 72px; line-height: 1.6; }
select { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
input[type="color"] { width: 40px; height: 34px; padding: 2px; border-radius: 8px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; vertical-align: -2px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }

.inline-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; }

.amount-input { position: relative; }
.amount-input input { font-size: 30px; font-weight: 700; padding: 12px 14px 12px 40px; letter-spacing: -.02em; }
.amount-input .cur { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); font-weight: 600; }

/* 徽标 / 标签 */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px; font-size: 11.5px;
  background: var(--card-2); border: 1px solid var(--border); color: var(--text-2);
  white-space: nowrap;
}
.chip.primary { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.chip.income { background: var(--income-soft); border-color: transparent; color: var(--income); }
.chip.expense { background: var(--expense-soft); border-color: transparent; color: var(--expense); }
.chip.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.tag-pill {
  display: inline-block; padding: 1px 7px; border-radius: 99px;
  font-size: 11px; background: var(--card-2); border: 1px solid var(--border); color: var(--text-2);
}

/* 统计卡 */
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
}
.stat .label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.stat .value { margin-top: 5px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: 11.5px; margin-top: 3px; color: var(--muted); }
.stat .delta.up { color: var(--expense); }
.stat .delta.down { color: var(--income); }

/* 交易列表 */
.txn-day { border-bottom: 1px solid var(--border); }
.txn-day:last-child { border-bottom: 0; }
.txn-day-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 2px 7px; font-size: 12px; color: var(--muted);
  background: var(--card); position: sticky; top: 57px; z-index: 5;
}
.txn-day-head .day-sum { margin-left: auto; display: flex; gap: 12px; font-variant-numeric: tabular-nums; }

.txn {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 6px; border-radius: var(--radius-sm);
  transition: background .12s;
}
.txn + .txn { border-top: 1px solid var(--border); border-radius: 0; }
.txn:hover { background: var(--card-2); }
.txn + .txn:hover { border-radius: var(--radius-sm); }
.txn-ico {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px;
  display: grid; place-items: center; font-size: 17px; background: var(--card-2);
}
.txn-main { flex: 1; min-width: 0; }
.txn-title { font-size: 14px; font-weight: 550; display: flex; align-items: center; gap: 6px; }
.txn-title .note { color: var(--muted); font-weight: 400; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.txn-sub { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.txn-amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 15px; white-space: nowrap; }
.txn-act { opacity: 0; transition: opacity .15s; display: flex; gap: 4px; }
.txn:hover .txn-act { opacity: 1; }
.txn.pending { opacity: .7; }

.list-empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.list-empty .big { font-size: 34px; display: block; margin-bottom: 8px; }

/* 进度条 */
.progress { background: var(--card-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--border); }
.progress i { display: block; height: 100%; border-radius: 99px; transition: width .4s; }

/* 图例 / 排行 */
.legend-row, .rank-row {
  display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13px;
}
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.legend-name, .rank-name { flex: 0 0 auto; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-bar, .rank-track { flex: 1; height: 7px; background: var(--card-2); border-radius: 99px; overflow: hidden; min-width: 30px; border: 1px solid var(--border); }
.legend-bar i, .rank-track i { display: block; height: 100%; border-radius: 99px; }
.legend-pct { flex: 0 0 46px; text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.legend-val, .rank-val { flex: 0 0 84px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; font-size: 12.5px; }
.rank-idx { flex: 0 0 16px; color: var(--muted); font-size: 11px; text-align: center; }
.rank-name { flex: 0 0 100px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--card-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* 分类选择栅格 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 4px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--card); cursor: pointer; font-size: 11.5px; color: var(--text-2);
  text-align: center; transition: all .13s;
}
.cat-item:hover { border-color: var(--primary); color: var(--primary); }
.cat-item.selected { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.cat-item .ci { font-size: 19px; }
.cat-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* 类型切换 */
.type-tabs { display: flex; gap: 6px; background: var(--card-2); padding: 4px; border-radius: 11px; border: 1px solid var(--border); flex-wrap: wrap; }
.type-tabs a, .type-tabs button {
  flex: 1; min-width: 62px; text-align: center; padding: 8px 6px; border-radius: 8px;
  font-size: 13px; color: var(--text-2); border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-weight: 550; white-space: nowrap;
}
.type-tabs .active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs a {
  padding: 9px 13px; font-size: 13.5px; color: var(--text-2); border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.tabs a.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }

/* 提示条 */
.flash {
  display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-size: 13.5px; border: 1px solid transparent; animation: slideIn .28s ease;
}
.flash.success { background: var(--income-soft); color: #12693a; border-color: color-mix(in srgb, var(--income) 25%, transparent); }
.flash.error { background: var(--expense-soft); color: #a8071a; border-color: color-mix(in srgb, var(--expense) 25%, transparent); }
.flash.info { background: var(--primary-soft); color: var(--primary-deep); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.flash.warn { background: var(--warn-soft); color: #ad4e00; border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
[data-theme="dark"] .flash.success { color: #56d68c; }
[data-theme="dark"] .flash.error { color: #ff7b7b; }
[data-theme="dark"] .flash.info { color: #8aabff; }
[data-theme="dark"] .flash.warn { color: #ffb74d; }

/* 新版本提示横幅（前端轮询 /api/version 发现后端已重启时出现） */
#updateBar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(14px);
  z-index: 210; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 999px; max-width: min(92vw, 460px);
  background: var(--primary-deep); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.4;
  opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
#updateBar.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#updateBar .ub-text { flex: 1 1 auto; min-width: 0; }
#updateBar .ub-btn {
  flex: 0 0 auto; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; background: #fff; color: var(--primary-deep);
}
#updateBar .ub-btn:hover { opacity: .9; }
#updateBar .ub-close {
  flex: 0 0 auto; border: 0; background: transparent; color: rgba(255, 255, 255, .72);
  cursor: pointer; font-size: 17px; line-height: 1; padding: 2px 4px;
}
#updateBar .ub-close:hover { color: #fff; }
#updateBar .ub-sub { font-size: 11.5px; opacity: .8; font-weight: 400; }
@media (max-width: 560px) { #updateBar { bottom: 12px; font-size: 13px; } }

/* 全网推送模态卡片（超管点击「🚀 全网推送」时弹出） */
#pushModal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
#pushModal.push-modal-bg { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 301; }
#pushModal.push-modal-card {
  position: relative; z-index: 302; background: var(--card); border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,.22); padding: 22px 24px; width: min(440px, 92vw);
  opacity: 0; transform: translateY(12px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
}
#pushModal.show .push-modal-card { opacity: 1; transform: translateY(0) scale(1); }
#pushModal.show .push-modal-bg { display: block; }
.push-modal-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.push-modal-desc  { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.push-modal-input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--card-2); color: var(--text);
  font-size: 14px; font-family: var(--font); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.push-modal-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.push-modal-err { color: var(--expense); font-size: 12px; min-height: 18px; margin-top: 5px; }
.push-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.notice {
  padding: 11px 13px; border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.6;
  background: var(--card-2); border: 1px dashed var(--border-strong); color: var(--text-2);
}
.notice.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.notice.info { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }

@keyframes slideIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 空状态 */
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .big { font-size: 38px; display: block; margin-bottom: 10px; opacity: .8; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 16px 0 4px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); background: var(--card);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .cur { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager .gap { border: 0; background: transparent; }

/* 上传区 */
.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius);
  padding: 30px 18px; text-align: center; cursor: pointer;
  background: var(--card-2); transition: all .18s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .big { font-size: 30px; display: block; margin-bottom: 8px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumb { position: relative; width: 78px; height: 78px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; cursor: pointer; line-height: 1;
}
.thumb .tag { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; background: rgba(0,0,0,.55); color: #fff; text-align: center; }

/* 草稿卡（AI 识别结果） */
.draft {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 13px;
  background: var(--card); margin-bottom: 10px;
}
.draft-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.draft-grid { display: grid; grid-template-columns: 118px 1fr 1fr; gap: 9px; }
.draft-grid .field { margin-bottom: 0; }
.confidence { font-size: 10.5px; padding: 1px 6px; border-radius: 99px; }
.confidence.high { background: var(--income-soft); color: var(--income); }
.confidence.mid { background: var(--warn-soft); color: var(--warn); }
.confidence.low { background: var(--expense-soft); color: var(--expense); }

/* 图表容器 */
.chart-box { width: 100%; overflow: hidden; }
.chart-legend-inline { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }

/* 登录页 / 认证页 (分栏现代设计) */
.auth-wrap {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 224, 145, .28), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(147, 197, 253, .2), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}
.auth-wrap::before,
.auth-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}
.auth-wrap::before {
  width: 190px;
  height: 190px;
  left: 5%;
  bottom: 10%;
  opacity: .16;
  background: url('/static/images/6.png') center / contain no-repeat;
}
.auth-wrap::after {
  width: 170px;
  height: 170px;
  right: 5%;
  top: 10%;
  opacity: .11;
  background: url('/static/images/6.png') center / contain no-repeat;
  transform: scaleX(-1);
}
[data-theme="dark"] .auth-wrap {
  background:
    radial-gradient(circle at 8% 12%, rgba(120, 88, 35, .25), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(30, 64, 175, .18), transparent 32%),
    var(--bg);
}
.auth-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.auth-side {
  position: relative;
  background: linear-gradient(145deg, #FFF9EB 0%, #FFF1D2 100%);
  border-right: 1px solid var(--border-soft, rgba(0,0,0,0.06));
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
[data-theme="dark"] .auth-side {
  background: linear-gradient(145deg, #2a241b 0%, #1e1b17 100%);
  border-right-color: var(--border);
}
.auth-side-decor {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 222, 99, 0.35) 0%, rgba(248, 222, 99, 0) 70%);
  pointer-events: none;
}
.auth-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.auth-side-brand .brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFF3D6;
  padding: 4px;
  border: 1px solid #FFE4A0;
}
.auth-side-brand b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.auth-side-brand span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.auth-side-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 16px;
  position: relative;
  z-index: 2;
}
.auth-hero-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(138, 85, 51, 0.16));
  animation: floatBob 4s ease-in-out infinite alternate;
}
@keyframes floatBob {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
.auth-side-quote {
  position: relative;
  z-index: 2;
}
.auth-side-quote h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.auth-side-quote p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.auth-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}
.auth-side-tags span {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(220, 180, 130, 0.3);
  border-radius: 99px;
  color: var(--text-2);
}
[data-theme="dark"] .auth-side-tags span {
  background: rgba(45, 40, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
  background: rgba(255, 255, 255, .78);
}
[data-theme="dark"] .auth-main {
  background: rgba(23, 26, 35, .82);
}
.auth-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.auth-card-head {
  margin-bottom: 22px;
}
.auth-card-head h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.auth-card-head p {
  margin: 0;
}
.auth-card form .field {
  margin-bottom: 14px;
}
.auth-foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .auth-wrap {
    padding: 16px;
  }
  .auth-box {
    grid-template-columns: 1fr;
    max-width: 440px;
    min-height: auto;
  }
  .auth-side {
    padding: 24px 22px;
    gap: 16px;
  }
  .auth-side-art {
    display: none;
  }
  .auth-side-tags {
    display: none;
  }
  .auth-main {
    padding: 28px 22px;
  }
}

/* 详情行 */
.kv { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv .k { flex: 0 0 88px; color: var(--muted); }
.kv .v { flex: 1; word-break: break-all; }

/* 日历 */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { text-align: center; font-size: 11.5px; color: var(--muted); padding: 6px 0; font-weight: 600; }
.cal-cell {
  min-height: 62px; border-radius: 10px; border: 1px solid var(--border); padding: 6px 7px;
  background: var(--card); display: flex; flex-direction: column; gap: 2px; position: relative;
}
.cal-cell.empty { background: transparent; border-color: transparent; }
.cal-cell.today { border-color: var(--primary); border-width: 1.6px; }
.cal-cell.active { cursor: pointer; }
.cal-cell.active:hover { border-color: var(--primary); background: var(--primary-soft); }
.cal-cell .d { font-size: 12px; font-weight: 600; color: var(--text-2); }
.cal-cell.today .d { color: var(--primary); }
.cal-cell .e { font-size: 10.5px; color: var(--expense); font-weight: 600; }
.cal-cell .i { font-size: 10.5px; color: var(--income); font-weight: 600; }

/* 图库 */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; background: var(--card); }
.gallery img { width: 100%; height: 132px; object-fit: cover; display: block; cursor: zoom-in; background: var(--card-2); }
.gallery figcaption { padding: 7px 9px; font-size: 11.5px; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--text-2); font-size: 12.5px; }

/* 工具类 */
.scroll-x { overflow-x: auto; }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.sticky-side { position: sticky; top: 72px; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

/* --------------------------- AI 记账助手 --------------------------- */

.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #F8DE63;
  cursor: pointer; background: #FFF3D6;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(138, 85, 51, .18);
  transition: transform .15s, box-shadow .15s;
}
.ai-fab:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(138, 85, 51, .28); }
.ai-fab:active { transform: scale(.95); }
.ai-fab .ig { width: 30px; height: 30px; display: block; padding: 0; object-fit: contain; }

.ai-panel {
  position: fixed; right: 22px; bottom: 88px; z-index: 70;
  width: 372px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 120px);
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  animation: aiPop .22s ease;
}
@keyframes aiPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.ai-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-bottom: 1px solid var(--border); background: var(--card-2);
}
.ai-head-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  overflow: hidden; background: #FFF3D6;
}
.ai-head-avatar svg { width: 100%; height: 100%; display: block; padding: 3px; }
.ai-head-avatar.ip-avatar-img { padding: 0; object-fit: contain; }
.ai-head-meta { flex: 1; min-width: 0; }
.ai-head-meta b { display: block; font-size: 13.5px; }
.ai-head-meta span { display: block; font-size: 11px; color: var(--muted); }
.ai-icon-btn {
  border: 0; background: transparent; cursor: pointer; font-size: 14px;
  color: var(--muted); padding: 5px; border-radius: 7px; line-height: 1;
}
.ai-icon-btn:hover { background: var(--card); color: var(--text); }

.ai-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.ai-bubble {
  max-width: 88%; padding: 9px 12px; border-radius: 14px;
  font-size: 13px; line-height: 1.55; word-break: break-word;
}
.ai-bubble.bot { align-self: flex-start; background: var(--card-2); border: 1px solid var(--border); border-top-left-radius: 4px; }
.ai-bubble.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.ai-bubble em { font-style: normal; color: var(--primary); font-weight: 600; }
.ai-bubble.user em { color: #fff; }
.ai-bubble img { max-width: 150px; border-radius: 9px; display: block; margin-top: 6px; border: 1px solid var(--border); }
.ai-bubble.error { background: var(--expense-soft); color: var(--expense); border-color: transparent; }
.ai-bubble.error a { color: inherit; text-decoration: underline; }

.ai-record { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 12.5px; }
.ai-record:last-child { border-bottom: 0; }
.ai-record .ico { font-size: 16px; flex: 0 0 auto; }
.ai-record .m { flex: 1; min-width: 0; }
.ai-record .m b { display: block; font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-record .m span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-record .amt { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai-record .amt.income { color: var(--income); }
.ai-record .amt.expense { color: var(--expense); }
.ai-warn { font-size: 11px; color: var(--warn); margin-top: 7px; line-height: 1.5; }
.ai-meta { font-size: 10.5px; color: var(--muted); margin-top: 7px; display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }

.ai-typing { display: inline-flex; gap: 4px; padding: 3px 2px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: aiBlink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; }
.ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes aiBlink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.ai-thumbs { display: flex; gap: 6px; padding: 8px 12px 0; flex-wrap: wrap; }
.ai-thumbs .t { position: relative; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.ai-thumbs .t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-thumbs .t button {
  position: absolute; top: 0; right: 0; width: 16px; height: 16px; border: 0;
  border-radius: 0 0 0 8px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 9px; cursor: pointer; line-height: 1;
}

.ai-inputbar { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--card-2); }
.ai-inputbar textarea {
  flex: 1; resize: none; min-height: 38px; max-height: 110px;
  padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.5;
}
.ai-send {
  width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 15px; cursor: pointer;
  transition: background .15s, transform .1s;
}
.ai-send:hover { background: var(--primary-deep); }
.ai-send:active { transform: scale(.94); }
.ai-send:disabled { opacity: .5; cursor: not-allowed; }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1100px) {
  .grid-main { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .content { padding: 14px 14px 92px; }
  .topbar { padding: 12px 14px; }
  .topbar h1 { font-size: 17px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 13px; border-radius: 13px; }
  .draft-grid { grid-template-columns: 1fr 1fr; }
  .draft-grid .field:first-child { grid-column: span 2; }
  .txn-day-head { top: 53px; }
  .stat .value { font-size: 19px; }
  .amount.big { font-size: 23px; }
  .cal-cell { min-height: 52px; padding: 4px; }
  .cal-cell .e, .cal-cell .i { font-size: 9.5px; }
  .table.responsive th:nth-child(n+5), .table.responsive td:nth-child(n+5) { display: none; }

  /* 移动端底部导航 */
  .mobile-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: color-mix(in srgb, var(--card) 94%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    justify-content: space-around; align-items: flex-end;
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 10.5px; color: var(--muted); padding: 5px 0;
  }
  .mobile-nav a .ico { font-size: 18px; line-height: 1.2; }
  .mobile-nav a .ico svg.ic { width: 18px; height: 18px; display: block; margin: 0 auto; }
  .mobile-nav a.active { color: var(--primary); font-weight: 600; }
  .mobile-nav .fab {
    flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--primary); color: #fff;
    display: grid; place-items: center; font-size: 24px; margin: 0 6px;
    box-shadow: 0 8px 20px -6px rgba(79, 124, 255, .75); transform: translateY(-12px);
  }
  .mobile-nav .fab .ico { font-size: 26px; }
  .mobile-nav .fab .ico svg.ic { width: 26px; height: 26px; }

  /* AI 助手：避开底部导航 */
  .ai-fab { right: 14px; bottom: 84px; }
  .ai-panel { right: 12px; bottom: 140px; height: min(480px, calc(100vh - 170px)); }
}

@media (max-width: 520px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend-val, .rank-val { flex: 0 0 70px; }
  .rank-name { flex: 0 0 74px; }
}

@media print {
  .sidebar, .topbar, .mobile-nav, .btn { display: none !important; }
  .content { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ------------------------------ 关于页 ------------------------------ */

.about-hero { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.about-hero-main { display: flex; gap: 16px; align-items: flex-start; }
.about-hero-logo { width: 64px; height: 64px; flex: 0 0 64px; background: transparent; border-radius: 0; }

.about-features { gap: 12px; }
.about-feature {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card-2, transparent);
}
.about-feature .ico {
  flex: 0 0 34px; height: 34px; border-radius: 50%; font-size: 15px; font-weight: 700; color: var(--primary);
  display: grid; place-items: center; background: #FFF3D6;
}
.about-feature .ico svg.ig { width: 22px; height: 22px; display: block; }

.about-feedback { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (min-width: 821px) {
  .about-feedback { flex-direction: row; align-items: center; justify-content: space-between; }
  .about-fb-text { flex: 1; min-width: 0; padding-right: 18px; }
}

.about-timeline { position: relative; padding-left: 18px; }
.about-timeline::before {
  content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 1px; background: var(--border);
}
.tl-item { position: relative; padding: 0 0 18px 14px; }
.tl-item:last-child { padding-bottom: 2px; }
.tl-dot {
  position: absolute; left: -18px; top: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.tl-details { width: 100%; }
.tl-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  min-height: 28px;
}
.tl-summary::-webkit-details-marker { display: none; }
.tl-summary::before {
  content: '›';
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}
.tl-details[open] .tl-summary::before { transform: rotate(90deg); }
.tl-expand-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.tl-chevron { display: inline-block; transition: transform .18s ease; }
.tl-details[open] .tl-chevron { transform: rotate(180deg); }
.tl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0 28px;
}
.tl-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 12px;
  margin-top: 10px;
}
.tl-card-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.tl-card-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 7px;
  flex: 0 0 6px;
}

/* ------------------------------ 糯栗 IP 卡片（关于页） ------------------------------ */
.ip-card { margin-bottom: 16px; overflow: hidden; }
.ip-story { display: flex; gap: 20px; align-items: flex-start; }
.ip-story-visual {
  flex: 0 0 100px; display: grid; place-items: center;
  background: #FFF3D6;
  border-radius: 16px; border: 1px solid #FFE4A0;
}
.ip-hero-svg { width: 120px; height: 120px; display: block; }
.ip-story-text { flex: 1; min-width: 0; }
.ip-story-text p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin: 0 0 10px; }
.ip-trait-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 560px) {
  .ip-story { flex-direction: column; align-items: center; text-align: center; }
  .ip-story-visual { flex: 0 0 auto; }
  .ip-trait-row { justify-content: center; }
}

/* 侧栏问候语（糯栗 IP） */
.sidebar-greeting {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 10px 8px; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.sidebar-greeting .ig-nuoli-happy { width: 26px; height: 26px; flex: 0 0 26px; display: block; object-fit: contain; }

/* 通用 IP 图标尺寸 */
.ig { display: block; }

/* ============================================================================
   产品落地页（/welcome）—— 独立于后台布局的营销页样式
   ============================================================================ */

.lp-body {
  background: #fff;
  overflow-x: hidden;
}

/* ------------------------------- 顶部导航 ------------------------------- */

.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lp-nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px -8px rgba(16, 24, 40, .16);
  background: rgba(255, 255, 255, .92);
}
.lp-nav-inner {
  max-width: 1180px; margin: 0 auto;
  height: 64px; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.lp-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--text);
  flex: none;
}
.lp-brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: #FFF3D6; object-fit: contain; padding: 3px; display: block;
}
.lp-nav-links {
  display: flex; align-items: center; gap: 26px;
  flex: 1;
}
.lp-nav-links a {
  font-size: 14px; color: var(--text-2); font-weight: 500;
  transition: color .15s;
}
.lp-nav-links a:hover { color: var(--primary); }
.lp-nav-links a.active { color: var(--primary); font-weight: 650; }
.lp-nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.lp-nav-toggle {
  display: none; border: 0; background: transparent; color: var(--text-2);
  cursor: pointer; padding: 8px; border-radius: 8px;
}
.lp-nav-toggle:hover { background: var(--card-2); }
/* 桌面端：菜单项相对整个导航栏真正居中（品牌与右侧按钮各占等宽）——需放在导航基础规则之后以赢过 .lp-nav-cta{flex:none} */
@media (min-width: 821px) {
  .lp-brand { flex: 1; }
  .lp-nav-links { flex: none; justify-content: center; }
  .lp-nav-cta { flex: 1; justify-content: flex-end; }
}

/* ------------------------------- 主视觉 ------------------------------- */

.lp-hero {
  position: relative;
  padding: 148px 24px 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 226, 150, .5), transparent 34%),
    radial-gradient(circle at 14% 82%, rgba(191, 219, 254, .42), transparent 34%),
    linear-gradient(180deg, #FFFCF5 0%, #ffffff 72%);
}
.lp-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.lp-blob {
  position: absolute; border-radius: 50%;
  filter: blur(6px);
}
.lp-blob-a {
  width: 420px; height: 420px; right: -120px; top: -110px;
  background: radial-gradient(circle, rgba(248, 222, 99, .3), transparent 68%);
}
.lp-blob-b {
  width: 340px; height: 340px; left: -110px; bottom: -130px;
  background: radial-gradient(circle, rgba(147, 197, 253, .26), transparent 68%);
}
.lp-hero-watermark {
  position: absolute; right: 3%; bottom: 4%;
  width: 200px; height: 200px; object-fit: contain;
  opacity: .07;
}

.lp-hero-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: #9a6b1f;
  background: #FFF6DF;
  border: 1px solid #FFE4A0;
  border-radius: 99px;
  padding: 4px 13px;
  margin-bottom: 18px;
}
.lp-hero-copy h1 {
  font-size: 46px; line-height: 1.22; letter-spacing: -.02em;
  font-weight: 750; color: #1a202c;
  margin: 0 0 18px;
}
.lp-hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #2563eb, #7c3aed 55%, #d97706);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lp-hero-desc {
  font-size: 15.5px; line-height: 1.85; color: var(--text-2);
  max-width: 520px; margin-bottom: 28px;
}
.lp-hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-bottom: 22px;
}
.lp-hero-points {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 13px; color: var(--muted);
}
.lp-hero-points li { display: flex; align-items: center; gap: 6px; }
.lp-tick {
  display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--income-soft); color: var(--income);
  font-size: 10px; font-weight: 700; flex: none;
}

/* 主视觉：模拟对话卡片 */
.lp-hero-visual { position: relative; display: flex; justify-content: center; }
.lp-chat-card {
  width: 100%; max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 22px 48px -22px rgba(16, 24, 40, .24), 0 2px 8px rgba(16, 24, 40, .04);
  overflow: hidden;
  position: relative; z-index: 2;
}
.lp-chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FFFDF7, #FFF9EC);
}
.lp-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #FFF3D6; object-fit: contain; padding: 3px; display: block;
}
.lp-chat-head b { display: block; font-size: 13.5px; }
.lp-chat-head span { display: block; font-size: 11px; color: var(--muted); }
.lp-chat-body {
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: #FAFBFC;
}
.lp-msg {
  max-width: 84%; padding: 10px 13px;
  font-size: 13px; line-height: 1.6; border-radius: 14px;
  word-break: break-word;
}
.lp-msg.user {
  align-self: flex-end;
  background: var(--primary); color: #fff;
  border-bottom-right-radius: 5px;
}
.lp-msg.bot {
  align-self: flex-start;
  background: #fff; color: var(--text-2);
  border: 1px solid var(--border);
  border-top-left-radius: 5px;
}
.lp-msg-tag {
  display: inline-block; margin: 5px 5px 0 0;
  font-size: 11px; padding: 1px 8px; border-radius: 99px;
  background: var(--primary-soft); color: var(--primary);
}
.lp-msg-sum {
  margin-top: 8px; padding-top: 7px;
  border-top: 1px dashed var(--border);
  font-weight: 700; color: var(--expense); font-size: 13.5px;
}
.lp-hero-ip {
  position: absolute; left: -34px; bottom: -30px; z-index: 3;
  width: 118px; height: 118px; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(138, 85, 51, .22));
  animation: lpFloat 4.2s ease-in-out infinite alternate;
}
@keyframes lpFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* ------------------------------- 数据条 ------------------------------- */

.lp-stats {
  padding: 0 24px;
  margin-top: -34px;
  position: relative; z-index: 4;
}
.lp-stats-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 16px 40px -26px rgba(16, 24, 40, .2);
}
.lp-stat { text-align: center; padding: 4px 8px; }
.lp-stat + .lp-stat { border-left: 1px solid var(--border); }
.lp-stat-val {
  font-size: 26px; font-weight: 750; letter-spacing: -.02em;
  color: var(--primary); font-variant-numeric: tabular-nums;
}
.lp-stat-label { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 4px; }
.lp-stat-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ------------------------------- 通用区块 ------------------------------- */

.lp-section {
  max-width: 1180px; margin: 0 auto;
  padding: 92px 24px 0;
}
.lp-section-head {
  text-align: center; max-width: 620px; margin: 0 auto 42px;
}
.lp-section-head h2 {
  font-size: 31px; font-weight: 730; letter-spacing: -.02em;
  color: #1a202c; margin: 0 0 12px;
}
.lp-section-sub {
  font-size: 14.5px; line-height: 1.8; color: var(--muted);
}

/* 功能网格 */
.lp-feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lp-feature {
  background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 20px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.lp-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  box-shadow: 0 16px 34px -22px rgba(37, 99, 235, .3);
}
.lp-feature-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: #FFF8E8; border: 1px solid #FFE9C2;
  margin-bottom: 14px;
}
.lp-feature-ico svg { width: 20px; height: 20px; color: #b07d1a; }
.lp-feature-ico img { width: 24px; height: 24px; object-fit: contain; }
.lp-feature b { display: block; font-size: 15px; font-weight: 650; margin-bottom: 7px; }
.lp-feature p { font-size: 13px; line-height: 1.75; color: var(--muted); }

/* 分区导览卡片（首页 → 各独立页面） */
.lp-explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.lp-explore { display: block; color: inherit; text-decoration: none; }
.lp-explore-more {
  display: inline-block; margin-top: 12px;
  font-size: 13px; font-weight: 650; color: var(--primary);
}

/* 子页面页头 */
.lp-page-head {
  padding: 132px 24px 6px;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 226, 150, .4), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(191, 219, 254, .34), transparent 32%),
    linear-gradient(180deg, #FFFCF5 0%, #ffffff 88%);
}
.lp-page-head-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.lp-page-head h1 {
  font-size: 38px; line-height: 1.24; letter-spacing: -.02em;
  font-weight: 750; color: #1a202c; margin: 0 0 14px;
}

/* 内容增强通用块 */
.lp-sub-head {
  font-size: 19px; font-weight: 700; color: #1a202c;
  margin: 0 0 4px; display: flex; align-items: center; gap: 9px;
}
.lp-sub-head .lp-feature-ico { width: 30px; height: 30px; margin-bottom: 0; border-radius: 9px; }
.lp-sub-head .lp-feature-ico svg { width: 16px; height: 16px; }
.lp-sub-desc { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.75; }
.lp-block { margin-bottom: 46px; }
.lp-block:last-child { margin-bottom: 0; }

.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--text-2); font-weight: 500;
  background: #fff; border: 1px solid var(--border);
  border-radius: 99px; padding: 8px 15px;
}
.lp-chip b { color: var(--primary); font-weight: 650; }

.lp-list-check { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.lp-list-check li { list-style: none; display: flex; gap: 10px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.lp-list-check .lp-tick { margin-top: 3px; }

.lp-callout {
  background: linear-gradient(140deg, #FFF9EA 0%, #EEF4FF 100%);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px;
}
.lp-callout b { display: block; font-size: 15px; margin-bottom: 6px; color: #1a202c; }
.lp-callout p { font-size: 13.5px; line-height: 1.8; color: var(--text-2); margin: 0; }

.lp-code {
  background: #0f172a; color: #e2e8f0; border-radius: 12px;
  padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; line-height: 1.85; overflow-x: auto; white-space: pre;
}
.lp-code .k { color: #7dd3fc; } .lp-code .s { color: #fcd34d; } .lp-code .c { color: #64748b; }

.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-split .lp-feature { height: 100%; }

/* ------------------------------- AI 区块 ------------------------------- */

.lp-ai-section { padding-top: 96px; }
.lp-ai-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
  background: linear-gradient(140deg, #FFFCF3 0%, #F7FAFF 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px 48px;
}
.lp-ai-copy h2 {
  font-size: 30px; font-weight: 730; letter-spacing: -.02em;
  color: #1a202c; margin: 0 0 14px;
}
.lp-ai-steps { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.lp-ai-steps li { display: flex; gap: 14px; align-items: flex-start; }
.lp-step-no {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  font-size: 12.5px; font-weight: 700;
  box-shadow: 0 4px 10px -4px rgba(37, 99, 235, .55);
}
.lp-ai-steps b { display: block; font-size: 14px; margin-bottom: 3px; }
.lp-ai-steps p { font-size: 13px; line-height: 1.7; color: var(--muted); }
.lp-ai-note {
  margin-top: 26px; padding: 14px 16px;
  background: rgba(255, 255, 255, .8);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}
.lp-ai-note b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.lp-ai-note span { font-size: 12.5px; color: var(--muted); line-height: 1.65; }

.lp-ai-visual { position: relative; display: flex; justify-content: center; }
.lp-ai-card {
  width: 100%; max-width: 360px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 20px;
  box-shadow: 0 20px 44px -26px rgba(16, 24, 40, .26);
  position: relative; z-index: 2;
}
.lp-ai-card-head {
  font-size: 13px; font-weight: 650; color: var(--text);
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.lp-ai-rows { display: flex; flex-direction: column; gap: 11px; }
.lp-ai-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text-2);
}
.lp-num {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text);
}
.lp-num.lp-warn { color: var(--warn); }
.lp-ai-bar {
  margin-top: 18px; height: 7px; border-radius: 99px;
  background: var(--card-2); overflow: hidden;
}
.lp-ai-bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}
.lp-ai-bar-label { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.lp-ai-ip {
  position: absolute; right: -20px; top: -34px; z-index: 3;
  width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(138, 85, 51, .2));
}

/* ------------------------------- 技术特性 ------------------------------- */

.lp-spec-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.lp-spec {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
}
.lp-spec b { display: block; font-size: 15px; font-weight: 650; margin-bottom: 7px; }
.lp-spec p { font-size: 13px; line-height: 1.75; color: var(--muted); }

/* ------------------------------- 常见问题 ------------------------------- */

.lp-faq-section { padding-bottom: 8px; }
.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s;
}
.lp-faq-item[open] {
  border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
  box-shadow: 0 10px 28px -22px rgba(37, 99, 235, .4);
}
.lp-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 600; color: var(--text);
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-caret {
  flex: none; color: var(--primary); font-size: 15px;
  transition: transform .2s;
}
.lp-faq-item[open] .lp-faq-caret { transform: rotate(135deg); }
.lp-faq-item > p {
  padding: 0 20px 18px;
  font-size: 13.5px; line-height: 1.85; color: var(--muted);
}

/* ------------------------------- 结尾行动区 ------------------------------- */

.lp-cta { padding: 96px 24px 88px; }
.lp-cta-inner {
  max-width: 780px; margin: 0 auto; text-align: center;
  background: linear-gradient(140deg, #FFF9EA 0%, #EEF4FF 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px 40px;
}
.lp-cta-ip {
  width: 84px; height: 84px; object-fit: contain;
  margin-bottom: 16px;
  animation: lpFloat 4.2s ease-in-out infinite alternate;
}
.lp-cta-inner h2 {
  font-size: 28px; font-weight: 730; letter-spacing: -.02em;
  color: #1a202c; margin: 0 0 12px;
}
.lp-cta-inner > p { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }

/* ------------------------------- 页脚 ------------------------------- */

.lp-footer {
  border-top: 1px solid var(--border);
  background: var(--card-2);
  padding: 56px 24px 28px;
}
.lp-footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
.lp-footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.lp-footer-brand b { display: block; font-size: 16px; margin-bottom: 4px; }
.lp-footer-brand p { font-size: 12.5px; line-height: 1.7; max-width: 280px; }
.lp-footer-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.lp-footer-col { display: flex; flex-direction: column; gap: 9px; }
.lp-footer-col h4 {
  font-size: 12.5px; font-weight: 650; color: var(--text);
  margin-bottom: 3px; letter-spacing: .02em;
}
.lp-footer-col a, .lp-footer-col span { font-size: 13px; color: var(--muted); }
.lp-footer-col a:hover { color: var(--primary); }
.lp-footer-bottom {
  max-width: 1180px; margin: 34px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--muted);
}

/* ------------------------------- 入场动画 ------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lp-hero-ip, .lp-cta-ip { animation: none; }
}

/* ------------------------------- 响应式 ------------------------------- */

@media (max-width: 1024px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .lp-hero-copy { text-align: center; }
  .lp-hero-copy h1 { font-size: 38px; }
  .lp-hero-desc { margin-left: auto; margin-right: auto; }
  .lp-hero-actions, .lp-hero-points { justify-content: center; }
  .lp-hero-watermark { display: none; }
  .lp-ai-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px 32px; }
  .lp-feature-grid, .lp-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .lp-nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    box-shadow: 0 14px 30px -20px rgba(16, 24, 40, .35);
  }
  .lp-nav.open .lp-nav-links { display: flex; }
  .lp-nav-links a { padding: 11px 0; width: 100%; font-size: 15px; }
  .lp-nav-toggle { display: block; }
  .lp-nav-cta .btn-ghost { display: none; }
  .lp-hero { padding: 118px 20px 74px; }
  .lp-hero-copy h1 { font-size: 31px; }
  .lp-page-head { padding: 104px 20px 4px; }
  .lp-page-head h1 { font-size: 27px; }
  .lp-list-check { grid-template-columns: 1fr; }
  .lp-split { grid-template-columns: 1fr; }
  .lp-hero-desc { font-size: 14.5px; }
  .lp-hero-ip { left: -10px; bottom: -22px; width: 88px; height: 88px; }
  .lp-stats { margin-top: -20px; }
  .lp-stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px; padding: 20px 16px;
  }
  .lp-stat + .lp-stat { border-left: 0; }
  .lp-stat:nth-child(even) { border-left: 1px solid var(--border); }
  .lp-section { padding: 64px 20px 0; }
  .lp-section-head { margin-bottom: 30px; }
  .lp-section-head h2 { font-size: 24px; }
  .lp-feature-grid, .lp-spec-grid { grid-template-columns: 1fr; }
  .lp-cta { padding: 64px 20px 60px; }
  .lp-cta-inner { padding: 38px 24px; }
  .lp-cta-inner h2 { font-size: 23px; }
  .lp-footer { padding: 44px 20px 24px; }
  .lp-footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .lp-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

