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

/* ===========================
   CSS 变量 & 基础重置
   =========================== */
:root {
  --blue: #3bb1ff;
  --red: #ff5252;
  --black: #000000;
  --white: #ffffff;
  --yellow: #ffe44d;
  --bg: #f5f5f0;
  --text: #111111;
  --border: 3px solid #000;
  --shadow: 5px 5px 0 #000;
  --shadow-sm: 3px 3px 0 #000;
  --shadow-lg: 8px 8px 0 #000;
  --radius: 10px;
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --nav-h: 64px;
  --max-w: 1160px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  color: var(--red);
}

ul {
  list-style: none;
}

/* ===========================
   顶部导航
   =========================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--blue);
  border-bottom: var(--border);
  height: var(--nav-h);
}

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

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

.logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--black);
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  cursor: pointer;
  padding: 10px 9px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.hamburger:hover {
  box-shadow: 3px 3px 0 var(--red);
  transform: translate(-1px, -1px);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
}

/* ===========================
   全屏菜单
   =========================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--yellow);
  border: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(.22,1,.36,1);
  padding: 40px 20px;
}

.fullscreen-menu.open {
  transform: translateY(0);
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s, transform 0.15s;
}

.menu-close:hover {
  box-shadow: 3px 3px 0 var(--black);
  transform: translate(-1px, -1px);
}

.menu-search {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.search-input:focus {
  box-shadow: 4px 4px 0 var(--blue);
}

.search-btn {
  padding: 12px 16px;
  background: var(--blue);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 1.2rem;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.search-btn:hover {
  box-shadow: 3px 3px 0 var(--red);
  transform: translate(-1px, -1px);
}

.menu-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  text-align: center;
}

.menu-nav ul li a {
  display: block;
  padding: 14px 24px;
  background: var(--white);
  color: var(--black);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s, background 0.15s;
}

.menu-nav ul li a:hover {
  background: var(--blue);
  box-shadow: 4px 4px 0 var(--black);
  transform: translate(-2px, -2px);
  text-decoration: none;
}

/* ===========================
   Hero（首页）
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-h);
}

.hero-slash-bg {
  position: absolute;
  inset: 0;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 88%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 60px 24px 120px;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border: var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  text-shadow: 5px 5px 0 rgba(0,0,0,0.4);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--white);
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-clip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 4;
}

/* ===========================
   按钮
   =========================== */
.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  min-height: 48px;
  line-height: 1.3;
}

.btn-primary:hover {
  box-shadow: 7px 7px 0 var(--black);
  transform: translate(-2px, -2px);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  border: 3px solid var(--white);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(255,255,255,0.35);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, background 0.15s, color 0.15s;
  min-height: 48px;
  line-height: 1.3;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  box-shadow: 7px 7px 0 rgba(0,0,0,0.35);
  transform: translate(-2px, -2px);
  text-decoration: none;
}

.btn-pill {
  display: inline-block;
  padding: 8px 20px;
  background: var(--blue);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
  min-height: 40px;
  line-height: 1.4;
}

.btn-pill:hover {
  box-shadow: 4px 4px 0 var(--red);
  transform: translate(-1px, -1px);
  text-decoration: none;
  color: var(--black);
}

/* ===========================
   主布局（带侧边栏）
   =========================== */
.main-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.content-article {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ===========================
   玻璃拟态卡片
   =========================== */
.glass-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s, transform 0.18s;
}

.glass-card:hover {
  box-shadow: 8px 8px 0 var(--black);
  transform: translate(-2px, -2px);
}

/* ===========================
   卡片网格（首页）
   =========================== */
.cards-section {
  padding-top: 8px;
}

.cards-section h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cards-section h2 span {
  position: relative;
}

.cards-section h2 span::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 4px;
  background: var(--red);
  border-radius: 2px;
}

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

/* 子页列表：div > article×n */
.cards-grid > article.card {
  /* 直接子元素，符合契约 */
}

.card-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-tag {
  display: inline-block;
  background: var(--blue);
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border: 2px solid var(--black);
  border-radius: 4px;
  letter-spacing: 0.06em;
  width: fit-content;
}

.card-inner h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-inner h3 span a {
  color: var(--black);
  text-decoration: none;
}

.card-inner h3 span a:hover {
  color: var(--red);
}

.card-date {
  font-size: 0.85rem;
  color: #555;
}

.card-desc {
  font-size: 0.95rem;
  color: #333;
  flex: 1;
}

/* ===========================
   CTA 区块
   =========================== */
.cta-section {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section h2 span {
  position: relative;
}

.cta-section p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

/* ===========================
   正文（Prose）
   =========================== */
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2em 0 0.7em;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--black);
}

.prose h2 span {
  display: inline;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.6em 0 0.5em;
}

.prose h3 span {
  display: inline;
}

.prose p {
  margin-bottom: 1.2em;
}

.prose ul,
.prose ol {
  padding-left: 1.6em;
  margin-bottom: 1.2em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,82,82,0.4);
}

.prose a:hover {
  text-decoration-color: var(--red);
}

.prose blockquote {
  border-left: 5px solid var(--blue);
  background: rgba(59,177,255,0.08);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0;
  font-style: italic;
}

.prose img {
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5em 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 2px solid var(--black);
  padding: 10px 14px;
  text-align: left;
}

.prose th {
  background: var(--blue);
  font-weight: 700;
}

.prose tr:nth-child(even) td {
  background: rgba(59,177,255,0.07);
}

/* ===========================
   侧边栏
   =========================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.sidebar-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
}

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

.sidebar-tip {
  background: var(--yellow);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-links li {
  padding: 0;
}

.sidebar-links li.active a {
  background: var(--blue);
  color: var(--black);
}

.sidebar-links a {
  display: block;
  padding: 8px 12px;
  background: var(--bg);
  border: 2px solid var(--black);
  border-radius: 6px;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.sidebar-links a:hover {
  background: var(--blue);
  box-shadow: 2px 2px 0 var(--black);
  transform: translate(-1px, -1px);
}

/* ===========================
   文章页 Hero
   =========================== */
.article-hero-bar {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-h);
}

.article-hero-slash {
  position: absolute;
  inset: 0;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
  z-index: 1;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 2;
}

.article-hero-text {
  position: relative;
  z-index: 3;
  padding: 48px 32px 52px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.breadcrumb {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.article-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.pub-date,
.mod-date {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.main-article {
  padding-top: 40px;
}

/* ===========================
   相关文章
   =========================== */
.article-related h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.article-related h2 span {
  position: relative;
}

.article-related h2 span::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 4px;
  background: var(--blue);
  border-radius: 2px;
}

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

.related-card {
  padding: 20px;
}

.related-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.related-card h3 span a {
  color: var(--black);
  text-decoration: none;
}

.related-card h3 span a:hover {
  color: var(--red);
}

.related-card p {
  font-size: 0.9rem;
  color: #444;
}

/* ===========================
   About 页
   =========================== */
.about-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-h);
}

.about-hero-slash {
  position: absolute;
  inset: 0;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 0 95%);
  z-index: 1;
}

.about-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 2;
}

.about-hero-content {
  position: relative;
  z-index: 3;
  padding: 60px 32px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.about-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 4px 14px;
  border: var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.about-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  text-shadow: 4px 4px 0 rgba(0,0,0,0.35);
  line-height: 1.2;
  margin-bottom: 10px;
}

.about-values {
  padding-top: 8px;
}

.about-values h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.about-values h2 span {
  position: relative;
}

.about-values h2 span::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 4px;
  background: var(--red);
  border-radius: 2px;
}

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

.value-item {
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.value-icon {
  font-size: 2.2rem;
}

.value-item h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
}

.value-item h3 span {
  display: inline;
}

.value-item p {
  font-size: 0.93rem;
  color: #444;
}

.about-nav-list h2 {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-nav-list h2 span {
  position: relative;
}

.about-nav-list h2 span::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 4px;
  background: var(--blue);
  border-radius: 2px;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-link-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--black);
  transition: box-shadow 0.15s, transform 0.15s, background 0.15s;
}

.about-link-item:hover {
  background: var(--blue);
  box-shadow: 5px 5px 0 var(--black);
  transform: translate(-2px, -2px);
  text-decoration: none;
  color: var(--black);
}

.link-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}

.link-desc {
  font-size: 0.88rem;
  color: #555;
}

.about-link-item:hover .link-desc {
  color: rgba(0,0,0,0.7);
}

.main-about {
  padding-top: 40px;
}

/* ===========================
   Privacy 页
   =========================== */
.privacy-header {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-h);
}

.privacy-slash {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  z-index: 1;
}

.privacy-header-content {
  position: relative;
  z-index: 3;
  padding: 48px 32px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.privacy-eyebrow {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 4px 14px;
  border: var(--border);
  border-radius: 4px;
  margin-bottom: 14px;
}

.privacy-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--black);
  text-shadow: 3px 3px 0 rgba(255,255,255,0.4);
  line-height: 1.25;
  margin-bottom: 10px;
}

.privacy-contact {
  background: rgba(59,177,255,0.1);
  border: var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-contact h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}

.privacy-contact h2 span {
  display: inline;
}

.main-privacy {
  padding-top: 36px;
}

/* ===========================
   页脚
   =========================== */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 0 20px 32px;
  margin-top: 40px;
}

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

.footer-brand-col {}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

.footer-links-col nav dl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col nav dl dt {
  padding: 0;
}

.footer-links-col nav dl dt a {
  color: rgba(255,255,255,0.8);
  font-size: 0.93rem;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 4px 0;
  min-height: 40px;
  line-height: 1.5;
  transition: color 0.15s;
}

.footer-links-col nav dl dt a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.footer-subscribe {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 0;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.subscribe-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.subscribe-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.subscribe-input:focus {
  background: rgba(255,255,255,0.18);
  box-shadow: 3px 3px 0 var(--blue);
}

.subscribe-btn {
  min-height: 48px;
}

.footer-copy {
  max-width: var(--max-w);
  margin: 28px auto 6px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.footer-note {
  display: block;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   动效
   =========================== */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .value-item,
  .about-link-item {
    animation: fadeUp 0.45s ease both;
  }

  .cards-grid .card:nth-child(1) { animation-delay: 0.05s; }
  .cards-grid .card:nth-child(2) { animation-delay: 0.12s; }
  .cards-grid .card:nth-child(3) { animation-delay: 0.19s; }
  .cards-grid .card:nth-child(4) { animation-delay: 0.26s; }
  .cards-grid .card:nth-child(5) { animation-delay: 0.33s; }
  .cards-grid .card:nth-child(6) { animation-delay: 0.40s; }

  .values-grid .value-item:nth-child(1) { animation-delay: 0.06s; }
  .values-grid .value-item:nth-child(2) { animation-delay: 0.13s; }
  .values-grid .value-item:nth-child(3) { animation-delay: 0.20s; }
  .values-grid .value-item:nth-child(4) { animation-delay: 0.27s; }

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

  .hero-h1 {
    animation: heroIn 0.65s cubic-bezier(.22,1,.36,1) both 0.1s;
  }

  .hero-sub {
    animation: heroIn 0.65s cubic-bezier(.22,1,.36,1) both 0.22s;
  }

  .hero-actions {
    animation: heroIn 0.65s cubic-bezier(.22,1,.36,1) both 0.34s;
  }

  @keyframes heroIn {
    from {
      opacity: 0;
      transform: translateY(32px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===========================
   响应式
   =========================== */
@media (max-width: 900px) {
  .main-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 600px) {
  :root {
    --nav-h: 56px;
  }

  html {
    font-size: 16px;
  }

  .hero-content {
    padding: 40px 20px 100px;
  }

  .hero-h1 {
    font-size: 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

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

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

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

  .article-hero-text,
  .about-hero-content,
  .privacy-header-content {
    padding: 36px 20px 44px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-input {
    min-width: 0;
    width: 100%;
  }

  .subscribe-btn {
    width: 100%;
  }

  .footer-top {
    padding: 36px 0 28px;
  }

  .main-wrap {
    padding: 32px 16px 60px;
  }
}

/* ===========================
   工具类
   =========================== */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrap > main {
  flex: 1;
}
