@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── 变量 ─── */
:root {
  --c-primary: #ff0080;
  --c-accent: #ff00ff;
  --c-dark: #26171f;
  --c-dark2: #3a2030;
  --c-dark3: #1a0f16;
  --c-light: #fff5fd;
  --c-muted: rgba(255,255,255,0.55);
  --c-border: rgba(255,0,128,0.25);
  --nav-w: 72px;
  --nav-w-open: 220px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 10px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─── 重置 ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-dark3);
  color: var(--c-light);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent); }
ul, ol { list-style: none; }

/* ─── Aurora Mesh 背景效果 ─── */
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-mesh::before {
  content: '';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(255,0,128,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(255,0,255,0.45) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 80%, rgba(38,23,31,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 60%, rgba(255,0,200,0.35) 0%, transparent 55%);
  animation: meshFlow 12s ease-in-out infinite alternate;
  filter: blur(2px);
}
.hero-mesh::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,0,128,0.12) 0%, transparent 50%, rgba(255,0,255,0.1) 100%);
  mix-blend-mode: screen;
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes meshFlow {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(3%, -2%) scale(1.03); }
  66%  { transform: translate(-2%, 4%) scale(0.98); }
  100% { transform: translate(2%, -3%) scale(1.04); }
}
@keyframes shimmer {
  from { opacity: 0.6; filter: hue-rotate(0deg); }
  to   { opacity: 1;   filter: hue-rotate(25deg); }
}

/* ─── 侧边导航 ─── */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: rgba(26,15,22,0.92);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 100;
  transition: width var(--transition);
  overflow: hidden;
}
.sidenav:hover {
  width: var(--nav-w-open);
}
.sidenav-brand {
  padding: 18px 0 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.brand-logo-img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; }
.brand-initial { font-size: 1.3rem; font-weight: 700; color: #fff; }
.sidenav nav {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0;
}
.sidenav nav ul { width: 100%; }
.sidenav nav ul li { width: 100%; }
.sidenav nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--c-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  min-height: 46px;
  transition: background var(--transition), color var(--transition);
}
.sidenav nav ul li a:hover,
.sidenav nav ul li a[aria-current="page"] {
  background: rgba(255,0,128,0.14);
  color: var(--c-primary);
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
}
.sidenav nav ul li a:hover .nav-dot,
.sidenav nav ul li a[aria-current="page"] .nav-dot {
  opacity: 1;
  transform: scale(1.4);
}
.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity var(--transition);
}
.sidenav:hover .nav-label { opacity: 1; }

/* ─── 页面主区域 ─── */
.page-wrap {
  margin-left: var(--nav-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Hero (首页) ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-dark3);
}
.hero-bg-numeral {
  position: absolute;
  font-family: var(--font-head);
  font-size: clamp(200px, 35vw, 480px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255,0,128,0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  user-select: none;
  white-space: nowrap;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  padding: 0 48px;
}
.hero-tiles {
  position: relative;
  height: 480px;
}
.hero-tile {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.hero-tile-1 {
  width: 65%;
  height: 70%;
  top: 0;
  left: 0;
  z-index: 2;
}
.hero-tile-2 {
  width: 60%;
  height: 65%;
  bottom: 0;
  right: 0;
  z-index: 3;
  box-shadow: 0 0 40px rgba(255,0,128,0.3);
}
.hero-text { text-align: center; }
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 0%, var(--c-primary) 60%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.hero-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,0,128,0.45);
}

/* ─── 内页 header 共用 ─── */
.cat-hero, .art-hero-strip, .about-header, .privacy-header, .tag-header, .default-header {
  position: relative;
  overflow: hidden;
  background: var(--c-dark3);
}
.cat-hero {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 60px 60px 50px;
}
.cat-hero-content { position: relative; z-index: 2; max-width: 680px; }
.cat-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cat-hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, var(--c-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.cat-hero-desc { color: var(--c-muted); font-size: 1rem; line-height: 1.7; }
.cat-hero-num {
  position: absolute;
  right: 48px;
  bottom: 20px;
  font-family: var(--font-head);
  font-size: clamp(120px, 18vw, 240px);
  font-weight: 700;
  color: rgba(255,0,128,0.07);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* 文章页 header */
.art-hero-strip {
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.art-hero-img-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}
.art-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-hero-text {
  position: relative;
  z-index: 2;
  padding: 50px 50px 50px 40px;
}
.art-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.art-eyebrow a { color: var(--c-primary); }
.art-eyebrow a:hover { color: var(--c-accent); }
.art-hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--c-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.art-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.art-meta time {
  font-size: 0.82rem;
  color: var(--c-muted);
}

/* about / privacy / tag / default headers */
.about-header, .privacy-header, .tag-header, .default-header {
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 60px;
}
.about-header-inner, .privacy-header-inner, .tag-header-inner, .default-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 900px;
}
.about-portrait-wrap { flex-shrink: 0; }
.about-portrait {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--c-primary);
  box-shadow: 0 0 30px rgba(255,0,128,0.4);
}
.about-intro h1, .privacy-header-inner h1, .tag-h1, .default-header-inner h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--c-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.about-tagline { color: var(--c-muted); font-size: 1rem; }
.about-hero-num, .tag-hero-num {
  position: absolute;
  right: 40px;
  bottom: 0;
  font-family: var(--font-head);
  font-size: clamp(100px, 16vw, 200px);
  font-weight: 700;
  color: rgba(255,0,128,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.privacy-date {
  display: block;
  font-size: 0.82rem;
  color: var(--c-muted);
  margin-top: 8px;
}

/* ─── 主内容区 ─── */
main { flex: 1; }
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 48px;
}

/* section 眉题 */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 36px;
  line-height: 1.25;
}

/* ─── 首页 分类卡片 ─── */
.home-cats { margin-bottom: 80px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: rgba(255,0,128,0.04);
  color: var(--c-light);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.cat-card:hover {
  border-color: var(--c-primary);
  background: rgba(255,0,128,0.10);
  transform: translateY(-3px);
  color: #fff;
}
.cat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1;
  opacity: 0.6;
}
.cat-name { font-size: 0.95rem; font-weight: 500; line-height: 1.5; }
.cat-arrow { font-size: 1.2rem; color: var(--c-primary); margin-top: auto; }

/* ─── 首页 文章卡片 ─── */
.home-articles { margin-bottom: 60px; }
.articles-content { margin-bottom: 40px; }
.articles-content:empty { display: none; }
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.art-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.art-card:hover { border-color: var(--c-primary); transform: translateY(-4px); }
.card-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.art-card:hover .card-thumb { transform: scale(1.04); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  text-transform: uppercase;
}
.card-body h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.card-body h3 a { color: var(--c-light); }
.card-body h3 a:hover { color: var(--c-primary); }
.card-desc { font-size: 0.88rem; color: var(--c-muted); line-height: 1.6; }
.card-date { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: auto; }

/* ─── 栏目页 子页列表 ─── */
.cat-intro { margin-bottom: 60px; }
.cat-children { margin-bottom: 60px; }
.cat-dl { display: grid; gap: 0; }
.cat-child-dt {
  border-top: 1px solid var(--c-border);
  padding: 0;
}
.cat-child-dt a {
  display: grid;
  grid-template-columns: auto 48px 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 20px;
  color: var(--c-light);
  transition: background var(--transition);
}
.cat-child-dt a:hover { background: rgba(255,0,128,0.07); color: #fff; }
.cat-child-img { width: 80px; height: 56px; overflow: hidden; border-radius: 6px; flex-shrink: 0; }
.cat-child-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-child-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-primary);
  opacity: 0.5;
}
.cat-child-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.cat-child-dd {
  padding: 10px 20px 22px calc(80px + 48px + 60px);
  border-bottom: 0;
}
.cat-child-dd p { font-size: 0.9rem; color: var(--c-muted); margin-bottom: 6px; }
.cat-child-dd time { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ─── 文章页 正文 ─── */
.art-section { margin-bottom: 60px; }
.prose {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,245,253,0.88);
}
.prose--narrow { max-width: 680px; }
.art-prose { margin: 0 auto; }
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2em 0 0.7em;
  color: #fff;
}
.prose h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.6em 0 0.6em;
  color: rgba(255,255,255,0.9);
}
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol {
  margin: 0 0 1.2em 1.4em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--c-primary); font-weight: 700; }
.prose a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-accent); }
.prose blockquote {
  border-left: 3px solid var(--c-primary);
  margin: 1.5em 0;
  padding: 12px 24px;
  background: rgba(255,0,128,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-muted);
  font-style: italic;
}
.prose img { border-radius: var(--radius); margin: 1.5em 0; border: 1px solid var(--c-border); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9rem; }
.prose th { background: rgba(255,0,128,0.15); padding: 10px 14px; text-align: left; font-family: var(--font-head); }
.prose td { padding: 10px 14px; border-top: 1px solid var(--c-border); }
.prose code {
  background: rgba(255,0,128,0.1);
  border: 1px solid var(--c-border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
}
.prose pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.prose pre code { background: none; border: none; padding: 0; }

/* 相关文章 */
.art-related { border-top: 1px solid var(--c-border); padding-top: 50px; margin-bottom: 40px; }
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-list li a {
  display: block;
  padding: 14px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-light);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.related-list li a:hover {
  border-color: var(--c-primary);
  background: rgba(255,0,128,0.07);
  color: #fff;
}

/* ─── about 页 ─── */
.about-section { margin-bottom: 60px; }
.about-channels { border-top: 1px solid var(--c-border); padding-top: 50px; margin-bottom: 40px; }
.about-cat-list { display: flex; flex-direction: column; gap: 12px; }
.about-cat-list li a {
  display: block;
  padding: 14px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-light);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.about-cat-list li a:hover {
  border-color: var(--c-primary);
  background: rgba(255,0,128,0.07);
  color: #fff;
}

/* ─── privacy 页 ─── */
.privacy-section { margin-bottom: 60px; }
.privacy-back { border-top: 1px solid var(--c-border); padding-top: 50px; margin-bottom: 40px; }
.privacy-back h2 { margin-bottom: 20px; }
.btn-back {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--c-primary);
  border-radius: 50px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}
.btn-back:hover {
  background: var(--c-primary);
  color: #fff;
}

/* ─── tag 页 ─── */
.tag-intro { margin-bottom: 60px; }
.tag-list-section { margin-bottom: 60px; }
.tag-dl { display: grid; gap: 0; }
.tag-dl dt {
  border-top: 1px solid var(--c-border);
  padding: 0;
}
.tag-dl dt a {
  display: block;
  padding: 18px 20px 10px;
  color: var(--c-light);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition);
}
.tag-dl dt a:hover { color: var(--c-primary); }
.tag-dl dd {
  padding: 4px 20px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.tag-parent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag-dl dd time { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.tag-dl dd p { font-size: 0.88rem; color: var(--c-muted); width: 100%; margin-top: 4px; }
.tag-nav-back { margin-bottom: 40px; }
.tag-nav-back p { display: flex; gap: 14px; }

/* ─── 页脚 ─── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--c-border);
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(26,15,22,0.5);
}
.footer-brand {
  font-size: 0.88rem;
  color: var(--c-muted);
}
.footer-brand a { color: var(--c-primary); }
.footer-brand a:hover { color: var(--c-accent); }
footer small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
footer small a { color: rgba(255,255,255,0.4); }
footer small a:hover { color: var(--c-primary); }

/* ─── Reveal 动效 ─── */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 100ms);
}
@keyframes revealUp {
  to { opacity: 1; transform: none; }
}

/* ─── 移动端 ─── */
@media (max-width: 900px) {
  :root { --nav-w: 0px; }
  .sidenav {
    width: 100%;
    height: auto;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    flex-direction: row;
    align-items: stretch;
    border-right: none;
    border-top: 1px solid var(--c-border);
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 200;
    height: 58px;
  }
  .sidenav:hover { width: 100%; }
  .sidenav-brand { border-bottom: none; border-right: 1px solid var(--c-border); padding: 0 14px; flex-direction: row; width: auto; }
  .sidenav nav { flex: 1; overflow-x: auto; overflow-y: hidden; padding: 0; }
  .sidenav nav ul { display: flex; flex-direction: row; height: 100%; }
  .sidenav nav ul li { flex-shrink: 0; }
  .sidenav nav ul li a {
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
    font-size: 0.72rem;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .nav-label { opacity: 1; font-size: 0.68rem; }
  .page-wrap { margin-left: 0; padding-bottom: 58px; }
  .hero-content {
    grid-template-columns: 1fr;
    padding: 20px 20px;
    gap: 24px;
    text-align: center;
  }
  .hero-tiles { height: 220px; }
  .hero-bg-numeral { font-size: 26vw; }
  .art-hero-strip { grid-template-columns: 1fr; }
  .art-hero-img-wrap { min-height: 200px; }
  .art-hero-text { padding: 28px 24px; }
  .cat-hero { min-height: 220px; padding: 40px 24px 36px; }
  .cat-hero-num { font-size: 22vw; right: 16px; }
  .about-header, .privacy-header, .tag-header, .default-header { padding: 40px 24px; }
  .about-header-inner, .privacy-header-inner, .tag-header-inner, .default-header-inner {
    flex-direction: column;
    gap: 20px;
  }
  .about-portrait { width: 90px; height: 90px; }
  .about-hero-num, .tag-hero-num { font-size: 22vw; right: 10px; }
  .wrap { padding: 40px 20px; }
  .cat-dl { gap: 0; }
  .cat-child-dt a {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .cat-child-img { display: none; }
  .cat-child-dd { padding: 6px 20px 18px 20px; }
  footer { padding: 20px 24px; }
  .art-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .hero-h1 { font-size: 1.7rem; }
  .hero-tiles { height: 160px; }
}

/* ─── prefers-reduced-motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-item { opacity: 1; transform: none; }
  .hero-mesh::before, .hero-mesh::after { animation: none; }
}
