/* ===== yq.qudong.com 舆情监控 · 全局样式 ===== */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --ink: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e5e7eb;
  --danger: #dc2626;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; }

/* 布局 */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(0 43 145 / 94%); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(148, 163, 184, .14); box-shadow: 0 6px 24px -12px rgb(0 49 255 / 60%); }
.site-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
/* 品牌锁版: logo 45px + 右侧站名 */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 45px; width: auto; }
.brand-logo--white { filter: brightness(0) invert(1); }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: .01em; color: #fff; line-height: 1; display:flex; flex-direction:column; }
.brand-name small { font-size: 10.5px; font-weight: 500; letter-spacing: .28em; color: #64748b; text-transform: uppercase; margin-top: 5px; }
.brand .dot, .brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563eb, #06b6d4); color: #fff; font-size: 17px;
  box-shadow: 0 8px 18px -6px rgba(37,99,235,.6);
}
.site-nav { display: flex; gap: 32px; }
.site-nav a { color: #cbd5e1; font-size: 14.5px; }
.site-nav a:hover { color: #7dd3fc; text-decoration: none; }
.site-actions { display: flex; gap: 10px; align-items: center; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.32); color: #e2e8f0; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-main { min-height: calc(100vh - 300px); }
/* 页脚 */
.site-footer { background: #0b1220; color: #cbd5e1; margin-top: 60px; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 36px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 6px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #38bdf8; text-decoration: none; }
.footer-brand p { color: #94a3b8; font-size: 13.5px; line-height: 1.8; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(148,163,184,.15); padding: 18px 0; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: #94a3b8; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #38bdf8; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.brand { font-size: 19px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); display: inline-block; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }

/* 按钮 */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; background: transparent;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-block { width: 100%; text-align: center; }

/* 落地页 */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: 38px; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto 28px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 30px 0; }
.feature { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature b { display: block; margin-bottom: 6px; font-size: 15px; }
.feature span { color: var(--muted); font-size: 13.5px; }

/* 价格 */
.pricing { padding: 20px 0 60px; }
.pricing h2 { text-align: center; margin-bottom: 26px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.card {
  border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.card.hot { border-color: var(--brand); box-shadow: 0 8px 30px rgba(37, 99, 235, .12); position: relative; }
.card .pname { font-size: 16px; font-weight: 700; }
.card .desc { color: var(--muted); font-size: 13px; min-height: 40px; }
.card .price { font-size: 30px; font-weight: 800; }
.card .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.card ul { list-style: none; padding: 0; margin: 6px 0; font-size: 13.5px; color: #374151; }
.card ul li { padding: 4px 0; }
.card .btn { margin-top: 12px; }

/* 表单 */
.auth-box { max-width: 400px; margin: 60px auto; }
.auth-box h1 { font-size: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: #374151; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--brand); }
.err { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.alert { border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.alert-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hint { color: var(--muted); font-size: 13px; }
.center { text-align: center; }

/* 面板 */
.panel-body { display: flex; min-height: calc(100vh - 60px); }
.panel-side { width: 220px; border-right: 1px solid var(--line); padding: 22px 14px; flex-shrink: 0; }
.panel-side .menu a {
  display: block; padding: 9px 12px; border-radius: 8px; color: #374151; font-size: 14px; margin-bottom: 4px;
}
.panel-side .menu a:hover { background: var(--bg-soft); text-decoration: none; }
.panel-side .menu a.on { background: #eff6ff; color: var(--brand-dark); font-weight: 600; }
.panel-main { flex: 1; padding: 26px 30px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.stat .num { font-size: 26px; font-weight: 800; }
.stat .lab { color: var(--muted); font-size: 13px; }
.stat.danger .num { color: var(--danger); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; }
.tag-neg { background: #fef2f2; color: #991b1b; }
.tag-pos { background: #f0fdf4; color: #166534; }
.tag-neu { background: #f1f5f9; color: #475569; }
.tag-unknown { background: #f1f5f9; color: #94a3b8; }
.tag-high { background: #fff7ed; color: #9a3412; }
.tag-crisis { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 表格/列表 */
.rows { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.row:last-child { border-bottom: 0; }
.row .meta { color: var(--muted); font-size: 12.5px; margin-top: 5px; display: flex; gap: 12px; flex-wrap: wrap; }
.row .t { font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.empty b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-head h1 { font-size: 22px; margin: 0; }
.badge { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; font-size: 12px; color: var(--muted); }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; color: var(--muted); font-size: 13px; }

/* ===== 认证页(登录/注册)独立风格: 清新浅色·消费端 ===== */
.auth-bg {
  min-height: 100vh;
  background: #f4f8ff;
  background-image:
    radial-gradient(900px 480px at 88% -10%, rgba(96, 165, 250, .30), transparent 60%),
    radial-gradient(760px 420px at -10% 108%, rgba(103, 232, 249, .28), transparent 55%),
    radial-gradient(560px 300px at 50% 120%, rgba(129, 140, 248, .18), transparent 60%);
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}
.auth-screen { width: 100%; max-width: 400px; position: relative; }
.auth-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-radius: 20px; border: 1px solid #e2ecfc;
  box-shadow: 0 24px 50px -22px rgba(30, 64, 175, .30), 0 4px 14px rgba(30,64,175,.06);
  padding: 34px 32px 26px;
}
.auth-card-top {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4 60%, #818cf8);
}
.auth-head { text-align: center; margin-bottom: 16px; }
.brand-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 24px; font-weight: 800; color: #0f172a; text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-lg:hover { text-decoration: none; }
.brand-lg::before { content: none; }
.auth-slogan { color: #5b6b85; font-size: 13.5px; margin-top: 6px; }
.auth-chips {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px dashed #dbe7fb;
}
.auth-chips .chip {
  font-size: 12px; color: #3b5b93; background: #eef5ff; border: 1px solid #d9e8fd;
  border-radius: 999px; padding: 4px 11px; line-height: 1.5;
}
.auth-card .field label { color: #334155; font-weight: 600; }
.auth-card .btn-primary {
  padding: 11px; font-size: 15px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0e9fcf);
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, .45);
}
.auth-foot { text-align: center; color: #8ea0c0; font-size: 12.5px; margin-top: 18px; }
.brand-logo { height: 45px; width: auto; display: inline-block; vertical-align: middle; }

/* ===== 自定义分页 ===== */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 20px 0; }
.pager .pg-btn, .pager .pg-num {
  min-width: 36px; padding: 7px 13px; text-align: center;
  border: 1px solid var(--line); border-radius: 8px;
  color: #334155; background: #fff; font-size: 13px; text-decoration: none;
  transition: all .15s;
}
.pager a.pg-btn:hover, .pager a.pg-num:hover { border-color: var(--brand); color: var(--brand); background: #eff6ff; }
.pager .pg-num.cur { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .pg-dots { padding: 7px 4px; color: var(--muted); }
.pager .disabled { opacity: .45; pointer-events: none; }
.brand-lg img { display: inline-block; }
.auth-alt { text-align: center; font-size: 13.5px; color: #64748b; margin-top: 18px; }
.auth-alt a { color: #2563eb; font-weight: 600; }
.auth-box { max-width: 100%; margin: 0; }
.auth-box h1 { display: none; }
