/* 智汇 AI 工具站 - 全宽响应式样式 */
:root {
  --bg: #f2f3f7;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #8a919f;
  --primary: #4f6ef7;
  --gold: #f0a63a;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }

/* 顶栏 */
.topbar { background: #fff; border-bottom: 1px solid #e8eaf0; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 56px; }
.brand { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.brand-logo { background: linear-gradient(135deg, #4f6ef7, #8b5cf6); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 14px; }
.topnav { display: flex; gap: 20px; flex: 1; }
.topnav a { color: #4b5563; font-size: 15px; }
.topnav a:hover { color: var(--primary); }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.user-chip { font-size: 14px; color: #4b5563; }
.vip-badge { font-style: normal; background: linear-gradient(135deg, #f7c877, #f0a63a); color: #fff; border-radius: 4px; font-size: 11px; padding: 1px 6px; margin-left: 6px; }

/* 布局：全宽，侧栏 + 主区 */
.layout { display: flex; gap: 20px; padding: 20px 24px; align-items: flex-start; }
.sidebar { width: 260px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 72px; }
.main { flex: 1; min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; }
.side-user .avatar-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e5e7eb; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #6b7280; }
.member-box { margin-top: 12px; background: linear-gradient(135deg, #fdf3e3, #fbe8c8); border-radius: 10px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #8a5a12; }
.member-box.member-on { background: linear-gradient(135deg, #e8f7ee, #d3f0de); color: #1c7c46; display: block; }
.side-recent h3 { font-size: 14px; color: #4b5563; margin-bottom: 12px; }
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.recent-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; text-align: center; }
.recent-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70px; }

/* 按钮 */
.btn { display: inline-block; border: none; border-radius: 8px; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: .15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #3d5ce0; }
.btn-ghost { background: transparent; color: #4b5563; }
.btn-ghost:hover { background: #f0f1f5; }
.btn-gold { background: linear-gradient(135deg, #f7c877, #f0a63a); color: #fff; white-space: nowrap; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* 分区与工具卡片网格 */
.section-title { font-size: 16px; font-weight: 600; margin: 24px 0 12px; }
.section-title:first-child { margin-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; transition: .15s; position: relative; }
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31, 35, 41, .08); }
.tool-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.icon-blue { background: #e3ecff; } .icon-purple { background: #ece7ff; } .icon-green { background: #ddf5e6; }
.icon-red { background: #ffe4e0; } .icon-orange { background: #ffefdb; } .icon-cyan { background: #dcf3f7; }
.tool-info h4 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tool-info p { font-size: 12px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dot-new::after { content: ""; width: 6px; height: 6px; background: #f04438; border-radius: 50%; display: inline-block; }
.tag-member { background: #fdf3e3; color: #b07414; font-size: 11px; border-radius: 4px; padding: 1px 6px; }

/* 推荐横幅 */
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.banner { border-radius: var(--radius); padding: 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.banner h4 { font-size: 17px; } .banner p { font-size: 13px; opacity: .9; margin-top: 6px; }
.banner-green { background: linear-gradient(135deg, #b7e4c7, #8fd6ae); color: #14532d; }
.banner-purple { background: linear-gradient(135deg, #d8ccf9, #c1aef5); color: #3b2a78; }
.banner-red { background: linear-gradient(135deg, #ffd3cc, #ffb4a8); color: #7c2d12; }

/* 表单页 */
.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-wrap .card { padding: 28px; }
.auth-wrap h2 { margin-bottom: 20px; font-size: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d7dbe4; border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid rgba(79, 110, 247, .3); border-color: var(--primary); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 套餐卡 */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan-card { background: #fff; border-radius: var(--radius); padding: 24px; position: relative; border: 2px solid transparent; }
.plan-card.hot { border-color: var(--primary); }
.plan-tag { position: absolute; top: -12px; right: 16px; background: var(--primary); color: #fff; font-size: 12px; border-radius: 6px; padding: 2px 10px; }
.plan-name { font-size: 16px; font-weight: 600; }
.plan-price { font-size: 30px; font-weight: 700; margin: 12px 0; color: var(--primary); }
.plan-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan-benefits { list-style: none; font-size: 13px; color: #4b5563; margin-bottom: 20px; }
.plan-benefits li { padding: 4px 0; }
.plan-benefits li::before { content: "✓ "; color: #16a34a; }

/* 支付页 */
.pay-gateways { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.gw-btn { border: 2px solid #e5e7eb; border-radius: 10px; padding: 12px 22px; cursor: pointer; background: #fff; font-size: 15px; }
.gw-btn.active { border-color: var(--primary); color: var(--primary); }
.qr-box { text-align: center; padding: 20px; }
.qr-box img { width: 220px; height: 220px; }

/* 工具使用页 */
.tool-page { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-page .card { padding: 20px; }
.tool-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.tool-head .tool-icon { width: 52px; height: 52px; font-size: 24px; }
.ai-output { min-height: 260px; white-space: pre-wrap; font-size: 14px; line-height: 1.8; color: #374151; }
.typing::after { content: "▍"; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* 模板库列表 */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tpl-card { background: #fff; border-radius: var(--radius); padding: 18px; }
.tpl-card h4 { font-size: 15px; } .tpl-card p { font-size: 12px; color: var(--muted); margin: 8px 0 12px; min-height: 32px; }
.tpl-cat { font-size: 11px; color: var(--primary); background: #eef2ff; border-radius: 4px; padding: 1px 8px; white-space: nowrap; }

/* 模板使用页：左填信息 + 右成品全文 */
.tpl-use { display: flex; flex-direction: column; gap: 14px; }
.tpl-use-head { display: flex; align-items: center; gap: 12px; }
.tpl-use-body { display: grid; grid-template-columns: 380px 1fr; gap: 14px; align-items: start; }
.tpl-side { position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow-y: auto; }
.tpl-side-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.more-vars { margin-top: 6px; border-top: 1px dashed #e5e7eb; padding-top: 10px; }
.more-vars summary { cursor: pointer; font-size: 13px; color: var(--primary); margin-bottom: 10px; }
.ai-box { margin-top: 18px; border-top: 1px dashed #e5e7eb; padding-top: 14px; }
.ai-box textarea { width: 100%; border: 1px solid #d7dbe4; border-radius: 8px; padding: 10px 12px; font-size: 13px; resize: vertical; margin-bottom: 10px; }
.ai-box textarea:focus { outline: 2px solid rgba(79,110,247,.3); border-color: var(--primary); }
.tpl-doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid #f0f1f5; padding-bottom: 10px; margin-bottom: 12px; font-size: 13px; }
.tpl-doc-actions { display: flex; gap: 6px; }
.tpl-doc-body { max-height: calc(100vh - 220px); overflow-y: auto; font-size: 14px; line-height: 2; }

/* 后台 */
.admin-wrap { display: flex; gap: 20px; padding: 20px 24px; }
.admin-side { width: 200px; flex-shrink: 0; }
.admin-side a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: #4b5563; margin-bottom: 4px; }
.admin-side a:hover, .admin-side a.on { background: #e8ecff; color: var(--primary); }
.admin-main { flex: 1; min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; }
.stat-card b { font-size: 26px; display: block; margin-top: 6px; }
table.tbl { width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f1f5; }
table.tbl th { background: #fafbfc; color: #6b7280; font-weight: 600; }
table.tbl tr:last-child td { border-bottom: none; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.badge { font-size: 11px; border-radius: 4px; padding: 2px 8px; }
.badge-ok { background: #e8f7ee; color: #16a34a; } .badge-wait { background: #fff7e6; color: #b07414; }

.flash { background: #e8f7ee; color: #166534; padding: 10px 24px; font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 0; }

/* 响应式 */
@media (max-width: 1200px) {
  .tool-grid, .tpl-grid, .banner-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .tpl-use-body { grid-template-columns: 1fr; }
  .tpl-side { position: static; max-height: none; }
  .tpl-doc-body { max-height: none; }
}
@media (max-width: 860px) {
  .layout { flex-direction: column; padding: 12px; }
  .sidebar { width: 100%; position: static; flex-direction: row; }
  .sidebar .card { flex: 1; }
  .side-recent { display: none; }
  .tool-page { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; display: flex; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .tool-grid, .tpl-grid, .banner-grid, .plan-grid, .stat-grid { grid-template-columns: 1fr; }
  .sidebar { flex-direction: column; }
}

/* ===== 纯前端本地工具（tools.js）界面 ===== */
#ct-root { display: block; grid-column: 1 / -1; }
.ct-card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ct-title { font-size: 15px; margin-bottom: 12px; color: var(--text); }
.ct-body { display: flex; flex-direction: column; gap: 10px; }
.ct-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ct-row .btn { padding: 7px 14px; font-size: 13px; }
.ct-label { font-size: 13px; color: #4b5563; font-weight: 600; }
.ct-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.ct-inp, .ct-sel { border: 1px solid #d7dbe3; border-radius: 8px; padding: 8px 10px; font-size: 14px; background: #fff; color: var(--text); }
.ct-ta { width: 100%; border: 1px solid #d7dbe3; border-radius: 8px; padding: 10px; font-size: 14px; line-height: 1.7; font-family: inherit; resize: vertical; min-height: 90px; background: #fff; }
.ct-range { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #4b5563; }
.ct-range input[type=range] { flex: 1; accent-color: var(--primary); }
.ct-sl-val { min-width: 52px; text-align: right; color: var(--primary); font-weight: 600; }
.ct-out { background: #f7f8fb; border: 1px solid #e6e8ef; border-radius: 8px; padding: 12px; min-height: 60px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; }
.ct-prev { background: #f7f8fb; border: 1px dashed #d7dbe3; border-radius: 8px; padding: 10px; min-height: 60px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ct-prev canvas, .ct-prev img { max-width: 100%; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.ct-grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
.ct-grid9 canvas { width: 100%; height: auto; border-radius: 4px; }
.ct-list { display: flex; flex-direction: column; gap: 6px; }
.ct-list-row { display: flex; gap: 6px; align-items: center; background: #f7f8fb; border-radius: 8px; padding: 6px 10px; font-size: 13px; flex-wrap: wrap; }
.ct-list-row .btn { padding: 3px 10px; font-size: 12px; }
.ct-diff .ct-same { color: #6b7280; }
.ct-diff .ct-add { color: #15803d; background: #ecfdf5; }
.ct-diff .ct-del { color: #b91c1c; background: #fef2f2; }
.ct-diff > div { padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; }
@media (max-width: 640px) {
  .ct-range { flex-wrap: wrap; }
  .ct-grid9 { gap: 2px; }
}
/* ===== v2 工具工作台 UI ===== */
#ct-root { grid-column: 1 / -1; display: block; }
.wpanel { background: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(30,40,60,.05); }
.wpanel-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.wpanel-h h4 { font-size: 15px; font-weight: 700; }
.wpanel-sub { font-size: 12px; color: var(--muted); }
.wpanel-b { display: flex; flex-direction: column; gap: 12px; }
.wrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wbtn { border: none; border-radius: 9px; padding: 9px 18px; font-size: 13.5px; cursor: pointer; transition: .15s; font-weight: 500; }
.wbtn.pri { background: var(--primary); color: #fff; }
.wbtn.pri:hover { background: #3d5ce0; transform: translateY(-1px); }
.wbtn.big { width: 100%; padding: 12px; font-size: 15px; border-radius: 10px; }
.wbtn.ghost { background: #f1f3f7; color: #4b5563; }
.wbtn.ghost:hover { background: #e6e9f0; }
.wbtn.danger { background: #fdecec; color: #c0392b; }
.wbtn.sm { padding: 5px 12px; font-size: 12.5px; }
.wbtn.seg { flex: 1; background: #f1f3f7; color: #6b7280; border-radius: 8px; }
.wbtn.seg.on { background: #e8ecff; color: var(--primary); font-weight: 600; }
.wfld { display: flex; flex-direction: column; gap: 6px; }
.wfld label { font-size: 12.5px; color: #6b7280; }
.winp, .wsel, .wta { border: 1px solid #e2e5ec; border-radius: 9px; padding: 9px 12px; font-size: 13.5px; background: #fbfcfe; color: var(--text); font-family: inherit; }
.winp:focus, .wsel:focus, .wta:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,110,247,.12); background: #fff; }
.wta { width: 100%; line-height: 1.7; resize: vertical; min-height: 90px; }
.wrng { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #6b7280; }
.wrng label { min-width: 72px; }
.wrng input[type=range] { flex: 1; accent-color: var(--primary); height: 4px; }
.wrng b { min-width: 52px; text-align: right; color: var(--primary); font-size: 12.5px; }
.wdrop { border: 1.5px dashed #cdd3e0; border-radius: 12px; padding: 26px; text-align: center; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 6px; align-items: center; background: #fbfcfe; }
.wdrop:hover, .wdrop.over { border-color: var(--primary); background: #f2f5ff; }
.wdrop-ic { font-size: 26px; }
.wdrop-tx { font-size: 13.5px; color: #4b5563; }
.wdrop-hint { font-size: 12px; color: var(--muted); }
.wprev-wrap, .wout-wrap { display: flex; flex-direction: column; gap: 8px; }
.wprev-t { font-size: 12.5px; color: #6b7280; font-weight: 600; }
.wprev { background: #f7f8fb; border-radius: 12px; padding: 14px; min-height: 70px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.wprev canvas, .wprev img { max-width: 100%; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); background: #fff; }
.wout { background: #f7f8fb; border-radius: 12px; padding: 14px; min-height: 60px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; font-family: inherit; margin: 0; }
.wnote { font-size: 12px; color: var(--muted); line-height: 1.7; }
.wsub { font-size: 13.5px; font-weight: 700; margin-top: 8px; padding-top: 12px; border-top: 1px dashed #e6e9f0; }
.wgrid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
.wgrid9 canvas { width: 100%; height: auto; border-radius: 6px; }
.wlist { display: flex; flex-direction: column; gap: 8px; }
.wlist-row { display: flex; gap: 8px; align-items: center; background: #f7f8fb; border-radius: 10px; padding: 8px 12px; font-size: 13px; flex-wrap: wrap; }
.wlist-t { flex: 1; min-width: 160px; }
.wdiff > div { padding: 2px 8px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; margin-bottom: 2px; }
.wd-same { color: #6b7280; } .wd-add { color: #15803d; background: #ecfdf5; } .wd-del { color: #b91c1c; background: #fef2f2; }
.wstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.wstat { background: linear-gradient(160deg, #f4f6ff, #eef1fb); border-radius: 12px; padding: 14px 10px; text-align: center; }
.wstat b { display: block; font-size: 22px; color: var(--primary); }
.wstat span { font-size: 11.5px; color: var(--muted); }
.wmd-prev { background: #fff; border: 1px solid #eceff5; border-radius: 12px; padding: 16px 20px; font-size: 14px; line-height: 1.9; }
.wmd-prev h1, .wmd-prev h2, .wmd-prev h3 { margin: .8em 0 .4em; }
.wmd-prev pre { background: #f6f8fa; padding: 10px; border-radius: 8px; overflow-x: auto; }
.wmd-prev code { background: #f6f8fa; padding: 1px 5px; border-radius: 4px; }
/* 番茄钟 */
.wpomo { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }
.wpomo-dial { position: relative; width: 220px; height: 220px; }
.wpomo-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wp-bg { fill: none; stroke: #eef0f6; stroke-width: 10; }
.wp-fg { fill: none; stroke: var(--primary); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .5s linear; }
.wpomo-t { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 700; letter-spacing: 1px; }
.wpomo-p { position: absolute; left: 0; right: 0; bottom: 46px; text-align: center; font-size: 13px; color: var(--muted); }
.wpomo-info { font-size: 13px; color: #6b7280; }
/* 记事本 */
.wnote-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 14px; min-height: 320px; }
.wnote-list { display: flex; flex-direction: column; gap: 8px; background: #f7f8fb; border-radius: 12px; padding: 12px; overflow-y: auto; max-height: 460px; }
.wnote-item { background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; border: 1.5px solid transparent; }
.wnote-item.on { border-color: var(--primary); }
.wnote-t { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wnote-d { font-size: 11px; color: var(--muted); }
.wnote-body { min-height: 300px; }
/* 图表工作室 */
.wstudio { display: grid; grid-template-columns: 190px 1fr 268px; gap: 16px; align-items: start; }
.wrail { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 10px rgba(30,40,60,.05); }
.wrail-t { font-size: 12px; color: var(--muted); padding: 4px 10px 10px; }
.wrail-i { display: flex; align-items: center; gap: 10px; width: 100%; border: none; background: transparent; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: #4b5563; cursor: pointer; text-align: left; margin-bottom: 2px; }
.wrail-i:hover { background: #f4f6fb; }
.wrail-i.on { background: #e8ecff; color: var(--primary); font-weight: 600; }
.wrail-ic { width: 30px; height: 30px; border-radius: 8px; background: #e6f6ec; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.wmid { background: #eef0f4; border-radius: 14px; padding: 18px; position: relative; min-height: 480px; display: flex; flex-direction: column; }
.wzoom { position: absolute; top: 14px; right: 14px; background: #fff; border-radius: 9px; padding: 4px 8px; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.wzoom b { font-size: 12.5px; min-width: 40px; text-align: center; color: #4b5563; }
.wzoom .wbtn { padding: 3px 9px; }
.wcanvas { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; }
.wchart { width: 100%; height: 460px; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.07); border-radius: 4px; transition: width .2s; }
.wside { background: #fff; border-radius: 14px; padding: 8px 14px 16px; box-shadow: 0 2px 10px rgba(30,40,60,.05); max-height: 640px; overflow-y: auto; }
.acc { border-bottom: 1px solid #f0f2f6; }
.acc-h { display: flex; align-items: center; gap: 8px; padding: 13px 2px; cursor: pointer; user-select: none; }
.acc-t { font-size: 13.5px; font-weight: 700; flex: 1; }
.acc-badge { font-style: normal; background: #fdf0dc; color: #b07414; font-size: 11px; border-radius: 5px; padding: 1px 7px; }
.acc-ar { width: 8px; height: 8px; border-right: 1.6px solid #9aa2b1; border-bottom: 1.6px solid #9aa2b1; transform: rotate(45deg); transition: .2s; }
.acc.open .acc-ar { transform: rotate(-135deg); }
.acc-b { display: none; flex-direction: column; gap: 10px; padding: 2px 2px 14px; }
.acc.open .acc-b { display: flex; }
.wswitch { position: relative; width: 40px; height: 22px; }
.wswitch input { opacity: 0; width: 0; height: 0; }
.wswitch i { position: absolute; inset: 0; background: #dfe3ea; border-radius: 22px; transition: .2s; cursor: pointer; }
.wswitch i::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.wswitch input:checked + i { background: var(--primary); }
.wswitch input:checked + i::after { left: 20px; }
.wdl-row { display: flex; gap: 8px; margin: 14px 0 10px; }
.wdata { }
.wdata-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.wdata-h h4 { font-size: 14.5px; }
.wdata-h p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wdata-ic { width: 36px; height: 36px; border-radius: 10px; background: #e6f6ec; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.wdata-btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.wdata-ta { min-height: 140px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
/* toast */
.toast-wrap { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: rgba(31,35,41,.92); color: #fff; border-radius: 10px; padding: 10px 22px; font-size: 13.5px; box-shadow: 0 6px 24px rgba(0,0,0,.18); animation: tin .25s ease; }
.toast.warn { background: #b07414; }
.toast.err { background: #c0392b; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }
/* 对话式 AI 助手 */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 240px); min-height: 420px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 6px 2px; display: flex; flex-direction: column; gap: 14px; }
.chat-line { display: flex; gap: 10px; max-width: 86%; }
.chat-line.me { align-self: flex-end; flex-direction: row-reverse; }
.chat-ava { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #4f6ef7, #8b5cf6); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.chat-line.me .chat-ava { background: #e8ecff; color: var(--primary); }
.chat-bub { background: #f2f4f8; border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.chat-line.me .chat-bub { background: #e8ecff; }
.chat-bub.typing::after { content: "▍"; animation: blink 1s infinite; }
.chat-bar { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid #eef0f4; align-items: flex-end; }
.chat-bar textarea { flex: 1; border: 1px solid #e2e5ec; border-radius: 12px; padding: 10px 14px; font-size: 14px; resize: none; height: 62px; font-family: inherit; background: #fbfcfe; }
.chat-bar textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.chat-tips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chat-tip { border: 1px solid #e2e5ec; background: #fff; border-radius: 20px; padding: 6px 14px; font-size: 12.5px; color: #4b5563; cursor: pointer; }
.chat-tip:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 1080px) {
  .wstudio { grid-template-columns: 1fr; }
  .wrail { display: flex; gap: 6px; overflow-x: auto; }
  .wrail-t { display: none; }
  .wrail-i { white-space: nowrap; width: auto; }
  .wnote-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrng { flex-wrap: wrap; }
  .chat-line { max-width: 96%; }
}
/* ===== v3 全站视觉升级：设计令牌 + 组件精修（追加覆盖） ===== */
:root {
  --bg: #f0f2f8;
  --card: #ffffff;
  --text: #1a1f2e;
  --muted: #7c8496;
  --primary: #4f6ef7;
  --primary-deep: #3b57d9;
  --gold: #f0a63a;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(23,32,61,.06), 0 1px 2px rgba(23,32,61,.04);
  --shadow-md: 0 4px 16px rgba(23,32,61,.08);
  --shadow-lg: 0 12px 32px rgba(23,32,61,.12);
  --grad-primary: linear-gradient(135deg, #5b7cfa 0%, #7c5cf7 100%);
  --grad-gold: linear-gradient(135deg, #f9c66b 0%, #ef9a2e 100%);
}
body { background: radial-gradient(1200px 500px at 10% -10%, #e3e9ff 0%, transparent 55%), radial-gradient(1000px 420px at 95% 0%, #efe6ff 0%, transparent 50%), var(--bg); }

/* 顶栏：毛玻璃质感 */
.topbar { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(23,32,61,.06); box-shadow: 0 1px 12px rgba(23,32,61,.05); }
.topbar-inner { height: 62px; max-width: 1720px; margin: 0 auto; }
.brand { font-size: 19px; letter-spacing: .3px; }
.brand-logo { background: var(--grad-primary); box-shadow: 0 4px 12px rgba(79,110,247,.35); padding: 4px 10px; border-radius: 10px; font-weight: 800; }
.topnav a { font-weight: 500; position: relative; padding: 6px 2px; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--grad-primary); transform: scaleX(0); transition: .2s; }
.topnav a:hover::after { transform: scaleX(1); }
.user-chip { background: #f1f3fa; border-radius: 20px; padding: 6px 14px; font-weight: 500; }

/* 卡片体系 */
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(23,32,61,.04); }
.side-user { background: linear-gradient(165deg, #ffffff 0%, #f6f8ff 100%); }
.avatar { background: var(--grad-primary); color: #fff !important; font-weight: 700; box-shadow: 0 4px 10px rgba(79,110,247,.3); }
.member-box { background: var(--grad-gold); color: #fff !important; box-shadow: 0 6px 18px rgba(240,166,58,.35); border-radius: 14px; }
.member-box.member-on { background: linear-gradient(135deg, #2fbf71, #1f9d55); box-shadow: 0 6px 18px rgba(47,191,113,.3); }
.member-box .btn-gold { background: rgba(255,255,255,.92); color: #b07414; font-weight: 700; box-shadow: none; }
.recent-item { border-radius: 10px; padding: 6px 2px; transition: .15s; }
.recent-item:hover { background: #f1f3fa; }

/* 工具卡片：悬浮微交互 */
.tool-card { border: 1px solid rgba(23,32,61,.04); box-shadow: var(--shadow-sm); overflow: hidden; }
.tool-card::before { content: ""; position: absolute; inset: 0; background: var(--grad-primary); opacity: 0; transition: .2s; pointer-events: none; border-radius: inherit; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(79,110,247,.25); }
.tool-card:hover .tool-icon { transform: scale(1.08) rotate(-4deg); }
.tool-icon { transition: .25s cubic-bezier(.34,1.56,.64,1); }
.tool-info h4 { font-size: 15.5px; letter-spacing: .2px; }
.icon-blue { background: linear-gradient(145deg, #e8eeff, #dbe4ff); box-shadow: inset 0 1px 0 #fff; }
.icon-purple { background: linear-gradient(145deg, #efeaff, #e2d9ff); box-shadow: inset 0 1px 0 #fff; }
.icon-green { background: linear-gradient(145deg, #e2f7ea, #d0f0dc); box-shadow: inset 0 1px 0 #fff; }
.icon-red { background: linear-gradient(145deg, #ffe9e5, #ffd9d2); box-shadow: inset 0 1px 0 #fff; }
.icon-orange { background: linear-gradient(145deg, #fff2dd, #ffe7c4); box-shadow: inset 0 1px 0 #fff; }
.icon-cyan { background: linear-gradient(145deg, #e0f4f8, #cdf0f6); box-shadow: inset 0 1px 0 #fff; }
.tag-member { background: var(--grad-gold); color: #fff; box-shadow: 0 2px 6px rgba(240,166,58,.4); font-weight: 600; }

/* 推荐横幅：更大气 */
.banner { border-radius: 18px; box-shadow: var(--shadow-md); transition: .2s; padding: 24px; }
.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.banner h4 { font-size: 19px; letter-spacing: .5px; }
.banner p { margin-top: 8px; }
.banner-green { background: linear-gradient(135deg, #c9ecd6 0%, #93dcb3 60%, #7ad3a1 100%); }
.banner-purple { background: linear-gradient(135deg, #ddd2fb 0%, #c2abf6 60%, #b196f2 100%); }
.banner-red { background: linear-gradient(135deg, #ffdcd4 0%, #ffb9ac 60%, #ffa898 100%); }

/* 按钮体系 */
.btn { border-radius: 10px; font-weight: 500; letter-spacing: .2px; }
.btn-primary { background: var(--grad-primary); box-shadow: 0 4px 12px rgba(79,110,247,.3); }
.btn-primary:hover { background: var(--grad-primary); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79,110,247,.4); }
.btn-gold { background: var(--grad-gold); box-shadow: 0 4px 12px rgba(240,166,58,.35); }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost:hover { background: #eef0f8; }
.btn-danger { background: #fdecec; color: #c0392b; }
.btn-danger:hover { background: #fbdcdc; }

/* 表单 */
.field input, .field select, .field textarea { border-radius: 10px; border: 1px solid #e2e5ee; background: #fbfcfe; transition: .15s; padding: 10px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,110,247,.12); background: #fff; }

/* 分区标题 */
.section-title { font-size: 18px; font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 5px; height: 20px; border-radius: 4px; background: var(--grad-primary); }

/* 套餐卡 */
.plan-card { border-radius: 18px; box-shadow: var(--shadow-sm); transition: .2s; border: 2px solid transparent; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.hot { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-primary) border-box; box-shadow: 0 10px 28px rgba(79,110,247,.18); }
.plan-price { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.plan-tag { background: var(--grad-primary); box-shadow: 0 4px 10px rgba(79,110,247,.35); border-radius: 8px; }

/* 表格 */
table.tbl { border-radius: 14px; box-shadow: var(--shadow-sm); }
table.tbl th { background: #f7f8fc; font-size: 12.5px; text-transform: none; letter-spacing: .3px; }
table.tbl td { padding: 12px; }
table.tbl tr:hover td { background: #fafbff; }
.badge { font-weight: 600; border-radius: 6px; }

/* 后台侧栏 */
.admin-side { border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 10px; }
.admin-side a { border-radius: 10px; font-weight: 500; padding: 11px 14px; }
.admin-side a.on { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px rgba(79,110,247,.3); }
.admin-side a:hover:not(.on) { background: #f1f3fa; }
.stat-card { border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 3px solid var(--primary); }
.stat-card:nth-child(2) { border-top-color: #2fbf71; }
.stat-card:nth-child(3) { border-top-color: #f0a63a; }
.stat-card:nth-child(4) { border-top-color: #e05252; }
.stat-card b { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 登录/注册卡 */
.auth-wrap .card { border-radius: 20px; box-shadow: var(--shadow-lg); background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%); }
.auth-wrap h2 { font-size: 22px; letter-spacing: .5px; }

/* 支付通道按钮 */
.gw-btn { border-radius: 12px; transition: .15s; box-shadow: var(--shadow-sm); }
.gw-btn.active { border-color: var(--primary); background: #f2f5ff; box-shadow: 0 4px 14px rgba(79,110,247,.18); }

/* 工具页头部 */
.tool-head { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tool-head .tool-icon { width: 56px; height: 56px; font-size: 26px; border-radius: 14px; box-shadow: var(--shadow-sm); }

/* 聊天 */
.chat-ava { border-radius: 12px; box-shadow: 0 3px 8px rgba(79,110,247,.3); }
.chat-bub { border-radius: 14px; box-shadow: var(--shadow-sm); }
.chat-line.me .chat-bub { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px rgba(79,110,247,.25); }
.chat-line.me .chat-ava { background: #eef0fa; color: var(--primary); box-shadow: none; }
.chat-tip { transition: .15s; }
.chat-tip:hover { background: #f2f5ff; transform: translateY(-1px); }

/* 页脚 */
.footer { margin-top: 30px; border-top: 1px solid rgba(23,32,61,.05); background: rgba(255,255,255,.5); }

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9cede; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aab2c8; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* 选中文本 */
::selection { background: rgba(79,110,247,.18); }

/* 工作台面板跟随升级 */
.wpanel { border-radius: 18px; box-shadow: var(--shadow-sm); border: 1px solid rgba(23,32,61,.04); }
.wbtn.pri { background: var(--grad-primary); box-shadow: 0 3px 10px rgba(79,110,247,.28); }
.wbtn.pri:hover { filter: brightness(1.06); transform: translateY(-1px); }
.wbtn.ghost:hover { background: #e8ebf3; }
.wdrop { border-radius: 14px; background: linear-gradient(180deg, #fbfcff, #f4f6fc); }
.wout { border-radius: 12px; background: #f8f9fc; }
.wout.werr { background: #fff5f5; color: #b91c1c; }
.wstat { background: linear-gradient(160deg, #f6f8ff, #eef1fb); }
.wstat b { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wrail, .wside { border-radius: 18px; box-shadow: var(--shadow-sm); }
.wrail-i.on { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px rgba(79,110,247,.3); }
.wrail-i.on .wrail-ic { background: rgba(255,255,255,.2); }
.wmid { border-radius: 18px; background: #e9ebf2; }
.wchart { border-radius: 8px; }
.wchecks { display: flex; gap: 14px; flex-wrap: wrap; }
.wcheck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #4b5563; cursor: pointer; }
.wcheck input { accent-color: var(--primary); width: 15px; height: 15px; }
.wcolor { width: 100%; height: 44px; border: none; border-radius: 10px; cursor: pointer; background: none; }
.winp, .wsel, .wta { border-radius: 10px; }/* ===== 站长工具结果表与原文块 ===== */
.wtable { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.wtable th, .wtable td { border: 1px solid #e6e9f0; padding: 7px 10px; text-align: left; vertical-align: top; word-break: break-all; }
.wtable th { background: #f6f8fc; font-weight: 600; color: #4b5563; white-space: nowrap; width: 130px; }
.wpre { background: #0f172a; color: #d8e3f5; border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.65; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin-top: 8px; max-height: 420px; overflow-y: auto; }
.banner-orange { background: linear-gradient(135deg, #fff4e3, #ffe3c0); color: #92400e; }
.banner-orange:hover { box-shadow: 0 10px 26px rgba(240,140,40,.22); }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.wchip { background: #eef2ff; color: #4353c9; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
/* ===== 分类目录页 ===== */
.cat-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; margin-bottom: 16px; background: linear-gradient(120deg, #fff 0%, #f4f7ff 60%, #eef1fd 100%); border: 1px solid rgba(79,110,247,.12); flex-wrap: wrap; }
.cat-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cat-hero-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--grad-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 27px; flex-shrink: 0; box-shadow: 0 6px 18px rgba(79,110,247,.32); }
.cat-hero h2 { font-size: 21px; font-weight: 700; letter-spacing: .3px; }
.cat-hero p { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.7; max-width: 760px; }
.cat-hero-cnt { background: #fff; border-radius: 999px; padding: 8px 18px; font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow-sm); white-space: nowrap; }
.cat-hero-cnt b { color: var(--primary); font-size: 16px; margin-right: 2px; }
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-nav-i { background: #fff; border: 1px solid rgba(23,32,61,.07); border-radius: 999px; padding: 7px 16px; font-size: 13px; color: #4b5563; transition: .15s; box-shadow: var(--shadow-sm); }
.cat-nav-i:hover { border-color: rgba(79,110,247,.4); color: var(--primary); background: #f6f8ff; transform: translateY(-1px); }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 640px) {
  .cat-hero { padding: 16px; }
  .cat-hero-ic { width: 46px; height: 46px; font-size: 22px; border-radius: 13px; }
  .cat-hero h2 { font-size: 18px; }
}
/* ===== 开发工具新组件 ===== */
.wborder-prev { background: repeating-conic-gradient(#f4f5f9 0% 25%, #fff 0% 50%) 50% / 18px 18px; border: 3px dashed #4f6ef7; border-radius: 8px; padding: 34px 16px; text-align: center; color: #6b7280; font-size: 13px; }
.wreg-vis { background: #f7f8fb; border-radius: 12px; padding: 14px; overflow-x: auto; }
.wreg-track { display: flex; align-items: stretch; gap: 0; }
.wreg-node { background: #fff; border: 1px solid #e2e5ee; border-radius: 10px; padding: 8px 12px; min-width: 74px; text-align: center; flex-shrink: 0; }
.wreg-node b { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.wreg-node span { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #2c3548; margin-top: 3px; word-break: break-all; }
.wreg-node.group { border-color: rgba(79,110,247,.45); background: #f2f5ff; }
.wreg-node.quant { border-color: rgba(240,166,58,.55); background: #fff8ec; }
.wreg-node.class { border-color: rgba(52,168,102,.45); background: #f0faf4; }
.wreg-node.anchor { border-color: rgba(224,82,82,.45); background: #fff5f5; }
.wreg-line { width: 22px; height: 2px; background: #c9cede; align-self: center; flex-shrink: 0; border-radius: 2px; }
.wreg-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.wreg-lib-i { background: #f7f8fb; border: 1px solid #e8eaf1; border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: .15s; }
.wreg-lib-i:hover { border-color: rgba(79,110,247,.4); background: #f2f5ff; transform: translateY(-1px); }
.wreg-lib-i b { display: block; font-size: 12.5px; margin-bottom: 4px; }
.wreg-lib-i code { font-size: 11px; color: #4b5563; word-break: break-all; font-family: ui-monospace, Consolas, monospace; }
.wreg-lib-i .wnote { font-size: 11.5px; margin: 0; }
.wfold summary { cursor: pointer; font-size: 13px; color: var(--primary); padding: 8px 0; }
.wfold .wpre { max-height: 260px; }
/* 顶栏菜单在中等宽度下压缩间距，避免五项拥挤 */
@media (max-width: 1180px) { .topnav { gap: 14px; } .topnav a { font-size: 14px; } .topbar-inner { gap: 14px; } }
/* ===== 首页大类彩色横幅调色板（12 色循环） ===== */
.bn-orange { background: linear-gradient(135deg, #ffe9d2, #ffd6ac); color: #92400e; }
.bn-blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1e40af; }
.bn-teal   { background: linear-gradient(135deg, #ccfbf1, #a7f3d0); color: #0f766e; }
.bn-pink   { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #9d174d; }
.bn-indigo { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; }
.bn-lime   { background: linear-gradient(135deg, #ecfccb, #d9f99d); color: #4d7c0f; }
.bn-rose   { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #9f1239; }
.bn-sky    { background: linear-gradient(135deg, #e0f2fe, #bae6fd); color: #075985; }
.bn-amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.bn-violet { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #5b21b6; }
.bn-mint   { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #065f46; }
.bn-coral  { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #9a3412; }
.banner p { color: inherit; opacity: .85; }
/* ===== 侧栏广告位 ===== */
.side-ads { display: flex; flex-direction: column; gap: 14px; }
.side-ad { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(23,32,61,.04); padding: 12px; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.side-ad img { display: block; }
.side-ad-txt { display: block; font-size: 13px; line-height: 1.8; color: #4b5563; text-align: center; padding: 8px 4px; }
/* ===== 智能工具 ===== */
.sm-draw-box { background: #f7f8fb; border-radius: 12px; padding: 14px; min-height: 120px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; }
.sm-draw-img { max-width: 100%; max-height: 520px; border-radius: 12px; box-shadow: var(--shadow-md); }
.sm-map-box { width: 100%; height: 480px; background: #fff; border: 1px solid #e8eaf1; border-radius: 12px; }
.sm-pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sm-pal-card { background: #fff; border: 1px solid #e8eaf1; border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.sm-pal-card b { display: block; font-size: 12.5px; margin: 8px 0 6px; }
.sm-pal-band { display: flex; height: 56px; border-radius: 8px; overflow: hidden; }
.sm-pal-band span { flex: 1; }
.sm-pal-codes { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.sm-pal-codes code { font-size: 10.5px; background: #f1f3f7; border-radius: 5px; padding: 2px 6px; cursor: pointer; }
.sm-pal-codes code:hover { background: #e3e8ff; color: var(--primary); }
/* ===== 模板彩色主题选择色带 ===== */
.theme-band { display: flex; gap: 10px; align-items: center; }
.theme-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: var(--tc, #1f2329); box-shadow: 0 0 0 1px rgba(31,35,41,.18); cursor: pointer; transition: transform .15s, box-shadow .15s; padding: 0; }
.theme-dot:hover { transform: scale(1.12); }
.theme-dot.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 35%, transparent); transform: scale(1.12); }
.tpl-doc-body { border-left: 4px solid #1f2329; padding-left: 14px; }.icon-pink { background: linear-gradient(145deg, #ffeaf2, #ffd9e6); box-shadow: inset 0 1px 0 #fff; }
/* ===== GEO 生成式引擎优化评估 ===== */
.geo-overview { margin: 4px 0 14px; }
.geo-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: linear-gradient(180deg,#fbfcff,#f4f6fd); border: 1px solid #e7eaf3; border-radius: 14px; padding: 18px 20px; }
.geo-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.geo-ring svg { display: block; }
.geo-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.geo-ring-txt b { font-size: 30px; line-height: 1; font-weight: 800; }
.geo-ring-txt span { font-size: 11px; color: var(--muted); margin-top: 4px; }
.geo-meta { flex: 1; min-width: 240px; }
.geo-url { font-size: 13px; color: var(--primary); font-weight: 600; word-break: break-all; margin-bottom: 10px; }
.geo-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.geo-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 9px; border-radius: 20px; background: #fff; border: 1px solid #e4e7ef; color: #374151; }
.geo-badge i { font-style: normal; font-weight: 700; }
.geo-badge.ok { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.geo-badge.no { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.geo-badge em { font-style: normal; opacity: .72; font-size: 11px; }
.geo-robots { margin-top: 12px; }
.geo-pill { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 20px; }
.geo-pill.ok { background: #ecfdf5; color: #15803d; }
.geo-pill.warn { background: #fffbeb; color: #b45309; }
.geo-pill.no { background: #fef2f2; color: #b91c1c; }
.geo-report { background: #fff; border: 1px solid #e9ebf2; border-radius: 14px; padding: 20px 22px; min-height: 60px; font-size: 14px; line-height: 1.85; }
.geo-report:empty { display: none; }
.geo-loading { color: var(--muted); font-size: 13.5px; padding: 8px 0; }
.geo-err { color: #b91c1c; font-size: 13.5px; }
.geo-report h1, .geo-report h2, .geo-report h3 { margin: 18px 0 8px; line-height: 1.4; }
.geo-report h1 { font-size: 19px; } .geo-report h2 { font-size: 17px; border-left: 4px solid var(--primary); padding-left: 10px; }
.geo-report h3 { font-size: 15px; }
.geo-report p { margin: 8px 0; }
.geo-report ul, .geo-report ol { margin: 8px 0 8px 22px; }
.geo-report li { margin: 4px 0; }
.geo-report table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.geo-report th, .geo-report td { border: 1px solid #e5e7eb; padding: 7px 10px; text-align: left; }
.geo-report th { background: #f6f7fb; font-weight: 600; }
.geo-report code { background: #f2f3f7; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.geo-report pre { background: #1f2430; color: #e6e8ee; padding: 14px; border-radius: 10px; overflow: auto; margin: 10px 0; }
.geo-report pre code { background: none; color: inherit; padding: 0; }
.geo-report blockquote { border-left: 3px solid #d7dbe3; margin: 10px 0; padding: 4px 14px; color: #6b7280; background: #fafbfc; }
@media (max-width: 640px) { .geo-head { gap: 14px; padding: 14px; } .geo-ring { transform: scale(.85); } }
/* ===== 登录/注册页：无侧栏居中 + 移动端适配 ===== */
.layout-bare { display: block; }
.layout-bare .main { width: 100%; }
.layout-bare .auth-wrap { max-width: 460px; margin: 48px auto; padding: 0 4px; }
.layout-bare .auth-wrap .card { padding: 34px 30px; }
.layout-bare .auth-wrap h2 { font-size: 24px; text-align: center; }
.layout-bare .auth-wrap .field input { font-size: 15px; padding: 12px 14px; }
.layout-bare .auth-wrap .btn-block { padding: 13px; font-size: 15px; }
@media (max-width: 640px) {
  .layout-bare { padding: 10px 12px; }
  .layout-bare .auth-wrap { margin: 20px auto; max-width: 100%; padding: 0; }
  .layout-bare .auth-wrap .card { padding: 26px 20px; border-radius: 16px; }
  .layout-bare .auth-wrap h2 { font-size: 22px; }
  .layout-bare .auth-wrap .field input { font-size: 16px; padding: 13px 14px; }  /* 16px 防 iOS 聚焦缩放 */
  .layout-bare .auth-wrap .btn-block { padding: 14px; font-size: 16px; }
}
@media (max-width: 380px) {
  .layout-bare .auth-wrap .card { padding: 22px 16px; }
}