/* AI精灵客服 · 站点样式（全部本地资源，无外部依赖） */

:root {
  --ink: #1d2b33;
  --ink-soft: #3a4a51;
  --paper: #f6f1e7;
  --paper-deep: #efe7d8;
  --card: #fffdf7;
  --teal: #0f6b60;
  --teal-deep: #0a4e46;
  --teal-soft: #dceee8;
  --rust: #c25e3a;
  --line: #e0d6c3;
  --line-strong: #cfc2ab;
  --muted: #6f7873;
  --ok: #2c7a5b;
  --danger: #a9422d;
  --shadow: 0 26px 60px -38px rgba(48, 38, 22, .55);
  --radius: 18px;
  --serif: Georgia, "Songti SC", "Noto Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  background-image: radial-gradient(rgba(29, 43, 51, .035) 1px, transparent 1px);
  background-size: 18px 18px;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .82; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

.wrap { width: min(1080px, 90vw); margin: 0 auto; position: relative; z-index: 1; }
.narrow { width: min(820px, 90vw); margin: 0 auto; position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(246, 241, 231, .86);
  border-bottom: 1px solid rgba(224, 214, 195, .7);
}
.topbar-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .02em; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--teal); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.08);
}
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .14em; }
.nav { display: flex; gap: 26px; font-size: 14px; color: var(--ink-soft); }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--teal); transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 38px;
  border: 1px solid var(--line-strong); background: transparent; border-radius: 10px;
  align-items: center; justify-content: center; gap: 4px; flex-direction: column; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; transition: .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal); opacity: 1; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { background: #fff; opacity: 1; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); opacity: 1; }
.btn-soft { background: var(--teal-soft); color: var(--teal-deep); }
.btn-violet { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.btn-violet:hover { background: #bfdbfe; color: #1e40af; }
.btn-orange { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.btn-orange:hover { background: #fed7aa; color: #9a3412; }
.btn-pink { background: #fce7f3; color: #be185d; border-color: #fbcfe8; }
.btn-pink:hover { background: #fbcfe8; color: #9d174d; }
.btn-navy { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-navy:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.btn-danger { background: #f7e6e0; color: var(--danger); border-color: #eed2c8; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 首页 Hero ---------- */
.hero { padding: 76px 0 40px; position: relative; }
.hero::after {
  content: "";
  position: absolute; right: -10vw; top: 20px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(15, 107, 96, .1), transparent 68%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .12em; color: var(--teal-deep);
  background: var(--teal-soft); border: 1px solid #cfe5de;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.kicker i { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; display: block; }
.hero h1 {
  font-family: var(--serif); font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.18; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--teal); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(15, 107, 96, .12); border-radius: 6px; z-index: -1;
}
.hero-lede { margin-top: 22px; max-width: 500px; color: var(--ink-soft); font-size: 16px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-notes { display: flex; gap: 22px; margin-top: 30px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes span::before { content: "✓"; color: #2563eb; font-weight: 700; }

/* 浏览器示意 */
.stage { position: relative; }
.browser {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden; transform: rotate(-1.2deg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #efe9dd; background: #faf8f2; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9cfbd; }
.browser-bar i:first-child { background: #dfa08c; }
.browser-bar .url { flex: 1; margin-left: 8px; height: 22px; border-radius: 6px; background: #f1ece0; }
.browser-body { position: relative; height: 330px; padding: 26px 26px 0; background: linear-gradient(180deg, #fffdf8, #faf5ea); }
.skeleton { background: #eee7d9; border-radius: 8px; height: 12px; margin-bottom: 12px; }
.skeleton.w70 { width: 70%; }
.skeleton.w50 { width: 50%; }
.skeleton.w85 { width: 85%; }
.skeleton.title { height: 26px; width: 62%; background: #e3d9c5; margin-bottom: 18px; }
.skeleton-card { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skeleton-card div { height: 74px; border-radius: 12px; background: #f0e9da; }

.chat-pop {
  position: absolute; right: 18px; bottom: 22px; width: 258px;
  background: #fffdf9; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 22px 50px -28px rgba(38, 29, 15, .5);
  overflow: hidden; animation: floatin .7s ease both .2s;
}
.chat-pop-head { display: flex; align-items: center; gap: 9px; padding: 11px 12px; background: var(--teal); color: #fff; }
.chat-pop-head img { width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.chat-pop-head b { font-size: 13px; font-weight: 600; display: block; }
.chat-pop-head span { font-size: 10.5px; opacity: .8; }
.chat-pop-body { padding: 12px; display: grid; gap: 8px; }
.bubble { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 12px; line-height: 1.5; }
.bubble.ai { background: #eef5f1; color: #294a41; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.chat-input { margin: 0 12px 12px; height: 32px; border-radius: 9px; border: 1px solid #e7dfd0; background: #faf7f0; }

.orb-btn {
  position: absolute; right: 16px; bottom: 18px; width: 56px; height: 56px;
  border-radius: 50%; background: var(--teal); display: grid; place-items: center;
  box-shadow: 0 14px 26px -10px rgba(15, 107, 96, .55);
  color: #fff; font-size: 22px;
}
.float-stat {
  position: absolute; left: -24px; bottom: 46px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 14px; box-shadow: 0 16px 34px -24px rgba(38, 29, 15, .5);
  font-size: 12px; color: var(--muted); transform: rotate(1.5deg);
}
.float-stat b { color: var(--teal); font-size: 17px; font-family: var(--serif); margin-right: 4px; }
@keyframes floatin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head .eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--rust); text-transform: uppercase; }
.section-head h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); margin-top: 10px; line-height: 1.3; }
.section-head p { color: var(--muted); margin-top: 12px; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature { transition: .22s ease; }
.feature .no { font-family: var(--serif); font-size: 13px; color: var(--rust); letter-spacing: .1em; }
.feature h3 { margin: 12px 0 8px; font-size: 18px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--teal-deep); }
.feature .icon svg { width: 20px; height: 20px; }
.feature:nth-child(2) .icon { background: #f6e9d6; color: #94612b; }
.feature:nth-child(3) .icon { background: #e8e9f5; color: #4e5a93; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 24px; border-left: 2px solid var(--line-strong); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: -13px; top: 22px; width: 24px; height: 24px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-family: var(--serif); font-size: 11px; color: var(--rust);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

.code-box {
  margin-top: 22px; background: #1c282e; border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 44px -34px #000;
}
.code-box-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; background: #162026; color: #9fb0b4; font-size: 11.5px; letter-spacing: .08em; }
.code-box pre { margin: 0; padding: 18px; overflow-x: auto; color: #e6ece7; font: 12.5px/1.7 "SFMono-Regular", Consolas, monospace; }
.copy-btn { border: 1px solid #3d4c4f; background: transparent; color: #b8c7c9; border-radius: 7px; padding: 3px 10px; font-size: 11.5px; cursor: pointer; }
.copy-btn:hover { border-color: var(--teal); color: #fff; }

.elf-section { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.elf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.elf-faces { display: flex; gap: 6px; align-items: flex-end; justify-content: center; padding: 30px 20px 0; }
.elf-faces img { width: 118px; height: 118px; object-fit: cover; border-radius: 50%; background: rgba(255,255,255,.65); border: 3px solid #fff; box-shadow: 0 18px 34px -22px rgba(30,42,50,.4); }
.elf-faces img:nth-child(2) { width: 150px; height: 150px; transform: translateY(-8px); }
.elf-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); max-width: 360px; margin: 22px auto 0; }
.elf-card .row { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.elf-card .row:last-child { border-bottom: 0; }
.elf-card .row b { color: var(--ink); font-weight: 500; min-width: 66px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: #f0eadc; color: #6d6552; border: 1px solid #e5dcc9; }

/* ---------- 价格 ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(218px, 1fr)); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
}
.price-card.hot { border-color: var(--teal); box-shadow: 0 26px 50px -36px rgba(15,107,96,.55); }
.price-card .badge { position: absolute; top: -11px; right: 18px; background: var(--teal); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 999px; }
.price-card h3 { font-family: var(--serif); font-size: 20px; }
.price-card .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; min-height: 22px; }
.price { font-family: var(--serif); font-size: 40px; margin: 18px 0 2px; color: var(--ink); }
.price small { font-size: 14px; color: var(--muted); font-family: var(--sans); }
.price-card ul { margin: 18px 0 24px; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.price-card ul li { list-style: none; display: flex; gap: 8px; }
.price-card ul li::before { content: "·"; color: var(--teal); font-weight: 700; }
.price-card .btn { width: 100%; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
.faq summary { cursor: pointer; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); font-size: 13.5px; margin-top: 10px; padding-right: 30px; }

/* ---------- 页脚 ---------- */
.footer { padding: 46px 0 34px; border-top: 1px solid var(--line); margin-top: 30px; position: relative; z-index: 1; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer .logo { color: var(--ink); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-note { font-size: 11.5px; color: #9a9f99; margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
/* 友情链接独立区块：位于页脚最上方，标题在上，文字链接在下 */
.footer-friends { margin: 0 0 26px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.footer-friends-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.footer-friends-links { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 13px; }
.footer-friends-links a { color: var(--muted); transition: color .15s; }
.footer-friends-links a:hover { color: var(--teal); }
.device-switch { color: var(--teal); }

/* ---------- 认证页 ---------- */
.auth-page { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 0 60px; }
.auth-card { width: min(880px, 94vw); display: grid; grid-template-columns: .92fr 1.08fr; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.auth-side { background: var(--ink); color: #f5f1e7; padding: 40px 34px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(15,107,96,.6), transparent 65%); }
.auth-side h2 { font-family: var(--serif); font-size: 30px; line-height: 1.35; position: relative; }
.auth-side p { font-size: 13.5px; color: #c6cec8; margin-top: 14px; }
.auth-side ul { margin-top: 28px; display: grid; gap: 12px; font-size: 13px; color: #d6ded8; }
.auth-side ul li { list-style: none; display: flex; gap: 9px; }
.auth-side ul li::before { content: "→"; color: #8fd8bd; }
.auth-side .quote { position: relative; font-size: 12.5px; color: #aab8b1; margin-top: 30px; }
.auth-form { padding: 40px 38px; }
.auth-form h1 { font-family: var(--serif); font-size: 28px; }
.auth-form .hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: .05em; color: #5b665f; margin-bottom: 7px; }
.evc-row { display: flex; gap: 10px; align-items: stretch; }
.evc-row .input { flex: 1; }
.evc-row .btn { white-space: nowrap; }
.input, .select, .textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; outline: none; transition: .18s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,107,96,.09); }
.textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) {
  .ai-key-head { flex-wrap: wrap !important; height: auto !important; row-gap: 7px; overflow: visible !important; }
  .ai-key-head > span { width: 100%; justify-content: flex-end; }
}
.checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 16px; flex-wrap: wrap; }
.checkline input { margin-top: 3px; }
.ai-save-hint { margin-left: auto; align-self: center; font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (max-width: 768px) {
  .ai-save-hint { width: 100%; margin-left: 0; margin-top: 4px; }
}
.auth-foot { margin-top: 20px; font-size: 13px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.auth-foot .links { display: inline-flex; gap: 14px; }
.auth-foot a { color: var(--teal); }
.auth-foot-links { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.auth-foot-links a { color: var(--muted); margin: 0 8px; }

/* ---------- 通用提示 ---------- */
.flashes { position: relative; z-index: 5; }
.flash { padding: 11px 15px; border-radius: 10px; font-size: 13.5px; margin-bottom: 10px; border: 1px solid; }
.flash.success { background: #eef7f1; border-color: #c8e2d3; color: #2b6a4e; }
.flash.error { background: #fbeee9; border-color: #eed3c9; color: #8f3d26; }
.flash.info { background: #eef3f7; border-color: #d5e1ea; color: #345a72; }

/* ---------- 控制台 ---------- */
.app-shell { display: grid; grid-template-columns: 236px 1fr; gap: 26px; width: min(1240px, 94vw); margin: 34px auto 70px; position: relative; z-index: 1; align-items: start; }
.sidebar {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 14px; position: sticky; top: 88px;
}
.impersonate-note {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 2px 6px 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--line);
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.impersonate-note span { min-width: 0; overflow-wrap: anywhere; }
.impersonate-note b { color: var(--ink); font-weight: 600; }
.impersonate-note form { margin: 0; flex: none; }
.impersonate-back {
  background: none; border: 0; padding: 0; font: inherit; font-size: 12px;
  color: #2563eb; cursor: pointer; white-space: nowrap;
}
.impersonate-back:hover { text-decoration: underline; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; border-bottom: 1px solid var(--line); }
.avatar-chip { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal-deep); font-family: var(--serif); }
.side-user b { font-size: 13.5px; display: block; font-weight: 600; }
.side-user span { font-size: 11.5px; color: var(--muted); }
.side-nav { display: grid; gap: 2px; margin-top: 14px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; color: var(--ink-soft); }
.side-nav a:hover { background: #f3eee2; opacity: 1; }
.side-nav a.on { background: var(--teal-soft); color: var(--teal-deep); font-weight: 600; }
.side-nav a svg { width: 17px; height: 17px; }
.side-nav .sep { font-size: 10.5px; letter-spacing: .12em; color: #a8a294; padding: 14px 10px 5px; }
.side-license { margin-top: 16px; padding: 12px; border-radius: 11px; background: #f5efe2; font-size: 12px; color: var(--muted); }
.side-license b { color: var(--ink); display: block; margin-bottom: 3px; }

.main-col { min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--serif); font-size: 30px; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 18px 18px 16px;
  position: relative; overflow: hidden;
}
.stat .label { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.stat .num { font-family: var(--serif); font-size: 30px; margin-top: 8px; min-height: 33px; line-height: 1.1; display: flex; align-items: flex-end; justify-content: center !important; text-align: center !important; width: 100%; }
.stat .foot { font-size: 11.5px; color: #9aa09a; margin-top: 6px; text-align: center !important; }
.stat.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.stat.teal .label, .stat.teal .foot { color: #cfe6df; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-top: 20px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 16px; font-weight: 600; }
.panel-head .sub { font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.panel-body { padding: 20px; }
.panel-body.p0 { padding: 0; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; letter-spacing: .06em; padding: 11px 16px; background: #faf6ed; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid #f0e9dc; vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fdfaf3; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; background: #f0eadc; color: #6f6958; white-space: nowrap; }
.pill.ok { background: #e7f3ec; color: #2c6d50; }
.pill.warn { background: #fef3c7; color: #b45309; }
.pill.off { background: #f6e9e4; color: #8f4936; }
.pill.teal { background: var(--teal-soft); color: var(--teal-deep); }

.site-list { display: grid; gap: 12px; }
.site-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; gap: 12px 16px; background: #fffdf7; flex-wrap: wrap; }
.site-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.site-card .dot.off { background: #c47a5e; }
.site-card .meta { flex: 1 1 180px; min-width: 140px; }
.site-card b { font-size: 14.5px; }
.site-card .url { font-size: 12px; color: var(--muted); margin-top: 2px; }
.site-card .nums { display: flex; gap: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.site-card .nums b { color: var(--ink); font-family: var(--serif); font-size: 15px; margin-right: 3px; }
.site-card .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.site-card .acts form { display: inline-flex; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .glyph { font-family: var(--serif); font-size: 34px; color: var(--line-strong); margin-bottom: 8px; }
.empty p { font-size: 13px; }

.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 8px; }
.chart-bars .bar-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.chart-bars .bar { width: 50%; background: linear-gradient(180deg, #65b49f, #0f6b60); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; }
.chart-bars .bar span { position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--muted); white-space: nowrap; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); }
.tabs .on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 站点详情 */
.site-hero { background: var(--ink); color: #f5f1e7; border-radius: 18px; padding: 24px 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-hero h1 { font-family: var(--serif); font-size: 26px; }
.site-hero p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.site-hero .key-label { font-size: 10.5px; letter-spacing: .1em; color: #2563eb; margin-top: 10px; text-transform: uppercase; }
.site-hero .key { font-family: monospace; font-size: 12px; color: #dbeafe; background: linear-gradient(135deg, #2563eb, #1e40af); padding: 6px 12px; border-radius: 8px; margin-top: 4px; display: inline-block; border: 1px solid rgba(147, 197, 253, .35); box-shadow: 0 4px 14px -6px rgba(37, 99, 235, .6); }

.code-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 20px; }
.code-tabs button { border: 0; background: transparent; padding: 12px 12px 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.code-tabs button.on { color: var(--ink); border-bottom-color: var(--teal); }
.embed-box { background: #1c282e; color: #e6ece7; padding: 16px 18px; border-radius: 0 0 14px 14px; font: 12px/1.65 monospace; overflow-x: auto; position: relative; }
.embed-box code { white-space: pre-wrap; word-break: break-all; }

.ai-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.avatar-picker { display: flex; gap: 12px; flex-wrap: wrap; }
.avatar-opt { width: 76px; height: 76px; border: 2px solid var(--line); border-radius: 16px; padding: 4px; background: #fff; cursor: pointer; position: relative; }
.avatar-opt img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: transparent; }
.avatar-opt input { position: absolute; opacity: 0; }
.avatar-opt.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,107,96,.12); }
.avatar-tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 10px; line-height: 1; padding: 3px 7px; border-radius: 999px; background: #2563eb; color: #fff; white-space: nowrap; box-shadow: 0 4px 10px -4px rgba(37,99,235,.7); }
.avatar-del { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #dc2626; color: #fff; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; box-shadow: 0 4px 10px -4px rgba(220,38,38,.8); }
.avatar-del:hover { background: #b91c1c; }
.upload-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.seg { display: flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg label { flex: 1; text-align: center; padding: 9px 8px; font-size: 12.5px; cursor: pointer; color: var(--muted); }
.seg input { display: none; }
.seg input:checked + span { display: block; }
.seg label:has(input:checked) { background: var(--teal); color: #fff; }
.seg label + label { border-left: 1px solid var(--line); }

/* 聊天台 */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; min-height: 560px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.conv-list { border-right: 1px solid var(--line); background: #fbf7ee; display: flex; flex-direction: column; }
.conv-list-head { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.conv-items { overflow-y: auto; max-height: 620px; flex: 1; }
.conv-item { padding: 13px 15px; border-bottom: 1px solid #eee7d9; cursor: pointer; display: block; }
.conv-item:hover { background: #fffdf7; }
.conv-item.on { background: #fff; box-shadow: inset 3px 0 0 var(--teal); }
.conv-item b { font-size: 13px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.conv-item .conv-badges { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.conv-item .last { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; gap: 10px; }
.conv-item .unread { background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 999px; box-shadow: 0 3px 8px -3px rgba(220, 38, 38, .55); }
.conv-item .last-right { display: inline-flex; align-items: center; gap: 6px; }
.conv-item .cur-badge {
  background: rgba(79, 70, 229, .1); color: #4f46e5;
  font-size: 10.5px; font-weight: 600; line-height: 1.6;
  padding: 0 7px; border-radius: 999px; white-space: nowrap;
}
.human-req { color: #dc2626; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
td .human-req { display: block; margin-top: 3px; }
.conv-item .human-req { display: inline-block; font-size: 10.5px; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-top { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chat-top b { font-size: 14px; }
.chat-top .meta { font-size: 11.5px; color: var(--muted); }
.chat-top .spacer { flex: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 22px; background: #fdfbf5; min-height: 280px; max-height: 520px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 13px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg.visitor { background: #eee8da; align-self: flex-start; border-radius: 13px 13px 13px 4px; }
.msg.agent { background: var(--teal-soft); color: #234a40; align-self: flex-end; border-radius: 13px 13px 4px 13px; }
.msg.ai { background: var(--teal-soft); color: #234a40; align-self: flex-end; border-radius: 13px 13px 4px 13px; }
.msg.system { align-self: center; max-width: 100%; text-align: center; background: transparent; color: var(--muted); font-size: 12px; padding: 2px 0; }
.msg .who { display: block; font-size: 10px; opacity: .55; margin-bottom: 2px; }
.chat-compose { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 10px; align-items: flex-end; background: #fffdf8; }
.chat-compose textarea { flex: 1; min-height: 44px; max-height: 120px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; outline: none; }
.chat-compose textarea:focus { border-color: var(--teal); }
.chat-empty { flex: 1; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

/* 表格滚屏 */
.scroll-x { overflow-x: auto; }

/* 充值 */
.recharge-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.amount-grid label { border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 6px; text-align: center; cursor: pointer; font-family: var(--serif); font-size: 17px; background: #fff; }
.amount-grid input { display: none; }
.amount-grid label:has(input:checked), .amount-grid label.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-deep); }
.amount-grid label small { display: block; font-family: var(--sans); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.order-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.order-row:last-child { border-bottom: 0; }
.order-row .amt { font-family: var(--serif); font-size: 15px; }
.order-row .state { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #f0eadc; color: #756b57; }
.order-row .state.paid { background: #e7f3ec; color: #2c6d50; }

/* 邀请 */
.invite-banner { background: linear-gradient(135deg, #123f3a, #0f6b60); color: #eaf4f0; border-radius: 18px; padding: 26px 28px; position: relative; overflow: hidden; }
.invite-banner::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.invite-banner h2 { font-family: var(--serif); font-size: 24px; }
.invite-banner p { font-size: 12.5px; color: #c7ddd4; margin-top: 5px; }
.invite-link { margin-top: 18px; display: flex; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 10px; padding: 5px 5px 5px 12px; align-items: center; }
.invite-link input { flex: 1; background: transparent; border: 0; color: #fff; outline: none; font-size: 12.5px; min-width: 0; }
.invite-link .copy-btn { border-color: rgba(255,255,255,.3); color: #fff; }

/* 文档 */
.doc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.doc-nav { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 13px; }
.doc-nav a { display: block; padding: 7px 9px; border-radius: 7px; color: var(--ink-soft); }
.doc-nav a:hover { background: #f3eee2; opacity: 1; }
.doc-body h2 { font-family: var(--serif); font-size: 24px; margin-top: 34px; }
.doc-body h3 { font-size: 17px; margin-top: 24px; }
.doc-body p, .doc-body ul { color: var(--ink-soft); font-size: 14px; margin-top: 10px; }
.doc-body ul { padding-left: 20px; }
.doc-body li { list-style: square; margin: 5px 0; }
.doc-body .code-box { margin-top: 14px; }
.doc-grid > * { min-width: 0; }
.doc-body { overflow-wrap: anywhere; }
.doc-body .code-box { max-width: 100%; }
.is-mobile .doc-body .code-box pre { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 分页 */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; font-size: 12.5px; }
.pager a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); }
.pager a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 手机端 */
.mobile-tabbar { display: none; }
.is-mobile .hero { padding-top: 44px; }
.is-mobile .hero-grid, .is-mobile .elf-grid, .is-mobile .recharge-grid, .is-mobile .ai-layout, .is-mobile .doc-grid { grid-template-columns: 1fr; }
.is-mobile .features-grid, .is-mobile .steps { grid-template-columns: 1fr; }
.is-mobile .pricing { grid-template-columns: 1fr; }
.is-mobile .stat-grid { grid-template-columns: 1fr 1fr; }
.is-mobile .app-shell { grid-template-columns: 1fr; margin-top: 16px; }
.is-mobile .sidebar { position: static; padding: 10px 10px 14px; }
.is-mobile .side-nav { grid-template-columns: repeat(2, 1fr); }
.is-mobile .side-nav .sep, .is-mobile .side-license { display: none; }
.is-mobile .side-user { padding-bottom: 10px; }
.is-mobile .main-col { padding-bottom: 76px; }
.is-mobile .page-head h1 { font-size: 24px; }
.is-mobile .chat-shell { grid-template-columns: 1fr; min-height: 0; }
.is-mobile .conv-list { border-right: 0; border-bottom: 1px solid var(--line); }
.is-mobile .conv-items { max-height: none; overflow: visible; }
.is-mobile .chat-log { max-height: none; min-height: 320px; padding: 14px; }
.is-mobile .msg { max-width: 86%; }
.is-mobile .auth-card { grid-template-columns: 1fr; }
.is-mobile .auth-page { place-items: start center; padding-top: 24px; min-height: auto; }
.is-mobile .auth-side { padding: 26px; }
.is-mobile .auth-side ul, .is-mobile .auth-side .quote { display: none; }
.is-mobile .auth-form { padding: 26px; }
.is-mobile .topbar-inner { height: 60px; gap: 14px; }
.is-mobile .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 4vw 16px; }
.is-mobile .nav a { padding: 11px 0; border-bottom: 1px solid #ece5d6; }
.is-mobile .nav a::after { display: none; }
.is-mobile .nav-toggle { display: flex; }
.is-mobile .topbar-actions .btn-ghost { display: none; }
.is-mobile .topbar-actions { margin-left: 0; }
.is-mobile .nav.nav-open { display: flex; }
.is-mobile .mobile-tabbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  background: rgba(29,43,51,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 16px;
  display: flex; justify-content: space-around; padding: 7px 4px; box-shadow: 0 16px 30px -16px #000;
}
.is-mobile .mobile-tabbar a { color: #cdd6d1; font-size: 10.5px; text-align: center; display: grid; gap: 2px; padding: 3px 10px; }
.is-mobile .mobile-tabbar a.on { color: #fff; }
.is-mobile .mobile-tabbar svg { width: 18px; height: 18px; margin: 0 auto; }
.is-mobile .hero h1 { font-size: 34px; }
.is-mobile .browser-body { height: 290px; }
.is-mobile .chat-pop { width: 220px; right: 10px; }
.is-mobile .float-stat { left: 0; }
.is-mobile .table { min-width: 640px; width: max-content; }
.is-mobile .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.is-mobile .section { padding: 48px 0; }
.is-mobile .wrap { width: 90vw; }
.is-mobile .footer-grid { flex-direction: column; gap: 16px; }
.is-mobile .code-box pre { font-size: 11.5px; }
.is-mobile .site-hero { padding: 18px; }
.is-mobile .site-hero h1 { font-size: 22px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .ai-layout, .recharge-grid, .doc-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .topbar-actions .btn-ghost { display: none; }
  .chat-shell { grid-template-columns: 1fr; }
  .conv-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .conv-items { max-height: none; overflow: visible; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .stat .label { display: block; min-height: 15px; }
  .stat .label span + span:last-child { position: absolute; top: 14px; right: 14px; max-width: 62%; text-align: right; font-size: 11px; line-height: 1.35; }
  .stat .num { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 14px 12px; border-radius: 13px; }
  .stat .label { display: block; min-height: 15px; font-size: 11px; line-height: 1.35; white-space: normal; }
  .stat .label span + span:last-child { position: absolute; top: 14px; right: 14px; max-width: 62%; text-align: right; opacity: .65; font-size: 10.5px; line-height: 1.35; }
  .stat .num { font-size: 22px !important; margin-top: 6px; line-height: 1.25; min-height: 0; justify-content: center; text-align: center; }
  .stat .foot { font-size: 10.5px; margin-top: 4px; line-height: 1.4; white-space: normal; }
  .form-row { grid-template-columns: 1fr; }
  .hero-notes { gap: 12px; }
  .auth-form, .auth-side { padding: 24px 20px; }
  .page-head h1 { font-size: 24px; }
  .site-card { gap: 10px 12px; padding: 14px; }
  .site-card .acts { gap: 6px; flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; margin-left: 0; }
  .site-card .acts > .btn, .site-card .acts > form { flex: 1 1 0; min-width: 0; }
  .site-card .acts form .btn { width: 100%; }
  .site-card .acts .btn { flex: 1 1 0; min-width: 0; padding: 7px 2px; font-size: 12px; white-space: nowrap; text-align: center; }
  .site-card .nums { gap: 10px; flex: 1 1 100%; }
  .site-card .url { word-break: break-all; }

  /* 表格卡化 — 手机端竖状 */
  .card-table { min-width: 0 !important; width: 100% !important; }
  .card-table thead { display: none; }
  .card-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #fff;
  }
  .card-table tbody tr:last-child { margin-bottom: 0; }
  .card-table tbody tr td {
    display: block;
    padding: 2px 0 2px 72px;
    border: none;
    text-align: left !important;
    position: relative;
    white-space: normal;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .card-table tbody tr td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 4px;
    width: 64px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .04em;
    font-weight: 500;
    text-transform: none;
  }
  .card-table tbody tr td.card-actions { padding-left: 0; text-align: right !important; }
  .card-table tbody tr td.card-actions::before { display: none; }

  /* 站点详情页 hero 按钮网格对齐 */
  .site-hero .page-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; width: 100%; }
  .site-hero .page-actions .btn,
  .site-hero .page-actions form { width: 100%; }
  .site-hero .page-actions form .btn { width: 100%; }
}

/* 支付页 */
.pay-page { display: flex; justify-content: center; padding: 46px 0 70px; }
.pay-card { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 26px 28px 18px; border-bottom: 1px solid var(--line); }
.pay-head h1 { font-family: var(--serif); font-size: 24px; margin-bottom: 4px; }
.pay-summary { padding: 20px 28px; display: grid; gap: 10px; }
.pay-summary .row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--ink-soft); }
.pay-summary .row span:last-child, .pay-summary .row b { text-align: right; }
.pay-summary .row.total { border-top: 1px dashed var(--line-strong); padding-top: 14px; margin-top: 4px; align-items: baseline; color: var(--ink); }
.pay-summary .amount { font-family: var(--serif); font-size: 30px; color: var(--rust); }
.pay-body { padding: 4px 28px 28px; }
.pay-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 16px; }
.pay-channel { display: flex; align-items: center; gap: 9px; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fffdf7; font-size: 13.5px; }
.pay-channel.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-deep); }
.pay-channel .dot { width: 9px; height: 9px; border-radius: 50%; background: #1a9c5b; }
.pay-channel .dot.wxpay { background: #1aad19; }
.pay-channel .dot.alipay { background: #1677ff; }
.pay-channel.on { font-weight: 500; }
.pay-gateway-form { margin: 0; }
.pay-safe { margin: 14px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.pay-result { padding: 34px 28px 10px; text-align: center; }
.pay-result .mark { width: 54px; height: 54px; line-height: 54px; border-radius: 50%; margin: 0 auto 14px; font-size: 26px; background: var(--teal-soft); color: var(--teal-deep); }
.pay-result .mark.off { background: #f3e3dc; color: var(--danger); }
.pay-result .mark.wait { background: var(--paper-deep); color: var(--muted); }
.pay-result h1 { font-family: var(--serif); font-size: 25px; margin-bottom: 8px; }
.pay-result p { margin: 0 auto; max-width: 380px; color: var(--ink-soft); font-size: 13.5px; }
.pay-actions { display: grid; gap: 10px; padding: 20px 28px 30px; }

@media (max-width: 560px) {
  .pay-page { padding: 22px 0 40px; }
  .pay-head, .pay-summary, .pay-body, .pay-actions { padding-left: 20px; padding-right: 20px; }
  .pay-channels { grid-template-columns: 1fr; }
  .pay-summary .amount { font-size: 25px; }
}

/* ============================================================
   Aurora Tech Theme 2026 · 视觉覆盖层
   保留原有模板结构，仅替换配色、材质、圆角与光影
   ============================================================ */
:root {
  --ink: #0b1220;
  --ink-soft: #334155;
  --paper: #f3f6ff;
  --paper-deep: #e9eefb;
  --card: rgba(255, 255, 255, .84);
  --teal: #4f46e5;
  --teal-deep: #3730a3;
  --teal-soft: #eef1ff;
  --rust: #0891b2;
  --line: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .16);
  --muted: #64748b;
  --ok: #0d9488;
  --danger: #e11d48;
  --shadow: 0 30px 70px -34px rgba(37, 99, 235, .32);
  --radius: 20px;
  --accent: #06b6d4;
  --grad: linear-gradient(135deg, #4f46e5 0%, #2563eb 52%, #06b6d4 100%);
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background:
    radial-gradient(1100px 620px at 8% -8%, rgba(79, 70, 229, .13), transparent 62%),
    radial-gradient(900px 520px at 96% 2%, rgba(6, 182, 212, .12), transparent 58%),
    radial-gradient(700px 500px at 52% 100%, rgba(99, 102, 241, .07), transparent 70%),
    var(--paper);
  color: var(--ink);
}

body::before {
  opacity: 1;
  background-image:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
}

h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; }
a:hover { opacity: 1; }

/* 顶栏 */
.topbar {
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 12px 40px -28px rgba(15, 23, 42, .28);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}
.topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, .45), rgba(6, 182, 212, .45), transparent);
}
.topbar-inner { height: 72px; }
.logo-mark {
  border-radius: 13px;
  background: var(--grad);
  box-shadow: 0 12px 26px -12px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
  font-family: var(--sans);
  font-weight: 700;
}
.logo small { color: #7c89a3; letter-spacing: .08em; }
.nav { color: #475569; }
.nav a::after { height: 2px; background: linear-gradient(90deg, #4f46e5, #06b6d4); border-radius: 2px; }
.nav-toggle { border-color: var(--line-strong); background: rgba(255, 255, 255, .7); }
.nav-toggle span { background: #0f172a; }

/* 按钮 */
.btn { border-radius: 12px; font-weight: 600; letter-spacing: .01em; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); opacity: 1; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .55); color: #1e293b; }
.btn-ghost:hover { background: #fff; border-color: rgba(79, 70, 229, .38); opacity: 1; }
.btn-teal { background: var(--grad); }
.btn-teal:hover { background: var(--grad); filter: brightness(1.08); }
.btn-soft { background: rgba(79, 70, 229, .09); color: #4338ca; }
.btn-danger { background: #fff1f4; color: #be123c; border-color: #fecdd3; }

/* 首页主视觉 */
.hero { padding: 88px 0 52px; }
.hero::before {
  content: "";
  position: absolute; left: -14vw; top: -40px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(6, 182, 212, .12), transparent 66%);
  pointer-events: none;
}
.hero::after {
  width: 620px; height: 620px; right: -12vw; top: 0;
  background: radial-gradient(circle, rgba(79, 70, 229, .16), transparent 64%);
}
.kicker {
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(79, 70, 229, .22);
  color: #4338ca;
  box-shadow: 0 10px 26px -20px rgba(79, 70, 229, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.kicker i { background: linear-gradient(135deg, #4f46e5, #06b6d4); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.hero h1 { font-size: clamp(40px, 4.8vw, 62px); line-height: 1.14; }
.hero h1 .hero-sub { font-size: 0.78em; opacity: .88; }
.hero h1 em {
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 em::after { display: none; }
.hero-lede { color: #475569; font-size: 16.5px; max-width: 520px; }
.hero-cta .btn { padding: 13px 24px; }
.hero-notes { color: #64748b; }
.hero-notes span::before { color: #2563eb; }

/* 浏览器示意 */
.browser {
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 40px 90px -40px rgba(30, 64, 175, .45), 0 1px 0 rgba(255, 255, 255, .8) inset;
  transform: rotate(-.8deg);
}
.browser-bar { background: #f8faff; border-bottom-color: rgba(15, 23, 42, .06); }
.browser-bar i { background: #dbe3f4; }
.browser-bar i:first-child { background: #fda4af; }
.browser-bar .url { background: #eef2ff; }
.browser-body { background: linear-gradient(165deg, #ffffff, #f3f6ff 70%); }
.skeleton, .skeleton-card div { background: linear-gradient(90deg, #e9eefb, #f5f8ff 50%, #e9eefb); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.skeleton.title { background: #dfe6fa; }
.chat-pop {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 26px 60px -26px rgba(30, 64, 175, .4);
}
.chat-pop-head { background: var(--grad); }
.bubble.ai { background: #eef2ff; color: #312e81; }
.bubble.me { background: #1e3a8a; }
.chat-input { background: #f7f9ff; border-color: #e2e8f5; }
.orb-btn {
  background: var(--grad);
  box-shadow: 0 16px 34px -12px rgba(79, 70, 229, .8), 0 0 0 6px rgba(79, 70, 229, .08);
}
.float-stat {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px -24px rgba(30, 64, 175, .4);
}
.float-stat b { color: #4338ca; }

/* 区块与卡片 */
.section-head .eyebrow { color: #0891b2; letter-spacing: .2em; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); }
.feature {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 20px 50px -34px rgba(30, 64, 175, .35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, .22);
  box-shadow: 0 30px 60px -30px rgba(79, 70, 229, .35);
}
.feature .no { color: #0891b2; font-family: var(--sans); font-weight: 700; }
.feature .icon {
  background: linear-gradient(135deg, rgba(79, 70, 229, .12), rgba(6, 182, 212, .12));
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, .12);
}
.feature:nth-child(2) .icon { background: linear-gradient(135deg, rgba(6, 182, 212, .14), rgba(59, 130, 246, .12)); color: #0e7490; }
.feature:nth-child(3) .icon { background: linear-gradient(135deg, rgba(168, 85, 247, .14), rgba(79, 70, 229, .12)); color: #7e22ce; }
.step { border-left: 2px solid rgba(79, 70, 229, .16); }
.step::before { background: #fff; border-color: rgba(79, 70, 229, .28); color: #4338ca; font-family: var(--sans); font-weight: 700; }

/* 代码块 */
.code-box { background: #0a1020; border: 1px solid rgba(99, 102, 241, .18); box-shadow: 0 24px 50px -30px rgba(2, 6, 23, .8); }
.code-box-bar { background: rgba(255, 255, 255, .04); color: #94a3b8; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-box pre { color: #dbeafe; }
.copy-btn { border-color: rgba(148, 163, 184, .28); color: #cbd5e1; }
.copy-btn:hover { border-color: #06b6d4; color: #fff; }

/* 精灵 */
.elf-section {
  background:
    radial-gradient(700px 400px at 20% 10%, rgba(79, 70, 229, .1), transparent 65%),
    radial-gradient(600px 380px at 90% 90%, rgba(6, 182, 212, .1), transparent 65%),
    rgba(255, 255, 255, .46);
  border-color: rgba(15, 23, 42, .06);
}
.elf-faces img { border-color: #fff; box-shadow: 0 20px 44px -22px rgba(30, 64, 175, .4); }
.elf-card { background: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .9); }
.tag { background: rgba(79, 70, 229, .08); color: #4338ca; border-color: rgba(79, 70, 229, .12); }

/* 价格 */
.price-card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 24px 54px -38px rgba(30, 64, 175, .4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: 0 34px 64px -34px rgba(79, 70, 229, .4); }
.price-card.hot {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad) border-box;
  box-shadow: 0 34px 70px -36px rgba(79, 70, 229, .55);
}
.price-card .badge { background: var(--grad); box-shadow: 0 10px 20px -10px rgba(79, 70, 229, .8); }
.price { color: #0b1220; }
.price-card ul li::before { color: #4f46e5; }
.faq summary::after { color: #4f46e5; }

/* 页脚 */
.footer { border-top-color: rgba(15, 23, 42, .07); background: rgba(255, 255, 255, .35); }
.footer-note { color: #8b97ad; }
.device-switch { color: #4338ca; }

/* 登录 / 注册 */
.auth-card {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .92);
  box-shadow: 0 40px 100px -40px rgba(30, 64, 175, .42);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.auth-side {
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(155deg, #0b1220 0%, #1e1b4b 52%, #0e7490 120%);
  background-size: 34px 34px, 34px 34px, cover;
  color: #eef2ff;
}
.auth-side::after { background: radial-gradient(circle, rgba(6, 182, 212, .45), transparent 64%); }
.auth-side h2 { font-size: 31px; letter-spacing: -.03em; }
.auth-side p, .auth-side ul { color: #c7d2fe; }
.auth-side ul li::before { color: #67e8f9; }
.auth-side .quote { color: #a5b4fc; }
.auth-form h1 { font-size: 30px; letter-spacing: -.035em; }
.field label { color: #475569; }
.input, .select, .textarea {
  border-color: rgba(15, 23, 42, .12);
  background: rgba(255, 255, 255, .84);
  border-radius: 11px;
  padding: 12px 14px;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}
.auth-foot a { color: #4338ca; font-weight: 600; }

/* 提示 */
.flash { border-radius: 12px; border-width: 1px; }
.flash.success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.flash.error { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.flash.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* 控制台 */
.sidebar {
  background: rgba(255, 255, 255, .84);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 24px 50px -40px rgba(30, 64, 175, .35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.avatar-chip { background: var(--grad); color: #fff; font-family: var(--sans); font-weight: 700; }
.side-nav a:hover { background: rgba(79, 70, 229, .07); }
.side-nav a.on { background: linear-gradient(90deg, rgba(79, 70, 229, .14), rgba(6, 182, 212, .08)); color: #3730a3; }
.side-nav .sep { color: #94a3b8; }
.side-license { background: rgba(79, 70, 229, .06); border: 1px solid rgba(79, 70, 229, .1); }
.page-head h1 { font-size: 32px; letter-spacing: -.035em; }

.stat {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px -34px rgba(30, 64, 175, .4);
}
.stat .num { font-family: var(--sans); font-weight: 700; }
.stat.teal { background: var(--grad); border-color: transparent; box-shadow: 0 22px 44px -22px rgba(79, 70, 229, .6); }
.stat.teal .label, .stat.teal .foot { color: rgba(255, 255, 255, .78); }

.panel {
  background: rgba(255, 255, 255, .86);
  border-color: rgba(255, 255, 255, .9);
  box-shadow: 0 22px 54px -42px rgba(30, 64, 175, .35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.panel-head { border-bottom-color: rgba(15, 23, 42, .07); }
.panel-head h2 { font-weight: 700; }

.table th { background: rgba(79, 70, 229, .05); color: #64748b; }
.table td { border-bottom-color: rgba(15, 23, 42, .06); }
.table tr:hover td { background: rgba(79, 70, 229, .035); }
.pill { background: rgba(100, 116, 139, .1); color: #475569; }
.pill.ok { background: #ecfdf5; color: #047857; }
.pill.warn { background: #fef3c7; color: #b45309; }
.pill.off { background: #fff1f2; color: #be123c; }
.pill.req { background: #fde2e6; color: #9f1239; font-weight: 700; }
.pill.teal { background: rgba(79, 70, 229, .1); color: #3730a3; }
.pill.human { background: #fff; color: #334155; border: 1px solid rgba(15, 23, 42, .12); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }

.site-card { background: rgba(255, 255, 255, .8); border-color: rgba(15, 23, 42, .08); box-shadow: 0 14px 34px -30px rgba(30, 64, 175, .4); }
.site-card .nums b { font-family: var(--sans); font-weight: 700; }
.site-card:hover { border-color: rgba(79, 70, 229, .25); }

.chart-bars .bar {
  background: linear-gradient(180deg, #67e8f9 0%, #4f46e5 100%);
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 -8px 20px -10px rgba(79, 70, 229, .5);
}
.tabs { gap: 8px; }
.tabs a, .tabs button { background: rgba(255, 255, 255, .7); border-color: rgba(15, 23, 42, .1); }
.tabs .on { background: var(--grad); border-color: transparent; color: #fff; }

.site-hero {
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(6, 182, 212, .28), transparent 65%),
    radial-gradient(360px 240px at 0% 100%, rgba(79, 70, 229, .35), transparent 65%),
    #0b1220;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 26px 60px -34px rgba(30, 64, 175, .55);
}
.site-hero h1 { letter-spacing: -.03em; }
.site-hero .key { color: #dbeafe; background: linear-gradient(135deg, #2563eb, #1e40af); border: 1px solid rgba(147, 197, 253, .35); }
.code-tabs button.on { color: #3730a3; border-bottom-color: #4f46e5; }
.embed-box { background: #0a1020; color: #dbeafe; }
.avatar-opt { background: rgba(255, 255, 255, .8); border-color: rgba(15, 23, 42, .1); }
.avatar-opt.on { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.seg label:has(input:checked) { background: var(--grad); }

/* 聊天 */
.chat-shell { background: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .9); box-shadow: 0 24px 60px -44px rgba(30, 64, 175, .4); }
.conv-list { background: rgba(246, 248, 255, .8); }
.conv-item.on { background: #fff; box-shadow: inset 0 0 0 2px #4f46e5; border-radius: 10px; border-bottom-color: transparent; }
.chat-log { background: #f8faff; }
.msg.visitor { background: #eef1f7; }
.msg.agent { background: #eef2ff; color: #312e81; }
.msg.ai { background: #eef2ff; color: #312e81; }
.chat-compose { background: rgba(255, 255, 255, .9); }
.chat-compose textarea:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .1); }

/* 充值 / 邀请 */
.amount-grid label { background: rgba(255, 255, 255, .8); border-color: rgba(15, 23, 42, .1); font-family: var(--sans); font-weight: 700; }
.amount-grid label:has(input:checked), .amount-grid label.on { border-color: #4f46e5; background: rgba(79, 70, 229, .08); color: #3730a3; }
.invite-banner {
  background:
    radial-gradient(360px 260px at 100% 0%, rgba(6, 182, 212, .4), transparent 65%),
    linear-gradient(135deg, #1e1b4b, #312e81 55%, #0e7490);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -34px rgba(30, 64, 175, .5);
}
.doc-nav { background: rgba(255, 255, 255, .84); border-color: rgba(255, 255, 255, .9); }
.doc-nav a:hover { background: rgba(79, 70, 229, .07); }
.doc-body h2 { font-size: 25px; letter-spacing: -.03em; }
.pager a { background: rgba(255, 255, 255, .75); border-color: rgba(15, 23, 42, .1); }
.pager a.on { background: var(--grad); border-color: transparent; }

/* 支付 */
.pay-card { background: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .92); }
.pay-head h1 { letter-spacing: -.035em; }
.pay-channel { background: rgba(255, 255, 255, .75); border-color: rgba(15, 23, 42, .1); }
.pay-channel.on { border-color: #4f46e5; background: rgba(79, 70, 229, .08); color: #3730a3; }
.pay-summary .amount { color: #4f46e5; font-family: var(--sans); font-weight: 800; }
.pay-result .mark { background: rgba(79, 70, 229, .1); color: #4338ca; }
.pay-result .mark.off { background: #fff1f2; color: #be123c; }
.pay-result .mark.wait { background: #eef2ff; color: #64748b; }

/* 移动端适配 */
.is-mobile .nav { background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.is-mobile .nav a { border-bottom-color: rgba(15, 23, 42, .07); }
.is-mobile .mobile-tabbar {
  background: rgba(11, 18, 32, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 22px 44px -18px rgba(15, 23, 42, .7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.is-mobile .mobile-tabbar a.on { color: #67e8f9; }
.is-mobile .topbar-inner { height: 62px; }

/* 价格卡：宽屏四列、平板两列，避免最后一张单独掉行 */
@media (min-width: 901px) {
  .pricing { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 561px) and (max-width: 900px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
.auth-side .logo { color: #fff; }
.auth-side .logo small { color: #a5b4fc; }

/* 窄屏（含桌面窗口缩放）导航抽屉 */
@media (max-width: 900px) {
  .nav.nav-open {
    display: flex;
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0;
    padding: 8px 4vw 14px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 24px 50px -28px rgba(15, 23, 42, .4);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  .nav.nav-open a { padding: 11px 0; border-bottom: 1px solid rgba(15, 23, 42, .07); }
  .nav.nav-open a::after { display: none; }
  .nav.nav-open .nav-console { display: none; }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== 工单系统 ===== */
.req { color: #e11d48; margin-left: 2px; }
.tag-ok { background: rgba(16, 185, 129, .1); color: #059669; border-color: rgba(16, 185, 129, .2); }
.tag-muted { background: rgba(148, 163, 184, .12); color: #64748b; border-color: rgba(148, 163, 184, .2); }
.ticket-form .field { margin-bottom: 14px; }
.ticket-meta { margin-bottom: 14px; }
.ticket-meta h2, .ticket-meta h3 { margin: 0 0 6px; }
.ticket-body { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.ticket-img { margin-top: 12px; }
.ticket-img img { display: block; width: auto; height: auto; max-width: min(100%, 320px); max-height: 320px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid #e2e8f0; }
.reply { border-left: 3px solid #cbd5e1; padding: 10px 14px; margin: 10px 0; background: #fff; border-radius: 0 8px 8px 0; }
.reply-admin { border-left-color: #4f46e5; background: #f5f3ff; }
.reply-user { border-left-color: #10b981; background: #f0fdf4; }
.reply-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 13px; }
.reply-body { line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* 兼容：iOS Safari 输入框字号小于 16px 时聚焦会自动放大页面 */
@media (max-width: 640px) {
  .input, .select, .textarea { font-size: 16px; }
}
.reply-form { margin-top: 16px; border-top: 1px solid #e2e8f0; padding-top: 16px; }
.reply-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ============================================================
   2026 适配与细节修正
   ============================================================ */
html, body { overflow-x: hidden; max-width: 100%; }

.wrap { width: min(1080px, calc(100% - 32px)); }
.narrow { width: min(820px, calc(100% - 32px)); }
.topbar-inner { width: min(1180px, calc(100% - 32px)); gap: 26px; }
.app-shell { width: min(1240px, calc(100% - 32px)); }
.section { padding: 62px 0; }
.hero { padding: 64px 0 40px; }

/* 首页标题：缩小并改为蓝色 */
.hero h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.22;
  color: #1d4ed8;
}
.hero h1 em {
  color: #1d4ed8;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.hero h1 em::after { display: none; }
.hero h1 .hero-sub { color: #334155; font-size: .8em; }

/* 覆盖装饰元素不拦截点击 */
.hero::before, .hero::after, .invite-banner::after { pointer-events: none; }
.browser { transform: none; }

/* 精灵：统一尺寸、对齐，点击切换放大 */
.elf-faces { gap: 12px; align-items: center; }
.elf-faces img {
  width: 92px; height: 92px; object-fit: cover;
  transition: transform .22s ease, box-shadow .22s ease;
  cursor: pointer; transform-origin: center bottom;
}
.elf-faces img:nth-child(2) { width: 92px; height: 92px; transform: none; }
.elf-faces img.on { transform: scale(1.24); z-index: 2; box-shadow: 0 24px 46px -20px rgba(30,64,175,.55); }

/* 站点 Key 区域：蓝色渐变卡片（与「今日 IP」统计卡一致） */
.site-hero {
  background: var(--grad);
  border: 1px solid transparent;
  box-shadow: 0 22px 44px -22px rgba(79, 70, 229, .6);
  color: #fff;
}
.site-hero .small { color: rgba(255, 255, 255, .82); }
.site-hero h1 { color: #fff; }
.site-hero p { color: rgba(255, 255, 255, .82); }
.site-hero .key-label { color: rgba(255, 255, 255, .82); }
.site-hero .key { color: #1e3a8a; background: #fff; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .45); }
.site-hero .page-actions .btn-soft { background: rgba(255, 255, 255, .95); color: #3730a3; border-color: transparent; }
.site-hero .page-actions .btn-soft:hover { background: #fff; color: #312e81; }
.key-tip { margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .78); }

/* 公告弹窗 */
.announce-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000;
  background: rgba(11, 18, 32, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
}
.announce-mask[hidden] { display: none; }
.announce-dialog {
  width: min(460px, 100%);
  background: #fff; border-radius: 18px; padding: 30px 28px 26px;
  box-shadow: 0 40px 100px -30px rgba(15, 23, 42, .7);
  text-align: center;
}
.announce-dialog h2 { font-size: 21px; margin-bottom: 14px; color: #1d4ed8; }
.announce-content {
  text-align: left; color: #334155; font-size: 14px; line-height: 1.8;
  max-height: 46vh; overflow-y: auto; white-space: normal;
}
.announce-ok { margin-top: 22px; min-width: 132px; }

/* 设备显示控制 */
.only-mobile { display: none !important; }

/* 手机端顶栏品牌：去掉 logo 图形与副标题，只保留站名大字，左对齐铺满 */
@media (max-width: 900px) {
  .is-mobile .topbar .logo,
  .is-mobile.is-home .topbar .logo,
  .is-mobile.is-user .topbar .logo {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    margin-right: 6px;
  }
  .is-mobile .topbar .logo .logo-mark,
  .is-mobile .topbar .logo small {
    display: none !important;
  }
  .is-mobile .topbar .logo > span {
    display: block;
    min-width: 0;
    font-size: clamp(15px, 4.7vw, 20px);
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #3730a3;
    text-shadow: 0 6px 14px rgba(79, 70, 229, .18);
  }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .is-mobile .topbar .logo > span {
      background: linear-gradient(92deg, #4f46e5 0%, #2563eb 50%, #06b6d4 100%);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: none;
    }
  }
  .is-mobile .topbar-actions { flex: 0 0 auto; margin-left: auto; }
  .is-mobile .wy-m-brand { display: none !important; }
}

@media (max-width: 900px) {
  .only-pc { display: none !important; }
  .only-mobile { display: inline-flex !important; }
}

/* 手机端适配 */
.is-mobile .nav .nav-console { display: none; }
.is-mobile.is-user .topbar-actions { margin-left: auto; }
.is-mobile .topbar-actions .btn {
  height: 38px; min-width: 92px; padding: 0 14px; font-size: 12.5px;
  border-radius: 10px; justify-content: center;
}
.is-mobile .topbar-actions .btn-ghost {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.is-mobile .topbar-actions .btn-ghost:hover { background: var(--grad); color: #fff; filter: brightness(1.08); }
.is-mobile.is-guest .topbar-inner { gap: 8px; }
.is-mobile.is-guest .topbar .logo > span {
  font-size: clamp(15px, 4.6vw, 19px);
  letter-spacing: .02em;
}
.is-mobile.is-guest .topbar-actions { gap: 8px; }
.is-mobile.is-guest .topbar-actions .btn {
  min-width: 0; height: 40px; padding: 0 20px;
  font-size: 13.5px; border-radius: 14px;
}
.is-mobile.is-guest .wy-m-brand {
  font-size: 13px; font-weight: 600; color: #1e40af;
  align-self: center; white-space: nowrap;
}
.is-mobile.is-guest .topbar-actions .btn-primary {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.is-mobile.is-guest .topbar-actions .btn-primary:hover {
  background: var(--grad); color: #fff; filter: brightness(1.08); transform: translateY(-1px);
}
.is-mobile.is-guest .topbar-actions .btn-ghost {
  background: #fff; color: #4338ca;
  border-color: rgba(79, 70, 229, .35);
  box-shadow: 0 6px 16px -10px rgba(79, 70, 229, .45);
}
.is-mobile.is-guest .topbar-actions .btn-ghost:hover {
  background: rgba(79, 70, 229, .08); color: #3730a3;
  border-color: rgba(79, 70, 229, .5);
}
.is-mobile.is-user .topbar-actions { gap: 8px; }
.is-mobile.is-user .topbar .logo > span {
  font-size: clamp(15px, 4.6vw, 19px);
  letter-spacing: .02em;
}
.is-mobile.is-user .topbar-actions .btn {
  min-width: 0; height: 40px; padding: 0 16px;
  font-size: 13.5px; border-radius: 14px;
}
.is-mobile.is-user .topbar-actions .console-link {
  background: #fff; color: #4338ca;
  border: 1px solid rgba(79, 70, 229, .35);
  box-shadow: 0 6px 16px -10px rgba(79, 70, 229, .45);
}
.is-mobile.is-user .topbar-actions .console-link:hover {
  background: rgba(79, 70, 229, .08); color: #3730a3;
  border-color: rgba(79, 70, 229, .5);
}
.is-mobile.is-user .topbar-actions .btn-primary {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.is-mobile.is-user .topbar-actions .btn-primary:hover {
  background: var(--grad); color: #fff; filter: brightness(1.08); transform: translateY(-1px);
}
.is-mobile .wrap, .is-mobile .narrow { width: calc(100% - 28px); }
.is-mobile .hero { padding-top: 30px; }
.is-mobile .hero h1 { font-size: 27px; }
.is-mobile .hero-cta { flex-wrap: nowrap; gap: 8px; }
.is-mobile .hero-cta .btn { flex: 1; padding: 11px 10px; font-size: 12.5px; }
.is-mobile .section { padding: 42px 0; }
.is-mobile .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.is-mobile .side-nav a { padding: 11px 12px; font-size: 13.5px; }
.is-mobile .main-col { padding-bottom: 24px; }
.is-mobile .mobile-tabbar { display: none !important; }
.is-mobile .auth-page { padding: 10px 0 26px; }
.is-mobile .auth-side { display: flex; flex-direction: row; padding: 18px 22px 8px; justify-content: center; background: transparent; color: inherit; }
.is-mobile .auth-side::after { display: none; }
.is-mobile .auth-side h2, .is-mobile .auth-side p, .is-mobile .auth-side ul, .is-mobile .auth-side .quote { display: none; }
.is-mobile .auth-side .logo { display: flex; color: var(--text); font-size: 20px; font-weight: 800; }
.is-mobile .auth-form { padding: 20px 22px 24px; }
.is-mobile .auth-form h1 { font-size: 23px; }
.is-mobile .auth-form .btn-primary {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.is-mobile .auth-form .auth-alt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px; height: 40px; border-radius: 10px;
  background: #fff; color: #4338ca; font-weight: 600;
  border: 1px solid rgba(79, 70, 229, .35);
  box-shadow: 0 6px 16px -10px rgba(79, 70, 229, .45);
}
.is-mobile .auth-foot { justify-content: center; }
.is-mobile .field { margin-top: 12px; }
.is-mobile .elf-faces { gap: 8px; }
.is-mobile .elf-faces img { width: 68px; height: 68px; }
.is-mobile .stat-grid { grid-template-columns: 1fr 1fr; }
.is-mobile .stat .label { display: block; min-height: 15px; }
.is-mobile .stat .label span:last-child { position: absolute; top: 14px; right: 14px; max-width: 62%; text-align: right; font-size: 11px; line-height: 1.35; }
.is-mobile .stat .num { justify-content: center; text-align: center; }
.is-mobile .app-shell { width: calc(100% - 24px); }
@media (max-width: 560px) {
  .elf-faces img { width: 56px; height: 56px; }
  .elf-faces img.on { transform: scale(1.18); }
  .hero h1 { font-size: 25px; }
  .topbar-inner { gap: 10px; }
  .topbar-actions { gap: 8px; }
  .topbar-actions .btn { padding: 8px 12px; }
}

/* 自定义形象裁剪 */
.crop-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .55); }
.crop-mask[hidden] { display: none; }
.crop-dialog { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 30px 80px -30px rgba(2, 6, 23, .6); }
.crop-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.crop-close { border: 0; background: transparent; padding: 0 4px; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.crop-stage { position: relative; width: min(320px, 100%); aspect-ratio: 1 / 1; margin: 0 auto; overflow: hidden; border-radius: 14px; background: #eef2f7; cursor: grab; touch-action: none; user-select: none; }
.crop-stage.dragging { cursor: grabbing; }
@supports not (aspect-ratio: 1 / 1) {
  .crop-stage { height: min(320px, calc(100vw - 40px)); }
}
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.crop-box { position: absolute; pointer-events: none; border: 2px solid #4338ca; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .32); }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.crop-zoom input { flex: 1; }
.crop-foot { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.crop-actions { display: flex; justify-content: flex-end; gap: 8px; }
.avatar-opt[data-custom] .avatar-tag { background: #0f6b60; }

/* 图片上传框 */
.upload-box { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed rgba(79, 70, 229, .35); border-radius: 14px; background: linear-gradient(180deg, #f8faff, #f1f4ff); cursor: pointer; overflow: hidden; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.upload-box:hover, .upload-box.dragging { border-color: #4f46e5; background: #eef1ff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .08); }
.upload-box.has-file { border-style: solid; border-color: rgba(79, 70, 229, .25); background: #fff; }
.upload-input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(79, 70, 229, .1); color: #4338ca; font-size: 22px; font-weight: 600; }
.upload-text { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.upload-text b { color: #1e293b; font-size: 13.5px; }
.upload-box.has-file .upload-text span { display: none; }
.upload-preview { flex: none; margin-left: auto; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .1); background: #fff; }
.upload-preview[hidden] { display: none; }
.upload-box-sm { padding: 10px 12px; gap: 10px; }
.upload-box-sm .upload-icon { width: 36px; height: 36px; font-size: 18px; }
.upload-box-sm .upload-preview { width: 52px; height: 52px; }
.upload-row .upload-box { flex: 1; }

.ticket-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ticket-grid .panel { margin: 0; }
.ticket-grid .ticket-form .textarea { min-height: 120px; }
@media (max-width: 900px) {
  .ticket-grid { grid-template-columns: 1fr; }
}

/* 触摸设备：按钮长按不触发 hover 深色效果 */
@media (hover: none) {
  .btn-primary:hover { background: var(--grad); filter: none; transform: none; }
  .btn-ghost:hover { background: rgba(255, 255, 255, .55); border-color: var(--line-strong); opacity: 1; }
  .btn-teal:hover { background: var(--grad); filter: none; }
  .is-mobile .topbar-actions .btn-ghost:hover { background: var(--grad); color: #fff; filter: none; }
  .is-mobile.is-guest .topbar-actions .btn-primary:hover { background: var(--grad); color: #fff; filter: none; transform: none; }
  .is-mobile.is-guest .topbar-actions .btn-ghost:hover { background: #fff; color: #4338ca; border-color: rgba(79, 70, 229, .35); }
  .is-mobile.is-user .topbar-actions .console-link:hover { background: #fff; color: #4338ca; border-color: rgba(79, 70, 229, .35); }
  .is-mobile.is-user .topbar-actions .btn-primary:hover { background: var(--grad); color: #fff; filter: none; transform: none; }
}

/* 消息提醒徽标：红底白字 */
.msg-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; padding: 1px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e 0%, #dc2626 100%);
  color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.6;
  letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(220, 38, 38, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* 侧栏用户信息 */
.side-user { flex-wrap: wrap; align-items: flex-start; }
.side-user-info { min-width: 0; flex: 1 1 0; }
.side-user-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 会话分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; margin: 0; flex-wrap: wrap; }
.pager .page-info { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager .btn { height: 30px; padding: 0 12px; font-size: 12px; }
.pager .btn:disabled { opacity: .45; cursor: default; }
.conv-pager, .table-pager { border-top: 1px solid var(--line); flex-shrink: 0; }
.table-pager { padding: 10px 16px; }
.conv-pager { padding: 8px 10px; gap: 8px; }
.conv-pager .btn { height: 26px; padding: 0 9px; font-size: 11px; }
.conv-pager .page-info { font-size: 11px; }

/* 概览页头部优惠券提示 */
.coupon-tip { font-size: 12px; color: #dc2626; font-weight: 600; line-height: 1.4; white-space: nowrap; }

/* 套餐卡片 */
.pkg-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pkg-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pkg-head-left { flex: 1; min-width: 0; text-align: center; transform: translateX(22px); }
.pkg-name-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pkg-meta { margin-top: 4px; line-height: 1.5; }
.pkg-price { text-align: right; flex-shrink: 0; align-self: flex-start; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.pkg-price-old { font-size: 14px; margin-right: 6px; }
/* 支付按钮行：单一权威来源，去除分散的重复规则 */
.pkg-pay-row { display: flex !important; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center !important; align-items: center !important; text-align: center !important; width: 100%; }
.pkg-pay-row > form { margin: 0 !important; float: none !important; display: inline-flex !important; }
.pkg-pay-row > form > button { margin: 0 !important; float: none !important; }

/* 手机端套餐卡片（按设备判定，不依赖视口宽度） */
.is-mobile .pkg-head { flex-wrap: wrap; }
.is-mobile .pkg-pay-row { justify-content: center !important; transform: translateX(-8px); }
.is-mobile .pkg-head-left { display: contents; }
.is-mobile .pkg-name-row { order: 1; flex: 1 1 auto; min-width: 0; }
.is-mobile .pkg-price { order: 2; }
.is-mobile .pkg-meta { order: 3; flex: 1 1 100%; margin-top: 6px; text-align: center; white-space: nowrap; font-size: 12px; }
.is-mobile .pkg-coupon-applied { font-size: 12.5px; }
.is-mobile .pkg-coupon-cancel { background: #ea580c; border-color: #ea580c; color: #fff; padding: 7px 16px; font-size: 13px; }
.is-mobile .pkg-coupon-tip { color: #7f1d1d; font-weight: 700; font-size: 13px; line-height: 1.55; gap: 8px; }
.is-mobile .pkg-coupon-price { color: #7f1d1d; font-weight: 800; }
.is-mobile .pkg-coupon-btn { margin-left: 4px; }

/* 手机端站点卡片（按设备判定，保证内容完整显示） */
.is-mobile .site-card { gap: 10px 12px; padding: 12px 14px; box-sizing: border-box; max-width: 100%; }
.is-mobile .site-card .meta { flex: 1 1 180px; min-width: 0; }
.is-mobile .site-card .url { word-break: break-all; }
.is-mobile .site-card .nums { gap: 10px; flex: 1 1 100%; font-size: 11.5px; }
.is-mobile .site-card .acts { gap: 6px; flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; margin-left: 0; }
.is-mobile .site-card .acts > .btn, .is-mobile .site-card .acts > form { flex: 1 1 0; min-width: 0; }
.is-mobile .site-card .acts form .btn { width: 100%; }
.is-mobile .site-card .acts .btn { flex: 1 1 0; min-width: 0; padding: 7px 2px; font-size: 12px; white-space: nowrap; text-align: center; }
@media (max-width: 360px) {
  .site-card .acts, .is-mobile .site-card .acts { gap: 4px; }
  .site-card .acts .btn, .is-mobile .site-card .acts .btn { font-size: 11px; padding: 7px 1px; }
}

/* 表格卡化（按设备判定，覆盖会话记录/工单/订单等卡片式表格） */
.is-mobile .card-table { min-width: 0 !important; width: 100% !important; }
.is-mobile .card-table thead { display: none; }
.is-mobile .card-table tbody tr {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: #fff;
}
.is-mobile .card-table tbody tr:last-child { margin-bottom: 0; }
.is-mobile .card-table tbody tr td {
  display: block;
  padding: 2px 0 2px 72px;
  border: none;
  text-align: left !important;
  position: relative;
  white-space: normal;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.is-mobile .card-table tbody tr td::before {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: 4px;
  width: 64px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
  font-weight: 500;
  text-transform: none;
}
.is-mobile .card-table tbody tr td.card-actions { padding-left: 0; text-align: right !important; }
.is-mobile .card-table tbody tr td.card-actions::before { display: none; }
.is-mobile .card-table tbody tr td.mono { font-size: 12px; letter-spacing: -.2px; }

/* 窄屏兜底：设备识别为电脑但窗口很窄时，同样卡化，避免表格显示不全 */
@media (max-width: 900px) {
  .card-table { min-width: 0 !important; width: 100% !important; }
  .card-table thead { display: none; }
  .card-table tbody tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 12px 14px;
    background: #fff;
  }
  .card-table tbody tr:last-child { margin-bottom: 0; }
  .card-table tbody tr td {
    display: block;
    padding: 2px 0 2px 72px;
    border: none;
    text-align: left !important;
    position: relative;
    white-space: normal;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  .card-table tbody tr td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 4px;
    width: 64px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .04em;
    font-weight: 500;
    text-transform: none;
  }
  .card-table tbody tr td.card-actions { padding-left: 0; text-align: right !important; }
  .card-table tbody tr td.card-actions::before { display: none; }
  .card-table tbody tr td.mono { font-size: 12px; letter-spacing: -.2px; }
  .panel-body .scroll-x { overflow-x: visible; }
}

/* 套餐卡片券后价区域 */
.pkg-coupon-row { min-height: 22px; margin-top: 8px; }
.pkg-coupon-tip[hidden], .pkg-coupon-applied[hidden] { display: none !important; }
.pkg-coupon-tip { text-align: center; color: #b91c1c; font-size: 12.5px; font-weight: 600; line-height: 1.6; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pkg-coupon-price { color: #991b1b; font-weight: 700; }
.pkg-coupon-btn { margin-left: 2px; }
.pkg-coupon-applied { display: flex; align-items: center; justify-content: center; gap: 8px; color: #b91c1c; font-size: 12px; line-height: 1.5; flex-wrap: wrap; }
.pkg-coupon-cancel { background: #ea580c; border: 1px solid #ea580c; color: #fff; padding: 7px 16px; font-size: 13px; line-height: 1.5; border-radius: 9px; }
.pkg-coupon-cancel:hover { background: #c2410c; border-color: #c2410c; color: #fff; }

@media (max-width: 560px) {
  .coupon-tip {
    flex: 1 1 100%;
    font-size: 13px;
    color: #b91c1c;
    font-weight: 700;
    white-space: normal;
    margin-bottom: 4px;
    line-height: 1.4;
  }
  /* 手机端券后价加深红色 + 按钮更醒目 */
  .pkg-coupon-tip { color: #7f1d1d; font-weight: 700; font-size: 13px; line-height: 1.55; gap: 8px; }
  .pkg-coupon-price { color: #7f1d1d; font-weight: 800; }
  .pkg-coupon-btn { margin-left: 4px; }
  /* 手机端套餐头部：名称/价格一行，时长与站点数独占一行居中 */
  .pkg-head { flex-wrap: wrap; }
  .pkg-head-left { display: contents; }
  .pkg-name-row { order: 1; flex: 1 1 auto; min-width: 0; }
  .pkg-price { order: 2; }
  .pkg-meta { order: 3; flex: 1 1 100%; margin-top: 6px; text-align: center; white-space: nowrap; font-size: 12px; }
  /* 取消使用按钮更醒目 */
  .pkg-coupon-applied { font-size: 12.5px; }
  .pkg-coupon-cancel { background: #fff; padding: 5px 12px; font-size: 12px; }
}

/* 桌面端：概览页按钮组下移与副标题同线，优惠券提示显示在按钮上方 */
.dash-actions-btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (min-width: 901px) {
  .page-head-dash { flex-wrap: nowrap; align-items: flex-end; }
  .page-head-dash > div:first-child { min-width: 0; flex: 1 1 auto; }
  .page-head-dash .page-actions { flex-shrink: 0; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 8px; }
  .page-head-dash .page-actions .coupon-tip { max-width: none; white-space: nowrap; text-align: right; }
  .page-head-dash .dash-actions-btns { flex-wrap: nowrap; justify-content: flex-end; }
  .page-head-dash .page-actions .btn { flex-shrink: 0; white-space: nowrap; }
}



