/* ============================================================
   航运研究个人站 · 样式表
   纯 CSS，无框架、无外部字体、无 CDN 依赖
   ============================================================ */

:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --text: #14263b;
  --text-2: #54687e;
  --text-3: #8b9cb0;
  --border: #e1e9f2;
  --brand: #0d2c4b;
  --brand-2: #164a72;
  --accent: #0b8ba6;
  --accent-2: #16a9b8;
  --accent-soft: #e3f4f7;
  --shadow-sm: 0 2px 10px rgba(13, 44, 75, .05);
  --shadow: 0 12px 34px rgba(13, 44, 75, .09);
  --shadow-lg: 0 24px 60px rgba(13, 44, 75, .14);
  --radius: 16px;
  --radius-sm: 10px;
  /* Hero 固定深色，不随主题切换 */
  --hero-1: #0a243e;
  --hero-2: #10446c;
  --hero-3: #0b6e87;
  --hero-fg: #ffffff;
  --hero-fg-2: rgba(255, 255, 255, .74);
}

[data-theme="dark"] {
  --bg: #0c1622;
  --surface: #132233;
  --surface-2: #17293c;
  --text: #e9f1f9;
  --text-2: #a8bccf;
  --text-3: #7d93a8;
  --border: #24384d;
  --brand: #6fc3e4;
  --brand-2: #8fd2ec;
  --accent: #4ec9d8;
  --accent-2: #6ad8c8;
  --accent-soft: #163a44;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .2);
  --shadow: 0 12px 34px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; display: block; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--accent); color: #fff; }

/* ---------------- 演示提示条 ---------------- */
.demo-notice {
  background: #fff8e6;
  border-bottom: 1px solid #f2e2b8;
  color: #7a5a17;
  font-size: 12.5px;
}
[data-theme="dark"] .demo-notice { background: #2c2515; border-color: #4a3c1e; color: #e8c986; }
.demo-notice-inner { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.demo-notice code {
  background: rgba(122, 90, 23, .1); padding: 1px 5px; border-radius: 4px;
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
}
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0a53a; flex: none; }
#demoClose {
  margin-left: auto; border: 0; background: transparent; color: inherit;
  font-size: 20px; line-height: 1; padding: 0 2px; opacity: .65;
}
#demoClose:hover { opacity: 1; }
.demo-notice.is-hidden { display: none; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--brand-2), var(--accent));
  box-shadow: 0 6px 16px rgba(13, 74, 114, .22);
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand-text strong { font-size: 17px; letter-spacing: .02em; color: var(--brand); }
.brand-text small { font-size: 9.5px; letter-spacing: .16em; color: var(--text-3); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-link {
  position: relative; font-size: 14px; color: var(--text-2); font-weight: 500;
  transition: color .2s ease; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px;
  background: var(--accent); border-radius: 2px; transition: right .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text-2);
  transition: all .2s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
#themeToggle .icon-moon { display: none; }
[data-theme="dark"] #themeToggle .icon-sun { display: none; }
[data-theme="dark"] #themeToggle .icon-moon { display: block; }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: all .22s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .22s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 9px 17px; font-size: 13px; }
.btn-primary { background: var(--brand-2); color: #fff; box-shadow: 0 5px 14px rgba(22, 74, 114, .2); }
.btn-primary:hover { background: var(--accent); box-shadow: 0 8px 20px rgba(11, 139, 166, .25); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.btn-outline { border-color: var(--border); background: var(--surface); color: var(--brand-2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; color: var(--hero-fg);
  background: linear-gradient(125deg, var(--hero-1) 0%, var(--hero-2) 58%, var(--hero-3) 130%);
  padding: 78px 0 0;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-glow-a { width: 460px; height: 460px; right: -60px; top: -140px; background: rgba(28, 178, 190, .3); }
.hero-glow-b { width: 380px; height: 380px; left: 20%; bottom: -220px; background: rgba(56, 130, 220, .22); }
.hero-wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 130px; color: #fff; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: center;
  padding-bottom: 62px;
}
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: .1em; color: #9fe2e6; font-weight: 600; }
.eyebrow-line { width: 30px; height: 2px; background: #55cfd4; border-radius: 2px; }
.hero-title {
  margin: 22px 0 20px; font-size: clamp(2.05rem, 3.6vw, 3.15rem);
  line-height: 1.28; font-weight: 750; letter-spacing: -.015em;
}
.hero-title .accent {
  background: linear-gradient(100deg, #7ee3df, #a9e9f5 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { max-width: 570px; color: var(--hero-fg-2); font-size: 15.5px; line-height: 1.9; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-meta { display: flex; align-items: center; gap: 16px; margin-top: 38px; color: rgba(255,255,255,.62); font-size: 12.5px; }
.hero-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta-sep { width: 1px; height: 14px; background: rgba(255,255,255,.24); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #5de0c0; box-shadow: 0 0 0 4px rgba(93,224,192,.18); }

/* Hero 右侧面板 */
.hero-panel { position: relative; padding: 18px 0 26px; }
.panel-card {
  position: relative; z-index: 2; border-radius: 18px; padding: 26px 26px 20px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 22px 50px rgba(0,0,0,.18);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-kicker { font-size: 10.5px; letter-spacing: .2em; color: #8fd7e2; font-weight: 700; }
.panel-badge { font-size: 10.5px; padding: 3px 9px; border-radius: 20px; background: rgba(255,255,255,.14); color: #d8f1f5; }
.panel-title { margin: 10px 0 22px; font-size: 23px; font-weight: 650; letter-spacing: .02em; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: #eaf6fa;
}
.panel-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.panel-no { font-size: 11px; color: #7fd0dc; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.panel-list li i { margin-left: auto; width: 34px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); position: relative; }
.panel-list li i::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; border-radius: 3px; background: #67dcd6; }
.panel-list li:nth-child(1) i::after { width: 86%; }
.panel-list li:nth-child(2) i::after { width: 68%; }
.panel-list li:nth-child(3) i::after { width: 76%; }
.panel-list li:nth-child(4) i::after { width: 58%; }
.panel-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: rgba(255,255,255,.6); font-size: 11.5px; }
.panel-foot svg { width: 15px; height: 15px; }
.panel-float {
  position: absolute; z-index: 3; right: -14px; bottom: -2px;
  width: 218px; padding: 15px 17px; border-radius: 14px;
  background: #fff; color: var(--brand); box-shadow: 0 18px 40px rgba(0,0,0,.22);
  display: flex; flex-direction: column; gap: 5px;
}
.float-label { font-size: 10px; letter-spacing: .14em; color: #8b9cb0; }
.panel-float strong { font-size: 13.5px; }
.float-bars { display: flex; gap: 4px; margin-top: 7px; }
.float-bars i { height: 5px; flex: 1; border-radius: 3px; background: #dce8f1; }
.float-bars i:nth-child(-n+5) { background: linear-gradient(90deg, #1a8fae, #3ec6c0); }

/* 数字条 */
.stats {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(34px); margin-bottom: -14px;
  color: var(--text);
}
.stat { padding: 24px 30px; display: flex; align-items: center; gap: 18px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font-size: 34px; font-weight: 750; line-height: 1; color: var(--brand-2); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 14px; font-weight: 650; }
.stat-sub { font-size: 11.5px; color: var(--text-3); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 116px 0 100px; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-kicker { display: inline-block; font-size: 11px; letter-spacing: .18em; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.section-kicker-light { color: #79d9df; }
.section-title { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 720; letter-spacing: -.02em; line-height: 1.3; color: var(--text); }
.section-sub { margin: 0; color: var(--text-2); font-size: 14.5px; max-width: 620px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13.5px; font-weight: 650; white-space: nowrap; padding-bottom: 6px; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------------- 专题卡片 ---------------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px 22px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.topic-card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0; transition: opacity .25s ease;
}
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.topic-card:hover::before { opacity: 1; }
.topic-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.topic-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.topic-icon svg { width: 24px; height: 24px; }
.topic-no { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.topic-title { margin: 0 0 9px; font-size: 17px; font-weight: 680; line-height: 1.4; }
.topic-desc { margin: 0 0 18px; font-size: 13px; color: var(--text-2); line-height: 1.8; min-height: 70px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-tags span { font-size: 11px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: 3px 9px; border-radius: 20px; }
.topic-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }
.topic-foot small { font-size: 11.5px; color: var(--text-3); }
.topic-foot svg { width: 16px; height: 16px; color: var(--text-3); transition: transform .22s ease, color .22s ease; }
.topic-card:hover .topic-foot svg { transform: translateX(4px); color: var(--accent); }
.topic-card--wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px 26px; }
.topic-card--wide .topic-top { margin: 0; }
.topic-card--wide .topic-no { display: none; }
.topic-card--wide .topic-desc { min-height: 0; margin-bottom: 12px; }
.topic-card--wide .topic-foot { margin: 0; padding: 0; border: 0; }
.topic-card--wide .topic-foot small { display: none; }
.topic-card--wide .topic-tags { grid-column: 2; }

/* ---------------- 笔记列表 ---------------- */
.search-box {
  display: flex; align-items: center; gap: 9px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 0 13px;
  width: 250px; height: 42px; flex: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-box svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.search-box input { border: 0; outline: 0; background: transparent; color: var(--text); width: 100%; font-size: 13px; }
.search-box input::placeholder { color: var(--text-3); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  padding: 7px 15px; border-radius: 22px; font-size: 12.5px; font-weight: 550;
  transition: all .2s ease; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }

.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 13px;
  padding: 20px 24px; transition: all .22s ease;
}
.article-item:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.article-date { display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--border); padding-right: 18px; }
.article-date b { font-size: 20px; font-weight: 700; color: var(--brand-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.article-date span { font-size: 11px; color: var(--text-3); margin-top: 4px; letter-spacing: .04em; }
.article-title { margin: 0 0 6px; font-size: 16px; font-weight: 650; line-height: 1.5; }
.article-summary { margin: 0 0 10px; font-size: 12.8px; color: var(--text-2); line-height: 1.7; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.article-tags .cat { font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 5px; font-weight: 600; }
.article-tags em { font-style: normal; font-size: 11px; color: var(--text-3); }
.article-arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); flex: none; }
.article-arrow svg { width: 16px; height: 16px; }
.article-item:hover .article-arrow { background: var(--accent); color: #fff; }
.article-item.is-link { cursor: pointer; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state svg { width: 34px; height: 34px; margin: 0 auto 12px; }
.empty-state p { margin: 0; font-size: 14px; }

/* ---------------- 关于 ---------------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.about-paragraphs p { color: var(--text-2); font-size: 14.5px; line-height: 2; margin: 0 0 16px; }
.about-copy .btn { margin-top: 14px; }
.about-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.about-card-top {
  display: flex; align-items: center; gap: 14px; padding: 24px 26px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff;
}
.about-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font-size: 19px; font-weight: 700;
}
.about-card-top div { display: flex; flex-direction: column; line-height: 1.5; }
.about-card-top strong { font-size: 17px; }
.about-card-top span { font-size: 12px; color: rgba(255,255,255,.75); }
.fact-list { margin: 0; padding: 12px 26px 18px; }
.fact-list div { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--text-3); }
.fact-list dd { margin: 0; color: var(--text); font-weight: 550; }
.about-card-foot { display: flex; align-items: center; gap: 8px; padding: 14px 26px; background: var(--surface-2); border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); }
.about-card-foot svg { width: 15px; height: 15px; flex: none; }

/* ---------------- 联系 ---------------- */
.contact-section { padding: 20px 0 110px; }
.contact-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 46px;
  padding: 52px 54px; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, var(--hero-1), var(--hero-2) 72%, var(--hero-3));
  box-shadow: var(--shadow-lg);
}
.contact-card::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px;
  border-radius: 50%; background: rgba(64, 200, 200, .16); filter: blur(40px);
}
.contact-copy, .contact-side { position: relative; z-index: 2; }
.contact-copy h2 { margin: 4px 0 14px; font-size: clamp(1.6rem, 2.7vw, 2.2rem); font-weight: 700; line-height: 1.4; }
.contact-copy p { color: rgba(255,255,255,.74); font-size: 14px; margin: 0 0 28px; max-width: 480px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-side { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.wechat-card, .domain-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 13px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wechat-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.16); flex: none; }
.wechat-icon svg { width: 20px; height: 20px; }
.wechat-card div { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.wechat-label, .domain-label { font-size: 10.5px; letter-spacing: .12em; color: #8fd7e2; }
.wechat-card strong { font-size: 16px; margin: 2px 0; }
.wechat-card small { font-size: 11.5px; color: rgba(255,255,255,.66); }
.domain-card { flex-direction: column; gap: 3px; }
.domain-card strong { font-size: 16px; letter-spacing: .02em; word-break: break-all; }
.domain-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.66); margin-top: 5px; }
.domain-status i { width: 6px; height: 6px; border-radius: 50%; background: #5de0c0; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 38px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; line-height: 1.6; }
.footer-brand strong { font-size: 16px; color: var(--brand); }
.footer-brand span { font-size: 12px; color: var(--text-3); }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-3); }

.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.back-top svg { width: 18px; height: 18px; }

/* ---------------- 出现动画 ---------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
/* 入场结束后恢复卡片自身的 hover 过渡，避免位移拖沓 */
.topic-card.reveal.is-visible,
.article-item.reveal.is-visible {
  transition: opacity .5s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr .85fr; gap: 30px; }
  .panel-float { right: 0; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-card--wide { grid-column: span 2; }
  .about-grid { gap: 36px; }
  .contact-card { padding: 42px 36px; gap: 30px; }
  .nav { gap: 20px; }
}

@media (max-width: 820px) {
  .header-inner { height: 64px; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 8px 24px 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .22s ease;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; padding-bottom: 48px; }
  .hero-panel { max-width: 460px; }
  .panel-float { display: none; }
  .stats { grid-template-columns: 1fr; transform: translateY(24px); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stat { padding: 18px 24px; }
  .section { padding: 90px 0 76px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .search-box { width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-meta-sep { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card--wide { grid-column: span 1; display: block; }
  .topic-card--wide .topic-top { margin-bottom: 16px; }
  .topic-card--wide .topic-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
  .topic-card--wide .topic-foot small { display: inline; }
  .topic-desc { min-height: 0; }
  .article-item { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .article-date { flex-direction: row; align-items: baseline; gap: 7px; border-right: 0; padding-right: 0; }
  .article-date b { font-size: 15px; }
  .article-arrow { display: none; }
  .article-title { font-size: 15px; }
  .contact-card { padding: 34px 24px; }
  .contact-copy h2 { font-size: 1.55rem; }
  .brand-text small { display: none; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
