/* ============================================================
   AI 日常 · 子站样式（与主站同一套企业 SaaS 官网风，更轻）
   智能紫 + 白底浅灰交替 · 线性图标 · 无 webfont
   主站 token 仅替换品牌四色，其余不变：
     --brand:#7C3AED  --brand-dark:#5B21B6
     --brand-soft:#F3EEFD  --navy:#2A1258
   本文件为子站三页共享：index.html / posts.html / post.html
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --navy: #2A1258;            /* 页脚、深色区块 */
  --navy-2: #3B1D74;
  --brand: #7C3AED;           /* 智能紫 */
  --brand-dark: #5B21B6;
  --brand-soft: #F3EEFD;      /* 图标底、浅紫背景 */
  --ink: #0F1F33;             /* 标题 */
  --text: #3D4A5C;            /* 正文 */
  --muted: #7A8699;           /* 次级 */
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;         /* 区块交替背景 */
  --line: #E3E9F2;            /* 边框 */
  --hover-line: #C9D8F5;
  --code-bg: #F6F8FA;
  --code-fg: #24292F;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(15, 31, 51, .10);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Noto Sans SC", sans-serif;
  --font-mono: Consolas, "SF Mono", "JetBrains Mono", Menlo, Monaco, "Courier New", monospace;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--brand-soft); color: var(--ink); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease,
    color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, .28);
}
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.text-link:hover { color: var(--brand-dark); text-decoration: underline; }

/* ---------- 顶部导航（三页统一 · 粘性白底） ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex: none;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  white-space: nowrap;
}
.top-nav { display: flex; align-items: center; gap: 28px; }
.top-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
  transition: color .2s;
}
.top-link:hover { color: var(--ink); }
.top-link.active { color: var(--brand); font-weight: 600; }

/* 汉堡按钮（≤900px 显示） */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero（主页 · 左文右图） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 24px 84px;
  background:
    radial-gradient(640px 420px at 86% -4%, rgba(124, 58, 237, .10), transparent 70%),
    linear-gradient(rgba(42, 18, 88, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 18, 88, .025) 1px, transparent 1px),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg-soft) 100%);
  background-size: auto, 40px 40px, 40px 40px, auto;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 56px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-title {
  margin-top: 18px;
  font-size: clamp(38px, 4.8vw, 54px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.hero-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.hero-sub em {
  font-style: normal;
  color: var(--brand);
}
.hero-intro {
  max-width: 560px;
  margin-top: 20px;
  font-size: 16px;
  color: var(--muted);
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-visual { position: relative; }
.hero-illus {
  width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 24px 48px rgba(42, 18, 88, .12));
}
/* Hero 浮层小卡（对话气泡 + 代码窗） */
.hero-float {
  position: absolute;
  left: -12px;
  bottom: -6px;
  margin: 0;
  width: min(300px, 62%);
  padding: 8px 8px 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.hero-float img {
  width: 100%;
  height: auto;
  border-radius: 9px;
}
.hero-float figcaption {
  margin-top: 6px;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* ---------- 区块与标题模式 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.section-sub {
  max-width: 720px;
  margin: 14px auto 0;
  font-size: 16px;
  color: var(--muted);
}
.section-more { margin-top: 14px; }
.section-more .text-link { font-size: 14px; }
.latest-more { margin-top: 36px; text-align: center; }

/* ---------- 精选文章（渐变封面卡 · 2×2） ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--hover-line);
}
.feat-cover {
  position: relative;
  display: block;
  width: 100%;
  min-height: 176px;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--brand-soft);
}
.feat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.featured-card:hover .feat-cover img { transform: scale(1.03); }
.feat-cover .cover-spark {
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 120px;
  height: 120px;
  opacity: .22;
}
.feat-cat {
  position: absolute;
  top: 14px;
  left: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.cover-tone-0 { background: linear-gradient(150deg, #7C3AED, #2A1258); }
.cover-tone-1 { background: linear-gradient(150deg, #5B21B6, #2A1258); }
.cover-tone-2 { background: linear-gradient(150deg, #9F67FF, #5B21B6); }
.cover-tone-3 { background: linear-gradient(150deg, #2A1258, #7C3AED); }
.featured-card .feat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px 20px;
}
.feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.card-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}
.type-badge {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #E2D5FA;
  padding: 5px 8px;
  border-radius: 5px;
}
.featured-card h3 {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: break-word;
  transition: color .2s;
}
.featured-card:hover h3 { color: var(--brand); }
.featured-card .card-summary {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.featured-card:hover .read-more { color: var(--brand-dark); }
.read-more .arrow { display: inline-block; transition: transform .2s; }
.featured-card:hover .read-more .arrow { transform: translateX(3px); }

/* ---------- 文章卡片流（最新文章 / 列表页共用） ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* 系列色条（主页最新文章，按标签着色） */
.post-card .card-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.section.alt .post-card { background: #fff; }
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--hover-line);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--ink);
  overflow-wrap: break-word;
}
.card-title a { color: inherit; text-decoration: none; transition: color .2s; }
.card-title a:hover { color: var(--brand); }
.card-summary {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
a.tag:hover { color: var(--brand); border-color: var(--brand); }
.post-card .read-more { padding-top: 18px; }
.post-card .read-more:hover { color: var(--brand-dark); }
.post-card .read-more:hover .arrow { transform: translateX(3px); }

/* ---------- 列表页页头 / 筛选工具条 ---------- */
.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-head .container { padding-top: 64px; padding-bottom: 56px; }
.page-title {
  margin-top: 14px;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--ink);
}
.page-sub {
  margin-top: 12px;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.page-body { background: #fff; }
.page-body .container { padding-top: 56px; padding-bottom: 88px; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 36px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ink); border-color: var(--hover-line); }
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.post-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 状态提示（加载 / file:// 降级 / 失败 / 空态） ---------- */
.state-card {
  margin: 8px 0 0;
  padding: 48px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.state-card .title { color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.state-card code {
  display: inline-block;
  margin: 10px 0 2px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-fg);
  font-family: var(--font-mono);
  font-size: 13px;
}
#hintState { text-align: left; }
#hintState .title { text-align: center; }
.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-bottom: 12px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 详情页（阅读列 780px 居中） ---------- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.state-center { margin: 56px auto 0; max-width: 560px; padding: 56px 40px; }
.nf-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  color: var(--navy);
}
.nf-title { color: var(--ink); font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.nf-msg {
  max-width: 460px;
  margin: 0 auto 26px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.btn-row { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.post-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .2s;
}
.back-link:hover { color: var(--brand); }
.post-title {
  font-size: clamp(28px, 4.5vw, 36px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--ink);
  overflow-wrap: break-word;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
}
.post-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--muted);
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- 阅读排版（Markdown 渲染目标 #article） ---------- */
.article {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  overflow-wrap: break-word;
}
.article > :first-child { margin-top: 0; }
.article > :last-child { margin-bottom: 0; }
.article h1, .article h2, .article h3,
.article h4, .article h5, .article h6 {
  color: var(--ink);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .01em;
}
.article h1 { font-size: 25px; margin: 2em 0 .8em; }
.article h2 {
  font-size: 24px;
  margin: 2.2em 0 .9em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.article h3 { font-size: 19px; margin: 1.8em 0 .7em; }
.article h4, .article h5, .article h6 { font-size: 16.5px; margin: 1.5em 0 .5em; }
.article p { margin: 0 0 1.15em; }
.article strong { color: var(--ink); font-weight: 700; }
.article a { color: var(--brand); text-decoration: none; }
.article a:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article code {
  font-family: var(--font-mono);
  font-size: .875em;
  padding: .15em .4em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--code-fg);
  word-break: break-all;
}
.article pre {
  margin: 1.6em 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-fg);
  overflow-x: auto;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}
.article pre code {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: 13.5px;
  word-break: normal;
  white-space: pre;
}
.article blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}
.article blockquote p { margin: 0 0 .5em; }
.article blockquote p:last-child { margin-bottom: 0; }
.article ul, .article ol { margin: 0 0 1.15em; padding-left: 1.5em; }
.article li { margin: .4em 0; }
.article li::marker { color: var(--muted); }
.table-wrap { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
  min-width: 480px; /* 窄屏触发外层横滚而非挤压 */
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.article th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}
.article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: .4em 0;
}
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* HTML 类型文章：sandbox iframe */
.frame-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
#htmlFrame {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 480px;
  border: 0;
  background: #fff;
}
.post-foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  transition: color .2s;
}
.more-link:hover { color: var(--brand-dark); }

/* ---------- 页脚（深紫底 · 友情链接） ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .65); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px 48px;
  padding: 56px 0 44px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.footer-logo svg { width: 32px; height: 32px; display: block; border-radius: 8px; }
.footer-logo strong {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
  white-space: nowrap;
}
.footer-tagline {
  margin-top: 14px;
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .65);
}
.footer-domain {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .45);
}
.footer-title {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
}
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 10px; }
.footer-links a,
.footer-links span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .2s;
  overflow-wrap: break-word;
}
.footer-links a:hover { color: #fff; }
.footer-links .flabel {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .42);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}
.footer-bottom .mono { font-size: 12px; letter-spacing: .04em; }

/* ---------- 入场动画（仅轻微淡入） ---------- */
.fade-up { opacity: 0; transform: translateY(8px); animation: fadeUp .45s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { gap: 40px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .top-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 24px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .top-nav.open { display: flex; }
  .top-link { padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .top-link:last-child { border-bottom: 0; }
  .hero { padding: 48px 20px 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 620px; margin: 0 auto; }
  .hero-float { left: -4px; bottom: -10px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; padding: 44px 0 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .page-head .container { padding-top: 48px; padding-bottom: 40px; }
  .page-title { font-size: 30px; }
  .page-sub { font-size: 15px; }
  .page-body .container { padding-top: 40px; padding-bottom: 64px; }
  .hero { padding: 40px 20px 60px; }
  .hero-cta .btn { flex: 1; min-width: 0; max-width: 320px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card { flex-direction: column; }
  .feat-cover { aspect-ratio: 16 / 7; min-height: 150px; }
  .hero-float { width: min(240px, 56%); left: 0; bottom: -12px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card { padding: 22px 20px 20px; }
  .wrap { padding: 36px 16px 64px; }
  .article pre { padding: 16px; }
  .article pre code { font-size: 12.5px; }
  #htmlFrame { height: 68vh; min-height: 420px; }
  .post-foot { margin-top: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
}
@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; max-width: none; }
  .filter-tabs, .toolbar { margin-bottom: 28px; }
  .chip { padding: 9px 14px; font-size: 13px; }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
