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

/* ===== 变量 ===== */
:root {
  --neon: #80ff00;
  --neon2: #00ff00;
  --dark: #1f2617;
  --dark2: #161d0f;
  --dark3: #2a3320;
  --glass-bg: rgba(31,38,23,0.72);
  --glass-border: rgba(128,255,0,0.18);
  --text: #e8f5d0;
  --text-dim: #a8bf80;
  --radius: 4px;
  --nav-h: 56px;
  --font-title: 'Russo One', 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Chakra Petch', system-ui, sans-serif;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--neon); text-decoration: none; }
a:hover { color: var(--neon2); text-decoration: underline; }
ul { list-style: none; }

/* ===== 跑马灯 ===== */
.marquee-bar {
  background: var(--neon);
  color: var(--dark);
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  height: 28px;
  display: flex;
  align-items: center;
}
.marquee-inner {
  display: inline-block;
  animation: marquee-scroll 28s linear infinite;
}
.marquee-inner span { padding-right: 2rem; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15,20,9,0.92);
  border-top: 2px solid var(--neon);
  backdrop-filter: blur(12px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.site-header nav {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav > p {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1rem;
  white-space: nowrap;
}
.site-header nav > p > a {
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 0.75rem;
  height: var(--nav-h);
  display: inline-flex;
  align-items: center;
  border-right: 1px solid rgba(128,255,0,0.1);
  transition: color 0.2s, background 0.2s;
  min-height: 40px;
}
.site-header nav > p > a:hover {
  color: var(--neon);
  background: rgba(128,255,0,0.07);
  text-decoration: none;
}
.brand-link {
  font-family: var(--font-title) !important;
  font-size: 0.9rem !important;
  color: var(--neon) !important;
  letter-spacing: 0.02em;
  border-right: 2px solid var(--neon) !important;
  padding-right: 1rem !important;
}

/* ===== 主体间距（为固定底栏留空） ===== */
body {
  padding-bottom: calc(var(--nav-h) + 28px);
}

/* ===== 布局容器 ===== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0 2rem;
  align-items: start;
}

/* ===== Hero ===== */
.hero-section {
  grid-column: 1 / -1;
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding: 3rem 0 2rem;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -0.5rem;
  transform: translateY(-50%);
  font-family: var(--font-title);
  font-size: clamp(5rem, 18vw, 14rem);
  color: rgba(128,255,0,0.04);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--neon);
  padding-left: 0.6rem;
}
.hero-section h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-sticker {
  position: absolute;
  font-size: 2.5rem;
  z-index: 1;
  animation: jitter 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--neon));
}
.sticker-1 { top: 15%; right: 20%; animation-delay: 0s; }
.sticker-2 { bottom: 20%; right: 10%; animation-delay: 1.2s; }
@keyframes jitter {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  33% { transform: rotate(3deg) scale(1.08); }
  66% { transform: rotate(-2deg) scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sticker { animation: none; }
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1.5rem;
  background: var(--neon);
  color: var(--dark);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--neon2);
  color: var(--dark);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 1.25rem;
  border: 2px solid var(--neon);
  color: var(--neon);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--neon);
  color: var(--dark);
  text-decoration: none;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 1rem;
  color: var(--neon);
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid var(--neon);
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--neon2); text-decoration: none; }

/* ===== 玻璃拟态卡片 ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}
.glass-card:hover {
  border-color: rgba(128,255,0,0.5);
  transform: translateY(-3px);
}
.card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.card-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.card-meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.card-meta time { color: var(--text-dim); }

/* ===== 标签芯片 ===== */
.tag-chip {
  display: inline-block;
  background: rgba(128,255,0,0.12);
  color: var(--neon);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.tag-chip:hover { background: rgba(128,255,0,0.25); text-decoration: none; }

/* ===== 首页专题网格 ===== */
.cats-section, .latest-section, .home-content-section {
  grid-column: 1;
}
.cats-section h2, .latest-section h2 {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
}
.cats-section h2 > span, .latest-section h2 > span {
  position: relative;
}
.cats-section h2 > span::after, .latest-section h2 > span::after {
  content: '';
  display: block;
  height: 3px;
  background: var(--neon);
  margin-top: 0.2rem;
  width: 40%;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.cat-card h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.cat-card h3 > span { display: inline; }
.cat-children {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.cat-child-link {
  font-size: 0.83rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s;
}
.cat-child-link:hover { color: var(--neon); text-decoration: none; }
.link-arrow { color: var(--neon); font-size: 0.8rem; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.article-card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.article-card h3 > span { display: inline; }

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== aside ===== */
.global-aside {
  grid-column: 2;
  position: sticky;
  top: 1.5rem;
  margin-top: 2rem;
}
.aside-inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
}
.aside-inner h3 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  margin-top: 1rem;
}
.aside-inner h3:first-child { margin-top: 0; }
.aside-inner h3 > span { display: inline; }
.aside-nav-list { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.5rem; }
.aside-nav-list li a {
  font-size: 0.84rem;
  color: var(--text-dim);
  display: block;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(128,255,0,0.06);
  transition: color 0.15s;
}
.aside-nav-list li a:hover { color: var(--neon); text-decoration: none; }

/* ===== 正文 ===== */
.content-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 720px;
}
.content-prose h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: #fff;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.content-prose h2 > span { display: inline; }
.content-prose h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--neon);
  margin: 1.5rem 0 0.5rem;
}
.content-prose h3 > span { display: inline; }
.content-prose p { margin-bottom: 1rem; }
.content-prose ul, .content-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-prose ul { list-style: disc; }
.content-prose ol { list-style: decimal; }
.content-prose li { margin-bottom: 0.35rem; }
.content-prose strong { color: var(--neon); }
.content-prose em { color: var(--text-dim); font-style: italic; }
.content-prose a { color: var(--neon); border-bottom: 1px solid rgba(128,255,0,0.3); }
.content-prose a:hover { color: var(--neon2); text-decoration: none; }
.content-prose blockquote {
  border-left: 3px solid var(--neon);
  padding: 0.75rem 1rem;
  background: rgba(128,255,0,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-dim);
}
.content-prose code {
  background: var(--dark3);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  font-size: 0.88em;
  color: var(--neon);
}
.content-prose pre {
  background: var(--dark2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
.content-prose pre code { background: none; padding: 0; }
.content-prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ===== 栏目页 ===== */
.cat-hero-section {
  grid-column: 1 / -1;
  position: relative;
  padding: 2.5rem 0 1.5rem;
  overflow: hidden;
}
.cat-hero-inner {
  position: relative;
  z-index: 2;
}
.cat-eyebrow, .tag-eyebrow, .about-eyebrow, .privacy-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--neon);
  padding-left: 0.6rem;
}
.cat-hero-section h1, .tag-hero-section h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.cat-hero-desc, .tag-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
}
.cat-content-section, .tag-content-section {
  grid-column: 1;
  padding: 1.5rem 0;
}
.cat-list-section, .tag-list-section {
  grid-column: 1;
}
.cat-list-section h2, .tag-list-section h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}
.cat-list-section h2 > span, .tag-list-section h2 > span { display: inline; }

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-table tbody tr {
  border-bottom: 1px solid rgba(128,255,0,0.07);
  transition: background 0.15s;
}
.article-table tbody tr:last-child { border-bottom: none; }
.article-table tbody tr:hover { background: rgba(128,255,0,0.04); }
.article-table td {
  padding: 0.85rem 1rem;
  vertical-align: top;
}
.td-num {
  font-family: var(--font-title);
  color: rgba(128,255,0,0.35);
  font-size: 0.78rem;
  width: 40px;
  text-align: center;
}
.td-title a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.15s;
}
.td-title a:hover { color: var(--neon); text-decoration: none; }
.td-desc {
  color: var(--text-dim);
  font-size: 0.83rem;
  line-height: 1.5;
}
.td-date {
  color: var(--text-dim);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ===== 文章页 ===== */
.article-section {
  grid-column: 1;
  padding: 2rem 0;
}
.article-body { max-width: 760px; }
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb-link { color: var(--neon); }
.article-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.date-mod { font-style: italic; }
.article-body h1 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.article-hero-wrap {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.article-hero-img { width: 100%; object-fit: cover; max-height: 360px; }
.article-sticker {
  margin-bottom: 1.25rem;
}
.sticker-tag {
  display: inline-block;
  background: var(--neon);
  color: var(--dark);
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.3em 0.8em;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.article-footer-nav {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== 关于页 ===== */
.about-section {
  grid-column: 1;
  padding: 2rem 0;
}
.about-header {
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
}
.about-bg-text {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-title);
  font-size: clamp(4rem, 14vw, 10rem);
  color: rgba(128,255,0,0.04);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.about-header h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.about-tagline {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.about-sticker-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.sticker-big {
  font-size: 2rem;
  color: var(--neon);
  animation: jitter 4s ease-in-out infinite;
  display: inline-block;
}
.sticker-big.rotated { animation-delay: 0.8s; transform: rotate(20deg); }
@media (prefers-reduced-motion: reduce) {
  .sticker-big { animation: none; }
}
.about-cats { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.about-cats h2 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 1rem;
}
.about-cats h2 > span { display: inline; }
.about-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.about-cat-card {
  display: block;
  color: var(--text);
}
.about-cat-card:hover { text-decoration: none; color: var(--text); }
.about-cat-card strong {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.about-cat-card p { font-size: 0.82rem; color: var(--text-dim); margin: 0; }

/* ===== 隐私页 ===== */
.privacy-section {
  grid-column: 1;
  padding: 2rem 0;
}
.privacy-body { max-width: 720px; }
.privacy-body h1 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.privacy-date {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.privacy-footer-nav {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
}

/* ===== 标签页 ===== */
.tag-hero-section {
  grid-column: 1 / -1;
  position: relative;
  padding: 2.5rem 0 1.5rem;
  overflow: hidden;
}
.tag-hero-inner { position: relative; z-index: 2; }

/* ===== 默认页 ===== */
.default-section { grid-column: 1; padding: 2rem 0; }
.default-body h1 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 1.25rem;
}
.default-nav-row {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
}

/* ===== 页脚 ===== */
footer {
  background: var(--dark2);
  border-top: 2px solid rgba(128,255,0,0.15);
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
  margin-bottom: var(--nav-h);
}
footer p.footer-cta {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.6;
}
footer p.footer-cta a {
  color: var(--neon);
  border-bottom: 1px solid var(--neon);
}
footer small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
}
footer small a { color: var(--text-dim); }
footer small a:hover { color: var(--neon); }

/* ===== 首页内容区 ===== */
.home-content-section {
  grid-column: 1;
  padding: 1.5rem 0 0.5rem;
}
.cats-section { padding-top: 2rem; }
.latest-section { padding-top: 0.5rem; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 1fr;
  }
  .global-aside {
    grid-column: 1;
    position: static;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
  .hero-section { min-height: 38vh; }
  .hero-bg-text { font-size: 22vw; right: 0; }
}

@media (max-width: 600px) {
  .hero-section h1 { font-size: 1.9rem; }
  .cats-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .about-cats-grid { grid-template-columns: 1fr; }
  .table-wrap { font-size: 0.82rem; }
  .td-desc { display: none; }
  .wrap { padding: 0 0.9rem; }
}

@media (max-width: 375px) {
  .hero-cta-row { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
}

/* ===== 装饰线 ===== */
.cats-section h2::before,
.latest-section h2::before {
  content: none;
}

/* ===== 混合模式装饰 ===== */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,255,0,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
