@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&family=Inter:wght@400;500;600&display=swap');

/* ============================ 主题变量 ============================ */
/* 默认：白色（通透、精致） */
:root,
[data-theme="white"] {
  --bg: #f6f6f7;
  --card: #ffffff;
  --sidebar: #ffffff;
  --border: #ececee;
  --border-soft: #f2f2f4;
  --text: #1a1a1c;
  --muted: #6c6c75;
  --accent: #d97757;
  --accent-hover: #c2553a;
  --accent-soft: #fdeee8;
  --hover: #f3f3f4;
  --topbar-bg: rgba(255, 255, 255, .82);
  --panel-grad: linear-gradient(140deg, #ffffff 0%, #f3f3f5 100%);
  --crown-bg: #fff7f3;
  --crown-border: #f6ddd0;
  --shadow: 0 1px 2px rgba(17, 17, 26, .04), 0 2px 8px rgba(17, 17, 26, .04);
  --shadow-lg: 0 16px 38px rgba(17, 17, 26, .09);
  --focus-ring: rgba(217, 119, 87, .18);
  --radius: 14px;
  --sidebar-w: 252px;
}

/* 暖米（Claude） */
[data-theme="cream"] {
  --bg: #faf9f5;
  --card: #ffffff;
  --sidebar: #f0eee6;
  --border: #e6e3d9;
  --border-soft: #ece9df;
  --text: #1f1e1d;
  --muted: #73726b;
  --accent: #d97757;
  --accent-hover: #c2553a;
  --accent-soft: #fbede7;
  --hover: #e7e3d7;
  --topbar-bg: rgba(250, 249, 245, .82);
  --panel-grad: linear-gradient(140deg, #f7ece4 0%, #f1efe7 100%);
  --crown-bg: #fbf3ec;
  --crown-border: #f0d9c8;
  --shadow: 0 1px 2px rgba(31, 30, 29, .05);
  --shadow-lg: 0 14px 30px rgba(31, 30, 29, .08);
  --focus-ring: rgba(217, 119, 87, .18);
}

/* 暗色 */
[data-theme="dark"] {
  --bg: #191817;
  --card: #232220;
  --sidebar: #1d1c1b;
  --border: #34322e;
  --border-soft: #2b2a27;
  --text: #ece9e0;
  --muted: #a09c92;
  --accent: #e08a6a;
  --accent-hover: #ee9c7e;
  --accent-soft: #342720;
  --hover: #2c2a27;
  --topbar-bg: rgba(25, 24, 23, .82);
  --panel-grad: linear-gradient(140deg, #2a2622 0%, #211f1d 100%);
  --crown-bg: #2b231d;
  --crown-border: #473a30;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-lg: 0 16px 34px rgba(0, 0, 0, .45);
  --focus-ring: rgba(224, 138, 106, .28);
}

/* 纯黑 OLED */
[data-theme="oled"] {
  --bg: #000000;
  --card: #0b0b0d;
  --sidebar: #060608;
  --border: #1d1d20;
  --border-soft: #141416;
  --text: #f2f2f4;
  --muted: #9b9ba3;
  --accent: #e0875f;
  --accent-hover: #ef9a76;
  --accent-soft: #2a1b14;
  --hover: #161618;
  --topbar-bg: rgba(0, 0, 0, .85);
  --panel-grad: linear-gradient(140deg, #141417 0%, #0b0b0d 100%);
  --crown-bg: #231a13;
  --crown-border: #3c2e22;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-lg: 0 18px 42px rgba(0, 0, 0, .75);
  --focus-ring: rgba(224, 135, 95, .3);
}

/* 海蓝 */
[data-theme="ocean"] {
  --bg: #f4f7fb;
  --card: #ffffff;
  --sidebar: #ffffff;
  --border: #e6ebf2;
  --border-soft: #eef2f7;
  --text: #152232;
  --muted: #5d6b7d;
  --accent: #2f6fed;
  --accent-hover: #1d54c9;
  --accent-soft: #e8effd;
  --hover: #eef2f8;
  --topbar-bg: rgba(255, 255, 255, .82);
  --panel-grad: linear-gradient(140deg, #ffffff 0%, #eaf1fc 100%);
  --crown-bg: #eaf2fe;
  --crown-border: #cadcfb;
  --shadow: 0 1px 2px rgba(20, 40, 80, .05), 0 2px 8px rgba(20, 40, 80, .05);
  --shadow-lg: 0 16px 38px rgba(20, 40, 80, .12);
  --focus-ring: rgba(47, 111, 237, .18);
}

/* 翠绿 */
[data-theme="forest"] {
  --bg: #f3f8f4;
  --card: #ffffff;
  --sidebar: #ffffff;
  --border: #e2ece4;
  --border-soft: #eef4ef;
  --text: #142019;
  --muted: #5b6e62;
  --accent: #2e9e6a;
  --accent-hover: #218053;
  --accent-soft: #e6f5ec;
  --hover: #eef4ef;
  --topbar-bg: rgba(255, 255, 255, .82);
  --panel-grad: linear-gradient(140deg, #ffffff 0%, #e9f5ee 100%);
  --crown-bg: #e8f6ee;
  --crown-border: #c9e9d5;
  --shadow: 0 1px 2px rgba(20, 60, 40, .05), 0 2px 8px rgba(20, 60, 40, .05);
  --shadow-lg: 0 16px 38px rgba(20, 60, 40, .12);
  --focus-ring: rgba(46, 158, 106, .18);
}

/* 靛紫 */
[data-theme="violet"] {
  --bg: #f7f6fb;
  --card: #ffffff;
  --sidebar: #ffffff;
  --border: #ebe8f3;
  --border-soft: #f1eef8;
  --text: #1b1730;
  --muted: #665f7d;
  --accent: #7857e6;
  --accent-hover: #5f3fd1;
  --accent-soft: #efeafe;
  --hover: #f1eef8;
  --topbar-bg: rgba(255, 255, 255, .82);
  --panel-grad: linear-gradient(140deg, #ffffff 0%, #f1ecfd 100%);
  --crown-bg: #f0eafe;
  --crown-border: #dacdf8;
  --shadow: 0 1px 2px rgba(40, 20, 80, .05), 0 2px 8px rgba(40, 20, 80, .05);
  --shadow-lg: 0 16px 38px rgba(40, 20, 80, .12);
  --focus-ring: rgba(120, 87, 230, .18);
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: .005em;
}

.font-serif,
h1, h2, h3,
.brand-text, .auth-brand, .hero-title, .stat-value, .display-6, .display-1 {
  font-family: "Source Serif 4", Georgia, "Songti SC", serif;
}

h4, h5, h6 { font-weight: 600; }

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-hover); }

code {
  color: var(--accent-hover);
  background: var(--accent-soft);
  padding: .05em .4em;
  border-radius: 6px;
  font-size: .85em;
}

/* ============================ 布局 ============================ */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1045;
  transition: transform .25s ease;
}

.sidebar .brand {
  display: flex; align-items: center; gap: .65rem;
  padding: 1.25rem 1.35rem .75rem;
  font-size: 1.2rem; font-weight: 600; color: var(--text);
}
.sidebar .brand-logo {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: 1.05rem; font-weight: 700;
}
.sidebar-role { padding: .25rem 1.45rem 1rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .25rem .7rem; }

.sidebar-nav .nav-link,
.sidebar-footer .nav-link {
  display: flex; align-items: center; gap: .8rem; width: 100%;
  padding: .6rem .85rem; margin: .12rem 0; border-radius: 10px;
  color: var(--muted); font-size: .93rem; font-weight: 500;
  border: none; background: transparent; text-align: left;
  transition: background .15s, color .15s;
}
.sidebar-nav .nav-link i, .sidebar-footer .nav-link i { font-size: 1.05rem; width: 1.25rem; text-align: center; }
.sidebar-nav .nav-link:hover, .sidebar-footer .nav-link:hover { background: var(--hover); color: var(--text); }
.sidebar-nav .nav-link.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.sidebar-nav .nav-link.active i { color: var(--accent); }
.sidebar-footer { padding: .6rem .7rem 1rem; border-top: 1px solid var(--border); }
.sidebar-footer form { margin: 0; }

.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 1044; }
.content { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

/* ============================ 顶栏 ============================ */
.topbar {
  position: sticky; top: 0; z-index: 1030;
  display: flex; align-items: center; gap: .9rem; height: 60px; padding: 0 1.4rem;
  background: var(--topbar-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-title { font-size: 1.05rem; font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .55rem; }
.topbar-right form { margin: 0; }
.user-chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover);
  font-size: .85rem; font-weight: 500;
}
.content-body { padding: 1.6rem; flex: 1; max-width: 1180px; width: 100%; }

/* ============================ 主题切换 ============================ */
.theme-btn { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 9px; }
.theme-btn:hover { color: var(--text); border-color: var(--muted); }
.theme-switcher .dropdown-item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.theme-switcher .dropdown-item.active { color: var(--accent-hover); font-weight: 600; }
.sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(127, 127, 127, .35); display: inline-block; }
.sw-white { background: #ffffff; } .sw-cream { background: #f0eee6; } .sw-dark { background: #232220; }
.sw-oled { background: #000000; } .sw-ocean { background: #2f6fed; } .sw-forest { background: #2e9e6a; } .sw-violet { background: #7857e6; }
.dropdown-menu { border-color: var(--border); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-lg); }
.dropdown-item { color: var(--text); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--hover); color: var(--text); }

/* ============================ 卡片 / 组件 ============================ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--border-soft); font-weight: 600; padding: .85rem 1.1rem; }
.card-footer { background: transparent; border-top: 1px solid var(--border-soft); padding: .7rem 1.1rem; }

.stat-card .stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.stat-card .stat-label { color: var(--muted); font-size: .82rem; }
.stat-card .stat-value { font-size: 1.55rem; font-weight: 600; line-height: 1.2; }

.bg-indigo-soft { background: #fbede7; color: #c2410c; }
.bg-sky-soft { background: #eaf0ef; color: #4b7a78; }
.bg-violet-soft { background: #f1ecef; color: #8a5a7a; }
.bg-amber-soft { background: #faf0dd; color: #b47a1e; }
.bg-green-soft { background: #ecf1e6; color: #5f7a45; }
.bg-rose-soft { background: #fbeae8; color: #b5483d; }
[data-theme="dark"] .bg-indigo-soft, [data-theme="oled"] .bg-indigo-soft { background: #3a2a22; color: #e0a184; }
[data-theme="dark"] .bg-sky-soft, [data-theme="oled"] .bg-sky-soft { background: #22302f; color: #86b3b0; }
[data-theme="dark"] .bg-violet-soft, [data-theme="oled"] .bg-violet-soft { background: #312631; color: #c098b4; }
[data-theme="dark"] .bg-amber-soft, [data-theme="oled"] .bg-amber-soft { background: #352c1c; color: #d9b06a; }
[data-theme="dark"] .bg-green-soft, [data-theme="oled"] .bg-green-soft { background: #26301f; color: #9ab87a; }
[data-theme="dark"] .bg-rose-soft, [data-theme="oled"] .bg-rose-soft { background: #372220; color: #d98e84; }

.table { --bs-table-bg: transparent; margin-bottom: 0; color: var(--text); }
.table > thead th {
  font-size: .76rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); padding: .7rem 1.1rem;
}
.table > tbody td { vertical-align: middle; padding: .7rem 1.1rem; border-color: var(--border-soft); color: var(--text); }
.table > tbody tr:last-child td { border-bottom: none; }

.btn { border-radius: 9px; font-weight: 500; }
.btn-primary, .btn-warning { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover, .btn-warning:hover, .btn-primary:focus, .btn-warning:focus { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline-secondary { border-color: var(--border); color: var(--text); }
.btn-outline-secondary:hover { background: var(--hover); border-color: var(--muted); color: var(--text); }
.btn-success { background: #5f7a45; border-color: #5f7a45; }
.btn-success:hover { background: #51683a; border-color: #51683a; }
.btn-outline-danger { color: #b5483d; border-color: #e3b7b1; }
.btn-outline-danger:hover { background: #b5483d; border-color: #b5483d; color: #fff; }
.btn-link { color: var(--muted); }
.btn-link:hover { color: var(--text); }
.btn-light { background: var(--card); border: 1px solid var(--border); color: var(--text); }

.form-label { font-weight: 500; font-size: .9rem; color: var(--text); }
.form-control, .form-select { border-color: var(--border); border-radius: 9px; background: var(--card); color: var(--text); }
.form-control::placeholder { color: var(--muted); opacity: .7; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); background: var(--card); color: var(--text); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-text { color: var(--muted); }

.badge { font-weight: 500; padding: .4em .65em; border-radius: 7px; }
.bg-success { background: #5f7a45 !important; }
.bg-warning { background: #d99a3f !important; color: #fff !important; }
.bg-danger { background: #b5483d !important; }
.bg-secondary { background: #9a978d !important; }
.text-success { color: #6b8a4e !important; }
.text-warning { color: var(--accent-hover) !important; }
.text-muted { color: var(--muted) !important; }

.alert { border-radius: 11px; border: 1px solid var(--border); }

/* 顶部细长条提示（toast） */
.toast-stack { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; max-width: 92vw; pointer-events: none; }
.toast-bar { pointer-events: auto; display: inline-flex; align-items: center; padding: .5rem 1.15rem; border-radius: 999px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; color: var(--text); animation: toastIn .3s ease; }
.toast-bar.toast-hide { opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.toast-bar i { font-size: 1rem; }
.toast-success { border-color: #8aa86a; color: #56773c; }
.toast-danger { border-color: #d98e84; color: #b5483d; }
.toast-warning { border-color: #e0b878; color: #b5762a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.list-group-item { background: transparent; border-color: var(--border-soft); color: var(--text); }

.modal-content { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); }
.modal-header, .modal-footer { border-color: var(--border-soft); }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: none; }
  .sidebar.show ~ .sidebar-backdrop { display: block; }
  .content { margin-left: 0; }
}

/* ============================ 登录页 ============================ */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1100px 460px at 50% -10%, var(--accent-soft) 0%, var(--bg) 55%); padding: 1.5rem; }
.auth-card { width: 100%; max-width: 392px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2.4rem 2.1rem; box-shadow: var(--shadow-lg); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: .55rem; font-size: 1.5rem; font-weight: 600; color: var(--text); }
.auth-brand i { color: var(--accent); }
.auth-sub { text-align: center; color: var(--muted); margin: .4rem 0 1.7rem; }
.auth-card .input-group-text { background: var(--bg); border-color: var(--border); border-right: none; color: var(--muted); }
.auth-card .form-control { border-left: none; }
.auth-card .form-control:focus { box-shadow: none; border-color: var(--border); }
.auth-card .input-group:focus-within { box-shadow: 0 0 0 3px var(--focus-ring); border-radius: 9px; }
.captcha-img { height: 42px; cursor: pointer; border: 1px solid var(--border); border-radius: 9px; flex: 0 0 auto; }

/* 支付通道排行 */
.rank-badge { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--hover); color: var(--muted); flex: 0 0 auto; }
.rank-badge.top { background: var(--accent); color: #fff; }
.rank-bar { height: 6px; border-radius: 4px; background: var(--border-soft); margin-top: 5px; overflow: hidden; }
.rank-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }

/* ============================ 移动端收银台 ============================ */
.public-body { background: var(--bg); }
.cashier-hero { background: var(--panel-grad); border: 1px solid var(--border); color: var(--text); border-radius: 18px; padding: 1.5rem 1.3rem; text-align: center; }
.cashier-hero .hero-title { font-size: 1.5rem; }
.topping-crown { background: var(--crown-bg); border: 1px solid var(--crown-border) !important; border-radius: 16px; }

/* ============================ 落地首页 ============================ */
.landing { background: var(--bg); }
.landing-nav { position: sticky; top: 0; z-index: 1030; background: var(--topbar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-soft); }
.landing-nav .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-brand { display: flex; align-items: center; gap: .55rem; font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--text); }
.nav-brand .logo-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: #fff; font-size: 1rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.3rem; }
.nav-links a.nav-text { color: var(--muted); font-weight: 500; font-size: .94rem; }
.nav-links a.nav-text:hover { color: var(--text); }

.hero { padding: 5rem 0 3.5rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-hover); background: var(--accent-soft); padding: .35rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 1.3rem; }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 30rem; line-height: 1.7; margin-bottom: 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-lg-pill { padding: .7rem 1.5rem; border-radius: 11px; font-weight: 600; }
.hero-trust { margin-top: 1.6rem; color: var(--muted); opacity: .85; font-size: .86rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 1.9rem; flex-wrap: wrap; }
.hero-stat .hs-num { font-family: "Source Serif 4", serif; font-size: 1.75rem; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-stat .hs-label { color: var(--muted); font-size: .84rem; margin-top: .3rem; }

.phone { width: 286px; max-width: 100%; border-radius: 38px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 14px; margin: 0 auto; }
.phone-notch { width: 120px; height: 22px; background: #111; border-radius: 0 0 14px 14px; margin: -14px auto 10px; }
.phone-screen { background: var(--bg); border-radius: 26px; padding: 16px; }
.mini-hero { background: var(--panel-grad); border: 1px solid var(--border); border-radius: 14px; padding: .9rem; text-align: center; }
.mini-crown { background: var(--crown-bg); border: 1px solid var(--crown-border); border-radius: 12px; padding: .7rem; text-align: center; margin: .7rem 0; }
.mini-rank { display: flex; align-items: center; justify-content: space-between; padding: .45rem .2rem; border-bottom: 1px solid var(--border-soft); font-size: .85rem; }
.mini-rank:last-child { border-bottom: none; }
.mini-badge { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 700; background: var(--hover); color: var(--muted); margin-right: .5rem; }
.mini-badge.top { background: var(--accent); color: #fff; }

.section { padding: 4.5rem 0; }
.section-eyebrow { text-align: center; color: var(--accent-hover); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.section-title { text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .4rem 0 .7rem; }
.section-sub { text-align: center; color: var(--muted); max-width: 36rem; margin: 0 auto 2.8rem; line-height: 1.7; }

.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; height: 100%; box-shadow: var(--shadow); }
.step-num { font-family: "Source Serif 4", serif; font-size: 1.6rem; color: var(--accent); font-weight: 700; }
.step-card h6 { margin: .6rem 0 .35rem; font-size: 1.02rem; }
.step-card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.6; }

.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; height: 100%; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 1.25rem; background: var(--accent-soft); color: var(--accent-hover); margin-bottom: .9rem; }
.feature-card h6 { font-size: 1.03rem; margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.6; }

.plugin-panel { background: #1f1e1d; color: #ede9e0; border: 1px solid #322f2b; border-radius: 20px; padding: 2.6rem; }
.plugin-panel h3 { color: #fff; font-size: 1.8rem; margin-bottom: .8rem; font-family: "Source Serif 4", serif; }
.plugin-panel p { color: #b9b5aa; line-height: 1.7; }
.code-card { background: #161514; border: 1px solid #322f2b; border-radius: 12px; padding: 1.1rem 1.3rem; font-family: "SFMono-Regular", Consolas, monospace; font-size: .84rem; color: #d8d3c8; overflow-x: auto; line-height: 1.7; white-space: pre; }
.code-card .k { color: #d99a7a; } .code-card .s { color: #9bbf8a; } .code-card .c { color: #6f6b63; }

.cta-band { background: var(--panel-grad); border: 1px solid var(--border); border-radius: 22px; padding: 3.2rem 2rem; text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .7rem; }
.cta-band p { color: var(--muted); margin-bottom: 1.8rem; }

.landing-footer { border-top: 1px solid var(--border); padding: 2.2rem 0; color: var(--muted); font-size: .9rem; }

/* 登录页 logo 标 */
.auth-logo { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.1rem; font-weight: 700; }

/* 后台配色选择 */
.theme-opt { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: .9rem; user-select: none; }
.theme-opt:hover { border-color: var(--muted); }
.theme-opt.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus-ring); }
.theme-opt input { accent-color: var(--accent); }

/* ============================ 支付通道展示 ============================ */
.channel-wall { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.channel-wall-head { font-weight: 600; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.channel-wall-head i { color: var(--accent); }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.channel-chip { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 1rem .4rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); font-size: .82rem; font-weight: 500; text-align: center; color: var(--text); transition: transform .15s, border-color .15s; }
.channel-chip i { font-size: 1.5rem; color: var(--accent); }
.channel-chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.channel-wall-foot { margin-top: 1.1rem; text-align: center; color: var(--muted); font-size: .82rem; }
.channel-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem .8rem; text-align: center; height: 100%; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.channel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.channel-card .feature-ico { margin: 0 auto .7rem; }

/* ============================ 响应式（手机 / 平板 / PC） ============================ */
@media (max-width: 991.98px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3.2rem 0; }
}
@media (max-width: 767.98px) {
  .content-body { padding: 1.1rem; }
  .section { padding: 2.6rem 0; }
  .hero { padding: 2.4rem 0 2rem; }
  .hero-stats { gap: 1.5rem; }
  .plugin-panel { padding: 1.6rem; }
  .cta-band { padding: 2.4rem 1.2rem; }
  .topbar { padding: 0 1rem; }
  .user-chip { display: none; }
  .nav-links { gap: .7rem; }
}
@media (max-width: 575.98px) {
  .content-body { padding: .85rem; }
  .channel-grid { gap: .5rem; }
  .channel-chip { padding: .8rem .3rem; font-size: .76rem; }
  .channel-chip i { font-size: 1.3rem; }
  .card-header, .table > thead th, .table > tbody td { padding-left: .8rem; padding-right: .8rem; }
  .btn-lg-pill { width: 100%; }
  .hero-cta { flex-direction: column; }
}
