/* 极光互动 · 新闻资讯站 —— 前台样式（浅色 / 深色双主题） */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-elev: #ffffff;
  --text: #0d1524;
  --text-2: #55637a;
  --text-3: #8b96a9;
  --line: #e5eaf2;
  --line-2: #eef1f7;
  --brand: #1f5eff;
  --brand-soft: rgba(31, 94, 255, .08);
  --accent: #00c39a;
  --shadow-1: 0 1px 2px rgba(13, 21, 36, .04);
  --shadow-2: 0 8px 28px rgba(13, 21, 36, .08);
  --shadow-3: 0 18px 48px rgba(13, 21, 36, .12);
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1240px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html[data-theme="dark"] {
  --bg: #080c14;
  --bg-soft: #0d1320;
  --bg-elev: #111827;
  --text: #e9eefb;
  --text-2: #9aa8c0;
  --text-3: #6c7a91;
  --line: #1d2536;
  --line-2: #161d2b;
  --brand: #5b8cff;
  --brand-soft: rgba(91, 140, 255, .14);
  --accent: #14e0b4;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, .38);
  --shadow-3: 0 18px 48px rgba(0, 0, 0, .5);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 40%, transparent);
}
.brand-mark.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 15px; letter-spacing: .3px; }
.brand-text i { font-style: normal; font-size: 11px; color: var(--text-3); }
/* 品牌标（2026-10-16）：方块内改为主站 logo 的圆形图标（白字透明底，源图 logo0908.png 左侧裁出），
   布局仍是「方块 + 文字」，图标为白色，放在原渐变底上深浅主题通用 */
.brand-mark img { width: 22px; height: 22px; display: block; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--text-2);
  transition: all .18s ease;
}
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.nav-link.is-active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.mini-search { position: relative; }
.mini-search input {
  width: 190px; height: 38px; padding: 0 38px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  font-size: 13.5px; outline: none; transition: all .2s;
}
.mini-search input:focus { border-color: var(--brand); background: var(--bg); box-shadow: 0 0 0 3px var(--brand-soft); }
.mini-search button {
  position: absolute; right: 5px; top: 5px; width: 28px; height: 28px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2); cursor: pointer; font-size: 15px;
}
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; transition: all .2s;
}
.theme-toggle:hover { border-color: var(--brand); }
.tt-ico { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--text) 50%, transparent 50%); border: 1.5px solid var(--text); }
html[data-theme="dark"] .tt-ico { background: linear-gradient(135deg, transparent 50%, var(--text) 50%); }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 10px; }
.hero-card {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-elev); box-shadow: var(--shadow-2); transition: transform .25s ease, box-shadow .25s ease;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.hero-cover { position: relative; min-height: 340px; background: var(--bg-soft); overflow: hidden; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-text { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; }
.pill {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand); letter-spacing: .4px; margin-bottom: 16px;
}
.hero-text h1 { margin: 0 0 14px; font-size: 30px; line-height: 1.35; letter-spacing: -.2px; }
.hero-text p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; }
.hero-meta { font-size: 13px; color: var(--text-3); }
.hero-empty { min-height: 180px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* ---------- Section ---------- */
.section { padding: 34px 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.2px; position: relative; padding-left: 14px; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 17px; border-radius: 2px; background: linear-gradient(var(--brand), var(--accent));
}
.more { font-size: 13.5px; color: var(--text-3); }
.more:hover { color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Card ---------- */
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-elev); overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
.card-cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-cover img { transform: scale(1.04); }
.card-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--text-3); background: linear-gradient(135deg, var(--bg-soft), var(--brand-soft)); }
.card-tag {
  position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: #fff;
  background: color-mix(in srgb, var(--brand) 88%, #000); backdrop-filter: blur(6px);
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 {
  margin: 0; font-size: 16.5px; line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body p {
  margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: auto; display: flex; gap: 7px; font-size: 12px; color: var(--text-3); padding-top: 4px; }
.empty { padding: 40px; text-align: center; color: var(--text-3); font-size: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.sm { padding: 14px; border: 0; text-align: left; }

/* ---------- Side band ---------- */
.side-band { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 34px; padding-bottom: 10px; }
.sb-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--bg-elev); box-shadow: var(--shadow-1); }
.sb-card h4 { margin: 0 0 14px; font-size: 15px; }
.sb-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.sb-item:last-child { border-bottom: 0; }
.sb-item:hover { color: var(--brand); }
.sb-no { font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-2);
  background: var(--bg-soft); border: 1px solid var(--line); transition: all .18s;
}
.tag:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Page head ---------- */
.page-head { padding: 36px 0 8px; }
.crumb { display: flex; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }
.page-head h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.3px; }
.page-head p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- Article ---------- */
.article-wrap { max-width: 900px; }
.article {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev);
  padding: 44px 52px; box-shadow: var(--shadow-1);
}
.a-title { margin: 0 0 14px; font-size: 32px; line-height: 1.4; letter-spacing: -.4px; }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-3); padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.a-meta .dot { opacity: .5; }
.a-cover { margin: 26px 0 0; border-radius: var(--radius); overflow: hidden; }
.a-summary {
  margin: 24px 0 0; padding: 16px 20px; border-left: 3px solid var(--brand);
  background: var(--bg-soft); border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 14.5px;
}
.a-content { margin-top: 26px; font-size: 17px; line-height: 1.95; color: var(--text); }
.a-content p { margin: 0 0 20px; }
.a-content h2 { margin: 38px 0 16px; font-size: 22px; padding-left: 14px; position: relative; }
.a-content h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(var(--brand), var(--accent)); }
.a-content h3 { margin: 30px 0 14px; font-size: 18.5px; }
.a-content img { border-radius: 12px; margin: 14px 0; }
.a-content figure { margin: 18px 0; }
.a-content figcaption { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 8px; }
.a-content blockquote {
  margin: 22px 0; padding: 14px 20px; border-left: 3px solid var(--accent);
  background: var(--bg-soft); color: var(--text-2); border-radius: 0 10px 10px 0;
}
.a-content ul, .a-content ol { padding-left: 24px; margin: 0 0 20px; }
.a-content li { margin-bottom: 8px; }
.a-content a { color: var(--brand); border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.a-content a.kw { background: var(--brand-soft); padding: 1px 4px; border-radius: 4px; border-bottom: 0; font-weight: 500; }
.a-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.a-content th, .a-content td { border: 1px solid var(--line); padding: 10px 12px; }
.a-content th { background: var(--bg-soft); }
.a-content hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.a-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.a-share { display: flex; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  transition: all .18s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 46px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 30px; padding: 42px 28px 30px; }
.f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.f-brand b { font-size: 15px; }
.f-desc { color: var(--text-2); font-size: 13.5px; margin: 0; }
.f-col h4 { margin: 0 0 12px; font-size: 14px; }
.f-col a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--text-2); }
.f-col a:hover { color: var(--brand); }
.f-line { font-size: 13.5px; color: var(--text-2); margin: 0; }
.copy-line { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 16px 28px; font-size: 12.5px; color: var(--text-3); }
.ghost-entry {
  border: 0; background: transparent; color: var(--text-3); opacity: .16; cursor: default;
  font-size: 20px; line-height: 1; padding: 0 6px; transition: opacity .3s;
}
.ghost-entry:hover { opacity: .55; }

/* ---------- Login mask ---------- */
.login-mask { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: rgba(8, 12, 20, .55); backdrop-filter: blur(4px); }
.login-mask[hidden] { display: none; }
.login-box { width: 340px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-3); }
.login-box h3 { margin: 0 0 6px; font-size: 17px; }
.login-box p { margin: 0 0 16px; font-size: 13px; color: var(--text-3); }
.login-box input { width: 100%; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); outline: none; }
.login-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.login-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.login-tip { margin-top: 10px; font-size: 12.5px; color: #e2483d; min-height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 18px; }
  .site-nav { display: none; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-cover { min-height: 220px; position: relative; }
  .hero-text { padding: 26px 24px; }
  .hero-text h1 { font-size: 24px; }
  .article { padding: 28px 22px; }
  .a-title { font-size: 25px; }
  .a-content { font-size: 16px; }
  .side-band { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .mini-search input { width: 120px; }
  .footer-inner { grid-template-columns: 1fr; }
}
