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

/* ==============================
   CSS 变量与基础重置
============================== */
:root {
  --c-white: #ffffff;
  --c-light: #f5f5f5;
  --c-dark: #1f1f1f;
  --c-mid: #3a3a3a;
  --c-border: #d0d0d0;
  --c-accent: #1f1f1f;
  --c-accent-hover: #3a3a3a;
  --c-muted: #767676;
  --c-layer1: #ffffff;
  --c-layer2: #f5f5f5;
  --c-layer3: #ebebeb;
  --c-layer4: #1f1f1f;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.10);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.20), 0 8px 20px rgba(0,0,0,0.12);

  --radius: 0px;
  --nav-h-brand: 60px;
  --nav-h-menu: 52px;
  --font-body: 'Archivo', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-head: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
  --max-w: 1160px;
  --content-w: 780px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--c-white);
  color: var(--c-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--c-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--c-mid);
}

ul, ol {
  list-style: none;
}

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

/* ==============================
   点阵底纹（dot grid）
============================== */
.hero-dot-grid,
.page-hero-dot {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(31,31,31,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ==============================
   顶部导航 Header
============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-dark);
  color: var(--c-white);
  box-shadow: var(--shadow-md);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--nav-h-brand);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-white);
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 40px;
  background: var(--c-white);
  color: var(--c-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-cta-btn:hover {
  background: var(--c-light);
  color: var(--c-dark);
}

.header-nav-row {
  padding: 0 24px;
  height: var(--nav-h-menu);
  display: flex;
  align-items: center;
  background: var(--c-mid);
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-row::-webkit-scrollbar { display: none; }

.header-nav-row nav {
  width: 100%;
}

.header-nav-row nav > ol {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.header-nav-row nav > ol > li > a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.header-nav-row nav > ol > li > a:hover,
.header-nav-row nav > ol > li > a[aria-current] {
  background: rgba(255,255,255,0.15);
  color: var(--c-white);
}

/* ==============================
   Hero（首页）
============================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--c-dark);
  color: var(--c-white);
  overflow: hidden;
}

.hero-layer-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, rgba(31,31,31,0.95) 0%, rgba(31,31,31,0.70) 60%, rgba(31,31,31,0.40) 100%);
}

.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.collage-a {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 42%;
  height: 70%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg) translateZ(0);
  z-index: 3;
  background: var(--c-mid);
}

.collage-b {
  position: absolute;
  top: 20%;
  right: 20%;
  width: 38%;
  height: 60%;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(-1.5deg) translateZ(0);
  z-index: 2;
  background: #2a2a2a;
}

.collage-placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
}

.collage-a img,
.collage-b img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 12px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-white);
  max-width: 640px;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: var(--c-white);
  color: var(--c-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--c-light);
  transform: translateY(-2px);
  color: var(--c-dark);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: transparent;
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: var(--c-white);
  background: rgba(255,255,255,0.10);
  color: var(--c-white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border: 2px solid var(--c-dark);
  color: var(--c-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--c-dark);
  color: var(--c-white);
}

/* ==============================
   页面 Hero Bar（非首页）
============================== */
.page-hero-bar {
  position: relative;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 60px 24px 48px;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero-bar h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--c-white);
}

.page-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.70);
  max-width: 560px;
  line-height: 1.6;
}

/* ==============================
   面包屑
============================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--c-white);
}

/* ==============================
   主体布局
============================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

main {
  flex: 1;
  background: var(--c-white);
  position: relative;
  z-index: 2;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
}

/* 侧边栏布局（aside在内容右侧）*/
.global-aside {
  position: fixed;
  right: 0;
  top: calc(var(--nav-h-brand) + var(--nav-h-menu));
  width: 240px;
  height: calc(100vh - var(--nav-h-brand) - var(--nav-h-menu));
  background: var(--c-layer2);
  border-left: 1px solid var(--c-border);
  overflow-y: auto;
  z-index: 50;
  scrollbar-width: thin;
}

.aside-inner {
  padding: 28px 20px;
}

.aside-inner h2 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-dark);
  margin-bottom: 4px;
}

.aside-inner .subtitle {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-bottom: 16px;
}

.aside-inner nav ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-inner nav ol li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-dark);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.aside-inner nav ol li a:hover {
  border-left-color: var(--c-dark);
  background: var(--c-layer3);
}

.aside-sibling-list {
  margin-top: 16px;
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aside-sibling-list li a {
  display: block;
  font-size: 0.82rem;
  color: var(--c-muted);
  text-decoration: none;
  padding: 4px 0;
}
.aside-sibling-list li a:hover { color: var(--c-dark); }

.aside-parent-link {
  margin-top: 16px;
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
}
.aside-parent-link a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-dark);
  text-decoration: none;
}

/* 主内容区：为固定侧边栏留右边距 */
main .wrap {
  padding-right: 272px;
}

/* ==============================
   内容区块 Section
============================== */
.content-section {
  margin-bottom: 48px;
}

.page-content-block {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-dark);
}
.page-content-block h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--c-dark);
}
.page-content-block h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 8px;
}
.page-content-block p {
  margin-bottom: 16px;
}
.page-content-block ul, .page-content-block ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-content-block a {
  color: var(--c-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==============================
   h2 + .subtitle 装饰
============================== */
h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 4px;
}
h2 + .subtitle,
h2 + p.subtitle {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 24px;
  font-weight: 400;
}

/* ==============================
   分类卡片网格（首页）
============================== */
.cats-section {
  margin-bottom: 56px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.cat-grid > li > div {
  background: var(--c-layer2);
  border: 1px solid var(--c-border);
  padding: 24px 20px;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
}
.cat-grid > li > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  z-index: 2;
}
.cat-grid > li > div h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.cat-grid > li > div h3 a {
  color: var(--c-dark);
  text-decoration: none;
}
.cat-grid > li > div h3 a:hover {
  text-decoration: underline;
}
.cat-grid > li > div p {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.cat-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-dark);
  letter-spacing: 0.04em;
  border: 1px solid var(--c-border);
  padding: 2px 8px;
  display: inline-block;
}

/* ==============================
   精选入口卡片（首页）
============================== */
.featured-section {
  margin-bottom: 56px;
}

.entry-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.layer-card {
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s, transform 0.2s;
}
.layer-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) translateZ(4px);
  z-index: 10;
}

.entry-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  padding: 0;
  overflow: hidden;
}

.entry-card-inner {
  padding: 20px;
}

.entry-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-layer2);
  padding: 2px 8px;
  margin-bottom: 10px;
}

.entry-card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.entry-card h3 a {
  color: var(--c-dark);
  text-decoration: none;
}
.entry-card h3 a:hover { text-decoration: underline; }

.entry-card p {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.55;
}

.section-more {
  text-align: center;
  margin-top: 8px;
}

/* ==============================
   栏目页子页列表
============================== */
.children-section {
  margin-bottom: 48px;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.entry-list > li > div {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
  height: 100%;
}
.entry-list > li > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  z-index: 5;
}

.card-thumb-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--c-layer3);
}
.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 18px 20px;
}
.card-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-body h3 a {
  color: var(--c-dark);
  text-decoration: none;
}
.card-body h3 a:hover { text-decoration: underline; }
.card-body p {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin-bottom: 10px;
}
.card-meta {
  font-size: 0.78rem;
  color: var(--c-muted);
}
.card-meta time {
  font-variant-numeric: tabular-nums;
}

/* ==============================
   Entry 页
============================== */
.entry-main .wrap {
  max-width: var(--content-w);
}

.entry-header-section {
  margin-bottom: 32px;
}

.entry-meta-block {
  border-left: 3px solid var(--c-dark);
  padding-left: 20px;
}
.entry-meta-block h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}
.entry-desc {
  font-size: 1rem;
  color: var(--c-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
.entry-dates {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--c-muted);
}
.entry-dates time {
  font-variant-numeric: tabular-nums;
}

.entry-body-section {
  margin-bottom: 48px;
}

.entry-content-wrap {
  position: relative;
}

.entry-img-wrap {
  margin-bottom: 24px;
  overflow: hidden;
  max-height: 360px;
}
.entry-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-dark);
}
.entry-content h2 { margin: 36px 0 12px; }
.entry-content h3 { margin: 28px 0 8px; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
}
.entry-content a {
  color: var(--c-dark);
  font-weight: 600;
}

/* 相关推荐 */
.related-section {
  border-top: 1px solid var(--c-border);
  padding-top: 36px;
  margin-bottom: 48px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.related-card {
  background: var(--c-layer2);
  border: 1px solid var(--c-border);
  padding: 18px;
}
.related-card h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.related-card h3 a {
  color: var(--c-dark);
  text-decoration: none;
}
.related-card h3 a:hover { text-decoration: underline; }
.related-card p {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ==============================
   About 页
============================== */
.about-cats-section {
  margin-bottom: 48px;
}

.about-cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.about-cat-list > li > div {
  background: var(--c-layer2);
  border: 1px solid var(--c-border);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.about-cat-list > li > div:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.about-cat-list > li > div h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.about-cat-list > li > div h3 a {
  color: var(--c-dark);
  text-decoration: none;
}
.about-cat-list > li > div h3 a:hover { text-decoration: underline; }
.about-cat-list > li > div p {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.55;
}

/* ==============================
   Privacy 页
============================== */
.privacy-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.privacy-link-list > li > div {
  border: 1px solid var(--c-border);
  padding: 18px;
  background: var(--c-layer2);
}
.privacy-link-list > li > div h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.privacy-link-list > li > div h3 a {
  color: var(--c-dark);
  text-decoration: none;
}
.privacy-link-list > li > div h3 a:hover { text-decoration: underline; }
.privacy-link-list > li > div p {
  font-size: 0.83rem;
  color: var(--c-muted);
}

/* ==============================
   页脚
============================== */
.site-footer {
  background: var(--c-dark);
  color: rgba(255,255,255,0.80);
  margin-top: auto;
  position: relative;
  z-index: 20;
}

.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.10);
  padding: 48px 24px;
}

.footer-subscribe {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-subscribe h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 4px;
}

.footer-subscribe .subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  height: 48px;
  padding: 0 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.20);
  border-right: none;
  color: var(--c-white);
  outline: none;
}
.subscribe-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.40);
}
.subscribe-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.50);
}

.subscribe-form button {
  height: 48px;
  padding: 0 24px;
  background: var(--c-white);
  color: var(--c-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.subscribe-form button:hover {
  background: var(--c-light);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-dl {
  padding: 0 24px 0 0;
}
.footer-dl:first-child { padding-left: 0; }

.footer-dl dt {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 14px;
}

.footer-dl dd {
  margin-bottom: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.60);
}

.footer-dl dd a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-dl dd a:hover { color: var(--c-white); }

.footer-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.40);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==============================
   Scroll Reveal 动效
============================== */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .layer-card:hover,
  .cat-grid > li > div:hover,
  .entry-list > li > div:hover,
  .about-cat-list > li > div:hover,
  .related-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* ==============================
   响应式：平板
============================== */
@media (max-width: 1100px) {
  .global-aside {
    display: none;
  }
  main .wrap {
    padding-right: 24px;
  }
  .entry-main .wrap {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .collage-a,
  .collage-b {
    display: none;
  }
  .hero-content {
    padding: 80px 24px 60px;
  }
}

/* ==============================
   响应式：移动端 375px
============================== */
@media (max-width: 640px) {
  .header-brand-row {
    padding: 0 16px;
    height: 56px;
  }
  .brand-name {
    font-size: 0.9rem;
  }
  .header-cta-btn {
    height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
  }
  .header-nav-row {
    padding: 0 12px;
    height: 48px;
  }
  .header-nav-row nav > ol > li > a {
    padding: 0 10px;
    font-size: 0.82rem;
    height: 40px;
  }

  .hero-section {
    min-height: 100vh;
  }
  .hero-content {
    padding: 60px 16px 48px;
  }
  .hero-h1 {
    font-size: 1.8rem;
  }
  .hero-lead {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .btn-primary,
  .btn-ghost {
    height: 48px;
    width: 100%;
    justify-content: center;
  }

  .wrap {
    padding: 32px 16px;
  }

  .page-hero-bar {
    padding: 40px 16px 32px;
  }
  .page-hero-bar h1 {
    font-size: 1.5rem;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .entry-cards-grid {
    grid-template-columns: 1fr;
  }

  .entry-list {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 24px;
  }
  .footer-top {
    padding: 32px 16px;
  }
  .subscribe-form {
    flex-direction: column;
  }
  .subscribe-form input[type="email"] {
    border-right: 1px solid rgba(255,255,255,0.20);
  }
  .subscribe-form button {
    height: 48px;
    width: 100%;
  }

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

  .about-cat-list {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    padding: 16px;
    font-size: 0.78rem;
  }

  .entry-meta-block h1 {
    font-size: 1.4rem;
  }
}

/* ==============================
   工具
============================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
