@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

/* =============================================
   CSS 变量 / 设计令牌
   ============================================= */
:root {
  --blue: #c8e0f4;
  --pink: #f5e0e8;
  --dark: #171f26;
  --dark-2: #1e2832;
  --dark-3: #252f3a;
  --dark-4: #2d3a47;
  --text-primary: #e8f0f8;
  --text-secondary: #a0b8cc;
  --text-muted: #6a8299;
  --blue-light: rgba(200, 224, 244, 0.15);
  --pink-light: rgba(245, 224, 232, 0.12);
  --blue-glow: rgba(200, 224, 244, 0.25);
  --pink-glow: rgba(245, 224, 232, 0.2);

  /* Neumorphism shadows on dark */
  --nm-shadow: -5px -5px 15px rgba(255,255,255,0.04), 5px 5px 15px rgba(0,0,0,0.5);
  --nm-shadow-sm: -3px -3px 8px rgba(255,255,255,0.03), 3px 3px 8px rgba(0,0,0,0.4);
  --nm-shadow-inset: inset 3px 3px 8px rgba(0,0,0,0.4), inset -3px -3px 8px rgba(255,255,255,0.03);
  --nm-shadow-pressed: inset 4px 4px 10px rgba(0,0,0,0.5), inset -2px -2px 6px rgba(255,255,255,0.03);

  --radius: 16px;
  --radius-card: 28px;
  --radius-sm: 10px;

  --font-heading: 'Amatic SC', cursive;
  --font-body: 'Cabin', system-ui, -apple-system, sans-serif;

  --header-h: 68px;
  --max-w: 1100px;
  --content-max: 720px;

  --transition: 150ms ease;
}

/* =============================================
   重置 / 基础
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--dark);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { color: var(--pink); }
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue);
}

/* =============================================
   布局包裹
   ============================================= */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =============================================
   顶部导航
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--dark-2);
  box-shadow: var(--nm-shadow);
  border-bottom: 1px solid rgba(200,224,244,0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
}

.brand-mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  box-shadow: var(--nm-shadow-sm);
  color: var(--blue);
  transition: box-shadow var(--transition);
}
.brand-mark:hover {
  box-shadow: var(--nm-shadow-inset);
  color: var(--pink);
}
.brand-mark__text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.brand-mark__img { width: 32px; height: 32px; border-radius: 6px; }

/* nav > p > a 结构 */
.site-nav {
  flex: 1;
  overflow: hidden;
}
.site-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0;
}
.site-nav p::-webkit-scrollbar { display: none; }
.site-nav p a {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}
.site-nav p a:hover,
.site-nav p a[aria-current="page"] {
  background: var(--blue-light);
  color: var(--blue);
  box-shadow: var(--nm-shadow-sm);
}

/* 汉堡按钮 */
.hamburger {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--nm-shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--transition);
  padding: 0;
}
.hamburger:hover { box-shadow: var(--nm-shadow-inset); }
.hamburger[aria-expanded="true"] { box-shadow: var(--nm-shadow-inset); }
.hamburger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: all var(--transition);
}

/* CTA 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  min-height: 42px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn--cta {
  background: linear-gradient(145deg, var(--blue), #9ec4e0);
  color: var(--dark);
  box-shadow: var(--nm-shadow-sm);
  flex-shrink: 0;
}
.btn--cta:hover {
  box-shadow: var(--nm-shadow-inset);
  color: var(--dark);
  transform: scale(0.98);
}
.btn--primary {
  background: linear-gradient(145deg, var(--pink), #e8c0d0);
  color: var(--dark);
  box-shadow: var(--nm-shadow);
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  min-height: 48px;
  border-radius: var(--radius);
}
.btn--primary:hover {
  box-shadow: var(--nm-shadow-inset);
  transform: scale(0.97);
  color: var(--dark);
}
.btn--outline {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  color: var(--text-secondary);
  box-shadow: var(--nm-shadow-sm);
  border: 1px solid rgba(200,224,244,0.1);
}
.btn--outline:hover {
  color: var(--blue);
  box-shadow: var(--nm-shadow-inset);
}

/* =============================================
   全屏遮罩菜单
   ============================================= */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 31, 38, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.fullscreen-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}
.fullscreen-menu__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border: none;
  border-radius: 50%;
  box-shadow: var(--nm-shadow-sm);
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-menu__close:hover {
  box-shadow: var(--nm-shadow-inset);
  color: var(--pink);
}
.fullscreen-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  padding: 0 2rem;
}
.fullscreen-menu__link {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  box-shadow: var(--nm-shadow-sm);
  transition: all var(--transition);
  min-height: 56px;
  line-height: 1.3;
}
.fullscreen-menu__link:hover {
  color: var(--blue);
  box-shadow: var(--nm-shadow-inset);
}

/* =============================================
   Hero（首页）
   ============================================= */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1.25rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero__aside {
  flex-shrink: 0;
}
.hero__icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border-radius: 50%;
  box-shadow: var(--nm-shadow);
}
.hero__content {
  text-align: center;
  max-width: 600px;
}
.hero__h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* =============================================
   区块通用
   ============================================= */
.section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  width: 100%;
}
.section__heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.section__heading span {
  display: inline;
}
.section__figure {
  margin-bottom: 1.5rem;
}
.deco-bar {
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
}
.deco-bar--pink {
  background: linear-gradient(90deg, var(--pink), transparent);
}

/* =============================================
   频道卡片网格（首页）
   ============================================= */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  border-radius: var(--radius-card);
}
.card--channel {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  box-shadow: var(--nm-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card--channel:hover {
  box-shadow: var(--nm-shadow-inset);
  transform: scale(0.99);
}
.card--channel:active {
  box-shadow: var(--nm-shadow-pressed);
}
.card__inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-card);
}
.card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--blue);
}
.card__title span { display: inline; }
.card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.card__count {
  font-size: 0.8rem;
  color: var(--pink);
  background: var(--pink-light);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  align-self: flex-start;
}
.card__latest {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================
   最新列表（首页）
   ============================================= */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.recent-item {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border-radius: var(--radius);
  box-shadow: var(--nm-shadow-sm);
  transition: box-shadow var(--transition);
}
.recent-item:hover { box-shadow: var(--nm-shadow-inset); }
.recent-item__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  color: var(--text-primary);
  min-height: 52px;
}
.recent-item__link:hover { color: var(--blue); }
.recent-item__title {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-item .item__date,
.recent-item__link time {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* =============================================
   布局：两栏（侧边栏 + 内容）
   ============================================= */
.layout-with-aside {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

/* 侧边栏在左 */
.sidebar {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border-radius: var(--radius);
  box-shadow: var(--nm-shadow-sm);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.sidebar__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--pink);
  margin-bottom: 0.6rem;
  margin-top: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(245,224,232,0.1);
}
.sidebar__title:first-child { margin-top: 0; }
.sidebar__title span { display: inline; }
.sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar__links li a {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.sidebar__links li a:hover,
.sidebar__links li a[aria-current="page"] {
  background: var(--blue-light);
  color: var(--blue);
}
.sidebar__parent-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--blue);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  margin-bottom: 0.75rem;
  min-height: 40px;
}

.content-main {
  min-width: 0;
}

/* =============================================
   页面英雄（非首页）
   ============================================= */
.page-hero {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: var(--nm-shadow);
  padding: 2.5rem 1.25rem;
  margin-bottom: 2rem;
}
.page-hero--channel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto 2rem;
}
.page-hero__aside { flex-shrink: 0; }
.page-hero__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--dark-4), var(--dark-3));
  border-radius: 50%;
  box-shadow: var(--nm-shadow-sm);
}
.page-hero__content { flex: 1; }
.page-hero__h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.page-hero__date {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.page-hero__desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* =============================================
   子页列表（ol > li > a + small）
   ============================================= */
.child-list-wrap {
  margin-top: 2.5rem;
}
.child-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  counter-reset: child-counter;
}
.child-item {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border-radius: var(--radius);
  box-shadow: var(--nm-shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.child-item:hover {
  box-shadow: var(--nm-shadow-inset);
  transform: translateX(3px);
}
.child-item__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  color: var(--text-primary);
  min-height: 56px;
}
.child-item__link:hover { color: var(--blue); }
.child-item__num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--blue);
  opacity: 0.5;
  flex-shrink: 0;
  width: 2rem;
  text-align: right;
}
.child-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.child-item__title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.child-item__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.child-item__meta time { margin-left: 0.5rem; }

/* =============================================
   文章页
   ============================================= */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  width: 100%;
}
.article-header {
  margin-bottom: 1.5rem;
}
.article-header__h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blue);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.article-meta__date {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--dark-3);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.article-meta__cat {
  font-size: 0.82rem;
  color: var(--pink);
  background: var(--pink-light);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
}
.article-meta__cat:hover { color: var(--blue); }

.article-hero-figure {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-hero-figure--empty {
  padding: 0.5rem 0;
}
.article-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.article-tip {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border-left: 3px solid var(--pink);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  box-shadow: var(--nm-shadow-sm);
}
.article-tip strong { color: var(--pink); }

.article-footer {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =============================================
   正文 HTML 内容样式
   ============================================= */
.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
}
.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--blue);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(200,224,244,0.12);
}
.page-content h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--pink);
  margin: 1.5rem 0 0.5rem;
}
.page-content p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.page-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content a:hover { color: var(--pink); }
.page-content ul,
.page-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
}
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}
.page-content strong { color: var(--blue); font-weight: 600; }
.page-content em { color: var(--pink); font-style: italic; }
.page-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1.25rem;
  background: var(--blue-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
  color: var(--text-secondary);
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.page-content th {
  background: var(--dark-3);
  color: var(--blue);
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(200,224,244,0.15);
}
.page-content td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(200,224,244,0.06);
  color: var(--text-secondary);
}
.page-content tr:hover td { background: var(--blue-light); }

/* =============================================
   关于 / 隐私 页面专属
   ============================================= */
.about-wrap,
.privacy-wrap {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  width: 100%;
}
.about-section,
.privacy-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-figure,
.privacy-figure {
  margin-bottom: 0.5rem;
}
.about-brand-display {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border-radius: var(--radius);
  box-shadow: var(--nm-shadow);
  padding: 1.5rem 2rem;
  display: inline-block;
}
.about-brand-text {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue);
}
.about-h1,
.privacy-h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--blue);
}
.about-date,
.privacy-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}
.about-channels {
  margin-top: 2.5rem;
}
.about-channel-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.about-channel-item {
  background: linear-gradient(145deg, var(--dark-3), var(--dark-4));
  border-radius: var(--radius);
  box-shadow: var(--nm-shadow-sm);
  transition: box-shadow var(--transition);
}
.about-channel-item:hover { box-shadow: var(--nm-shadow-inset); }
.about-channel-item a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  color: inherit;
  min-height: 72px;
}
.about-channel-item a strong { color: var(--blue); font-size: 0.95rem; }
.about-channel-item a span { font-size: 0.8rem; color: var(--text-muted); }
.about-channel-item a:hover strong { color: var(--pink); }

/* =============================================
   页脚
   ============================================= */
.site-footer {
  margin-top: auto;
  background: var(--dark-2);
  border-top: 1px solid rgba(200,224,244,0.06);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__brand {
  flex-shrink: 0;
}
.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.footer__nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.footer__nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: all var(--transition);
}
.footer__nav a:hover { color: var(--blue); background: var(--blue-light); }
.footer__copy {
  flex-shrink: 0;
}
.footer__copy small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =============================================
   Scroll Reveal
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================
   响应式断点
   ============================================= */
@media (max-width: 768px) {
  .layout-with-aside {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    order: 2;
  }
  .content-main { order: 1; }

  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 2rem 1rem;
    gap: 1.25rem;
  }
  .hero__h1 { font-size: 2rem; }

  .page-hero--channel {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .site-nav { display: none; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .footer__nav {
    flex-wrap: wrap;
  }
  .footer__copy { order: 3; }
}

@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .hero__h1 { font-size: 1.7rem; }
  .hero__desc { font-size: 0.95rem; }
  .article-footer { flex-direction: column; }
  .child-item__link { padding: 0.75rem 1rem; }
  .fullscreen-menu__link { font-size: 1.4rem; }
}

/* =============================================
   工具
   ============================================= */
.section--content {
  padding-top: 0;
}
