/* 网页端共用样式。Element Plus 只提供组件，页面骨架自己撑。 */
:root {
  --brand: #e02e24;
  --ink: #1f2329;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
}

* { box-sizing: border-box; }

[v-cloak] { display: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

.page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.page.wide { align-items: flex-start; justify-content: center; }

.card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(31, 35, 41, .06);
}

.wrap { width: 100%; max-width: 880px; }

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.brand i { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-style: normal; display: grid; place-items: center; font-weight: 700; }
/* 后台「网站配置」填了 LOGO 地址时替换上面那个字母块，尺寸照旧，免得页头跟着换高。 */
.brand .brand-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }
/* 「网站配置」里 LOGO 那行的效果预览：照页头那个尺寸点出来，让人知道自己传的东西在站上多大。 */
.logo-prev { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.qrcode-prev { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.brand b { font-size: 18px; }

h1.title { font-size: 20px; margin: 0 0 4px; }
p.sub { color: var(--muted); margin: 0 0 22px; font-size: 13px; }

.row { display: flex; gap: 10px; }
/* 发版列表上方的通道 / 形态筛选：用按钮组而不是 el-tabs，免得和外面的页签套成两层。 */
.filters { display: flex; align-items: center; gap: 8px; }
.filters .el-button + .el-button { margin-left: 0; }
/* 详情弹窗的字段表：值可能是很长的 OSS 键或 sha256，所以标签窄列固定、值允许断行。 */
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.grow { flex: 1; }
.mt16 { margin-top: 16px; }
.mt22 { margin-top: 22px; }
.acct-divider { border-top: 1px solid var(--line); margin: 20px 0; }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acct-row:last-child { border-bottom: 0; }
.acct-label { color: var(--muted); font-size: 14px; min-width: 52px; }
.acct-value { flex: 1; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.acct-link { border: 0; background: none; color: var(--brand); font: inherit; font-size: 13px; cursor: pointer; }
.acct-link:hover { text-decoration: underline; }
.tip { color: var(--muted); font-size: 12px; margin-top: 14px; }
.tip a { color: var(--brand); text-decoration: none; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.panel h2 { font-size: 15px; margin: 0 0 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.upgrade-tip { color: var(--brand); font-size: 14px; font-weight: 600; margin-top: 14px; }

/* 渠道配置：一张卡管一件事，卡头收状态标签和按钮，顶部一条彩色边区分渠道。 */
.chan { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(31, 35, 41, .04); }
.chan-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: #fafbfc; border-bottom: 1px solid var(--line); }
.chan-head h2 { font-size: 15px; margin: 0; }
.chan-body { padding: 20px; }
.chan-oss { border-top: 3px solid #f59e0b; }
.chan-sms { border-top: 3px solid #2f74e0; }
.chan-wechat { border-top: 3px solid #16a34a; }
.chan-site { border-top: 3px solid #7c3aed; }

/* 渠道摘要卡：一行四张，点哪张就在下面展开哪张的表单。 */
/* 最小列宽 180 降到 160：第四张加进来后，180 在后台内容宽度（最窄约 694）里只排得下三张，多出来那张会掉到第二行。 */
.chan-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.chan-pick { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.chan-pick:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(31, 35, 41, .10); }
.chan-pick b { font-size: 14px; }
/* 选中态只加外发光：动 border-color 会盖掉上面那条渠道色边。 */
.chan-pick.on { box-shadow: 0 0 0 2px rgba(31, 35, 41, .12); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: #16a34a; }
.dot.bad { background: #d1d5db; }
.kpi { font-size: 30px; font-weight: 700; line-height: 1.2; }
.kpi small { font-size: 14px; font-weight: 400; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: #eceef1; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: var(--brand); }
.dl { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.dl:last-child { border-bottom: 0; }
.dl span:first-child { color: var(--muted); }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.topbar .who { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ 管理后台 */
.wrap.admin { max-width: 1180px; }
.mb16 { margin-bottom: 16px; }
.mb6 { margin-bottom: 6px; }
.who { color: var(--muted); font-size: 13px; }

/* 只读但可整段选中的地址框：回调地址这类值抄错一个字符就换不到 openid，
   所以不给 el-input（它的 placeholder 语义是"可改"），给一个灰底只读框配复制按钮。 */
.copybox { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #f5f6f8; color: var(--muted); font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace;
  word-break: break-all; }

/* ------------------------------------------------------------- 登录页 */
/* 两张标签（微信扫码 / 手机号），形态照着未冥TV 的登录卡：
   标签是文字加一条下划线，不是按钮；内容区跟着标签换，整张卡的高度别乱跳。 */
.login-card { max-width: 424px; padding: 30px; }
.login-card .brand { justify-content: center; margin-bottom: 20px; }

/* 登录弹窗：flex 遮罩 + 居中卡片 */
.modal-mask { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.modal-card { width: 400px; max-width: 92vw; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 0; }
.modal-title { font-size: 17px; font-weight: 600; }
.modal-close { border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; padding: 0 4px; line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 16px 24px 24px; }
.modal-err { background: #fef0f0; color: #f56c6c; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.modal-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.modal-input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; outline: none; box-sizing: border-box; }
.modal-input:focus { border-color: var(--brand); }
.modal-btn-primary { display: block; width: 100%; height: 42px; margin-top: 18px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.modal-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.modal-btn-side { height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.modal-btn-side:disabled { opacity: .5; cursor: not-allowed; }
.modal-btn-plain { border: 1px solid var(--brand); border-radius: 6px; background: #fff; color: var(--brand); padding: 5px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.modal-btn-text { display: block; width: 100%; margin-top: 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.modal-btn-text:hover { color: var(--ink); }

.tabs { display: flex; justify-content: center; gap: 34px; border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.tab { position: relative; padding: 0 2px 12px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brand); font-weight: 600; }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--brand); }

.qrbox { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 250px; }
.qrwrap { position: relative; width: 196px; height: 196px; padding: 9px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0 auto; }
.qrwrap img { display: block; width: 100%; height: 100%; }
.qrph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: 13px; }
.qrmask { position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .93); }
.qrmask-t { margin: 0 0 10px; font-size: 13px; color: var(--ink); }
.qrstate { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; color: var(--muted); }
.dot.live { background: #16a34a; animation: breathe 1.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* 微信绑定状态 */
.bound-status { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.bound { background: #16a34a; }
.status-dot.unbound { background: #9ca3af; }

/* ------------------------------------------------------------- 产品落地页 */
.land { display: block; }
.land-inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.land-inner.narrow { max-width: 780px; }

.land-nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.land-nav .land-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.land-nav .brand { margin: 0; }
.land-links { display: flex; gap: 18px; margin-left: 12px; flex: 1; }
.land-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.land-links a:hover { color: var(--brand); }
.land-cta { display: flex; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border-radius: 9px; font-size: 14px; text-decoration: none; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.ghost { background: #fff; }
.btn.solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.solid:hover { color: #fff; filter: brightness(.94); }
.btn.big { height: 46px; padding: 0 26px; font-size: 15px; }

.land-hero { padding: 60px 0 66px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.land-hero .land-inner { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.05fr .95fr; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 13px; letter-spacing: .04em; }
.land-hero h1 { font-size: 40px; line-height: 1.22; margin: 0 0 14px; letter-spacing: -.01em; }
.land-hero h1 em { font-style: normal; color: var(--brand); }
.lead { margin: 0 0 24px; font-size: 16px; color: #3f4652; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-meta { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

.hero-shot { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(31, 35, 41, .10); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #dfe3e8; }
.shot-bar b { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 400; }
.shot-body { padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.65; }
.bubble.buyer { align-self: flex-start; background: #f1f3f6; }
.bubble.ai { align-self: flex-end; background: #fdeceb; border: 1px solid #f7d3d0; }
.shot-note { color: #98a1ae; font-size: 11px; text-align: right; padding: 6px 2px 8px; }

.land-sec { padding: 62px 0; }
.land-sec.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-title { font-size: 26px; margin: 0 0 8px; }
.sec-sub { margin: 0 0 30px; color: var(--muted); }
.sec-note { margin: 26px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.8; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step .no { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin: 0 0 8px; }
.step p { margin: 0; color: #4a5160; font-size: 13.5px; }

.feat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.feat h3 { font-size: 15px; margin: 0 0 6px; }
.feat p { margin: 0; color: #4a5160; font-size: 13px; }
.land-sec.alt .feat { background: #fafbfc; }

.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.price { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; }
.price.hot { border-color: var(--brand); box-shadow: 0 12px 30px rgba(224, 46, 36, .10); }
.price h3 { font-size: 15px; margin: 0 0 12px; }
.price .amount { font-size: 30px; font-weight: 700; }
.price .per { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.price ul { margin: 0 0 18px; padding-left: 18px; color: #4a5160; font-size: 13px; flex: 1; }
.price li { margin-bottom: 6px; }

.land-final { padding: 58px 0; background: var(--brand); color: #fff; text-align: center; }
.land-final h2 { font-size: 26px; margin: 0 0 6px; }
.land-final p { margin: 0 0 22px; opacity: .9; }
.land-final .btn.ghost { color: var(--brand); }

.land-foot { padding: 22px 0 34px; background: #fff; border-top: 1px solid var(--line); }
.land-foot .land-inner { display: flex; gap: 18px; align-items: center; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.land-foot a { color: var(--muted); text-decoration: none; }
.land-foot a:hover { color: var(--brand); }
/* 备案号靠右：这是页脚的法定信息，和左侧的导航链接分开摆才像一站点的页脚。 */
.land-foot .icp { margin-left: auto; }

@media (max-width: 900px) {
  .land-hero .land-inner { grid-template-columns: 1fr; }
  .land-hero h1 { font-size: 30px; }
  .land-links { display: none; }
  .land-nav .land-inner { justify-content: space-between; }
}

/* 纯 CSS 柱状图：为了少引一个图表库，也免得后台多一条外部依赖。 */
.vchart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.vcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.vbar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #f26a5f, var(--brand)); }
.vnum { font-size: 12px; color: var(--muted); }
.vlbl { font-size: 11px; color: var(--muted); }
.modal-btn-secondary { height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.modal-btn-secondary:disabled { opacity: .5; cursor: not-allowed; }
.modal-btn-danger { display: block; width: 100%; height: 42px; margin-top: 18px; border: 0; border-radius: 8px; background: #dc3545; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.modal-btn-danger:disabled { opacity: .6; cursor: not-allowed; }
.topbar-link { color: var(--muted); font-size: 13px; text-decoration: none; margin-right: 12px; }
.topbar-link:hover { color: var(--brand); }
.download-btn { display: inline-block; padding: 10px 24px; background: var(--brand); color: #fff; border-radius: 8px; text-decoration: none; font-size: 14px; }
.download-btn:hover { opacity: 0.9; }
