/* Tailwind CSS CDN（工具类补充；核心版式由下方自定义 CSS 保证，CDN 不可用也不塌陷） */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* ==========================================================================
   设计令牌
   ========================================================================== */
:root {
  --brand-500: #FF6A3D;
  --brand-400: #FF8A5C;
  --brand-deep: #E64A19;
  --accent-500: #FF6A3D;
  --ink-900: #1F1F1F;
  --ink-500: #757575;
  --bg: #F5F5F4;
  --surface: #FFFFFF;
  --line: rgba(31, 31, 31, 0.09);
  --ok: #17B26A;
  --warn: #F79009;
  --danger: #E03131;
  --info: #2F6BFF;

  --grad-brand: linear-gradient(135deg, #FF6A3D 0%, #FF9147 100%);
  --grad-accent: linear-gradient(135deg, #FF6A3D 0%, #FF9147 100%);
  --grad-hero: linear-gradient(120deg, rgba(230, 74, 25, 0.95) 0%, rgba(255, 106, 61, 0.85) 48%, rgba(255, 158, 88, 0.72) 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(22, 22, 42, 0.05);
  --shadow: 0 12px 28px rgba(22, 22, 42, 0.09);
  --shadow-lg: 0 26px 60px rgba(22, 22, 42, 0.16);

  --font: "Noto Sans", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", system-ui, sans-serif;
  --max-width: 1200px;
  --read-width: 760px;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* ==========================================================================
   基础重置
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-900);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(31, 31, 31, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, 0.028) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--ink-500); }

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 61, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255, 106, 61, .36); }

.btn-accent { background: var(--grad-accent); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 61, .28); }
.btn-accent:hover { transform: translateY(-2px); }

.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }

.btn-outline { background: #fff; color: var(--brand-500); border: 1px solid rgba(255, 106, 61, .35); }
.btn-outline:hover { border-color: var(--brand-500); background: rgba(255, 106, 61, .06); }

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ==========================================================================
   导航（玻璃拟态）
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), box-shadow .25s var(--ease);
}
.site-nav.is-compact {
  padding-top: 2px;
  padding-bottom: 2px;
  box-shadow: 0 8px 24px rgba(22, 22, 42, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 82px;
  transition: height .25s var(--ease);
}
.site-nav.is-compact .nav-inner { height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 23px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 21px;
  box-shadow: 0 8px 18px rgba(255, 106, 61, .35);
}
.brand-sub { font-size: 14px; font-weight: 500; color: var(--ink-500); display: block; line-height: 1; }
.brand-logo { height: 66px; width: auto; max-width: 240px; object-fit: contain; flex: none; }
.site-nav.is-compact .brand-logo { height: 54px; }

/* 页脚 Logo（深色底上提亮） */
.footer-logo {
  height: 46px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  padding: 6px 10px;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -14px;
  height: 3px; border-radius: 3px 3px 0 0;
  background: var(--brand-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover { color: var(--brand-500); background: rgba(255, 106, 61, .06); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--brand-500); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* 社交图标（Facebook：外圈圆形 + 内层白色方形，悬停变色） */
.social-link {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #5b7aa6;
  color: #fff;
  box-shadow: 0 8px 18px rgba(24, 60, 120, .25);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.fb-tile {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: #fff;
  color: #5b7aa6;
  display: grid; place-items: center;
  transition: color .22s var(--ease);
}
.fb-tile svg { width: 12px; height: 12px; display: block; }
.social-link:hover { background: #123a7d; transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 26px rgba(18, 58, 125, .4); }
.social-link:hover .fb-tile { color: #123a7d; }
.social-link:hover { background: #0f66d0; transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 26px rgba(24, 119, 242, .38); }
.social-link svg { width: 22px; height: 22px; display: block; }

/* 圆形搜索按钮（悬停/聚焦展开输入框） */
.search-pop { display: flex; align-items: center; }
.search-pop input {
  width: 0;
  padding: 0;
  border: 1px solid transparent;
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: #fff;
  outline: 0;
  font-size: 14px;
  font-family: inherit;
  opacity: 0;
  transition: width .3s var(--ease), padding .3s var(--ease), opacity .25s var(--ease), border-color .2s var(--ease);
}
.search-pop:focus-within input,
.search-pop.is-open input {
  width: 190px;
  padding: 9px 6px 9px 16px;
  opacity: 1;
  border-color: var(--line);
  box-shadow: -6px 0 18px rgba(31, 31, 31, .04);
}
.search-btn {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 106, 61, .32);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.search-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 28px rgba(255, 106, 61, .4); }
.search-btn svg { width: 18px; height: 18px; }

/* 导航下拉菜单 */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret { font-size: 10px; margin-left: 4px; opacity: .7; transition: transform .25s var(--ease); }
.nav-item:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 190px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px rgba(31, 31, 31, .12);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 70;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  transition: background .18s var(--ease), color .18s var(--ease), padding-left .18s var(--ease);
}
.nav-dropdown a:hover { background: rgba(255, 106, 61, .08); color: var(--brand-500); padding-left: 16px; }
.nav-dropdown a span.count { font-size: 12px; font-weight: 600; color: var(--ink-500); }

/* 下拉菜单中的三级分组 */
.nav-group { padding: 4px 0; }
.nav-group + .nav-group,
.nav-dropdown > .nav-group:first-child { border-top: 1px solid var(--line); }
.nav-group-title {
  display: block; padding: 6px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-500);
}
.nav-group a { padding-left: 24px; font-weight: 500; }
.nav-group a:hover { padding-left: 28px; }

/* 语言切换滑块 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: rgba(22, 22, 42, .07);
  position: relative;
  border: 0;
  cursor: pointer;
}
.lang-switch span {
  position: relative;
  z-index: 2;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  color: var(--ink-500);
  transition: color .25s var(--ease);
}
.lang-switch::before {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 6px 14px rgba(255, 106, 61, .3);
  transition: transform .3s var(--ease);
  z-index: 1;
}
.lang-switch[data-lang="zh_Hans"]::before { transform: translateX(0); }
.lang-switch[data-lang="zh_Hant"]::before { transform: translateX(100%); }
.lang-switch[data-lang="zh_Hans"] span:first-child,
.lang-switch[data-lang="zh_Hant"] span:last-child { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px; }
.nav-toggle i + i { margin-top: 4px; }

/* ==========================================================================
   Hero 首页焦点区
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 44px;
  background: radial-gradient(1100px 380px at 10% -10%, rgba(255, 138, 92, .16), transparent 60%),
              radial-gradient(900px 360px at 92% 0%, rgba(255, 106, 61, .12), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 22px; }

.hero-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #ddd; }
.hero-slide { position: relative; display: none; }
.hero-slide.is-active { display: block; animation: fadeSlide .5s var(--ease); }
@keyframes fadeSlide { from { opacity: .35; transform: scale(1.02); } to { opacity: 1; transform: none; } }

.hero-slide-img { width: 100%; height: 420px; object-fit: cover; background: linear-gradient(135deg, #E64A19, #FF9147); }
.hero-slide-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 60px 34px 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(10,8,30,.72) 55%, rgba(10,8,30,.9) 100%);
  color: #fff;
}
.hero-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--grad-accent); font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.hero-title { margin: 12px 0 6px; font-size: 30px; font-weight: 800; }
.hero-desc { margin: 0; opacity: .88; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hero-dots { position: absolute; right: 18px; bottom: 20px; display: flex; gap: 7px; z-index: 3; }
.hero-dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.45); border: 0; cursor: pointer; transition: all .25s var(--ease); }
.hero-dot.is-active { width: 26px; background: #fff; }

.hero-side { display: grid; gap: 16px; align-content: start; }
.hero-card {
  display: flex; gap: 12px; padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hero-card img { width: 106px; height: 78px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bg); }
.hero-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.hero-card .meta { font-size: 12px; color: var(--ink-500); }

/* 公告滚动条 */
.announce {
  display: flex; align-items: center; gap: 14px;
  margin: -10px 0 30px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(230,74,25,.94), rgba(255,106,61,.88) 55%, rgba(255,145,71,.8));
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 106, 61, .22);
  overflow: hidden;
}
.announce-label { font-weight: 800; flex: none; display: flex; align-items: center; gap: 8px; }
.announce-track { position: relative; flex: 1; height: 24px; overflow: hidden; }
.announce-track a { position: absolute; inset: 0; display: block; font-size: 15px; opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); transform: translateY(12px); }
.announce-track a.is-active { opacity: 1; transform: none; }

/* ==========================================================================
   区块
   ========================================================================== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-title {
  position: relative;
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-500);
  padding-bottom: 9px;
  letter-spacing: .02em;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
}
.section-more { font-size: 14px; color: var(--ink-500); font-weight: 600; transition: color .2s var(--ease); }
.section-more:hover { color: var(--brand-500); }

.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding-bottom: 60px; }

/* 文章列表（参考样式：白卡片容器 + 分隔线行 + 图标元信息） */
.post-grid {
  display: grid;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 6px 26px;
}
.post-card {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.post-card:last-child { border-bottom: 0; }
.post-thumb { position: relative; border-radius: 10px; overflow: hidden; height: 132px; background: linear-gradient(135deg, #ffe3d3, #ffd9c4); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: var(--grad-brand); }
.post-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--brand-500);
  font-size: 12px; font-weight: 700;
}
.post-pin {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--grad-accent); color: #fff; font-size: 12px; font-weight: 700;
}
.post-title { margin: 2px 0 10px; font-size: 19px; font-weight: 700; line-height: 1.45; transition: color .2s var(--ease); }
.post-card:hover .post-title { color: var(--brand-500); }
.post-excerpt { color: var(--ink-500); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; color: #A3A3A3; }
.post-meta .meta-item { display: inline-flex; align-items: center; gap: 5px; }
.post-meta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 侧栏 */
.side-card { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.side-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.side-title::before { content: ""; width: 4px; height: 16px; border-radius: 4px; background: var(--grad-accent); }

.cat-list { display: grid; gap: 6px; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--ink-900); transition: background .2s var(--ease), transform .2s var(--ease); }
.cat-item:hover { background: rgba(255,106,61,.07); transform: translateX(3px); }
.cat-item span.count { font-size: 12px; color: var(--ink-500); }

.rank-list { display: grid; gap: 12px; counter-reset: r; }
.rank-item { display: flex; gap: 10px; align-items: flex-start; }
.rank-index { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; background: linear-gradient(135deg, #ffc09a, #ff9e6b); }
.rank-item:nth-child(1) .rank-index { background: var(--grad-accent); }
.rank-item:nth-child(2) .rank-index { background: linear-gradient(135deg, #ff9f6b, #ffb27f); }
.rank-item:nth-child(3) .rank-index { background: linear-gradient(135deg, #ffb98c, #ffd0ae); }
.rank-title { font-size: 14px; font-weight: 600; line-height: 1.5; }
.rank-meta { font-size: 12px; color: var(--ink-500); }

/* ==========================================================================
   列表页 / 搜索页头
   ========================================================================== */
.page-banner {
  position: relative;
  padding: 42px 0 40px;
  margin-bottom: 26px;
  color: #fff;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-hero);
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 200px at 80% 0%, rgba(255,255,255,.22), transparent 60%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: 32px; margin-bottom: 6px; }
.page-banner p { opacity: .9; margin: 0; }

.breadcrumb { font-size: 13px; opacity: .85; margin-bottom: 10px; }
.breadcrumb a:hover { text-decoration: underline; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip {
  padding: 7px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-500);
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-500); transform: translateY(-2px); }
.chip.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(255,106,61,.28); }

/* 搜索框 */
.search-bar { display: flex; gap: 10px; margin-bottom: 22px; }
.search-bar input {
  flex: 1; padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; outline: 0;
  font-size: 15px; font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-bar input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(255,106,61,.12); }

/* ==========================================================================
   详情页
   ========================================================================== */
.article-header {
  position: relative;
  min-height: 320px;
  display: flex; align-items: flex-end;
  padding: 60px 0 34px;
  color: #fff;
  overflow: hidden;
}
.article-header.no-cover { background: var(--grad-hero); min-height: 210px; padding-top: 90px; }
.article-header img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.article-header .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,30,.25), rgba(10,8,30,.88)); z-index: 1; }
.article-header .container { position: relative; z-index: 2; }
.article-header h1 { font-size: 34px; max-width: 900px; }

.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; opacity: .92; }
.article-meta .pill { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); font-weight: 600; }

.article-body { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px 40px; margin-top: -26px; position: relative; z-index: 3; }
.article-content { max-width: var(--read-width); margin: 0 auto; font-size: 17px; line-height: 1.85; }
.article-content img { border-radius: 14px; box-shadow: var(--shadow-sm); margin: 22px 0; }
.article-content h2 { margin-top: 1.6em; font-size: 24px; }
.article-content h3 { margin-top: 1.4em; font-size: 20px; }
.article-content blockquote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--accent-500); background: rgba(255,106,61,.07); border-radius: 0 12px 12px 0; }
.article-content pre { background: #16162A; color: #e7e7ff; padding: 16px 18px; border-radius: 14px; overflow-x: auto; font-size: 14px; }
.article-content code { background: rgba(255,106,61,.1); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.article-content pre code { background: transparent; padding: 0; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-content li { margin-bottom: .4em; }
.article-content a { color: var(--brand-500); text-decoration: underline; }
.article-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; }
.article-content td[style*="center"], .article-content p[style*="center"] { text-align: center; }

.video-shell { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow); margin: 24px 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 22px 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; cursor: zoom-in; transition: transform .3s var(--ease); }
.gallery img:hover { transform: scale(1.03); }
.gallery figcaption { font-size: 13px; color: var(--ink-500); margin-top: 6px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.tag-item { padding: 5px 12px; border-radius: 999px; background: rgba(255,106,61,.08); color: var(--brand-500); font-size: 13px; font-weight: 600; }
.tag-item:hover { background: rgba(255,106,61,.16); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pager a { padding: 14px 18px; border-radius: var(--radius); background: var(--bg); font-size: 15px; font-weight: 600; transition: all .22s var(--ease); }
.pager a:hover { background: #fff; box-shadow: var(--shadow-sm); color: var(--brand-500); }
.pager .next { text-align: right; }

/* ==========================================================================
   分页
   ========================================================================== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 34px 0 10px; }
.pagination a, .pagination .current {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: grid; place-items: center;
  border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-900);
  transition: all .2s var(--ease);
}
.pagination a:hover { color: var(--brand-500); border-color: var(--brand-500); transform: translateY(-2px); }
.pagination .current { background: var(--grad-brand); color: #fff; border-color: transparent; }
.pagination .disabled { opacity: .45; pointer-events: none; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer { background: #0E0E1E; color: #cfcfe8; padding: 26px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 620px); gap: 0; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 0; }
.footer-grid a { color: #b9b9d6; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 13px; color: #8e8eab;
}

/* ==========================================================================
   空状态 / 404
   ========================================================================== */
.empty-state { padding: 60px 20px; text-align: center; color: var(--ink-500); }

/* ============================ 搜索定位 ============================ */
mark { background: rgba(255, 208, 61, .45); color: inherit; padding: 0 2px; border-radius: 3px; }
.search-result { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.search-hits { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.search-hits-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-500); }
.search-hits ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.search-hits a {
  display: block; font-size: 13.5px; line-height: 1.7; color: inherit;
  text-decoration: none; border-left: 3px solid var(--brand-500); padding-left: 10px;
  border-radius: 0 8px 8px 0; transition: background .2s var(--ease);
}
.search-hits a:hover { background: rgba(255, 106, 61, .06); }
.search-hits a:hover mark { background: rgba(255, 106, 61, .25); }
mark.search-hit { cursor: pointer; }
mark.search-hit.is-active { background: #ffd43b; box-shadow: 0 0 0 3px rgba(255, 212, 59, .35); }
.empty-state .emoji { font-size: 46px; display: block; margin-bottom: 12px; }

.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-code { font-size: 88px; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1200px) {
  .layout-main { grid-template-columns: minmax(0, 1fr) 290px; }
  .hero-slide-img { height: 380px; }
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slide-img { height: 320px; }
  .layout-main { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  /* 移动端保留搜索：默认只显示圆形按钮，展开后输入框在导航栏下方铺满一行 */
  .search-pop.is-open {
    position: absolute; left: 12px; right: 12px; top: calc(100% + 6px);
    z-index: 31;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 6px; box-shadow: var(--shadow);
  }
  .search-pop.is-open input {
    width: 100%; padding: 9px 6px 9px 14px;
    opacity: 1; border-color: transparent; box-shadow: none;
  }
  /* 手机端让搜索按钮有位置：收紧站名区，保证 搜索 / Facebook / 菜单 三颗按钮都排得下 */
  .nav-inner { height: 60px; gap: 10px; }
  .brand { font-size: 17px; gap: 8px; min-width: 0; }
  .brand > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .brand-sub { display: none; }
  .nav-actions { gap: 8px; margin-left: auto; }
  .search-btn, .social-link { width: 38px; height: 38px; }
  .search-btn svg { width: 17px; height: 17px; }
  .fb-tile { width: 20px; height: 20px; }
  .fb-tile svg { width: 11px; height: 11px; }
  .nav-toggle { width: 38px; height: 38px; }
  .post-card, .pager { grid-template-columns: 1fr; }
  .post-thumb { height: 190px; }
  .post-grid { padding: 4px 16px; }
  .article-body { padding: 22px 18px; }
  .article-content { font-size: 16px; }
  .article-header h1 { font-size: 26px; }
  .page-banner h1, h1 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links.is-open {
    display: grid;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  /* 移动端抽屉里，下拉菜单平铺展示 */
  .nav-links.is-open .nav-item { display: block; }
  .nav-links.is-open .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    box-shadow: none;
  }
  .nav-links.is-open .nav-dropdown::before { display: none; }
}

@media (max-width: 576px) {
  .hero-slide-img { height: 240px; }
  .hero-title { font-size: 22px; }
  .hero-slide-body { padding: 40px 20px 20px; }
  .chip-row { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
