/* AccStock 设计规范（与模板一致，UI 最小改动） */
:root {
  --green: #16a34a;
  --green-hover: #15803d;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --red: #dc4b3e;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-blue: #f3f8fc;
  --font: "Noto Sans HK", "Noto Sans JP", "Noto Sans KR", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.site-shell { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.section-label { color: var(--green); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }

/* 头部 */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--slate-200); background: rgba(255,255,255,.95); backdrop-filter: blur(8px); }
.site-header .bar { display: flex; height: 68px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .6rem; font-size: 18px; font-weight: 800; letter-spacing: -.05em; color: var(--slate-900); }
.brand .logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 900; font-size: 14px; }
.brand .accent { color: var(--green); }
.header-controls { display: flex; align-items: center; gap: .6rem; }
.header-controls select {
  height: 36px; border: 1px solid var(--slate-200); border-radius: 8px; background: #fff;
  padding: 0 1.9rem 0 .8rem; font-size: 12px; color: var(--slate-700); outline: none;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 8px; font-weight: 600; transition: background .15s, color .15s; }
.btn-primary { background: var(--green); color: #fff; padding: .6rem 1rem; font-size: 14px; }
.btn-primary:hover { background: var(--green-hover); }
.btn-outline { background: #fff; color: var(--slate-700); border: 1px solid var(--slate-300); padding: .6rem 1rem; font-size: 14px; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: .35rem .6rem; font-size: 12px; border-radius: 6px; }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #fecaca; }
.btn-danger:hover { background: #fef2f2; }

/* 导航 */
.site-nav { border-top: 1px solid var(--slate-100); background: #fff; }
.site-nav .inner { display: flex; gap: 1.5rem; overflow-x: auto; padding-block: .75rem; white-space: nowrap; scrollbar-width: none; }
.site-nav .inner::-webkit-scrollbar { display: none; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--slate-600); }
.site-nav a:hover { color: var(--green); }

/* 首屏 */
.hero { border-bottom: 1px solid var(--slate-200); background: var(--bg-soft); }
.hero .inner { max-width: 56rem; margin: 0 auto; padding: 4rem 1.25rem; text-align: center; }
.hero .kicker { font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--green); }
.hero h1 { margin: 1.25rem auto 0; max-width: 48rem; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; color: var(--slate-900); }
.hero p { margin: 1.25rem auto 0; max-width: 40rem; font-size: 16px; line-height: 1.75; color: var(--slate-600); white-space: pre-line; }
.hero .actions { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; justify-content: center; }
@media (min-width: 640px) { .hero .actions { flex-direction: row; } }

/* 商品区 */
.products { background: var(--bg-blue); padding: 3.5rem 1.25rem 4rem; text-align: center; }
.search { position: relative; max-width: 42rem; margin: 1.5rem auto 0; }
.search input {
  width: 100%; height: 48px; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff;
  padding: 0 3rem 0 2.75rem; font-size: 14px; color: var(--slate-700); outline: none; box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.search input:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-100); }
.search .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--slate-400); }
.categories { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chip { padding: .5rem 1rem; border-radius: 8px; font-size: 14px; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600); }
.chip:hover { border-color: #86efac; color: var(--green); }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }

.table-wrap { margin-top: 1.5rem; overflow: hidden; border: 1px solid var(--slate-200); border-radius: 16px; background: #fff; text-align: left; box-shadow: 0 14px 34px rgba(15,23,42,.06); }
.table-head { display: none; grid-template-columns: minmax(0,1.7fr) 130px 130px 100px; gap: 1rem; padding: .8rem 1.5rem; border-bottom: 1px solid var(--slate-200); background: var(--slate-50); font-size: 12px; font-weight: 500; color: var(--slate-500); }
@media (min-width: 768px) { .table-head { display: grid; } }
.product-row { display: grid; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--slate-100); align-items: center; }
.product-row:last-child { border-bottom: 0; }
@media (min-width: 768px) { .product-row { grid-template-columns: minmax(0,1.7fr) 130px 130px 100px; } }
.p-name { font-weight: 600; color: var(--slate-800); }
.p-desc { margin-top: .25rem; font-size: 13px; line-height: 1.6; color: var(--slate-500); }
.p-badge { display: inline-block; margin-left: .4rem; padding: 1px 6px; border-radius: 4px; background: var(--green-100); color: var(--green-hover); font-size: 10px; font-weight: 700; }
.stock { font-size: 13px; font-weight: 600; }
.stock.in { color: var(--green-hover); }
.stock.low { color: #b45309; }
.stock.out { color: var(--slate-400); }
.price { font-size: 16px; font-weight: 700; color: var(--slate-900); }
.empty { padding: 2.5rem; text-align: center; color: var(--slate-500); font-size: 14px; }

/* 区块通用 */
.section { padding: 3.5rem 1.25rem 4rem; }
.section h2 { margin: .75rem 0 0; font-size: clamp(1.7rem, 4vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; color: var(--slate-900); }
.grid3 { margin-top: 2rem; display: grid; gap: 2rem; }
@media (min-width: 768px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 2px solid var(--slate-300); padding-top: 1.25rem; }
.step .num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; }
.step h3 { margin: 1.25rem 0 0; font-weight: 600; color: var(--slate-800); }
.step p { margin: .5rem 0 0; font-size: 14px; line-height: 1.7; color: var(--slate-500); }
.trust { border-top: 2px solid var(--slate-300); padding-top: 1.25rem; }
.trust h3 { margin: 1.25rem 0 0; font-weight: 600; color: var(--slate-800); }
.trust p { margin: .5rem 0 0; font-size: 14px; line-height: 1.7; color: var(--slate-500); }
.faq-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .75fr 1.25fr; } }
.faq-list { border-top: 1px solid var(--slate-200); }
.faq details { border-bottom: 1px solid var(--slate-200); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; font-size: 14px; font-weight: 500; color: var(--slate-800); cursor: pointer; list-style: none; }
.faq summary::after { content: "⌄"; color: var(--slate-400); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq p { margin: 0; padding: 0 2rem 1.25rem 0; font-size: 14px; line-height: 1.7; color: var(--slate-500); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--slate-200); background: #fff; }
.site-footer .inner { display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem 1.25rem; font-size: 13px; }
@media (min-width: 640px) { .site-footer .inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer .muted { color: var(--slate-400); font-size: 12px; }

/* Toast */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--slate-900); color: #fff; padding: .7rem 1.2rem; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 付款页 */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pay-main { padding: 2rem 1.25rem 4rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: 13px; color: var(--slate-500); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--green); font-weight: 600; }
.pay-card { overflow: hidden; border: 1px solid var(--slate-200); border-radius: 24px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.08); }
.pay-grid { display: grid; }
@media (min-width: 1024px) { .pay-grid { grid-template-columns: .92fr 1.08fr; } }
.pay-summary { padding: 1.5rem; border-bottom: 1px solid var(--slate-200); }
@media (min-width: 1024px) { .pay-summary { padding: 2.5rem 3rem; border-bottom: 0; } }
.pay-kicker { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--green); }
.pay-summary h1 { margin: 1.25rem 0 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--slate-900); }
.pay-price { margin: 1.25rem 0 0; font-size: 2.2rem; font-weight: 800; color: var(--red); }
.pay-usd { margin-left: .5rem; font-size: 1rem; font-weight: 600; }
.pay-lines { margin-top: 1.75rem; border-top: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); font-size: 14px; }
.pay-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--slate-100); }
.pay-lines > div:last-child { border-bottom: 0; }
.pay-lines span { color: var(--slate-500); }
.pay-lines .ok { color: var(--green); }
.pay-countdown { margin-top: 1.5rem; border: 1px solid #fcd34d; background: #fffbeb; border-radius: 14px; padding: 1rem; }
.pay-countdown p { margin: 0; font-size: 13px; color: #92400e; }
.pay-time { font-size: 1.9rem !important; font-weight: 700; margin: .25rem 0 !important; }
.pay-options { padding: 1.5rem; }
@media (min-width: 1024px) { .pay-options { padding: 2.5rem 3rem; border-left: 1px solid var(--slate-200); } }
.pay-options h2 { margin: 0 0 1.5rem; font-size: 1.25rem; font-weight: 700; color: var(--slate-900); }
.req { color: var(--red); font-style: normal; }
.pay-nets { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 640px) { .pay-nets { grid-template-columns: repeat(4, 1fr); } }
.net { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .7rem; border: 1px solid var(--slate-200); border-radius: 12px; background: #fff; font-size: 11px; font-weight: 600; color: var(--slate-700); }
.net.active { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 2px var(--green-100); }
.net-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-weight: 900; font-size: 13px; }
.pay-qr-row { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; border: 1px solid var(--slate-200); border-radius: 14px; padding: 1rem; }
.pay-qr { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; width: 150px; height: 150px; flex-shrink: 0; border-radius: 10px; background: #fff; padding: 10px; box-shadow: inset 0 0 0 1px var(--slate-100); }
.pay-qr span { border-radius: 1px; background: #fff; }
.pay-qr span.on { background: #0f172a; }
.pay-qr-title { margin: 0; font-weight: 600; }
.pay-qr-note { margin: .6rem 0 0; padding: .3rem .5rem; display: inline-block; background: var(--slate-50); border-radius: 6px; font-size: 10px; color: var(--slate-400); }
.pay-addr { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--slate-50); padding: .6rem; }
.pay-addr code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--slate-600); }
.pay-confirm { width: 100%; margin-top: 1.5rem; padding: .9rem; box-shadow: 0 10px 24px var(--green-100); }

/* 管理后台 */
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.login-card { max-width: 380px; margin: 8vh auto 0; border: 1px solid var(--slate-200); border-radius: 16px; padding: 2rem; background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.08); }

/* 总后台左侧导航布局 */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 232px; flex-shrink: 0; background: #0f172a; color: #e2e8f0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sb-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.2rem; font-size: 15px; font-weight: 800; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-nav { flex: 1; overflow-y: auto; padding: .75rem .6rem; }
.nav-group-title { font-size: 11px; color: #64748b; letter-spacing: .1em; padding: .85rem .65rem .3rem; }
.nav-item, .site-nav-item {
  display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 8px; padding: .55rem .7rem;
  color: #cbd5e1; font-size: 14px; cursor: pointer; margin-bottom: 2px; line-height: 1.3;
}
.nav-item:hover, .site-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active, .site-nav-item.active { background: var(--green); color: #fff; }
.site-nav-item .dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; flex-shrink: 0; }
.site-nav-item.active .dot { background: #fff; }
.admin-sidebar-foot { border-top: 1px solid rgba(255,255,255,.08); padding: .75rem; display: flex; gap: .5rem; }
.admin-sidebar-foot .btn { flex: 1; }
.admin-main { flex: 1; padding: 1.5rem 1.75rem 3rem; min-width: 0; background: var(--bg-soft); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h2 { margin: 0; font-size: 1.35rem; color: var(--slate-900); }
.page-head .sub { margin: .3rem 0 0; font-size: 13px; color: var(--slate-500); }
.panel-form { border: 1px solid var(--slate-200); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: #fff; }
@media (max-width: 720px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-nav { display: flex; flex-wrap: wrap; }
}
.field { margin-top: 1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: 13px; font-weight: 600; color: var(--slate-700); }
.field input, .field select, .field textarea { width: 100%; height: 42px; border: 1px solid var(--slate-200); border-radius: 8px; background: #fff; padding: 0 .8rem; font-size: 14px; color: var(--slate-800); outline: none; }
.field textarea { height: auto; padding: .6rem .8rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat { border: 1px solid var(--slate-200); border-radius: 12px; padding: 1.1rem; background: #fff; }
.stat .k { font-size: 12px; color: var(--slate-500); }
.stat .v { font-size: 26px; font-weight: 700; color: var(--slate-900); margin-top: .25rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--slate-100); }
.admin-table th { color: var(--slate-500); font-weight: 500; background: var(--slate-50); }
.admin-bar { display: flex; align-items: center; justify-content: space-between; margin: 1.5rem 0 1rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--slate-200); margin-top: 1.5rem; }
.tabs button { border: 0; background: none; padding: .7rem 1rem; font-size: 14px; color: var(--slate-600); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.hidden { display: none !important; }
.muted { color: var(--slate-500); }
.error { color: var(--red); font-size: 13px; }

/* 性别标记、订单成功、统计面板 */
.p-badge.p-flag { background: #eff6ff; color: #2563eb; }
.pay-success { margin-top: 1rem; border: 1px solid var(--green-100); background: var(--green-50); border-radius: 12px; padding: 1rem; font-size: 14px; line-height: 1.7; }
.pay-success a { color: var(--green); font-weight: 600; }
.analytics-grid { display: grid; gap: 1rem; margin-top: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .analytics-grid { grid-template-columns: repeat(2, 1fr); } }
.panel { border: 1px solid var(--slate-200); border-radius: 12px; padding: 1rem; background: #fff; }
.panel h4 { margin: 0 0 .75rem; font-size: 14px; color: var(--slate-700); }

/* 统计趋势图 */
.trend-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.trend-label { width: 74px; font-size: 11px; color: var(--slate-500); text-align: right; flex-shrink: 0; }
.trend-bar { flex: 1; height: 14px; background: var(--slate-100); border-radius: 4px; overflow: hidden; }
.trend-fill { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; }
.trend-val { width: 26px; font-size: 11px; color: var(--slate-700); flex-shrink: 0; }

/* ===== TRC20 钱包收款面板（参考 付款demo）===== */
.trc20-panel { margin-top: 1.5rem; }
.trc20-card { border: 1px solid var(--slate-200); border-radius: 14px; padding: .9rem 1rem; margin-top: .75rem; }
.trc20-card.trc20-wallet { background: var(--green-50); border-color: #bbf7d0; }
.trc20-card.trc20-fee { background: #eff6ff; border-color: #dbeafe; }
.trc20-card.trc20-contract { background: var(--slate-50); }
.trc20-head { display: flex; align-items: center; gap: .4rem; font-size: 13px; font-weight: 700; color: var(--slate-700); }
.trc20-state { margin-left: auto; font-size: 11px; color: var(--green-hover); font-weight: 600; }
.trc20-wallets { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.trc20-wallet { width: 100%; padding: .7rem; border: 0; border-radius: 10px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; }
.trc20-wallet:hover { background: var(--green-hover); }
.trc20-notice { font-size: 12px; color: #b45309; margin-top: .6rem; line-height: 1.6; }
.trc20-addr { font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", monospace; font-size: 12px; color: var(--slate-600); word-break: break-all; margin-top: .5rem; }
.trc20-grid { display: flex; justify-content: space-between; margin-top: .7rem; }
.trc20-grid .trc20-k { display: block; font-size: 11px; color: var(--slate-500); }
.trc20-grid .trc20-v { font-size: 15px; font-weight: 700; word-break: break-all; }
.trc20-v-green { color: var(--green-hover); }
.trc20-v-blue { color: #2563eb; }
.trc20-note { font-size: 12px; color: var(--slate-500); margin-top: .4rem; }
.trc20-fee-val { margin-left: auto; font-size: 14px; font-weight: 700; color: #2563eb; }
.trc20-risk { display: flex; gap: .4rem; align-items: flex-start; margin-top: .75rem; font-size: 12px; color: var(--slate-500); line-height: 1.6; }
.trc20-risk b { color: var(--slate-700); }
.trc20-status { min-height: 18px; font-size: 12px; color: var(--green-hover); margin-top: .6rem; word-break: break-all; }
.trc20-status.error { color: var(--red); }
.trc20-pay {
  width: 100%; margin-top: .9rem; padding: .9rem; border: 0; border-radius: 12px;
  background: var(--slate-900); color: #fff; font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .15);
}
.trc20-pay:hover { background: #000; }
.trc20-pay:disabled { opacity: .5; cursor: not-allowed; }

/* 收款设置：当前使用钱包高亮 */
tr.wallet-active td { background: #eff6ff; }
tr.wallet-active:hover td { background: #e0f2fe; }

/* 客服悬浮图标 + 对话框 */
#cs-fab { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; font-size: 26px; border: 0; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.22); z-index: 9999; display: flex; align-items: center; justify-content: center; line-height: 1; }
#cs-fab:hover { background: var(--green-hover); }
.cs-box { position: fixed; right: 18px; bottom: 84px; width: 320px; max-width: 90vw; height: 420px; max-height: 70vh; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.22); z-index: 9999; display: flex; flex-direction: column; overflow: hidden; }
.cs-hidden { display: none !important; }
.cs-head { display: flex; justify-content: space-between; align-items: center; background: var(--green); color: #fff; padding: .7rem 1rem; font-weight: 700; }
.cs-close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }
.cs-body { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; background: var(--bg-soft); }
.cs-msg { max-width: 82%; padding: .5rem .7rem; border-radius: 10px; font-size: 13px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.cs-msg.cs { background: #fff; border: 1px solid var(--slate-200); align-self: flex-start; }
.cs-msg.me { background: var(--green); color: #fff; align-self: flex-end; }
.cs-foot { display: flex; flex-direction: column; gap: .4rem; padding: .6rem; border-top: 1px solid var(--slate-200); }
.cs-foot input, .cs-foot textarea { width: 100%; border: 1px solid var(--slate-200); border-radius: 8px; padding: .45rem .55rem; font-size: 13px; font-family: inherit; box-sizing: border-box; }
.cs-foot textarea { resize: none; }

/* 手机适配 */
@media (max-width: 720px) {
  .site-shell { padding-inline: .85rem; }
  .hero .inner { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .pay-grid { grid-template-columns: 1fr; }
  .pay-summary, .pay-options { padding: 1.2rem; }
  .pay-price { font-size: 1.8rem; }
  .admin-main { padding: 1rem .75rem; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .analytics-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  table.admin-table { font-size: 12px; }
  .header-controls { flex-wrap: wrap; }
}
