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

/* ============================================================
   CSS 自定义属性
   ============================================================ */
:root {
  --c-blue: #c8e0f4;
  --c-pink: #f5e0e8;
  --c-ink: #171f26;
  --c-ink-60: rgba(23, 31, 38, 0.6);
  --c-ink-20: rgba(23, 31, 38, 0.12);
  --c-blue-dark: #a8c8e8;
  --c-pink-dark: #e8c8d8;
  --c-white: #ffffff;
  --c-surface: #dceef8;

  --nm-light: rgba(255, 255, 255, 0.82);
  --nm-dark: rgba(23, 31, 38, 0.12);

  --shadow-convex:
    -5px -5px 14px var(--nm-light),
     5px  5px 14px var(--nm-dark);
  --shadow-inset:
    inset -3px -3px 8px var(--nm-light),
    inset  3px  3px 8px var(--nm-dark);
  --shadow-card:
    -4px -4px 10px var(--nm-light),
     4px  4px 10px var(--nm-dark);

  --radius-base: 14px;
  --radius-card: 10px;
  --radius-btn: 10px;

  --header-h: 64px;
  --sticky-h: 44px;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --transition: 150ms ease;
  --max-w: 1200px;
  --content-w: 760px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink);
  background: linear-gradient(145deg, var(--c-blue) 0%, var(--c-pink) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ============================================================
   页面骨架
   ============================================================ */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   全屏遮罩侧边导航
   ============================================================ */
.site-aside {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.site-aside.is-open { pointer-events: all; }

.aside-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 31, 38, 0.45);
  opacity: 0;
  transition: opacity 300ms ease;
}

.site-aside.is-open .aside-overlay { opacity: 1; }

.aside-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: linear-gradient(160deg, var(--c-blue) 0%, var(--c-pink) 100%);
  box-shadow: var(--shadow-convex);
  border-radius: var(--radius-base) 0 0 var(--radius-base);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(110%);
  transition: transform 300ms ease;
  overflow-y: auto;
}

.site-aside.is-open .aside-panel { transform: translateX(0); }

.aside-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-text { line-height: 1.2; }

.aside-panel nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aside-panel nav ul li a {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition), box-shadow var(--transition);
}

.aside-panel nav ul li a:hover,
.aside-panel nav ul li a.active {
  background: rgba(255,255,255,0.5);
  box-shadow: var(--shadow-inset);
  text-decoration: none;
}

.aside-close {
  position: absolute;
  top: 1.2rem;
  left: -48px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  box-shadow: var(--shadow-convex);
  color: var(--c-ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   顶部 Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(145deg, rgba(200,224,244,0.95), rgba(245,224,232,0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px var(--nm-dark);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--c-ink);
}

.header-brand img { border-radius: 6px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================
   粘性二级导航条
   ============================================================ */
.sticky-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  height: var(--sticky-h);
  background: linear-gradient(145deg, rgba(200,224,244,0.9), rgba(245,224,232,0.9));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-ink-20);
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-nav::-webkit-scrollbar { display: none; }

.sticky-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1.5rem;
  white-space: nowrap;
}

.sticky-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-ink-60);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
  min-height: 44px;
}

.sticky-link:hover,
.sticky-link.active {
  color: var(--c-ink);
  border-color: var(--c-ink);
  text-decoration: none;
}

/* ============================================================
   通用按钮
   ============================================================ */
.nm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink);
  background: linear-gradient(145deg, var(--c-blue-dark), var(--c-blue));
  box-shadow: var(--shadow-convex);
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
  text-decoration: none;
}

.nm-btn-primary:hover {
  box-shadow: -3px -3px 8px var(--nm-light), 3px 3px 8px var(--nm-dark);
  text-decoration: none;
}

.nm-btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-inset);
}

.nm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink);
  background: linear-gradient(145deg, var(--c-pink-dark), var(--c-pink));
  box-shadow: var(--shadow-convex);
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 44px;
  text-decoration: none;
}

.nm-btn-secondary:hover {
  box-shadow: -3px -3px 8px var(--nm-light), 3px 3px 8px var(--nm-dark);
  text-decoration: none;
}

.nm-btn-secondary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-inset);
}

.nm-btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-btn);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  min-height: 40px;
  text-decoration: none;
}

.nm-btn-sm:hover {
  text-decoration: none;
  box-shadow: -2px -2px 6px var(--nm-light), 2px 2px 6px var(--nm-dark);
}

.nm-btn-sm:active { transform: scale(0.96); }

.nm-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  box-shadow: var(--shadow-convex);
  color: var(--c-ink);
  font-size: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.nm-btn-icon:hover {
  box-shadow: -2px -2px 6px var(--nm-light), 2px 2px 6px var(--nm-dark);
}

.nm-btn-icon:active {
  transform: scale(0.93);
  box-shadow: var(--shadow-inset);
}

/* 汉堡线 */
.hamburger {
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   nm-panel (aside面板通用)
   ============================================================ */
.nm-panel {
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-convex);
}

/* ============================================================
   面包屑
   ============================================================ */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--c-ink-60);
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--c-ink-60); }
.breadcrumb a:hover { color: var(--c-ink); }

/* ============================================================
   时间徽章
   ============================================================ */
.date-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.5);
  box-shadow: var(--shadow-inset);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--c-ink-60);
}

.date-modified {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--c-ink-60);
  margin-left: 0.5rem;
}

.page-date {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--c-ink-60);
  margin-bottom: 0.5rem;
}

/* ============================================================
   首页 Hero
   ============================================================ */
.hero-section {
  padding: calc(var(--header-h) * 0.5) 1.5rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  min-height: 45vh;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-ink-60);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--c-ink-60);
  margin-bottom: 1.5rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-figure {
  flex: 0 0 45%;
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-convex);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-base);
}

.hero-placeholder {
  width: 100%;
  min-height: 260px;
  background: linear-gradient(145deg, var(--c-blue-dark), var(--c-pink-dark));
  border-radius: var(--radius-base);
}

/* ============================================================
   首页栏目区（channels）
   ============================================================ */
.channels-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.section-aside {
  flex: 0 0 200px;
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-convex);
  padding: 1.25rem;
}

.section-aside h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--c-ink-60);
}

.section-aside h3 span { display: inline; }

.quick-links { display: flex; flex-direction: column; gap: 0.2rem; }

.quick-links li a,
.aside-list li a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.quick-links li a:hover,
.aside-list li a:hover {
  background: rgba(255,255,255,0.5);
  box-shadow: var(--shadow-inset);
  text-decoration: none;
}

.channels-main { flex: 1; min-width: 0; }

.channels-main h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.channels-main h2 span { display: inline; }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.nm-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--c-ink-20);
  background: linear-gradient(145deg, rgba(255,255,255,0.4), rgba(255,255,255,0.15));
  box-shadow: none;
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}

.nm-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.card-inner {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-inner h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-inner h3 span { display: inline; }

.card-inner p {
  font-size: 0.82rem;
  color: var(--c-ink-60);
  line-height: 1.5;
  flex: 1;
}

/* ============================================================
   首页正文区
   ============================================================ */
.content-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.content-deco {
  flex: 0 0 80px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.deco-block {
  width: 60px;
  height: 140px;
  border-radius: var(--radius-base);
  background: linear-gradient(160deg, var(--c-blue-dark), var(--c-pink-dark));
  box-shadow: var(--shadow-convex);
}

.deco-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  box-shadow: var(--shadow-convex);
}

.deco-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c-blue-dark), var(--c-pink-dark));
  box-shadow: var(--shadow-convex);
  margin-bottom: 1rem;
}

.deco-circle-sm {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c-pink), var(--c-blue));
  box-shadow: var(--shadow-convex);
}

.deco-bar {
  width: 8px;
  height: 120px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--c-blue-dark), var(--c-pink-dark));
  box-shadow: var(--shadow-convex);
}

.deco-tag-shape {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-base);
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  box-shadow: var(--shadow-convex);
  transform: rotate(12deg);
}

.content-body { flex: 1; min-width: 0; }

.content-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.content-body h2 span { display: inline; }

/* ============================================================
   首页文章区
   ============================================================ */
.articles-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.articles-aside {
  flex: 0 0 200px;
  background: linear-gradient(145deg, var(--c-pink), var(--c-blue));
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-convex);
  padding: 1.25rem;
}

.articles-aside h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--c-ink-60);
}

.articles-aside h3 span { display: inline; }

.tag-links { display: flex; flex-direction: column; gap: 0.2rem; }

.articles-main { flex: 1; min-width: 0; }

.articles-main h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.articles-main h2 span { display: inline; }

.article-list { display: flex; flex-direction: column; gap: 1rem; }

.article-row {
  border-radius: var(--radius-card);
  border: 1px solid var(--c-ink-20);
  background: linear-gradient(145deg, rgba(255,255,255,0.35), rgba(255,255,255,0.12));
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-row:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.article-row-inner {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  align-items: flex-start;
}

.article-meta-left {
  flex: 0 0 90px;
  padding-top: 0.15rem;
}

.article-row-body { flex: 1; min-width: 0; }

.article-row-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.article-row-body h3 span { display: inline; }

.article-row-body h3 a { text-decoration: none; color: var(--c-ink); }
.article-row-body h3 a:hover { text-decoration: underline; }

.article-row-body p {
  font-size: 0.82rem;
  color: var(--c-ink-60);
  line-height: 1.5;
}

/* ============================================================
   通用内页 Hero（各 div 变体）
   ============================================================ */
.page-hero-section,
.about-header-section,
.privacy-header-section,
.tag-header-section,
.default-header-section,
.channel-body-section + .page-hero-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  width: 100%;
}

.page-hero-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.page-hero-deco {
  flex: 0 0 80px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.page-hero-text { flex: 1; }

.page-hero-text h1,
.about-header-text h1,
.privacy-header-text h1,
.tag-header-text h1,
.default-header-text h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.page-hero-desc {
  font-size: 0.95rem;
  color: var(--c-ink-60);
  line-height: 1.7;
  max-width: 600px;
}

/* ============================================================
   关于页
   ============================================================ */
.about-header-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-deco {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.about-header-text { flex: 1; }

.about-body-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-content { flex: 1; min-width: 0; }

.about-cta-aside {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-base);
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  box-shadow: var(--shadow-convex);
}

.about-cta-aside h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-cta-aside h2 span { display: inline; }

.about-cta-aside p {
  font-size: 0.88rem;
  color: var(--c-ink-60);
  margin-bottom: 1rem;
}

.cta-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================
   隐私页
   ============================================================ */
.privacy-header-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.privacy-deco {
  flex: 0 0 40px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.privacy-header-text { flex: 1; }

.privacy-body-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.privacy-content { flex: 1; min-width: 0; }

.privacy-links-aside {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius-base);
  background: linear-gradient(145deg, var(--c-pink), var(--c-blue));
  box-shadow: var(--shadow-convex);
}

.privacy-links-aside h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.privacy-links-aside h2 span { display: inline; }

/* ============================================================
   栏目页
   ============================================================ */
.channel-body-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.channel-content { flex: 1; min-width: 0; }

.child-list-wrap { margin-top: 2.5rem; }

.child-list-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.child-list-wrap h2 span { display: inline; }

/* dl 子页列表 */
.child-dl { display: flex; flex-direction: column; gap: 0; }

.child-dl dt {
  padding: 0.85rem 1rem 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  border: 1px solid var(--c-ink-20);
  border-bottom: none;
  background: linear-gradient(145deg, rgba(255,255,255,0.4), rgba(255,255,255,0.18));
  margin-top: 0.75rem;
  transition: box-shadow var(--transition);
}

.child-dl dt:first-child { margin-top: 0; }

.child-dl dt:hover { box-shadow: var(--shadow-card); }

.child-dl dt a {
  text-decoration: none;
  color: var(--c-ink);
  display: block;
}

.child-dl dt a:hover { text-decoration: underline; }

.child-dl dd {
  padding: 0.3rem 1rem 0.85rem;
  font-size: 0.82rem;
  color: var(--c-ink-60);
  border: 1px solid var(--c-ink-20);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: baseline;
  margin-bottom: 0;
}

.dd-desc { line-height: 1.5; }

/* ============================================================
   标签页
   ============================================================ */
.tag-header-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.tag-deco {
  flex: 0 0 70px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.tag-header-text { flex: 1; }

.tag-body-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.tag-content { flex: 1; min-width: 0; }

.tag-list-wrap { margin-top: 2rem; }

.tag-list-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tag-list-wrap h2 span { display: inline; }

/* ============================================================
   文章页
   ============================================================ */
.article-header-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.article-header-inner { flex: 1; }

.article-header-inner h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.article-hero-figure {
  flex: 0 0 320px;
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-convex);
}

.article-hero-img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-base);
}

.article-hero-empty { display: none; }

.article-body-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.article-content { flex: 1; min-width: 0; }

.article-footer-nav { margin-top: 3rem; }

.article-footer-nav h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.article-footer-nav h2 span { display: inline; }

.explore-aside {
  padding: 1.25rem;
  border-radius: var(--radius-base);
  background: linear-gradient(145deg, var(--c-blue), var(--c-pink));
  box-shadow: var(--shadow-convex);
}

.explore-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.explore-links li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 40px;
  transition: background var(--transition);
}

.explore-links li a:hover {
  background: rgba(255,255,255,0.5);
  text-decoration: none;
}

/* ============================================================
   默认页
   ============================================================ */
.default-header-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.default-deco {
  flex: 0 0 80px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.default-header-text { flex: 1; }

.default-body-section {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.default-content { flex: 1; min-width: 0; }

/* ============================================================
   通用侧边栏（右侧 aside）
   ============================================================ */
.content-aside {
  flex: 0 0 220px;
  order: 1;
  background: linear-gradient(145deg, var(--c-pink), var(--c-blue));
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-convex);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + var(--sticky-h) + 1rem);
}

.content-aside h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink-60);
  margin-bottom: 0.4rem;
}

.content-aside h3 span { display: inline; }

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* ============================================================
   正文内容样式
   ============================================================ */
.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-ink);
  max-width: var(--content-w);
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.page-content p { margin-bottom: 1rem; }

.page-content ul,
.page-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content ol { list-style: decimal; }

.page-content li { margin-bottom: 0.3rem; }

.page-content a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover { opacity: 0.75; }

.page-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.35);
  box-shadow: var(--shadow-inset);
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.page-content th,
.page-content td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--c-ink-20);
  text-align: left;
}

.page-content th { font-weight: 600; background: rgba(255,255,255,0.3); }

.page-content img {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin: 1rem 0;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: auto;
  background: linear-gradient(145deg, var(--c-ink) 0%, #253040 100%);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 0;
}

.footer-brand-block {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand-big {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.15);
  display: block;
  line-height: 1;
}

.footer-cols {
  max-width: var(--max-w);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}

.footer-col h4 span { display: inline; }

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
  display: block;
  padding: 0.25rem 0;
  min-height: 32px;
  line-height: 1.8;
}

.footer-col ul li a:hover {
  color: rgba(255,255,255,1);
  text-decoration: none;
}

.footer-col address { font-style: normal; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   Stagger 动画
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.45s ease forwards;
    animation-delay: calc(var(--i, 0) * 80ms);
  }

  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .hero-content { flex-direction: column; gap: 2rem; min-height: auto; }
  .hero-figure { flex: none; width: 100%; }
  .channels-section,
  .content-section,
  .articles-section { flex-direction: column; }
  .section-aside,
  .articles-aside { flex: none; width: 100%; position: static; }
  .content-deco { display: none; }
}

@media (max-width: 768px) {
  .article-header-section { flex-direction: column; }
  .article-hero-figure { flex: none; width: 100%; }

  .channel-body-section,
  .about-body-section,
  .privacy-body-section,
  .tag-body-section,
  .article-body-section,
  .default-body-section { flex-direction: column; }

  .content-aside { flex: none; width: 100%; position: static; order: -1; }

  .page-hero-section,
  .about-header-section,
  .privacy-header-section,
  .tag-header-section,
  .default-header-section { flex-direction: column; }

  .page-hero-deco,
  .about-deco,
  .privacy-deco,
  .tag-deco,
  .default-deco { display: none; }

  .about-header-section,
  .privacy-header-section { padding-top: 1.5rem; }
}

@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand-big { font-size: 2rem; }

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

  .hero-text h1 { font-size: 1.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { text-align: center; }

  .article-row-inner { flex-direction: column; }
  .article-meta-left { flex: none; }

  .child-dl dt,
  .child-dl dd { padding-left: 0.75rem; padding-right: 0.75rem; }

  .sticky-nav-inner { gap: 0; padding: 0 0.5rem; }
  .sticky-link { padding: 0 0.6rem; font-size: 0.78rem; }

  .header-contact { display: none; }
}

@media (max-width: 375px) {
  .header-inner { padding: 0 1rem; }
  .hero-section,
  .channels-section,
  .content-section,
  .articles-section,
  .channel-body-section,
  .about-body-section,
  .privacy-body-section,
  .tag-body-section,
  .article-body-section,
  .article-header-section,
  .default-body-section,
  .default-header-section,
  .page-hero-section,
  .about-header-section,
  .privacy-header-section,
  .tag-header-section { padding-left: 1rem; padding-right: 1rem; }
  .footer-cols { padding: 0; }
  .site-footer { padding-left: 1rem; padding-right: 1rem; }
}
