@charset "UTF-8";

@font-face {
  font-family: "Great Vibes";
  src: url("fonts/great-vibes.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Amariah Theme — 全屏覆盖式导航 + 双栏布局
   基于 Single-master 结构重设计
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

/* ── CSS Variables ── */
:root {
  --bg: #fff; --text: #2c2c2a; --text-secondary: #888780; --text-muted: #b4b2a9;
  --accent: #534AB7; --menu-bg: #f7f4ee; --sidebar-bg: #f9f7f3;
  --border: rgba(128,128,128,0.1); --header-bg-trans: transparent;
  --header-text: #fff;
}
.dark-theme {
  --bg: #121212; --text: #e8e5df; --text-secondary: #999; --text-muted: #555;
  --accent: #a0c8f0; --menu-bg: #1a1815; --sidebar-bg: #1a1815;
  --border: rgba(128,128,128,0.15); --header-bg-trans: transparent;
  --header-text: #f0ead6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  background: var(--bg); color: var(--text); margin: 0;
  line-height: 1.6; transition: background 0.4s ease, color 0.4s ease;
}
a { color: var(--accent); text-decoration: none; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  /* 默认实心：适用于文章页/分类页/相册页等浅色背景页面 */
  background: #fff; color: #2c2c2a;
  border-bottom: 0.5px solid #e8e5df;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.dark-theme .site-header {
  background: #0d0d0d; color: #f0ead6; border-color: #252525;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
/* 首页 hero 上：默认透明（白字压在深色配图上），滚动后变实心 */
.site-header.has-hero {
  background: transparent; color: #fff; border-color: transparent; box-shadow: none;
}
.site-header.has-hero.scrolled {
  background: #fff; color: #2c2c2a; border-color: #e8e5df;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.dark-theme .site-header.has-hero.scrolled {
  background: #0d0d0d; color: #f0ead6; border-color: #252525;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
body.menu-open .site-header {
  background: var(--menu-bg); color: var(--text); border-color: transparent; box-shadow: none;
}

.site-title { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; color: inherit; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }

.dark-toggle { width: 36px; height: 36px; border-radius: 8px; border: none; background: rgba(0,0,0,0.05); color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: background 0.2s; }
.dark-theme .dark-toggle { background: rgba(255,255,255,0.08); }
/* hero 上未滚动时用浅色底以适配深色配图 */
.site-header.has-hero:not(.scrolled) .dark-toggle { background: rgba(255,255,255,0.15); }

.menu-trigger { display: flex; align-items: center; gap: 8px; border: none; background: none; color: inherit; cursor: pointer; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; padding: 6px 0; }
.menu-trigger:hover { opacity: 0.7; }

.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform 0.3s ease, opacity 0.3s ease; transform-origin: center; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Fullscreen Menu ── */
.menu-overlay {
  position: fixed; inset: 0; z-index: 999; background: #f7f4ee;
  visibility: hidden; transform: translateY(-100%);
  transition: visibility 0.5s, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
}
.dark-theme .menu-overlay { background: #1a1815; }
body.menu-open .menu-overlay { visibility: visible; transform: translateY(0); }

.menu-inner { display: flex; height: calc(100vh - 64px - 56px); padding-top: 64px; overflow: hidden; }
.menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem 4% 2rem 12%; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.menu-nav::-webkit-scrollbar { display: none; }

.menu-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: #2c2c2a; font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 2.2rem; line-height: 1; padding: 1.2rem 0; border-bottom: 0.5px solid rgba(128,128,128,0.1); transition: color 0.25s, padding-left 0.3s; cursor: pointer; flex-shrink: 0; }
.dark-theme .menu-link { color: #e8e5df; }
.menu-link .diamond { width: 14px; height: 14px; min-width: 14px; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.25s; }
.menu-link .diamond svg { width: 100%; height: 100%; display: block; }
.menu-link:hover { color: var(--accent); padding-left: 6px; }
.menu-link:hover .diamond { opacity: 1; transform: scale(1); }
.menu-link.current { color: var(--accent); font-style: italic; }
.menu-link.current .diamond { opacity: 1; transform: scale(1); }

.menu-preview { width: 44%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1.5% 2rem 2%; border-left: 0.5px solid var(--border); gap: 2rem; }
.preview-image { width: 100%; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; }
.preview-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s; }

.menu-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; height: 56px; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 1.5rem; padding: 0 5%; border-top: 1px solid rgba(128,128,128,0.2); background: #f7f4ee; font-size: 13px; color: var(--text-secondary); visibility: hidden; opacity: 0; transition: visibility 0.45s, opacity 0.45s; }
.dark-theme .menu-footer { background: #1a1815; }
body.menu-open .menu-footer { visibility: visible; opacity: 1; }
.menu-footer a { color: inherit; text-decoration: none; transition: color 0.2s; flex-shrink: 0; white-space: nowrap; }
.menu-footer a:hover { color: var(--accent); }
.menu-search { display: flex; align-items: center; gap: .5rem; flex: 1; max-width: 380px; border-bottom: 1px solid rgba(128,128,128,0.25); padding-bottom: 4px; }
.menu-search .fa-search { color: var(--text-muted); font-size: 14px; }
.menu-search input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--text); padding: 4px 2px; outline: none; }
.menu-search input::placeholder { color: var(--text-muted); }
.menu-search:focus-within { border-bottom-color: var(--accent); }

/* ── Content hiding ── */
body.menu-open { overflow: hidden; }
body.menu-open main,
body.menu-open footer,
body.menu-open .home-title,
body.menu-open .hero { visibility: hidden; }

.hero-sentinel { position: absolute; top: 100vh; height: 1px; width: 100%; pointer-events: none; }

/* ── Home Hero ── */
.hero { height: 100vh; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #1a2233 url('img/hero-bg.jpg') center/cover no-repeat; background-attachment: fixed; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(24,16,48,0.55) 0%, rgba(20,28,60,0.45) 50%, rgba(12,40,42,0.55) 100%); z-index: 0; }
.dark-theme .hero::before { background: linear-gradient(160deg, rgba(6,4,16,0.72) 0%, rgba(8,12,32,0.66) 50%, rgba(4,16,14,0.72) 100%); }
.hero h1 { position: relative; z-index: 1; font-family: "Great Vibes", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive; font-size: clamp(44px, 8.5vw, 96px); font-weight: 400; color: #fff; letter-spacing: 0.5px; line-height: 1.1; max-width: 16em; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.hero .subtitle { position: relative; z-index: 1; margin-top: 1rem; font-size: 18px; font-weight: 300; color: rgba(255,255,255,0.88); font-style: italic; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }

/* ── Article List Layout ── */
.article-list-layout { max-width: 1100px; margin: 0 auto; padding: 80px 5% 60px; display: flex; gap: 3rem; align-items: stretch; }
.articles-column { flex: 1; min-width: 0; }
.article-card { position: relative; display: flex; align-items: flex-start; gap: 1.8rem; padding: 2.2rem 0; border-bottom: 0.5px solid var(--border); transition: transform 0.25s, border-color 0.25s; }
.article-card:hover { transform: translateX(10px); border-color: var(--accent); }
/* 整卡可点击，但避免 <a> 嵌套：用伪链接覆盖层，标题/分类链接置于其上层 */
.card-link { position: absolute; inset: 0; z-index: 0; }
.card-body a, .card-cat a { position: relative; z-index: 1; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); }
.card-date { min-width: 80px; padding-top: 6px; font-size: 13px; color: var(--text-muted); font-family: "Noto Serif SC", serif; letter-spacing: 0.04em; line-height: 1.5; text-align: right; }
.card-date .day { display: block; font-size: 28px; font-weight: 500; color: var(--text); line-height: 1.1; }
.card-body { flex: 1; min-width: 0; }
.card-body h3 { font-size: 20px; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); line-height: 1.4; }
.card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-cat { display: inline-block; margin-top: 0.6rem; font-size: 11px; color: var(--accent); letter-spacing: 0.04em; }

/* ── Sidebar ── */
.sidebar { width: 260px; flex-shrink: 0; }
.sidebar-inner { position: sticky; top: 80px; }
.sidebar-card { background: var(--sidebar-bg); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; border: 0.5px solid var(--border); }
.sidebar-card h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 0.5px solid var(--border); }
.cat-list { list-style: none; padding: 0; }
.cat-list li { margin-bottom: 0.4rem; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--text-secondary); font-size: 13px; padding: 0.4rem 0.5rem; border-radius: 4px; transition: 0.2s; }
.cat-list a:hover { color: var(--accent); background: rgba(128,128,128,0.05); }
.cat-list .count { font-size: 11px; color: var(--text-muted); background: rgba(128,128,128,0.08); padding: 1px 8px; border-radius: 10px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud a { text-decoration: none; font-size: 11px; color: var(--text-secondary); padding: 3px 10px; border: 0.5px solid var(--border); border-radius: 12px; transition: 0.2s; }
.tag-cloud a:hover { border-color: var(--accent); color: var(--accent); }
.tag-empty { font-size: 12px; color: var(--text-muted); }

/* ── Page Nav ── */
.page-navi { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.page-navi span, .page-navi a { padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 13px; color: var(--text-secondary); text-decoration: none; border: 0.5px solid var(--border); }
.page-navi .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-navi a:hover { border-color: var(--accent); }

/* ── Article/Page ── */
.article-page { max-width: 860px; margin: 0 auto; padding: 120px 5% 120px; }
.breadcrumb { margin-bottom: 2rem; font-size: 12px; color: var(--text-muted); }
.breadcrumb a { color: inherit; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.4rem; }

.article-h1 { font-family: "Noto Serif SC", "Songti SC", "STSong", serif; font-size: 32px; font-weight: 600; line-height: 1.4; margin-bottom: 1rem; padding-bottom: 2rem; border-bottom: 0.5px solid var(--border); }
.article-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 1.5rem; margin-top: -1rem; margin-bottom: 2rem; }
.article-body { font-size: 17px; line-height: 1.9; }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 { font-family: "Noto Serif SC", serif; font-size: 22px; font-weight: 600; margin: 3rem 0 1rem; }
.article-body blockquote { margin: 2rem 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--accent); background: var(--menu-bg); border-radius: 0 6px 6px 0; font-family: "Noto Serif SC", serif; font-style: italic; font-size: 16px; color: var(--text-secondary); line-height: 1.8; }
.article-body blockquote p { margin-bottom: 0; }
.article-body pre { margin: 2rem 0; padding: 1.5rem; background: var(--menu-bg); border: 1px solid var(--border); border-radius: 6px; font-size: 14px; line-height: 1.7; overflow-x: auto; color: var(--text); }
.article-body :not(pre) > code { font-family: "SF Mono", "Fira Code", monospace; font-size: 0.88em; background: rgba(128,128,128,0.1); padding: 2px 6px; border-radius: 4px; color: var(--accent); }
/* Prism 语法高亮（浅色） */
.article-body pre .token.comment, .article-body pre .token.prolog, .article-body pre .token.doctype, .article-body pre .token.cdata { color: #9a9486; font-style: italic; }
.article-body pre .token.punctuation { color: #6b675e; }
.article-body pre .token.keyword, .article-body pre .token.atrule, .article-body pre .token.important, .article-body pre .token.rule { color: #534AB7; }
.article-body pre .token.string, .article-body pre .token.char, .article-body pre .token.attr-value, .article-body pre .token.inserted, .article-body pre .token.regex { color: #2f7d4f; }
.article-body pre .token.number, .article-body pre .token.boolean, .article-body pre .token.constant, .article-body pre .token.symbol { color: #b5533a; }
.article-body pre .token.function, .article-body pre .token.class-name { color: #2a6f9e; }
.article-body pre .token.tag, .article-body pre .token.property, .article-body pre .token.attr-name, .article-body pre .token.builtin, .article-body pre .token.selector, .article-body pre .token.variable { color: #a0502a; }
.article-body pre .token.operator, .article-body pre .token.entity, .article-body pre .token.url, .article-body pre .token.namespace { color: #888780; }
.article-body pre .token.deleted { color: #c0392b; }
.article-body pre .token.bold { font-weight: 700; }
.article-body pre .token.italic { font-style: italic; }
/* Prism 语法高亮（深色） */
.dark-theme .article-body :not(pre) > code { background: rgba(255,255,255,0.08); color: #a0c8f0; }
.dark-theme .article-body pre .token.comment, .dark-theme .article-body pre .token.prolog, .dark-theme .article-body pre .token.doctype, .dark-theme .article-body pre .token.cdata { color: #6b675e; }
.dark-theme .article-body pre .token.punctuation { color: #999; }
.dark-theme .article-body pre .token.keyword, .dark-theme .article-body pre .token.atrule, .dark-theme .article-body pre .token.important, .dark-theme .article-body pre .token.rule { color: #a0c8f0; }
.dark-theme .article-body pre .token.string, .dark-theme .article-body pre .token.char, .dark-theme .article-body pre .token.attr-value, .dark-theme .article-body pre .token.inserted, .dark-theme .article-body pre .token.regex { color: #8fbf8f; }
.dark-theme .article-body pre .token.number, .dark-theme .article-body pre .token.boolean, .dark-theme .article-body pre .token.constant, .dark-theme .article-body pre .token.symbol { color: #e0a080; }
.dark-theme .article-body pre .token.function, .dark-theme .article-body pre .token.class-name { color: #c0a0f0; }
.dark-theme .article-body pre .token.tag, .dark-theme .article-body pre .token.property, .dark-theme .article-body pre .token.attr-name, .dark-theme .article-body pre .token.builtin, .dark-theme .article-body pre .token.selector, .dark-theme .article-body pre .token.variable { color: #e0b080; }
.dark-theme .article-body pre .token.operator, .dark-theme .article-body pre .token.entity, .dark-theme .article-body pre .token.url, .dark-theme .article-body pre .token.namespace { color: #999; }
.dark-theme .article-body pre .token.deleted { color: #e06c75; }

.article-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 0.5px solid var(--border); }
.article-nav .nav-item { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.2rem; border: 0.5px solid var(--border); border-radius: 6px; transition: border-color 0.2s; }
.article-nav .nav-item:hover { border-color: var(--accent); }
.article-nav .nav-next { text-align: right; align-items: flex-end; }
.article-nav .nav-label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.article-nav .nav-item a { color: var(--text); font-size: 14px; line-height: 1.5; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.article-nav .nav-item a:hover { color: var(--accent); }
.article-nav .nav-none { color: var(--text-muted); font-size: 14px; }

/* ── Album ── */
.album-page-header { max-width: 1100px; margin: 0 auto; padding: 80px 5% 2rem; }
.album-page-header h1 { font-family: "Noto Serif SC", serif; font-size: 32px; font-weight: 600; }
.album-page-header .album-page-desc { font-size: 14px; color: var(--text-secondary); margin-top: 0.3rem; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; padding: 0 5% 2rem; }
.album-grid-item { border-radius: 6px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.album-grid-item:hover { transform: scale(1.03); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.dark-theme .album-grid-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.album-grid-item img { width: 100%; display: block; }

/* ── Shared content-page primitives (文章分类 / 知识归档) ── */
:root { --radius: 8px; --border-strong: rgba(128,128,128,0.18); --accent-soft: #efeefb; --shadow-lg: 0 12px 40px rgba(0,0,0,0.12); --serif: "Noto Serif SC", "Songti SC", "STSong", serif; }
.dark-theme { --border-strong: rgba(128,128,128,0.25); --accent-soft: #1d2233; --shadow-lg: 0 12px 40px rgba(0,0,0,0.55); }

.page { max-width: 1100px; margin: 0 auto; padding: 100px 5% 60px; }
.page > .breadcrumb { margin-bottom: 1.5rem; }
.page-title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.3; margin: 0 0 0.4rem; }
.page-desc { font-size: 14px; color: var(--text-secondary); margin: 0 0 2.5rem; }

/* 归档页（分类 / 标签 / 搜索 / 作者） */
.archive-page-header { margin-bottom: 2.5rem; }
.archive-page-header .breadcrumb { margin-bottom: 1rem; }
.archive-empty { color: var(--text-secondary); padding: 2rem 0; }
.archive-pagenav { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.archive-pagenav > span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 0.5px solid var(--border); border-radius: 6px; font-size: 13px; color: var(--text-secondary); }
.archive-pagenav > span a { color: inherit; text-decoration: none; }
.archive-pagenav > span:hover { color: var(--accent); border-color: var(--accent); }
.archive-pagenav > span:hover a { color: var(--accent); }

/* 文章分类卡片网格 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.cat-card { display: flex; flex-direction: column; background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; text-decoration: none; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.cat-strip { height: 6px; background: var(--accent); opacity: .85; }
.cat-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cat-name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--text); margin: 0; }
.cat-count { font-size: 12px; color: #fff; background: var(--accent); padding: 2px 10px; border-radius: 12px; flex-shrink: 0; }
.cat-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 16px; flex: 1; }
.cat-go { font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; transition: gap .2s; }
.cat-card:hover .cat-go { gap: 9px; }

/* 知识归档模块网格 */
.ka-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.ka-card { background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.ka-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.ka-cover { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 16px; }
.ka-cover span.kind { font-size: 11px; letter-spacing: .04em; color: #fff; background: rgba(0,0,0,.35); padding: 3px 10px; border-radius: 12px; backdrop-filter: blur(4px); }
.ka-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.ka-title { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.ka-sub { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 14px; flex: 1; }
.ka-subs { list-style: none; padding: 0; margin: 0 0 14px; border-top: 0.5px solid var(--border); }
.ka-subs li { padding: 9px 0; border-bottom: 0.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.ka-subs a { color: var(--text); font-size: 14px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.ka-subs a:hover { color: var(--accent); }
.ka-subs .meta { font-size: 11px; color: var(--text-muted); }
.ka-subs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ka-go { font-size: 13px; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.ka-card.soon { opacity: .72; }
.ka-card.soon .ka-cover { filter: grayscale(.4); }
.ka-soon-tag { font-size: 11px; color: var(--text-muted); border: 0.5px solid var(--border-strong); padding: 2px 10px; border-radius: 12px; }

@media (max-width: 768px) { .page { padding-top: 84px; } .page-title { font-size: 26px; } }
@media (max-width: 480px) { .cat-grid, .ka-grid { grid-template-columns: 1fr; } .page-title { font-size: 22px; } }

/* ── Comments ── */
#comments { max-width: 860px; margin: 3rem auto 0; }
#comments .comment-list { list-style: none; padding: 0; }
#comments .comment-list li { padding: 1rem 0; border-bottom: 0.5px solid var(--border); }

/* ── Footer ── */
.site-footer { border-top: 0.5px solid var(--border); padding: 2.5rem 5% 3rem; text-align: center; font-size: 12px; color: var(--text-muted); }
.site-footer a { color: inherit; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .menu-preview { display: none; }
  .menu-nav { padding: 2rem 5%; }
  .menu-link { font-size: 1.8rem; padding: 0.9rem 0; }
  .menu-footer { font-size: 12px; height: 56px; }
  .menu-inner { height: calc(100vh - 56px - 56px); padding-top: 56px; }
  .article-list-layout { flex-direction: column; padding: 60px 5% 40px; }
  .sidebar { width: 100%; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 480px) {
  .site-header { height: 56px; }
  .menu-inner { height: calc(100vh - 56px - 56px); padding-top: 56px; }
  .menu-link { font-size: 1.4rem; padding: 0.75rem 0; }
  .menu-link .diamond { width: 10px; height: 10px; min-width: 10px; }
  .hero h1 { font-size: 28px; }
  .article-card { gap: 1rem; padding: 1.5rem 0; }
  .card-date { min-width: 55px; }
  .card-date .day { font-size: 22px; }
  .card-body h3 { font-size: 17px; }
  .article-h1 { font-size: 24px; }
  .article-page { padding: 60px 5% 80px; }
  .article-list-layout { padding: 50px 4% 30px; }
}
