/* ============================================================
   查档云 · 站点样式
   参考 chadang.cc 的版式语言：白底卡片 + 红橙主色 + 四栏栅格
   ============================================================ */

:root {
  --red: #ff3636;
  --red-2: #ff6a3d;
  --grad: linear-gradient(135deg, #ff3636 0%, #ff8a3d 100%);
  --title: #1b2130;
  --text: #6b7386;
  --muted: #97a1b3;
  --bg: #f1f5f8;
  --card: #ffffff;
  --line: #e9eef4;
  --soft: #f7f9fc;
  --head-bg: rgba(255, 255, 255, .92);
  --shadow: 0 6px 22px rgba(24, 39, 75, .06);
  --shadow-lg: 0 14px 40px rgba(24, 39, 75, .13);
  --radius: 12px;
  --container: 1240px;
  --header-h: 68px;
}

[data-theme="dark"] {
  --title: #e8eef8;
  --text: #9aa8bd;
  --muted: #7b8798;
  --bg: #10141b;
  --card: #171d27;
  --line: #242c39;
  --soft: #1c2330;
  --head-bg: rgba(23, 29, 39, .9);
  --shadow: 0 6px 22px rgba(0, 0, 0, .34);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, .48);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--title); margin: 0; line-height: 1.45; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input { font-family: inherit; }
::selection { background: rgba(255, 54, 54, .18); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--head-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.stuck { box-shadow: 0 8px 26px rgba(24, 39, 75, .08); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 17px; color: var(--title); letter-spacing: .3px; white-space: nowrap; }
.brand-text i {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .6px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav a {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--title);
  white-space: nowrap;
  transition: .2s;
}
.nav a:hover { color: var(--red); background: rgba(255, 54, 54, .08); }
.nav a.active { color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(255, 74, 56, .32); }
.nav-tg { display: none !important; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: .2s;
}
.icon-btn:hover { color: var(--red); border-color: rgba(255, 54, 54, .35); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 74, 56, .28);
  transition: .22s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(255, 74, 56, .36); }
.btn.ghost {
  background: transparent;
  color: var(--title);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: rgba(255, 54, 54, .4); color: var(--red); }

.menu-btn { display: none; }

/* ---------------- 首屏 ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 58px;
  color: #fff;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(255, 74, 56, .38), transparent 62%),
    radial-gradient(760px 380px at 92% 10%, rgba(120, 90, 255, .30), transparent 60%),
    linear-gradient(135deg, #171d28 0%, #241c26 52%, #33191f 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 320px at 50% 20%, #000 20%, transparent 85%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #ffd9d1;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
}
.hero h1 {
  margin: 18px 0 12px;
  font-size: 40px;
  line-height: 1.28;
  letter-spacing: 1px;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #ff8a3d, #ff3636 60%, #ff8a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 15px; color: rgba(255, 255, 255, .74); letter-spacing: .3px; }

/* 搜索框 */
.search-shell {
  margin-top: 28px;
  max-width: 760px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 12px 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .34);
}
.search-tabs { display: flex; gap: 6px; padding: 2px 2px 10px; }
.search-tabs button {
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #6b7386;
  transition: .2s;
}
.search-tabs button:hover { color: var(--red); background: #fff2f1; }
.search-tabs button.on { color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(255, 74, 56, .28); }

.search-row { display: flex; gap: 10px; align-items: center; }
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  background: #f4f7fb;
  border: 1px solid transparent;
  transition: .2s;
}
.search-field:focus-within { background: #fff; border-color: rgba(255, 54, 54, .45); box-shadow: 0 0 0 4px rgba(255, 54, 54, .1); }
.search-field svg { flex: none; color: #97a1b3; }
.search-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: #1b2130;
}
.search-field input::placeholder { color: #a8b2c2; }
.search-row .btn { height: 50px; padding: 0 30px; border-radius: 12px; font-size: 15px; }

.hot-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.hot-row span { color: rgba(255, 255, 255, .55); }
.hot-row a {
  padding: 5px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: .2s;
}
.hot-row a:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* 信任条 */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 30px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .12);
}
.trust div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(4px);
}
.trust b { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }
.trust small { font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ---------------- 通用模块 ---------------- */
.section { padding: 36px 0 4px; }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .4px;
}
.sec-title::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: var(--grad);
}
.sec-title small { font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.more {
  flex: none;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: .2s;
}
.more:hover { color: var(--red); border-color: rgba(255, 54, 54, .38); box-shadow: 0 6px 16px rgba(255, 74, 56, .12); }

/* 卡片栅格 */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 54, 54, .22);
}
.card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .thumb img { transform: scale(1.05); }
.card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; }
.card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-desc {
  font-size: 12.8px;
  line-height: 1.72;
  color: var(--text);
  height: 3.44em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tag {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--red);
  background: rgba(255, 54, 54, .08);
  border-radius: 6px;
  padding: 2px 8px;
}

/* 补位卡片：用于填满不满行的栅格 */
.card-cta {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 200px;
  padding: 26px 22px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 54, 54, .38);
  background: linear-gradient(135deg, rgba(255, 54, 54, .07), rgba(255, 138, 61, .1));
  transition: .25s;
}
.card-cta:hover { border-color: rgba(255, 54, 54, .7); background: linear-gradient(135deg, rgba(255, 54, 54, .12), rgba(255, 138, 61, .16)); }
.card-cta b { font-size: 16px; color: var(--title); }
.card-cta span { font-size: 12.8px; color: var(--text); line-height: 1.7; }
.card-cta em {
  font-style: normal;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border-radius: 8px;
  padding: 6px 16px;
}

/* ---------------- 日报区 ---------------- */
.daily-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.daily-list { display: flex; flex-direction: column; gap: 14px; }
.daily-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: .25s;
}
.daily-item:hover { border-color: rgba(255, 54, 54, .22); box-shadow: var(--shadow-lg); }
.daily-item .thumb {
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--soft);
}
.daily-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.daily-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.daily-item h3 a:hover { color: var(--red); }
.daily-item p {
  font-size: 13px;
  line-height: 1.72;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.daily-meta { margin-top: 10px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; }

.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px 18px;
}
.panel h4 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.panel h4::before {
  content: "";
  width: 3px; height: 14px; border-radius: 2px; background: var(--grad);
}
.rank-list { display: flex; flex-direction: column; gap: 2px; counter-reset: r; }
.rank-list a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px dashed var(--line);
  transition: .2s;
}
.rank-list a:last-child { border-bottom: 0; }
.rank-list a:hover { color: var(--red); }
.rank-list a::before {
  counter-increment: r;
  content: counter(r);
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #c9d2df;
}
.rank-list a:nth-child(1)::before { background: #ff3636; }
.rank-list a:nth-child(2)::before { background: #ff7a3d; }
.rank-list a:nth-child(3)::before { background: #ffb020; }
.rank-list a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-cloud a {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--line);
  transition: .2s;
}
.pill-cloud a:hover { color: var(--red); border-color: rgba(255, 54, 54, .35); background: rgba(255, 54, 54, .06); }

.notice { font-size: 13px; line-height: 1.8; color: var(--text); }
.notice .btn { width: 100%; margin-top: 12px; }

/* ---------------- 页头（内页） ---------------- */
.page-head {
  padding: 34px 0 8px;
  background: linear-gradient(180deg, var(--card), transparent);
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: 12.8px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb a:hover { color: var(--red); }
.crumb i { font-style: normal; opacity: .55; }
.page-head h1 { font-size: 28px; margin: 12px 0 8px; }
.page-head .lead { font-size: 14px; color: var(--text); max-width: 820px; }
.page-head .meta-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.8px; color: var(--muted); margin-top: 12px; }
.page-head .meta-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- 详情页 ---------------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
  padding: 26px 0 0;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px 30px 30px;
}
.article-hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.article-hero img { width: 100%; height: auto; display: block; }
.prose p { font-size: 15px; line-height: 1.95; color: var(--text); margin: 14px 0; }
.prose h2,
.prose h3 {
  font-size: 19px;
  margin: 32px 0 12px;
  padding-left: 12px;
  position: relative;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h3 { font-size: 17px; }
.prose h2::before,
.prose h3::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  border-radius: 2px;
  background: var(--grad);
}
.prose ul { margin: 12px 0; padding-left: 20px; color: var(--text); font-size: 14.6px; line-height: 1.9; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--title); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 6px;
}
.field-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--title);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 13px;
}
.field-grid span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  opacity: .8;
}

/* 查询面板 */
.query-box {
  margin-top: 26px;
  padding: 20px 22px 22px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 54, 54, .38);
  background: linear-gradient(135deg, rgba(255, 54, 54, .06), rgba(255, 138, 61, .05));
}
[data-theme="dark"] .query-box { background: linear-gradient(135deg, rgba(255, 54, 54, .12), rgba(255, 138, 61, .06)); }
.query-box h2,
.query-box h3 { font-size: 17px; margin-bottom: 4px; }
.query-box .hint { font-size: 12.8px; color: var(--muted); margin-bottom: 14px; }
.query-form { display: flex; gap: 10px; flex-wrap: wrap; }
.query-form input {
  flex: 1;
  min-width: 220px;
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--title);
  font-size: 14.5px;
  outline: 0;
  transition: .2s;
}
.query-form input:focus { border-color: rgba(255, 54, 54, .45); box-shadow: 0 0 0 4px rgba(255, 54, 54, .1); }
.query-form .btn { height: 46px; padding: 0 26px; }

.result-panel {
  display: none;
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.result-panel.show { display: block; }
.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--title);
  font-weight: 600;
}
.badge-demo {
  font-size: 11.5px;
  font-weight: 500;
  color: #b06a00;
  background: #fff4dc;
  border: 1px solid #ffe0a3;
  border-radius: 6px;
  padding: 2px 9px;
}
[data-theme="dark"] .badge-demo { color: #ffce70; background: rgba(255, 200, 90, .12); border-color: rgba(255, 200, 90, .3); }
.result-table { width: 100%; border-collapse: collapse; font-size: 13.6px; }
.result-table th, .result-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.result-table th { width: 38%; color: var(--muted); font-weight: 500; background: transparent; }
.result-table td { color: var(--title); }
.result-table tr:last-child th, .result-table tr:last-child td { border-bottom: 0; }
.result-foot { padding: 11px 16px; font-size: 12px; color: var(--muted); background: var(--soft); border-top: 1px solid var(--line); }

/* 相关推荐 */
.related { padding: 34px 0 0; }

/* ---------------- 搜索页 ---------------- */
.search-hero {
  padding: 40px 0 34px;
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(255, 74, 56, .12), transparent 60%),
    var(--card);
  border-bottom: 1px solid var(--line);
}
.search-hero h1 { font-size: 26px; margin-bottom: 6px; }
.search-hero p { font-size: 13.5px; color: var(--muted); }
.search-hero .search-shell { box-shadow: var(--shadow-lg); border: 1px solid var(--line); margin-top: 20px; }
.search-hero .search-tabs button { color: var(--text); }
.search-hero .search-tabs button.on { color: #fff; }
.search-hero .search-field { background: var(--soft); }
.search-hero .search-field input { color: var(--title); }

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.result-bar b { color: var(--red); }
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.empty b { display: block; color: var(--title); font-size: 16px; margin-bottom: 6px; }

/* ---------------- 关于页 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.step b { display: block; color: var(--title); font-size: 15px; margin-bottom: 6px; }
.step em {
  font-style: normal;
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--grad);
  border-radius: 6px;
  padding: 1px 8px;
  margin-bottom: 10px;
}
.step p { font-size: 13.2px; line-height: 1.8; }

.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--title);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  transition: .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; color: var(--red); }
.faq summary:hover { color: var(--red); }
.faq .ans { padding: 0 20px 18px; font-size: 14px; line-height: 1.9; color: var(--text); }

/* ---------------- 底部 ---------------- */
.site-footer {
  margin-top: 56px;
  background: #141922;
  color: #8b95a7;
  padding: 46px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.site-footer h5 { color: #fff; font-size: 14.5px; margin: 0 0 12px; }
.site-footer a { color: #8b95a7; font-size: 13px; display: block; padding: 3px 0; transition: .2s; }
.site-footer a:hover { color: #ff7a5d; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand img { width: 36px; height: 36px; border-radius: 10px; }
.foot-brand b { color: #fff; font-size: 16px; display: block; }
.foot-brand i { font-style: normal; font-size: 11.5px; color: #6d7789; }
.foot-desc { font-size: 13px; line-height: 1.85; color: #7c8698; max-width: 330px; }
.foot-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px;
  color: #656f80;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* 返回顶部 */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: .28s;
  z-index: 70;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--red); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .daily-wrap, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1180px) {
  .brand-text b { font-size: 15.5px; }
  .brand-text i { font-size: 10.5px; }
  .header-inner { gap: 14px; }
  .nav { margin-left: 0; }
  .nav a { padding: 8px 10px; font-size: 13.6px; }
  .header-tools .btn { padding: 0 14px; font-size: 13.2px; }
}

@media (max-width: 1040px) {
  .header-tools .btn.hide-sm { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 18px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .nav.open a { padding: 11px 12px; }
  .nav.open .nav-tg { display: block !important; color: var(--red); border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; }
  .menu-btn { display: grid; }
  .hero { padding: 46px 0 42px; }
  .hero h1 { font-size: 30px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .detail-grid { padding-top: 20px; }
  .article-card { padding: 20px; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hero h1 { font-size: 25px; }
  .hero-sub { font-size: 13px; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-row .btn { height: 46px; }
  .daily-item { grid-template-columns: 1fr; }
  .daily-item .thumb { aspect-ratio: 16 / 9; }
  .field-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .sec-title { font-size: 18px; }
  .sec-title small { display: none; }
  .article-card { padding: 16px; }
  .prose p { font-size: 14.5px; }
  .steps { grid-template-columns: 1fr; }
  .header-tools .btn.hide-sm { display: none; }
  .brand-text i { display: none; }
}

/* ============================================================
   增强组件（第二版）
   ============================================================ */

/* 屏幕阅读器专用文本 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 跳转链接 + 键盘焦点 */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--card);
  color: var(--title);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid rgba(255, 54, 54, .7);
  outline-offset: 2px;
  border-radius: 8px;
}

/* 卡片：字段角标 + hover 提示 */
.thumb-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #fff;
  background: rgba(0, 0, 0, .26);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
}
.card-more {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 14px 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .5));
  opacity: 0;
  transform: translateY(6px);
  transition: .25s ease;
}
.card:hover .card-more { opacity: 1; transform: none; }

/* 工具条：筛选 chips + 排序 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  transition: .2s;
}
.chip:hover { color: var(--red); border-color: rgba(255, 54, 54, .38); }
.chip.on {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(255, 74, 56, .26);
}
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 12.8px; color: var(--muted); }
.select {
  height: 38px;
  padding: 0 34px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--title);
  font-size: 13px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* 关键词高亮 */
mark.hl { background: rgba(255, 54, 54, .16); color: inherit; padding: 0 2px; border-radius: 3px; }

/* 阅读进度条 */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 120;
  background: var(--grad);
  transition: width .08s linear;
}

/* 目录 */
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  font-size: 13.2px;
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--line);
  transition: .2s;
}
.toc a:hover { color: var(--red); }
.toc a.active {
  color: var(--red);
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(255, 54, 54, .08), transparent);
  font-weight: 600;
}

/* 统计条 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 22px; color: var(--title); letter-spacing: .5px; }
.stat small { color: var(--muted); font-size: 12.5px; }

/* 查询面板增强 */
.query-form { align-items: center; }
.form-tip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.2px;
  color: var(--muted);
}
.form-tip .sep { opacity: .45; }
.sample-btn {
  font-size: 12px;
  color: var(--red);
  border: 1px dashed rgba(255, 54, 54, .42);
  border-radius: 7px;
  padding: 3px 10px;
  transition: .2s;
}
.sample-btn:hover { background: rgba(255, 54, 54, .08); }
.field-error { display: none; margin-top: 10px; font-size: 12.6px; color: #e5484d; }
.field-error.show { display: block; }
.result-panel input[type="text"] { font: inherit; }
.result-head .copy-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 10px;
  background: var(--card);
  transition: .2s;
}
.result-head .copy-btn:hover { color: var(--red); border-color: rgba(255, 54, 54, .4); }
.result-head .head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.result-head .head-right { display: flex; align-items: center; gap: 8px; }

/* 查询历史 */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-list button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
  font-size: 12.6px;
  transition: .2s;
}
.history-list button:hover { border-color: rgba(255, 54, 54, .35); color: var(--red); }
.history-empty { font-size: 12.6px; color: var(--muted); line-height: 1.8; }

/* 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  transform: translate(-50%, 18px);
  padding: 10px 20px;
  border-radius: 10px;
  background: #1b2130;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transition: .26s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 首屏光斑 */
.hero .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .55;
  z-index: 1;
}
.hero .glow-1 { width: 380px; height: 380px; left: -60px; top: -80px; background: rgba(255, 74, 56, .55); animation: drift 16s ease-in-out infinite; }
.hero .glow-2 { width: 420px; height: 420px; right: -80px; top: 40px; background: rgba(120, 90, 255, .42); animation: drift 20s ease-in-out infinite reverse; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, 18px, 0) scale(1.08); }
}

/* 移动端浮动操作条 */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--head-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; height: 44px; }
.mobile-cta .btn.ghost { flex: none; padding: 0 16px; }

/* 404 / 空状态里的搜索 */
.empty .search-shell { margin: 18px auto 0; box-shadow: var(--shadow); border: 1px solid var(--line); }
.empty .search-tabs button { color: var(--text); }
.empty .search-tabs button.on { color: #fff; }
.empty .search-field { background: var(--soft); }
.empty .search-field input { color: var(--title); }

/* 浅色底上的热门标签 */
.hot-row.on-light { justify-content: center; margin-top: 16px; }
.hot-row.on-light span { color: var(--muted); }
.hot-row.on-light a {
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--line);
}
.hot-row.on-light a:hover { color: var(--red); background: rgba(255, 54, 54, .07); border-color: rgba(255, 54, 54, .3); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: 70px; }
}

@media (max-width: 680px) {
  .toolbar { align-items: flex-start; }
  .select { height: 36px; }
  .chips { gap: 6px; }
  .chip { padding: 6px 12px; font-size: 12.5px; }
  .side .toc-panel { display: none; }
}

@media print {
  .site-header, .site-footer, .side, .to-top, .mobile-cta, .read-progress, .query-box, .hero { display: none !important; }
  body { background: #fff; color: #000; }
  .article-card { box-shadow: none; border: 0; padding: 0; }
  a { text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .card, .daily-item { opacity: 1; transform: none; }
}

