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

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

:root {
  --green: #87ff71;
  --yellow: #ffce5c;
  --dark: #192617;
  --dark-80: rgba(25,38,23,0.8);
  --dark-60: rgba(25,38,23,0.6);
  --green-dark: #5acc42;
  --yellow-dark: #e6b030;
  --white: #ffffff;
  --off-white: #f5fce8;
  --text: #192617;
  --text-light: #3d5438;
  --radius: 10px;
  --nav-h: 60px;
  --font: 'Noto Sans Thai', 'Noto Sans', system-ui, sans-serif;
  --transition: 0.25s ease;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--off-white);
  padding-bottom: var(--nav-h);
  overflow-x: hidden;
}

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

a {
  color: var(--dark);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

ul, ol {
  list-style: none;
}

/* ===== Memphis 背景装饰 ===== */
.memphis-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--off-white);
  background-image:
    radial-gradient(circle, var(--green) 1.5px, transparent 1.5px),
    radial-gradient(circle, var(--yellow) 1px, transparent 1px);
  background-size: 40px 40px, 20px 20px;
  background-position: 0 0, 10px 10px;
  opacity: 0.18;
}

.memphis-bg--channel {
  background-image:
    repeating-linear-gradient(45deg, var(--yellow) 0, var(--yellow) 1px, transparent 0, transparent 50%),
    radial-gradient(circle, var(--green) 1px, transparent 1px);
  background-size: 20px 20px, 30px 30px;
}

.memphis-bg--article {
  background-image:
    repeating-linear-gradient(-45deg, var(--green) 0, var(--green) 1px, transparent 0, transparent 50%),
    radial-gradient(circle, var(--yellow) 1.5px, transparent 1.5px);
  background-size: 16px 16px, 40px 40px;
}

.memphis-bg--tag {
  background-image:
    radial-gradient(circle, var(--green) 2px, transparent 2px),
    radial-gradient(circle, var(--yellow) 1px, transparent 1px);
  background-size: 32px 32px, 16px 16px;
  background-position: 0 0, 8px 8px;
}

.memphis-bg--about,
.memphis-bg--privacy {
  background-image:
    repeating-linear-gradient(0deg, var(--yellow) 0, var(--yellow) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(90deg, var(--green) 0, var(--green) 1px, transparent 0, transparent 50%);
  background-size: 24px 24px;
}

/* ===== 导航（底部固定） ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 3px solid var(--green);
}

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

.bottom-nav > ol {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: max-content;
  padding: 0 8px;
  gap: 2px;
}

.bottom-nav > ol > li {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.bottom-nav > ol > li > a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--off-white);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  min-height: 40px;
  border-radius: 6px 6px 0 0;
  transition: background var(--transition), color var(--transition);
}

.bottom-nav > ol > li > a:hover,
.bottom-nav > ol > li > a[aria-current="page"] {
  background: var(--green);
  color: var(--dark);
}

/* 品牌居中处理 */
.bottom-nav > ol > li:first-child {
  margin-right: auto;
}

.bottom-nav > ol > li:first-child > a {
  font-weight: 700;
  color: var(--green);
  font-size: 0.9rem;
}

/* ===== 顶部 Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--dark);
  border-bottom: 4px solid var(--yellow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.header-deco {
  display: flex;
  gap: 8px;
}

.deco-pill {
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  transform: rotate(-2deg);
}

.breadcrumb-link {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.breadcrumb-link:hover {
  color: var(--green);
}

/* ===== Hero 区块 ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25,38,23,0.92) 0%, rgba(25,38,23,0.55) 60%, rgba(25,38,23,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px 60px;
  max-width: 680px;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  transform: rotate(-1.5deg);
  letter-spacing: 0.05em;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 var(--dark);
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  max-width: 540px;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--dark);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 3px solid var(--dark);
  box-shadow: 4px 4px 0 var(--dark);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--dark);
  color: var(--dark);
}

.hero-shapes {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 45%;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
}

.shape-circle {
  width: 180px;
  height: 180px;
  border: 6px solid var(--yellow);
  border-radius: 50%;
  top: 15%;
  right: 10%;
  opacity: 0.4;
  animation: rotateSlow 20s linear infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid var(--green);
  bottom: 20%;
  right: 25%;
  opacity: 0.25;
  transform: rotate(15deg);
}

.shape-dot-grid {
  width: 120px;
  height: 120px;
  top: 50%;
  right: 5%;
  background-image: radial-gradient(circle, var(--yellow) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.5;
}

@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

/* ===== Page Banner（非首页） ===== */
.page-banner {
  position: relative;
  background: var(--dark);
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 4px solid var(--green);
}

.banner-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bshape {
  position: absolute;
}

.bshape-circle {
  width: 120px;
  height: 120px;
  border: 5px solid var(--green);
  border-radius: 50%;
  top: -20px;
  right: 15%;
  opacity: 0.3;
}

.bshape-zigzag {
  right: 30%;
  top: 50%;
  width: 80px;
  height: 20px;
  opacity: 0.4;
  background-image: repeating-linear-gradient(90deg, var(--yellow) 0, var(--yellow) 10px, transparent 10px, transparent 20px);
  clip-path: polygon(0 100%, 10% 0, 20% 100%, 30% 0, 40% 100%, 50% 0, 60% 100%, 70% 0, 80% 100%, 90% 0, 100% 100%);
  background-color: var(--yellow);
  height: 30px;
}

.bshape-tri {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--yellow);
  left: 10%;
  top: 20%;
  opacity: 0.25;
  transform: rotate(-10deg);
}

.bshape-dots {
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, var(--green) 2px, transparent 2px);
  background-size: 10px 10px;
  right: 8%;
  bottom: 10px;
  opacity: 0.4;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.banner-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  transform: rotate(-1deg);
  letter-spacing: 0.06em;
}

.page-banner h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-banner time {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ===== 正文区主体布局 ===== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 2px dashed rgba(25,38,23,0.12);
}

.content-section:last-child {
  border-bottom: none;
}

/* ===== 侧边栏 ===== */
.section-aside {
  position: relative;
}

.left-aside {
  order: -1;
}

.aside-block {
  margin-bottom: 28px;
}

.aside-deco {
  margin-top: 24px;
}

.aside-nav-block,
.aside-tags {
  margin-bottom: 24px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.aside-links li a {
  display: block;
  padding: 8px 12px;
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  transition: background var(--transition), transform var(--transition);
  min-height: 40px;
  line-height: 1.4;
}

.aside-links li a:hover {
  background: var(--green);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--dark);
}

.aside-channel-link {
  display: inline-block;
  background: var(--dark);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius);
  margin-top: 6px;
  transition: background var(--transition);
  min-height: 40px;
  line-height: 1.4;
}

.aside-channel-link:hover {
  background: var(--green-dark);
  color: var(--dark);
}

/* 统计块 */
.stat-block {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-block::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.3;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* ===== Section 图形容器 ===== */
.section-figure {
  min-width: 0;
}

/* ===== 眉题 Small ===== */
small.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--dark);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  transform: rotate(-0.5deg);
}

/* ===== 标题样式 ===== */
h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.3;
  position: relative;
  padding-left: 16px;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--green);
  border-radius: 3px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

h3 a {
  color: var(--dark);
  text-decoration: none;
}

h3 a:hover {
  color: var(--green-dark);
}

/* ===== 正文内容区 ===== */
.page-content-wrap {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.page-content-wrap h2,
.page-content-wrap h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-content-wrap p {
  margin-bottom: 16px;
}

.page-content-wrap ul,
.page-content-wrap ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content-wrap a {
  color: var(--green-dark);
  text-decoration: underline;
}

.page-content-wrap a:hover {
  color: var(--dark);
}

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

.page-content-wrap th,
.page-content-wrap td {
  border: 2px solid var(--dark);
  padding: 10px 14px;
  text-align: left;
}

.page-content-wrap th {
  background: var(--dark);
  color: var(--green);
}

/* ===== 首页 - 频道网格 ===== */
.channels-section {
  padding-top: 56px;
}

.channels-grid-wrap {
  grid-column: 1 / -1;
  margin-top: 8px;
}

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

/* ===== 卡片 ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 2px solid var(--dark);
  box-shadow: 4px 4px 0 var(--dark);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--dark);
}

.channel-card {
  border-top: 5px solid var(--green);
}

.channel-card h3 a {
  font-size: 1rem;
  font-weight: 700;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.card-links li a {
  font-size: 0.8rem;
  color: var(--green-dark);
  text-decoration: underline;
}

.card-links li a:hover {
  color: var(--dark);
}

.card-img-wrap {
  margin: -20px -20px 16px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* ===== 文章列表 ===== */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.article-card {
  border-left: 5px solid var(--yellow);
}

.article-card time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 8px;
  background: var(--off-white);
  padding: 2px 8px;
  border-radius: 4px;
}

.channel-articles .card {
  border-left: 5px solid var(--green);
}

/* ===== 文章页专用 ===== */
.article-main {
  padding-top: 0;
}

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

.article-hero-wrap {
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--dark);
  box-shadow: 6px 6px 0 var(--dark);
}

.article-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.article-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 3px dashed rgba(25,38,23,0.15);
}

.article-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.article-section h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.article-meta time {
  font-size: 0.82rem;
  color: var(--text-light);
  background: var(--off-white);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(25,38,23,0.12);
}

.article-desc {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 8px;
}

.article-body {
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 4px 4px 0 rgba(25,38,23,0.08);
}

/* ===== 标签徽章 ===== */
.tag-badge {
  display: inline-block;
  background: var(--green);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 2px solid var(--dark);
  margin: 3px;
  transition: background var(--transition), transform var(--transition);
  min-height: 30px;
  line-height: 1.4;
}

.tag-badge:hover {
  background: var(--yellow);
  transform: rotate(-2deg) scale(1.05);
  color: var(--dark);
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

/* ===== 装饰元素 ===== */
.deco-zigzag {
  width: 100%;
  max-width: 160px;
  height: 16px;
  background-color: var(--yellow);
  clip-path: polygon(0 100%, 8.33% 0, 16.67% 100%, 25% 0, 33.33% 100%, 41.67% 0, 50% 100%, 58.33% 0, 66.67% 100%, 75% 0, 83.33% 100%, 91.67% 0, 100% 100%);
  margin-bottom: 12px;
  opacity: 0.7;
}

.deco-circle-sm {
  width: 40px;
  height: 40px;
  border: 4px solid var(--green);
  border-radius: 50%;
  margin: 8px auto;
  opacity: 0.5;
  transform: rotate(15deg);
}

/* ===== 频道页 ===== */
.channel-main {
  padding-top: 0;
}

.channel-content {
  padding-top: 40px;
}

.channel-prose,
.tag-prose,
.about-prose,
.privacy-prose {
  background: var(--white);
  border: 2px solid var(--dark);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 4px 4px 0 rgba(25,38,23,0.08);
}

/* ===== 首页 hero 之后的 sections ===== */
.hero-section + main {
  margin-top: 0;
}

.articles-section {
  padding-top: 0;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

.footer-address strong {
  color: var(--green);
  font-size: 1rem;
  display: block;
  margin-bottom: 6px;
}

.footer-col small.eyebrow {
  background: var(--green);
  color: var(--dark);
}

.footer-col ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  display: inline-block;
  padding: 2px 0;
  min-height: 28px;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--green);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  transition: color var(--transition);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.footer-bottom-links a:hover {
  color: var(--yellow);
}

.footer-shapes {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 120px;
  pointer-events: none;
}

.fshape {
  position: absolute;
}

.fshape-tri {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 80px solid var(--green);
  right: 20px;
  bottom: 20px;
  opacity: 0.08;
  transform: rotate(20deg);
}

.fshape-dot {
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, var(--yellow) 2px, transparent 2px);
  background-size: 10px 10px;
  right: 80px;
  bottom: 30px;
  opacity: 0.15;
}

/* ===== 接近文章页的 aside ===== */
.article-aside,
.channel-aside,
.tag-aside,
.about-aside,
.privacy-aside {
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ===== 动效 ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

.stagger-list .reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-list li:nth-child(1) .reveal-item { transition-delay: 0.05s; }
.stagger-list li:nth-child(2) .reveal-item { transition-delay: 0.1s; }
.stagger-list li:nth-child(3) .reveal-item { transition-delay: 0.15s; }
.stagger-list li:nth-child(4) .reveal-item { transition-delay: 0.2s; }
.stagger-list li:nth-child(5) .reveal-item { transition-delay: 0.25s; }
.stagger-list li:nth-child(6) .reveal-item { transition-delay: 0.3s; }
.stagger-list li:nth-child(7) .reveal-item { transition-delay: 0.35s; }
.stagger-list li:nth-child(8) .reveal-item { transition-delay: 0.4s; }

.stagger-list.is-visible .reveal-item {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section,
  .stagger-list .reveal-item,
  .card,
  .btn-primary,
  .shape-circle,
  .tag-badge {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== 辅助 ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== 响应式断点 ===== */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-col-tags {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(var(--nav-h) + 8px);
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .left-aside {
    order: 1;
  }

  .section-figure {
    order: 0;
  }

  .article-aside,
  .channel-aside,
  .tag-aside,
  .about-aside,
  .privacy-aside {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .hero-section {
    min-height: 60vh;
  }

  .hero-content {
    padding: 32px 16px 48px;
  }

  .hero-shapes {
    display: none;
  }

  .page-banner {
    min-height: 160px;
  }

  .banner-content {
    padding: 28px 16px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .channels-grid-wrap {
    grid-column: auto;
    margin-top: 0;
  }

  .bottom-nav > ol > li > a {
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .header-inner {
    height: 48px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 0.875rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .article-hero-img {
    height: 200px;
  }

  .article-body,
  .channel-prose,
  .tag-prose,
  .about-prose,
  .privacy-prose {
    padding: 20px 16px;
  }

  main {
    padding: 0 16px;
  }

  .stat-num {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .content-section {
    grid-template-columns: 260px 1fr;
  }
}
