/* ============================================================
   Y2K Blog —— 千禧年复古 · 贴纸质感 · 撞色硬阴影
   设计关键词：cream / ink / chunky border / hard shadow / tilt
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --cream:   #FFF8EE;
  --paper:   #FFFDF6;
  --ink:     #1A1A1A;

  --pink:    #FF90E8;
  --hot:     #FF6B9D;
  --yellow:  #FDE047;
  --purple:  #A78BFA;
  --mint:    #6EE7B7;
  --orange:  #FF9F68;
  --blue:    #93C5FD;

  --border:  2.5px solid var(--ink);
  --shadow-s: 3px 3px 0 var(--ink);
  --shadow-m: 5px 5px 0 var(--ink);
  --shadow-l: 8px 8px 0 var(--ink);

  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body:    -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  /* 网格纸背景 */
  background-image:
    radial-gradient(circle, rgba(26,26,26,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--pink); color: var(--ink); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 0; border: 3px solid var(--cream); }

/* ============================================================
   顶部导航 —— 贴纸胶囊条
   ============================================================ */
.topbar-strip {
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 8px 0;
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
}
.topbar-inner { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.topbar-inner a { color: var(--yellow); }
.topbar-inner a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px 24px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--paper);
  border: var(--border);
  border-radius: 999px;
  padding: 10px 10px 10px 26px;
  box-shadow: var(--shadow-m);
  transition: box-shadow .2s, transform .2s;
}
.site-header.scrolled .header-inner { box-shadow: var(--shadow-l); transform: translateY(-2px); }

.site-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.site-logo .logo-dot {
  width: 14px; height: 14px;
  background: var(--pink);
  border: var(--border);
  border-radius: 50%;
  display: inline-block;
}
.site-logo em { font-style: normal; color: var(--hot); }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-search { display: flex; align-items: center; margin-left: 6px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.site-search input { width: 108px; padding: 6px 4px 6px 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 12px var(--font-body); }
.site-search button { width: 32px; height: 32px; padding: 0; border: 0; background: var(--yellow); font-size: 14px; }
.site-search:focus-within { box-shadow: var(--shadow-s); }
.nav-link {
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2.5px solid transparent;
  transition: all .15s;
  position: relative;
}
.nav-link:hover { border-color: var(--ink); background: var(--yellow); transform: rotate(-2deg); }
.nav-link:nth-child(2n):hover { background: var(--pink); transform: rotate(2deg); }
.nav-link:nth-child(3n):hover { background: var(--mint); }
.nav-link.nav-cta { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.nav-link.nav-cta:hover { background: var(--hot); color: var(--ink); }
.nav-link.nav-admin {
  background: var(--pink);
  color: var(--ink);
  border-color: var(--ink);
  font-size: 12px;
  padding: 6px 14px;
  margin-left: 6px;
}
.nav-link.nav-admin:hover { background: var(--yellow); transform: rotate(-4deg) scale(1.05); }
.nav-emoji { display: none; }

.nav-toggle { display: none; background: var(--yellow); border: var(--border); border-radius: 50%; width: 40px; height: 40px; font-size: 18px; font-weight: 900; }

/* ============================================================
   Hero —— 超大标题 + 漂浮贴纸
   ============================================================ */
.hero-banner {
  position: relative;
  padding: 90px 0 120px;
  overflow: visible;
}

/* Hero 背景轮播 */
.hero-carousel { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
  display: block; text-decoration: none;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(255,248,238,.6), rgba(255,144,232,.35) 45%, rgba(167,139,250,.45));
}
.hero-slide-caption {
  position: absolute; left: 60px; bottom: 56px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(26,26,26,.78); color: var(--paper);
  padding: 14px 22px; border: 2.5px solid var(--paper);
  border-radius: 16px; box-shadow: 5px 5px 0 rgba(0,0,0,.45);
  max-width: 380px;
}
.hero-slide-caption b { font-family: var(--font-display); font-size: 22px; font-weight: 900; }
.hero-slide-caption em { font-style: normal; font-size: 13px; opacity: .9; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 50px; height: 50px;
  background: rgba(255,253,246,.92); border: var(--border);
  border-radius: 50%; font-size: 28px; font-weight: 900;
  cursor: pointer; box-shadow: 4px 4px 0 var(--ink);
  transition: all .15s; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--yellow); transform: translate(-2px,-52%); box-shadow: 6px 6px 0 var(--ink); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dot {
  width: 14px; height: 14px; background: rgba(255,253,246,.85);
  border: 2.5px solid var(--ink); border-radius: 50%; cursor: pointer;
  transition: all .2s;
}
.hero-dot.active { background: var(--hot); transform: scale(1.3); }

.hero-inner {
  position: relative;
  text-align: left;
  z-index: 2;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-s);
  transform: rotate(-2deg);
  margin-bottom: 24px;
}
.hero-tag .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse { 50% { opacity: .3; transform: scale(1.4); } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-title .line-1 { transform: rotate(-1.5deg); }
.hero-title .line-2 { transform: rotate(1deg); margin-left: 40px; }
.hero-title .line-3 { transform: rotate(-1deg); }

.hero-title .stroke {
  -webkit-text-stroke: 3px var(--ink);
  color: transparent;
  font-weight: 900;
}
.hero-title .fill-pink   { color: var(--pink);   text-shadow: 5px 5px 0 var(--ink); }
.hero-title .fill-purple { color: var(--purple); text-shadow: 5px 5px 0 var(--ink); }
.hero-title .fill-mint   { color: var(--mint);   text-shadow: 5px 5px 0 var(--ink); }
.hero-title .fill-yellow { color: var(--yellow); text-shadow: 5px 5px 0 var(--ink); }

.hero-title .underline-wavy {
  position: relative;
  display: inline-block;
}
.hero-title .underline-wavy::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q 12.5 0 25 6 T 50 6 T 75 6 T 100 6' stroke='%231A1A1A' stroke-width='3' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 80px 12px;
}

.hero-desc {
  font-size: 18px;
  max-width: 480px;
  margin: 32px 0;
  color: var(--ink);
  font-weight: 500;
}
.hero-desc strong {
  background: var(--pink);
  padding: 1px 8px;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

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

.btn-glow, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 14px 32px;
  border: var(--border);
  border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-m);
}
.btn-glow { background: var(--hot); color: var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-glow:hover, .btn-ghost:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-l); }
.btn-glow:active, .btn-ghost:active { transform: translate(2px, 2px); box-shadow: var(--shadow-s); }

/* 漂浮贴纸 */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.shape {
  position: absolute;
  font-size: 0;
  width: 80px; height: 80px;
  border: var(--border);
  box-shadow: var(--shadow-m);
  animation: floaty 6s ease-in-out infinite;
}
.shape-1 {
  top: 4%; right: 14%;
  width: 96px; height: 96px;
  background: var(--pink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.shape-1::after {
  content: '★';
  font-size: 48px;
  color: var(--ink);
}
.shape-2 {
  top: 38%; right: 4%;
  width: 72px; height: 72px;
  background: var(--yellow);
  border-radius: 20px;
  transform: rotate(12deg);
  animation-delay: 1s;
}
.shape-3 {
  bottom: 12%; right: 22%;
  width: 110px; height: 60px;
  background: var(--mint);
  border-radius: 999px;
  animation-delay: 2s;
}
.shape-4 {
  top: 8%; right: 38%;
  width: 44px; height: 44px;
  background: var(--purple);
  border-radius: 8px;
  transform: rotate(45deg);
  animation-delay: .5s;
}
.shape-5 {
  bottom: 32%; right: 8%;
  width: 60px; height: 60px;
  background: var(--blue);
  border-radius: 50% 50% 50% 4px;
  animation-delay: 1.5s;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-14px) rotate(-6deg); }
}

/* 像素装饰 */
.pixel-row {
  display: flex; gap: 6px;
  margin-top: 60px;
}
.pixel-row span {
  width: 14px; height: 14px;
  background: var(--ink);
  animation: blink 2s steps(2) infinite;
}
.pixel-row span:nth-child(2n) { background: var(--pink); animation-delay: .2s; }
.pixel-row span:nth-child(3n) { background: var(--yellow); animation-delay: .4s; }
.pixel-row span:nth-child(5n) { background: var(--mint); animation-delay: .6s; }
@keyframes blink { 50% { opacity: .3; } }

/* ============================================================
   跑马灯公告
   ============================================================ */
.marquee-bar {
  background: var(--ink);
  color: var(--cream);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 12px 0;
  overflow: hidden;
  transform: rotate(-1deg) scale(1.02);
  margin: 40px -10px 60px;
}
.marquee-inner { display: block; }
.marquee-label { display: none; }
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.marquee-item a { color: var(--cream); }
.marquee-item:nth-child(3n+1) a { color: var(--pink); }
.marquee-item:nth-child(3n+2) a { color: var(--yellow); }
.marquee-item:nth-child(3n)   a { color: var(--mint); }
.marquee-item a:hover { text-decoration: underline; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   区块标题
   ============================================================ */
.section-title {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  display: inline-flex; align-items: center; gap: 12px;
}
.section-title h2::before {
  content: '';
  width: 40px; height: 40px;
  background: var(--pink);
  border: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-s);
  display: inline-block;
  transform: rotate(-8deg);
}
.section-title h2 .accent {
  background: var(--yellow);
  padding: 0 12px;
  border: var(--border);
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-2deg);
}
.section-title p { color: var(--ink); opacity: .7; font-weight: 600; font-size: 14px; }

/* ============================================================
   快捷栏目 —— 贴纸卡片
   ============================================================ */
.quick-cats { padding: 40px 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.cat-card {
  background: var(--paper);
  border: var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-m);
  display: block;
}
.cat-card:nth-child(odd)  { transform: rotate(-1deg); }
.cat-card:nth-child(even) { transform: rotate(1deg); }
.cat-card:hover {
  transform: translate(-4px, -4px) rotate(0);
  box-shadow: var(--shadow-l);
}
.cat-emoji { font-size: 0; width: 56px; height: 56px; margin-bottom: 16px; border: var(--border); border-radius: 16px; position: relative; }
.cat-emoji::after {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.cat-card:nth-child(1) .cat-emoji { background: var(--pink); }
.cat-card:nth-child(1) .cat-emoji::after { content: '✏️'; }
.cat-card:nth-child(2) .cat-emoji { background: var(--yellow); }
.cat-card:nth-child(2) .cat-emoji::after { content: '💡'; }
.cat-card:nth-child(3) .cat-emoji { background: var(--mint); }
.cat-card:nth-child(3) .cat-emoji::after { content: '📷'; }
.cat-card:nth-child(4) .cat-emoji { background: var(--purple); }
.cat-card:nth-child(4) .cat-emoji::after { content: '🎧'; }
.cat-card:nth-child(5) .cat-emoji { background: var(--orange); }
.cat-card:nth-child(5) .cat-emoji::after { content: '☕'; }
.cat-card:nth-child(6) .cat-emoji { background: var(--blue); }
.cat-card:nth-child(6) .cat-emoji::after { content: '🌱'; }
.cat-card:nth-child(7) .cat-emoji { background: var(--hot); }
.cat-card:nth-child(7) .cat-emoji::after { content: '📮'; }
.cat-card:nth-child(8) .cat-emoji { background: var(--yellow); }
.cat-card:nth-child(8) .cat-emoji::after { content: '👋'; }

.cat-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.cat-card p { font-size: 13px; opacity: .75; font-weight: 500; line-height: 1.5; }
.cat-arrow {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 20px;
  font-weight: 900;
  width: 32px; height: 32px;
  border: var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  transition: all .2s;
}
.cat-card:hover .cat-arrow { background: var(--ink); color: var(--cream); transform: rotate(45deg); }

/* 栏目文章数量徽章 */
.cat-count {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-2deg);
}
.cat-card:nth-child(2n) .cat-count { background: var(--mint); transform: rotate(2deg); }
.cat-card:nth-child(3n) .cat-count { background: var(--pink); transform: rotate(-1deg); }

/* 全站总数徽章 */
.total-badge {
  display: inline-block;
  background: var(--hot);
  color: var(--ink);
  padding: 2px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0 2px;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-2deg);
}

/* ============================================================
   热门推荐 —— 错位网格
   ============================================================ */
.hot-section { padding: 60px 0; }
.hot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.hot-card {
  background: var(--paper);
  border: var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-m);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.hot-card:nth-child(1) { grid-column: span 7; }
.hot-card:nth-child(2) { grid-column: span 5; }
.hot-card:nth-child(3) { grid-column: span 5; }
.hot-card:nth-child(4) { grid-column: span 7; }
.hot-card:nth-child(n+5) { grid-column: span 4; }
.hot-card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow-l); }

.hot-cover {
  height: 180px;
  border-bottom: var(--border);
  background-size: cover;
  background-position: center;
  position: relative;
}
.hot-cover.placeholder { background: var(--purple); display: flex; align-items: center; justify-content: center; }
.hot-cover.placeholder::after {
  content: '✦';
  font-size: 64px;
  color: var(--paper);
}
.hot-card:nth-child(2n) .hot-cover.placeholder { background: var(--mint); }
.hot-card:nth-child(3n) .hot-cover.placeholder { background: var(--pink); }

.hot-info { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hot-cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-display);
}
.hot-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.5px;
}
.hot-info p { font-size: 14px; opacity: .75; }
.hot-date { font-size: 12px; font-weight: 700; font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase; }

/* ============================================================
   分组资讯
   ============================================================ */
.news-section { padding: 60px 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.news-col {
  background: var(--paper);
  border: var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-m);
}
.col-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 2.5px dashed var(--ink);
  margin-bottom: 18px;
}
.col-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  display: inline-flex; align-items: center; gap: 10px;
}
.col-header h3::before {
  content: '';
  width: 12px; height: 12px;
  background: var(--hot);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.col-more {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 2px solid var(--ink);
}
.col-more:hover { color: var(--hot); border-color: var(--hot); }

.news-list { display: flex; flex-direction: column; gap: 4px; }
.news-item {
  display: flex; gap: 14px;
  padding: 12px 8px;
  border-radius: 12px;
  transition: background .15s;
}
.news-item:hover { background: var(--cream); }
.news-thumb {
  width: 88px; height: 66px;
  border: var(--border);
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  background-color: var(--purple);
}
.thumb-badge {
  position: absolute; top: -8px; left: -8px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.news-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
}
.news-item:hover .news-title { color: var(--hot); }
.news-date {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: .6;
  text-transform: uppercase;
}
.news-empty { text-align: center; padding: 24px; opacity: .5; }

/* ============================================================
   数据统计 —— 撞色横条
   ============================================================ */
.stats-band {
  background: var(--ink);
  color: var(--cream);
  padding: 60px 0;
  margin: 60px 0;
  position: relative;
}
.stats-band::before, .stats-band::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q 25 0 50 10 T 100 10' stroke='%231A1A1A' stroke-width='3' fill='%231A1A1A'/%3E%3C/svg%3E");
  background-size: 60px 20px;
  background-repeat: repeat-x;
}
.stats-band::before { top: -10px; }
.stats-band::after { bottom: -10px; transform: scaleY(-1); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-block { padding: 12px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
}
.stat-block:nth-child(1) .stat-num { color: var(--pink); }
.stat-block:nth-child(2) .stat-num { color: var(--yellow); }
.stat-block:nth-child(3) .stat-num { color: var(--mint); }
.stat-block:nth-child(4) .stat-num { color: var(--purple); }
.stat-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-top: 8px;
  text-transform: uppercase;
  opacity: .9;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--paper);
  border-top: var(--border);
  padding: 60px 0 0;
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-col p { font-size: 14px; opacity: .8; line-height: 1.8; }
.footer-col ul li { font-size: 14px; padding: 6px 0; }
.footer-col ul li a { border-bottom: 2px solid transparent; font-weight: 500; }
.footer-col ul li a:hover { border-color: var(--hot); color: var(--hot); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row span {
  width: 40px; height: 40px;
  border: var(--border);
  border-radius: 12px;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .2s;
}
.social-row span:nth-child(2n) { background: var(--pink); }
.social-row span:nth-child(3n) { background: var(--mint); }
.social-row span:hover { transform: translateY(-4px) rotate(-8deg); }
.geo-info div { font-size: 13px; padding: 4px 0; font-weight: 500; }
.footer-bottom {
  border-top: 2.5px dashed var(--ink);
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.admin-entry {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ink);
  color: var(--cream);
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: all .15s;
}
.admin-entry:hover {
  background: var(--pink);
  color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 56px; height: 56px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-m);
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s;
  z-index: 999;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-l); background: var(--pink); }

/* ============================================================
   内页 Hero
   ============================================================ */
.page-hero {
  position: relative;
  padding: 70px 0 50px;
  text-align: center;
}
.page-hero-bg { display: none; }
.page-hero-inner { position: relative; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
  display: inline-block;
  background: var(--yellow);
  border: var(--border);
  border-radius: 24px;
  padding: 8px 36px;
  box-shadow: var(--shadow-l);
  transform: rotate(-2deg);
  margin-bottom: 24px;
}
.hero-count-badge {
  display: inline-block;
  background: var(--hot);
  color: var(--ink);
  font-size: 0.45em;
  padding: 4px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(3deg) translateY(-0.15em);
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0;
}
.page-hero-desc { font-size: 16px; font-weight: 500; opacity: .8; max-width: 560px; margin: 0 auto; }

/* 面包屑 */
.breadcrumb { margin-top: 24px; display: inline-block; }
.breadcrumb ol {
  display: flex; gap: 8px;
  background: var(--paper);
  border: var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: var(--shadow-s);
  list-style: none;
}
.breadcrumb li { font-size: 13px; font-weight: 700; }
.breadcrumb li::after { content: '/'; margin-left: 8px; opacity: .4; }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb li a:hover { color: var(--hot); }
.breadcrumb li.current { color: var(--hot); }

/* ============================================================
   列表页
   ============================================================ */
.list-section { padding: 30px 0 60px; }
.list-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.list-header-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: var(--border);
  margin-bottom: 28px;
}
.list-header-bar h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
}
.list-total {
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-display);
}

.article-list { display: flex; flex-direction: column; gap: 22px; }
.article-item {
  display: flex; gap: 24px;
  background: var(--paper);
  border: var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-m);
  transition: transform .2s, box-shadow .2s;
}
.article-item:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-l); }
.art-thumb {
  width: 200px; height: 140px;
  border: var(--border);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  background-color: var(--purple);
}
.art-title a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  display: block;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}
.art-title a:hover { color: var(--hot); }
.art-summary { font-size: 14px; opacity: .8; margin-bottom: 12px; }
.art-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  opacity: .7;
}
.list-empty { text-align: center; padding: 60px; font-weight: 600; opacity: .6; }

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-display);
}
.tag.hot { background: var(--hot); color: var(--ink); }
.tag.rec { background: var(--mint); color: var(--ink); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.article-tag { display: inline-block; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; font: 800 11px var(--font-display); box-shadow: 2px 2px 0 var(--ink); transition: all .15s; }
.article-tag:hover { transform: translate(-1px,-1px) rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }
.article-tag.tag-color-0 { background: var(--pink); }
.article-tag.tag-color-1 { background: var(--purple); }
.article-tag.tag-color-2 { background: var(--mint); }
.article-tag.tag-color-3 { background: var(--yellow); }
.detail-tags { margin-top: 18px; margin-bottom: 0; }
.title-cell { display: flex; align-items: center; gap: 8px; }

/* 分页 */
.pagination-bar { display: flex; gap: 10px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px;
  padding: 0 14px;
  background: var(--paper);
  border: var(--border);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-s);
  transition: all .15s;
}
.pg-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-m); background: var(--yellow); }
.pg-btn.active { background: var(--ink); color: var(--cream); }

/* ============================================================
   侧边栏
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-card {
  background: var(--paper);
  border: var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-m);
}
.side-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2.5px dashed var(--ink);
}
.side-list li { padding: 10px 0; border-bottom: 2px dashed var(--cream); font-size: 14px; }
.side-list li:last-child { border: none; }
.side-list li a { font-weight: 600; line-height: 1.4; }
.side-list li a:hover { color: var(--hot); }
.side-list.hot li { display: flex; gap: 12px; align-items: flex-start; }
.rank {
  width: 26px; height: 26px;
  flex-shrink: 0;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 13px;
}
.side-list.hot li.top .rank { background: var(--yellow); }
.side-list li.active a { color: var(--hot); }
.side-card.colorful { background: var(--purple); }
.side-card.colorful h4 { border-color: var(--ink); }
.side-card.colorful p { font-weight: 600; padding: 4px 0; }

/* ============================================================
   详情页
   ============================================================ */
.detail-section { padding: 30px 0 60px; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.article-main {
  background: var(--paper);
  border: var(--border);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow-m);
}
.single-main h2, .single-main h3 {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 24px 0 12px;
}
.single-main p { margin-bottom: 14px; }
.single-main ul { padding-left: 24px; }
.single-main ul li { list-style: disc; padding: 4px 0; }

.art-header { margin-bottom: 28px; }
.art-cat-tag {
  display: inline-block;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}
.art-big-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.art-subtitle {
  font-size: 17px;
  font-weight: 500;
  opacity: .8;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 4px solid var(--pink);
}
.art-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding: 14px 0;
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
}
.art-cover { margin: 24px 0; border: var(--border); border-radius: 20px; overflow: hidden; }
.art-cover img { width: 100%; }
.art-summary-box {
  background: var(--yellow);
  border: var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-s);
}
.art-content { font-size: 17px; line-height: 1.9; }
.art-content p { margin-bottom: 18px; }
.art-content h2, .art-content h3 {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 32px 0 16px;
}
.art-content h2 { font-size: 26px; }
.art-content h3 { font-size: 22px; color: var(--hot); }
.art-content img { border: var(--border); border-radius: 16px; margin: 20px 0; }
.art-content ul, .art-content ol { padding-left: 28px; margin-bottom: 18px; }
.art-content ul li { list-style: disc; padding: 4px 0; }
.art-content ol li { list-style: decimal; padding: 4px 0; }
.art-content a { color: var(--hot); border-bottom: 2px solid var(--hot); font-weight: 600; }
.art-content code {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

/* 上下篇 */
.pager-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 2.5px dashed var(--ink);
}
.pager-item {
  background: var(--cream);
  border: var(--border);
  border-radius: 16px;
  padding: 18px;
  transition: all .2s;
  display: block;
}
.pager-item:hover { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: var(--shadow-m); }
.pager-item.next:hover { background: var(--pink); }
.pager-item.empty { opacity: .5; }
.pager-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  opacity: .7;
}
.pager-title { font-weight: 700; font-size: 15px; line-height: 1.4; display: block; }

/* ============================================================
   入场动画
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; }

/* 星星装饰 */
.sparkle-deco {
  position: absolute;
  font-size: 24px;
  color: var(--ink);
  animation: twinkle 2s ease infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50%      { transform: scale(1.3) rotate(15deg); opacity: .6; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hot-card:nth-child(n) { grid-column: span 6; }
}
@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 12px; background: var(--paper); border: var(--border); border-radius: 24px; flex-direction: column; padding: 20px; box-shadow: var(--shadow-m); }
  .site-nav.open { display: flex; }
  .site-search { width: 100%; margin: 8px 0; }
  .site-search input { width: auto; flex: 1; }
  .nav-toggle { display: block; }
  .list-layout, .detail-layout { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .hero-title .line-2 { margin-left: 0; }
  .shape { display: none; }
  .shape-1, .shape-3 { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hot-card:nth-child(n) { grid-column: span 12; }
  .article-item { flex-direction: column; }
  .art-thumb { width: 100%; height: 200px; }
  .pager-nav { grid-template-columns: 1fr; }
  .article-main { padding: 28px; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 28px; }
  .stat-num { font-size: 52px; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ============ 在线留言 ============ */
.msg-tip { margin: 0 auto 24px; max-width: 1100px; padding: 14px 22px; border: var(--border); border-radius: 16px; font-weight: 700; box-shadow: 4px 4px 0 var(--ink); }
.msg-tip.msg-ok { background: var(--mint); color: var(--ink); }
.msg-tip.msg-err { background: var(--hot); color: #fff; }

.message-layout { display: grid; grid-template-columns: 380px 1fr; gap: 28px; margin-top: 8px; }
@media (max-width: 900px) { .message-layout { grid-template-columns: 1fr; } }

.msg-form { background: var(--paper); border: var(--border); border-radius: 24px; padding: 26px; box-shadow: 6px 6px 0 var(--ink); align-self: start; position: sticky; top: 90px; }
.msg-form h3 { font-family: var(--font-display); font-size: 22px; font-weight: 900; margin: 0 0 18px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 14px; }
.form-row label em { color: var(--hot); font-style: normal; }
.form-row label small { font-weight: 500; color: #888; }
.form-row input, .form-row textarea { width: 100%; padding: 11px 14px; border: var(--border); border-radius: 12px; background: #fff; font-size: 14px; font-family: inherit; box-sizing: border-box; transition: all .15s; }
.form-row input:focus, .form-row textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--hot-l); border-color: var(--hot); }
.form-row textarea { resize: vertical; min-height: 100px; }
.msg-submit { width: 100%; padding: 13px; background: var(--hot); color: #fff; border: var(--border); border-radius: 14px; font-family: var(--font-display); font-size: 16px; font-weight: 900; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: all .15s; }
.msg-submit:hover { background: var(--purple); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.msg-submit:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

.msg-wall h3 { font-family: var(--font-display); font-size: 22px; font-weight: 900; margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; }
.wall-count { font-size: 13px; font-weight: 700; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; box-shadow: 3px 3px 0 var(--ink); }
.msg-empty { background: var(--paper); border: var(--border); border-radius: 20px; padding: 50px 30px; text-align: center; font-weight: 700; color: #888; box-shadow: 6px 6px 0 var(--ink); }

.msg-item { background: var(--paper); border: var(--border); border-radius: 20px; padding: 20px 22px; margin-bottom: 16px; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s; }
.msg-item:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.msg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.msg-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c, var(--hot)); color: #fff; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; box-shadow: 3px 3px 0 var(--ink); flex-shrink: 0; }
.msg-meta b { font-size: 15px; font-weight: 800; }
.msg-meta em { display: block; font-style: normal; font-size: 12px; color: #999; margin-top: 2px; }
.msg-content { margin: 0 0 12px; line-height: 1.8; font-size: 15px; word-break: break-word; }
.msg-reply { background: var(--cream); border-left: 4px solid var(--purple); border-radius: 0 12px 12px 0; padding: 12px 16px; margin-top: 8px; }
.reply-tag { display: inline-block; background: var(--purple); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; border: 2px solid var(--ink); }
.msg-reply p { margin: 0; line-height: 1.7; font-size: 14px; }

/* ============ 文章评论 ============ */
.comments-section { margin-top: 42px; padding-top: 30px; border-top: 2.5px dashed var(--ink); }
.comments-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.comments-heading h3 { font: 900 24px var(--font-display); }
.comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.comment-loading, .comment-empty { padding: 26px; text-align: center; background: var(--cream); border: 2px dashed var(--ink); border-radius: 16px; color: #777; font-weight: 600; }
.comment-item { padding: 18px; background: var(--cream); border: var(--border); border-radius: 18px; box-shadow: var(--shadow-s); }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-avatar { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 50%; font-weight: 900; }
.comment-avatar.color-0 { background: var(--pink); }
.comment-avatar.color-1 { background: var(--purple); }
.comment-avatar.color-2 { background: var(--mint); }
.comment-avatar.color-3 { background: var(--yellow); }
.comment-author { font-weight: 800; }
.comment-time { display: block; color: #888; font-size: 11px; }
.comment-content { font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.comment-reply { margin-top: 12px; padding: 12px 14px; background: var(--paper); border-left: 4px solid var(--purple); border-radius: 0 12px 12px 0; }
.comment-reply b { display: block; margin-bottom: 4px; color: #6D4ACF; font-size: 12px; }
.comment-reply p { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.comment-form { padding: 24px; background: var(--paper); border: var(--border); border-radius: 20px; box-shadow: var(--shadow-m); }
.comment-form h4 { margin-bottom: 18px; font: 900 20px var(--font-display); }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.comment-submit-row .msg-submit { width: auto; min-width: 150px; padding: 11px 20px; }
.comment-submit-row .msg-submit:disabled { opacity: .6; cursor: wait; }
.comment-tip { font-size: 13px; font-weight: 700; }
.comment-tip.ok { color: #16835E; }
.comment-tip.error { color: #D83B6D; }
@media (max-width: 560px) {
  .comment-form-grid { grid-template-columns: 1fr; gap: 0; }
  .comment-submit-row { align-items: stretch; flex-direction: column; }
  .comment-submit-row .msg-submit { width: 100%; }
}
