/* ============================================================
   传美资讯频道 · PC 端设计系统
   模板：phpcms/templates/ask_chuantt/
   ------------------------------------------------------------
   1. 变量与主题（亮/暗）
   2. reset / 通用
   3. 导航 · 抽屉 · 搜索浮层
   4. 首页：HERO / 跑马灯 / 最新资讯 / 热门头条 / CTA
   5. 卡片 · 列表页 · 分页
   6. 文章详情
   7. 关于页 · 搜索页 · 404
   8. 页脚 · 浮标 · 对话窗口 · Toast
   ============================================================ */

/* ══════════════ 1. 变量 ══════════════ */
:root {
  --ink:      #171214;
  --ink-2:    #4A4145;
  --ink-3:    #8A7F84;
  --bg:       #FFFFFF;
  --bg-2:     #FFFFFF;
  --surface:  #FFFFFF;
  --surface-2:#FFFFFF;
  --line:     rgba(23, 18, 20, .09);
  --line-2:   rgba(23, 18, 20, .16);

  --a1: #E8567E;
  --a2: #A05CD6;
  --a3: #C9A96A;
  --a4: #5C6BE8;
  --grad: linear-gradient(115deg, var(--a1) 0%, var(--a2) 55%, var(--a4) 100%);
  --grad-soft: linear-gradient(115deg, rgba(232,86,126,.14), rgba(160,92,214,.14) 55%, rgba(92,107,232,.14));

  --r-xs: 6px;  --r-sm: 12px;  --r-md: 18px;  --r-lg: 26px;  --r-xl: 34px;
  --sh-1: 0 1px 2px rgba(23,18,20,.05), 0 4px 14px rgba(23,18,20,.05);
  --sh-2: 0 2px 6px rgba(23,18,20,.06), 0 18px 48px rgba(23,18,20,.09);
  --sh-3: 0 30px 80px rgba(160,92,214,.18);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.62, .05, .3, 1);
  --nav-h: 74px;
  --pad: clamp(20px, 5vw, 68px);
  --maxw: 1320px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-en: "Optima", "Palatino Linotype", Georgia, "Times New Roman", serif;
}

html[data-theme="dark"] {
  --ink:      #F5F0EF;
  --ink-2:    #C2B8BB;
  --ink-3:    #8B8085;
  --bg:       #0B090A;
  --bg-2:     #121013;
  --surface:  #171416;
  --surface-2:#1E1A1D;
  --line:     rgba(255,255,255,.10);
  --line-2:   rgba(255,255,255,.18);

  --a1: #FF7C9D;
  --a2: #B478E8;
  --a3: #DCC28A;
  --a4: #7C8AF5;
  --sh-1: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.34);
  --sh-2: 0 2px 8px rgba(0,0,0,.4), 0 22px 54px rgba(0,0,0,.5);
  --sh-3: 0 30px 80px rgba(180,120,232,.24);
}

/* ══════════════ 2. reset ══════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--a1); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--a2); }

/* ---------- 通用 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--a1); }
.sec-title {
  font-size: clamp(28px, 4vw, 46px); line-height: 1.18; letter-spacing: -.02em;
  font-weight: 700; margin: 14px 0 0;
}
#featured .sec-title,
#latest .sec-title { font-size: clamp(23px, 3.1vw, 38px); }
.sec-desc { color: var(--ink-2); max-width: 60ch; margin-top: 14px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }

/* ---------- 自定义光标 ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255,255,255,.6);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .3s;
}
body.cursor-active .cursor-ring { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-color: rgba(255,255,255,.95); }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ══════════════ 3. 导航 ══════════════ */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 999;
  background: var(--grad); transition: width .12s linear;
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav.stuck {
  height: 62px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { display: block; width: auto; height: 40px; object-fit: contain; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  box-shadow: 0 6px 18px rgba(232,86,126,.28);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-txt i { font-style: normal; font-size: 10px; letter-spacing: .22em; color: var(--ink-3); }

.nav-links { display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.nav-links a {
  position: relative; padding: 10px 18px; border-radius: 100px; font-size: 16.5px;
  color: var(--ink-2); font-weight: 500; transition: color .3s var(--ease);
}
.nav-links a::before {
  content: ''; position: absolute; inset: 0; border-radius: 100px; background: var(--bg-2);
  transform: scale(.8); opacity: 0; transition: transform .4s var(--ease), opacity .3s;
  z-index: -1;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::before { transform: scale(1); opacity: 1; }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px; background: var(--grad);
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-search {
  display: flex; align-items: center; gap: 4px; position: relative;
  padding: 3px 3px 3px 14px; border-radius: 100px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  transition: width .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  width: 180px;
}
.nav-search:focus-within {
  width: 260px;
  border-color: color-mix(in srgb, var(--a1) 60%, var(--line));
  box-shadow: 0 8px 26px rgba(120,80,180,.12);
}
.nav-search input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: 13.5px; color: var(--ink); min-width: 0;
}
.nav-search input::placeholder { color: var(--ink-3); }
.nav-search-submit {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--a1), #b76de4); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: transform .2s, filter .2s;
}
.nav-search-submit svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-search-submit:hover { transform: scale(1.08); filter: brightness(1.08); }

/* 导航搜索热榜下拉 */
.nav-search-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 16px;
  box-shadow: 0 18px 48px rgba(80,40,120,.14);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 100;
}
.nav-search-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-search-dropdown::before {
  content: ''; position: absolute; top: -7px; left: 24px; width: 12px; height: 12px;
  background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.nav-search-dropdown-head { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; padding-left: 4px; }
.nav-search-dropdown-body { list-style: none; margin: 0; padding: 0; }
.nav-search-dropdown-body li a,
.nav-search-dropdown-body li.nav-search-empty {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px;
  color: var(--ink); text-decoration: none; transition: background .15s;
}
.nav-search-dropdown-body li a:hover,
.nav-search-dropdown-body li a:focus { background: color-mix(in srgb, var(--a1) 10%, transparent); outline: none; }
.nav-search-rank {
  flex-shrink: 0; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 6px; font-size: 11px; font-weight: 800; color: var(--ink-3);
  background: color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-search-rank.top { color: #fff; background: linear-gradient(135deg, var(--a1), #ff6b9d); }
.nav-search-title { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-search-views { flex-shrink: 0; font-size: 11px; color: var(--ink-3); }
.nav-search-empty { font-size: 13px; color: var(--ink-3); justify-content: center; padding: 18px 0; }
@media (max-width: 880px) { .nav-search { display: none; } }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2); background: transparent;
  transition: all .32s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); background: var(--bg-2); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 24px;
  border-radius: 100px; font-size: 14.5px; font-weight: 600; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(232,86,126,.3); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 38px rgba(232,86,126,.4); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--a1); color: var(--a1); transform: translateY(-3px); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.burger { display: none; }
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .burger { display: grid; }
}

/* 抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 950; background: var(--bg);
  transform: translateY(-100%); transition: transform .7s var(--ease);
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--pad);
}
.drawer.open { transform: translateY(0); }
.drawer a {
  font-size: clamp(30px, 8vw, 52px); font-weight: 700; letter-spacing: -.03em;
  padding: 10px 0; opacity: 0; transform: translateY(28px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.drawer.open a { opacity: 1; transform: none; }
.drawer a:hover { color: var(--a1); }
.drawer-close { position: absolute; top: 20px; right: var(--pad); }

/* 搜索浮层 */
.search-overlay {
  position: fixed; inset: 0; z-index: 960; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  padding-top: min(16vh, 140px);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.search-field {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 22px;
  border-radius: 100px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.search-field input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: clamp(18px, 3vw, 24px); font-weight: 500; letter-spacing: -.01em; color: var(--ink);
}
.search-field input::placeholder { color: var(--ink-3); font-weight: 400; }
.search-submit {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.search-submit svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.search-submit:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.search-submit:active { transform: scale(.96); }
.search-hint { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-hint b { font-weight: 500; }
.chip {
  padding: 5px 13px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); transition: all .3s var(--ease); cursor: pointer;
}
.chip:hover { border-color: var(--a1); color: var(--a1); transform: translateY(-2px); }
.search-results { margin-top: 30px; max-height: 52vh; overflow-y: auto; }
.sr-group + .sr-group { margin-top: 22px; }
.sr-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.sr-item {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: var(--r-sm);
  transition: background .25s, transform .25s var(--ease);
}
.sr-item:hover { background: var(--bg-2); transform: translateX(6px); }
.sr-item img { width: 52px; height: 36px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.sr-item .t { font-weight: 600; font-size: 15px; }
.sr-item .m { font-size: 12px; color: var(--ink-3); }

/* ══════════════ 4. 首页 ══════════════ */
.hero { min-height: 10vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: calc(var(--nav-h) + 8px) 0 14px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 110%, var(--bg) 8%, transparent 62%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 8px 7px 14px;
  border-radius: 100px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(12px); font-size: 13px; color: var(--ink-2); margin-bottom: 26px;
}
.hero-badge b { font-weight: 600; color: var(--ink); }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #33C77F; box-shadow: 0 0 0 0 rgba(51,199,127,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(51,199,127,0); } 100% { box-shadow: 0 0 0 0 rgba(51,199,127,0); } }
.hero-badge span.arrow { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 11px; }

.hero h1 { font-size: clamp(38px, 6.6vw, 84px); line-height: 1.05; letter-spacing: -.045em; font-weight: 700; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero.ready h1 .line > span { transform: translateY(0); }
.hero h1 .line:nth-child(2) > span { transition-delay: .1s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .2s; }
.hero-sub { margin-top: 26px; font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); max-width: 48ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: clamp(20px, 4vw, 46px); margin-top: 52px; flex-wrap: wrap; }
.hstat .n { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hstat .l { font-size: 12.5px; color: var(--ink-3); margin-top: 7px; }

/* 悬浮资讯卡 */
.hero-cards { position: relative; height: 480px; }
@media (max-width: 1000px) { .hero-cards { height: 380px; } }
.float-card {
  position: absolute; width: min(330px, 84%); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2);
  transition: transform .8s var(--ease), box-shadow .5s var(--ease); will-change: transform;
}
.float-card:hover { box-shadow: var(--sh-3); z-index: 5; }
.float-card img { width: 100%; height: 152px; object-fit: cover; }
.float-card .fc-body { padding: 15px 18px 18px; }
.float-card .fc-cat { font-size: 11px; letter-spacing: .1em; color: var(--a1); font-weight: 600; }
.float-card h4 { font-size: 15px; line-height: 1.5; margin-top: 7px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.float-card .fc-meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-3); margin-top: 11px; }
.fc-1 { top: 0; right: 4%; }
.fc-2 { top: 168px; left: 0; }
.fc-3 { top: 316px; right: 10%; width: min(280px, 76%); }
@media (max-width: 1000px) { .fc-3 { display: none; } .fc-2 { top: 150px; } }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 10.5px;
  letter-spacing: .22em; color: var(--ink-3);
}
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--ink-3), transparent); animation: cue 2s infinite; }
@keyframes cue { 0%,100% { opacity: .25; transform: scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* 跑马灯 */
.ticker { border-block: 1px solid var(--line); padding: 15px 0; overflow: hidden; background: var(--bg-2); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: 11px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.ticker-item b { color: var(--a1); font-weight: 600; }
.ticker-item::after { content: '·'; color: var(--ink-3); margin-left: 48px; }

/* 滚动揭示 */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 热门头条 */
#featured { position: relative; overflow: hidden; padding-bottom: 24px; }
#featured-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#featured .wrap { position: relative; z-index: 1; }
#latest { padding: 48px 0; background: var(--bg); }

/* 最新资讯：左图右文，一行一个 */
#latest .card-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
#latest .acard { flex-direction: row; align-items: flex-start; }
#latest .acard-media { position: relative; overflow: hidden; flex: 0 0 280px; width: 280px; aspect-ratio: 3 / 2; background: transparent; }
#latest .acard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
#latest .acard-body { padding: 18px 26px; justify-content: center; }
#latest .acard h3 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; -webkit-line-clamp: unset; }
#latest .acard p { margin-top: 10px; }

/* 资讯列表页：左图右文 */
#list-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
#list-grid .acard { flex-direction: row; align-items: flex-start; }
#list-grid .acard-media { position: relative; overflow: hidden; flex: 0 0 280px; width: 280px; aspect-ratio: 3 / 2; background: transparent; }
#list-grid .acard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
#list-grid .acard-body { padding: 18px 26px; justify-content: center; }
#list-grid .acard h3 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; -webkit-line-clamp: unset; }
#list-grid .acard p { margin-top: 10px; }

/* 最新资讯：主区 + 右侧热门 */
.latest-layout { display: grid; grid-template-columns: 1fr 320px; gap: 42px; align-items: start; margin-top: 34px; }
.latest-side {
  position: sticky; top: calc(var(--nav-h) + 18px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 20px;
}
.side-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 680; margin-bottom: 14px; }
.side-title::before { content: ''; width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(135deg,#E8567E,#FF8FB1); }
.pop-list { display: flex; flex-direction: column; }
.pop-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px;
  border-top: 1px solid var(--line); color: var(--ink-2);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.pop-item:hover { color: var(--a1); padding-left: 6px; }
.pop-rank {
  flex: 0 0 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #fff; background: #c9b6c2;
}
.pop-item:nth-child(1) .pop-rank { background: linear-gradient(135deg,#FF7EB3,#FF4F8B); }
.pop-item:nth-child(2) .pop-rank { background: linear-gradient(135deg,#FF9F6E,#FF6B6B); }
.pop-item:nth-child(3) .pop-rank { background: linear-gradient(135deg,#9B8CFF,#6C5CE7); }
.pop-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pop-title { font-size: 14px; line-height: 1.5; font-weight: 550; color: inherit;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-views { font-size: 12px; color: var(--ink-3); }

.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-top: 22px; }
@media (max-width: 1000px) { .feature { grid-template-columns: 1fr; } }
.feat-main {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 460px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.feat-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.feat-main:hover img { transform: scale(1.06); }
.feat-main::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12,8,10,.9) 0%, rgba(12,8,10,.35) 45%, transparent 78%);
}
.feat-main .fm-body { padding: clamp(24px, 3.4vw, 44px); }
.feat-main h3 { font-size: clamp(22px, 2.7vw, 34px); line-height: 1.28; letter-spacing: -.02em; font-weight: 700; margin-top: 14px; }
.feat-main p { margin-top: 12px; opacity: .8; font-size: 14.5px; max-width: 46ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  background: rgba(255,255,255,.16); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22);
}
.feat-side { display: flex; flex-direction: column; gap: 14px; }
.feat-row {
  display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 14px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); flex: 1;
}
.feat-row:hover { transform: translateX(8px); box-shadow: var(--sh-1); }
.feat-row img { width: 104px; height: 76px; object-fit: cover; border-radius: 11px; }
.feat-row h4 { font-size: 15px; line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-row .m { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; display: flex; gap: 12px; }

/* ══════════════ 5. 卡片 · 列表 · 分页 ══════════════ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; position: relative; }
.filters a, .filters button {
  padding: 9px 18px; border-radius: 100px; font-size: 14px; color: var(--ink-2);
  border: 1px solid var(--line); transition: all .35s var(--ease); font-weight: 500;
  display: inline-block;
}
.filters a:hover, .filters button:hover { border-color: var(--line-2); transform: translateY(-2px); }
.filters a.on, .filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters .count { margin-left: auto; font-size: 13px; color: var(--ink-3); align-self: center; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.acard {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  transform-style: preserve-3d; will-change: transform;
}
.acard:hover { box-shadow: var(--sh-2); border-color: transparent; }
.acard-media { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-2); }
.acard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.acard:hover .acard-media img { transform: scale(1.07); }
.acard-cat {
  position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 100px;
  font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
}
.acard-body { padding: 20px 21px 22px; display: flex; flex-direction: column; flex: 1; }
.acard h3 {
  font-size: 17px; line-height: 1.5; font-weight: 650; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .3s;
}
.acard:hover h3 { color: var(--a1); }
.acard p {
  font-size: 13.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.7; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.acard-meta {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 15px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3);
}
.acard-meta .mi { display: inline-flex; align-items: center; gap: 5px; }
.acard-meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.acard-meta .spacer { margin-left: auto; }

.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--surface-2) 50%, var(--bg-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 服务端分页 */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; flex-wrap: wrap; }
.pager a {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px;
  display: inline-grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--surface);
  transition: all .32s var(--ease);
}
.pager a:hover { border-color: var(--a1); color: var(--a1); transform: translateY(-2px); }
.pager a.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(232,86,126,.28); }
.pager a.on:hover { transform: none; color: #fff; }
.pager svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty .e-ico { font-size: 44px; opacity: .3; }

/* 列表页头 */
.page-head { padding: calc(var(--nav-h) + clamp(40px, 6vw, 82px)) 0 clamp(28px, 4vw, 52px); position: relative; overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 460px; background: var(--grad); opacity: .12; filter: blur(90px); border-radius: 50%;
}
.page-head h1 { font-size: clamp(32px, 5.4vw, 62px); line-height: 1.1; letter-spacing: -.04em; font-weight: 700; margin-top: 14px; }
.crumb { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--a1); }

/* 搜索结果页的顶部搜索框 */
.search-page-form {
  position: relative; display: flex; align-items: center; gap: 10px; margin-top: 30px;
  width: min(100%, 720px); padding: 8px 8px 8px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: border-color .3s, box-shadow .3s;
}
.search-page-form:focus-within { border-color: var(--a1); box-shadow: 0 0 0 4px rgba(232,86,126,.12); }
.search-page-form > svg { width: 19px; height: 19px; flex: none; stroke: var(--ink-3); fill: none; stroke-width: 2; stroke-linecap: round; }
.search-page-form input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 15.5px; color: var(--ink); padding: 12px 0;
}
.search-page-form input::-webkit-search-cancel-button { display: none; }
.search-page-form .btn { flex: none; }
@media (max-width: 560px) {
  .search-page-form { padding-left: 14px; gap: 6px; }
  .search-page-form .btn { padding: 10px 16px; font-size: 13.5px; }
}

.list-layout { display: grid; grid-template-columns: 1fr 328px; gap: 44px; align-items: start; }
@media (max-width: 1080px) { .list-layout { grid-template-columns: 1fr; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.side-card + .side-card { margin-top: 20px; }
.side-card h4 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.side-card h4::before { content: ''; width: 3px; height: 14px; border-radius: 3px; background: var(--grad); }
.hot-item { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--line); transition: transform .35s var(--ease); }
.hot-item:last-child { border-bottom: 0; }
.hot-item:hover { transform: translateX(5px); }
.hot-no { font-family: var(--font-en); font-size: 17px; font-weight: 700; color: var(--ink-3); width: 22px; flex-shrink: 0; }
.hot-item:nth-child(-n+4) .hot-no { color: var(--a1); }
.hot-t { font-size: 13.5px; line-height: 1.6; font-weight: 550;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-m { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-cloud .chip i { font-style: normal; margin-left: 5px; font-size: 11px; color: var(--ink-3); }
.side-cta p { font-size: 13.5px; color: var(--ink-3); line-height: 1.75; margin: 12px 0 18px; }

/* 列表页工具条：总数 + 排序 */
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 4px; }
.list-total { font-size: 13.5px; color: var(--ink-3); }
.list-total b { font-family: var(--font-en); font-size: 16px; font-weight: 700; color: var(--a1); margin: 0 3px; }
.sorts { display: flex; gap: 4px; padding: 4px; border-radius: 100px; background: var(--bg-2); border: 1px solid var(--line); }
.sorts a { padding: 6px 16px; border-radius: 100px; font-size: 13px; color: var(--ink-3); transition: all .3s var(--ease); }
.sorts a:hover { color: var(--ink); }
.sorts a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--sh-1); }
.filters a .count { margin-left: 6px; opacity: .62; font-size: 12px; }

/* ══════════════ 6. 文章详情 ══════════════ */
.article-head { padding: calc(var(--nav-h) + 46px) 0 0; }
.article-title { font-size: clamp(27px, 4.2vw, 52px); line-height: 1.2; letter-spacing: -.035em; font-weight: 700; margin: 18px 0 22px; max-width: 22ch; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); align-items: center; }
.article-meta .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; }
.article-cover { margin-top: 34px; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/7; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 1fr 268px; gap: 56px; align-items: start; padding-top: 48px; }
@media (max-width: 1080px) { .article-layout { grid-template-columns: 1fr; gap: 34px; } .toc { display: none; } }

.prose { font-size: 16.5px; line-height: 1.95; color: var(--ink-2); max-width: 74ch; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 {
  font-size: clamp(21px, 2.4vw, 28px); color: var(--ink); font-weight: 700; letter-spacing: -.02em;
  margin-top: 2.2em; padding-left: 15px; border-left: 3px solid transparent;
  border-image: var(--grad) 1; line-height: 1.4; scroll-margin-top: 100px;
}
.prose h3 { font-size: 18.5px; color: var(--ink); font-weight: 650; margin-top: 1.7em; scroll-margin-top: 100px; }
.prose p.lead { font-size: 18.5px; color: var(--ink); line-height: 1.8; font-weight: 500; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--a1); border-bottom: 1px solid currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul li { list-style: none; position: relative; padding-left: 4px; }
.prose ul li::before { content: ''; position: absolute; left: -16px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--a1); }
.prose ol { list-style: decimal; }
.prose ol li { padding-left: 6px; }
.prose ol li::marker { color: var(--a1); font-weight: 700; }
.prose li + li { margin-top: .55em; }
.prose blockquote {
  padding: 20px 24px; border-radius: var(--r-md); background: var(--bg-2);
  border-left: 3px solid var(--a1); color: var(--ink-2); font-size: 15px;
}
.prose img { border-radius: var(--r-md); margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; overflow: hidden; border-radius: var(--r-md); }
.prose th, .prose td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--bg-2); color: var(--ink); font-weight: 650; font-size: 13.5px; }
.prose tbody tr:hover { background: var(--bg-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .tag-line { font-size: 13.5px; color: var(--ink-3); margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.prose .tag-line em { font-style: normal; color: var(--a1); margin-right: 8px; }

/* 关键结论（TL;DR）：正文之前的答案摘要，同时对应 JSON-LD 的 Article.abstract */
.tldr {
  position: relative; margin-bottom: 44px; padding: 26px 28px 28px; max-width: 74ch;
  border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; scroll-margin-top: 100px;
  /* 用极淡的品牌色渐变做底，浅色深色两套主题下都能和正文拉开层次 */
  background: linear-gradient(180deg, rgba(232, 86, 126, .06), rgba(160, 92, 214, .05));
}
.tldr::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.tldr h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.tldr-tag { font-size: 10.5px; letter-spacing: .12em; font-weight: 700; color: #fff; background: var(--grad); padding: 4px 9px; border-radius: 100px; }
.tldr ul { margin-top: 16px; display: grid; gap: 11px; }
.tldr li { position: relative; list-style: none; padding-left: 24px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.tldr li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--a1); }

/* 常见问题：对应 JSON-LD 的 FAQPage，默认展开——折叠起来 AI 摘要不一定抓得到 */
.faq { max-width: 74ch; margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.faq-title {
  font-size: clamp(21px, 2.4vw, 28px); color: var(--ink); font-weight: 700; letter-spacing: -.02em;
  padding-left: 15px; border-left: 3px solid transparent; border-image: var(--grad) 1; line-height: 1.4;
}
.faq-item { margin-top: 18px; padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: border-color .35s var(--ease); }
.faq-item:hover { border-color: var(--line-2); }
.faq-q, .faq-a { position: relative; padding-left: 26px; }
.faq-q { font-size: 15.5px; font-weight: 650; color: var(--ink); line-height: 1.6; }
.faq-q::before { content: 'Q'; position: absolute; left: 0; top: 1px; font-size: 13px; font-weight: 800; color: var(--a1); }
.faq-a { margin-top: 10px; font-size: 14.5px; line-height: 1.85; color: var(--ink-3); }
.faq-a::before { content: 'A'; position: absolute; left: 0; top: 3px; font-size: 13px; font-weight: 800; color: var(--a2); }

.a-updated { max-width: 74ch; margin-top: 34px; font-size: 13px; line-height: 1.8; color: var(--ink-3); }
@media (max-width: 700px) { .article-meta .reviewed { width: 100%; } }

.toc { position: sticky; top: 96px; }
.toc h5 { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.toc a {
  display: block; font-size: 13.5px; color: var(--ink-3); padding: 7px 0 7px 15px;
  border-left: 2px solid var(--line); transition: all .35s var(--ease); line-height: 1.5;
}
.toc a:hover { color: var(--ink); border-color: var(--line-2); }
.toc a.on { color: var(--a1); border-color: var(--a1); font-weight: 600; }
.toc a.lv3 { padding-left: 27px; font-size: 13px; }

.act-bar { display: flex; gap: 12px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.act-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 100px;
  border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); transition: all .35s var(--ease);
}
.act-btn:hover { border-color: var(--a1); color: var(--a1); transform: translateY(-2px); }
.act-btn.liked { background: var(--grad); color: #fff; border-color: transparent; }
.act-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
@media (max-width: 700px) { .pn-nav { grid-template-columns: 1fr; } }
.pn-card { padding: 20px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: all .4s var(--ease); }
.pn-card:hover { border-color: var(--a1); transform: translateY(-3px); box-shadow: var(--sh-1); }
.pn-card .l { font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; }
.pn-card .t { font-size: 15px; font-weight: 600; margin-top: 7px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pn-card.next { text-align: right; }

.lightbox { position: fixed; inset: 0; z-index: 9998; background: rgba(8,6,7,.94); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; padding: 40px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-md); transform: scale(.92); transition: transform .5s var(--ease); }
.lightbox.open img { transform: scale(1); }

.read-ring { position: fixed; right: 26px; bottom: 86px; z-index: 800; width: 48px; height: 48px; opacity: 0; transition: opacity .4s; }
.read-ring.show { opacity: 1; }
.read-ring svg { transform: rotate(-90deg); }
.read-ring circle { fill: none; stroke-width: 2.5; }
.read-ring .bgc { stroke: var(--line); }
.read-ring .fgc { stroke: var(--a1); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.read-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 600; }

/* ══════════════ 7. 关于页 · 搜索页 · 404 ══════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 20px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.stat-card b { display: block; font-size: 34px; letter-spacing: -.03em; font-weight: 700; color: var(--a1); line-height: 1.1; }
.stat-card span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 8px; }

.principle-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 800px) { .principle-list { grid-template-columns: 1fr; } }
.principle {
  display: flex; gap: 18px; padding: 26px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.principle:hover { transform: translateX(6px); box-shadow: var(--sh-1); }
.principle .no {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-en); font-size: 17px; font-weight: 700; color: var(--a1);
  background: var(--grad-soft);
}
.principle h4 { font-size: 16.5px; font-weight: 650; }
.principle p { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.75; }

.about-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 800px) { .about-contact { grid-template-columns: 1fr; } }
.contact-item {
  padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
}
.contact-item .l { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.contact-item .v { font-size: 16px; font-weight: 600; margin-top: 10px; line-height: 1.6; word-break: break-all; }

/* 搜索结果页 */
.res-group + .res-group { margin-top: 52px; }
.res-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.res-head h3 { font-size: 19px; font-weight: 700; }
.res-head span { font-size: 13px; color: var(--ink-3); }
.res-list { margin-top: 8px; }
.res-item {
  display: flex; align-items: center; gap: 18px; padding: 18px 14px; border-radius: var(--r-md);
  border-bottom: 1px solid var(--line); transition: background .3s, padding-left .35s var(--ease);
}
.res-item:hover { background: var(--bg-2); padding-left: 22px; }
.res-item .rt { font-size: 16.5px; font-weight: 620; line-height: 1.5; }
.res-item .rm { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.res-item img { width: 108px; height: 72px; object-fit: cover; border-radius: 11px; flex: none; }
mark { background: color-mix(in srgb, var(--a1) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* 404 */
.nf { min-height: 74vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 60px) 0 90px; text-align: center; position: relative; overflow: hidden; }
.nf::before {
  content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 420px; background: var(--grad); opacity: .13; filter: blur(90px); border-radius: 50%;
}
.nf-code {
  position: relative; font-family: var(--font-en); font-size: clamp(90px, 18vw, 200px);
  font-weight: 700; line-height: 1; letter-spacing: -.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nf h1 { position: relative; font-size: clamp(22px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.03em; margin-top: 10px; }
.nf p { position: relative; color: var(--ink-2); margin-top: 14px; }
.nf-cta { position: relative; display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.nf-hot { position: relative; margin-top: 56px; text-align: left; width: min(100%, 720px); }

/* ══════════════ 8. CTA · 页脚 · 浮标 ══════════════ */
.cta { position: relative; overflow: hidden; }
.cta-inner {
  border-radius: var(--r-xl); padding: clamp(34px, 5vw, 68px); position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }
.cta-inner::before {
  content: ''; position: absolute; top: -160px; right: -120px; width: 460px; height: 460px;
  border-radius: 50%; background: var(--grad); opacity: .13; filter: blur(50px);
}
.cta h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.2; letter-spacing: -.03em; font-weight: 700; position: relative; }
.cta p { color: var(--ink-2); margin-top: 16px; position: relative; }
.cta-points { margin-top: 26px; display: flex; flex-direction: column; gap: 11px; position: relative; }
.cta-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.cta-points .tick { width: 19px; height: 19px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 10px; flex-shrink: 0; }

.form { position: relative; display: grid; gap: 14px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 17px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg); outline: none; font-size: 14.5px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--a1); box-shadow: 0 0 0 4px rgba(232,86,126,.12); background: var(--surface);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12px; color: var(--ink-3); }

.footer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: clamp(48px, 6vw, 82px) 0 34px;
  background: #0F0F0F; color: #fff;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.foot-brand .brand-txt i { color: rgba(255,255,255,.5); }
.foot-brand p { color: rgba(255,255,255,.65); font-size: 13.5px; margin-top: 16px; max-width: 40ch; line-height: 1.75; }
.foot-col h5 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14px; color: rgba(255,255,255,.85); padding: 5px 0; transition: color .3s, transform .3s var(--ease); }
.foot-col a:hover { color: var(--a1); transform: translateX(5px); }
.foot-col p { font-size: 14px; color: rgba(255,255,255,.85); padding: 5px 0; }
.foot-bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.55);
}
.notice-bar { font-size: 12.5px; color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm); padding: 12px 16px; margin-top: 30px; }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 800; width: 48px; height: 48px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--sh-1);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85);
  transition: all .45s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-4px) scale(1.06); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.toast-wrap { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 10001; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 12px 20px; border-radius: 100px; background: var(--ink); color: var(--bg);
  font-size: 14px; box-shadow: var(--sh-2); display: flex; align-items: center; gap: 9px;
  animation: toastIn .5s var(--ease);
}
.toast.err { background: #D9455F; color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.94); } }

/* 对话窗口 */
.wy-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 850;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--a1) 45%, transparent);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s;
}
.wy-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 42px color-mix(in srgb, var(--a1) 55%, transparent); }
.wy-fab.hidden { opacity: 0; pointer-events: none; transform: scale(.6); }
.wy-fab-ico { width: 26px; height: 26px; fill: #fff; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; }
.wy-fab-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--a1) 60%, transparent); animation: wyring 2.4s ease-out infinite; }
@keyframes wyring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wy-fab-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 100px; background: #2BD17E; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg);
}
.wy-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 860;
  width: min(384px, calc(100vw - 32px)); height: min(580px, calc(100vh - 44px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(22px) scale(.96); opacity: 0; pointer-events: none;
  transform-origin: bottom right; transition: transform .42s var(--ease), opacity .3s;
}
.wy-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.wy-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px 15px 18px; background: var(--grad); color: #fff; }
.wy-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.wy-head-txt { flex: 1; min-width: 0; }
.wy-title { font-weight: 700; font-size: 15px; }
.wy-sub { font-size: 11.5px; opacity: .85; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.wy-dot { width: 7px; height: 7px; border-radius: 50%; background: #2BD17E; box-shadow: 0 0 0 3px rgba(43,209,126,.35); }
.wy-close { margin-left: auto; flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; transition: background .25s; }
.wy-close:hover { background: rgba(255,255,255,.34); }
.wy-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); scrollbar-width: thin; }
.wy-msg { display: flex; }
.wy-msg.bot { justify-content: flex-start; }
.wy-msg.user { justify-content: flex-end; }
.wy-bubble {
  max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.55;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 5px;
  animation: wyin .35s var(--ease); word-break: break-word;
}
.wy-bubble.user { background: var(--grad); color: #fff; border: 0; border-radius: 16px; border-bottom-right-radius: 5px; }
.wy-bubble a { color: var(--a1); text-decoration: underline; }
.wy-bubble.user a { color: #fff; }
@keyframes wyin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wy-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 6px; background: var(--bg); border-top: 1px solid var(--line); }
.wy-quick button {
  padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); font-size: 12.5px; cursor: pointer; transition: all .25s var(--ease);
}
.wy-quick button:hover { border-color: var(--a1); color: var(--a1); transform: translateY(-2px); }
.wy-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.wy-input input {
  flex: 1; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 100px; padding: 10px 16px; font-size: 14px; outline: none; transition: border-color .25s;
}
.wy-input input:focus { border-color: var(--a1); }
.wy-send {
  border: 0; border-radius: 100px; padding: 0 18px; background: var(--grad); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .25s, opacity .25s;
}
.wy-send:hover { transform: translateY(-1px); }
.wy-send:active { transform: scale(.96); }
.wy-lead { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wy-lead input {
  flex: 1 1 120px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-size: 13px; background: var(--bg); color: var(--ink); outline: none; transition: border-color .25s;
}
.wy-lead input:focus { border-color: var(--a1); }
.wy-lead.err input { border-color: #E2435B; }
.wy-lead button { border: 0; border-radius: 10px; padding: 9px 16px; background: var(--grad); color: #fff; font-weight: 600; cursor: pointer; }
.wy-lead button:disabled { opacity: .6; cursor: default; }
.wy-lead-note { font-size: 11px; color: var(--ink-3); margin-top: 8px; }
.wy-ok { color: #2BD17E; font-weight: 600; font-size: 13.5px; }

/* 400 电话浮标 */
.phone-fab {
  position: fixed; right: 22px; bottom: 92px; z-index: 840;
  width: 52px; height: 52px; border-radius: 50%; background: #111; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.phone-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 32px rgba(0,0,0,.32); }
.phone-pop {
  position: fixed; right: 22px; bottom: 156px; z-index: 845;
  width: min(260px, calc(100vw - 44px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-2); padding: 18px; text-align: center;
  transform: translateY(12px) scale(.96); opacity: 0; pointer-events: none;
  transform-origin: bottom right; transition: transform .35s var(--ease), opacity .25s;
}
.phone-pop.open { transform: none; opacity: 1; pointer-events: auto; }
.phone-pop-close { position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; }
.phone-pop-close:hover { color: var(--ink); }
.phone-pop-title { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .08em; }
.phone-pop-num { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: .5px; margin-bottom: 14px; }
.phone-pop-copy {
  width: 100%; border: 0; border-radius: 100px; padding: 10px 16px;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .25s, opacity .25s;
}
.phone-pop-copy:hover { transform: translateY(-2px); }
.phone-pop-copy:active { transform: scale(.97); }

/* ══════════════ 平板收敛（PC 模板在窄屏时的兜底） ══════════════ */
@media (max-width: 880px) {
  .nav .wrap { gap: 14px; }
  .nav-actions .btn-primary { display: none; }
}
@media (max-width: 1000px) {
  .latest-layout { grid-template-columns: 1fr; gap: 30px; }
  .latest-side { position: static; padding: 20px 18px; }
}
@media (max-width: 640px) {
  :root { --pad: 18px; }
  .sec-title, #featured .sec-title, #latest .sec-title { font-size: clamp(21px, 6.4vw, 30px); }
  .feature { gap: 16px; margin-top: 18px; }
  .feat-main { min-height: 268px; }
  .feat-main .fm-body { padding: clamp(18px, 5.5vw, 26px); }
  .feat-main h3 { font-size: clamp(19px, 5.4vw, 25px); }
  .feat-row { grid-template-columns: 88px 1fr; gap: 13px; padding: 12px; }
  .feat-row img { width: 88px; height: 66px; }
  .card-grid { gap: 16px; margin-top: 24px; }
  .acard-body { padding: 16px 16px 18px; }
  .acard h3 { font-size: 16px; }
  .acard p { font-size: 13px; margin-top: 8px; }
  .acard-meta { margin-top: 14px; padding-top: 13px; gap: 12px; }
  #featured { padding-bottom: 18px; }
  #latest { padding: 36px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .ticker-item { font-size: 12.5px; }
  #latest .acard-media, #list-grid .acard-media { flex: 0 0 116px; width: 116px; }
  #latest .acard-body, #list-grid .acard-body { padding: 12px 15px; }
  #latest .acard h3, #list-grid .acard h3 { font-size: 15px; }
  .res-item img { width: 84px; height: 58px; }
}
@media (max-width: 520px) {
  .wy-panel, .wy-fab { right: 14px; bottom: 14px; }
  .wy-panel { width: calc(100vw - 28px); }
  .phone-fab { right: 14px; bottom: 80px; width: 48px; height: 48px; }
  .phone-fab svg { width: 20px; height: 20px; }
  .phone-pop { right: 14px; bottom: 138px; }
}
