@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

/* ============================================================
   CSS 变量 & 重置
   ============================================================ */
:root {
  --neon: #80ff00;
  --neon2: #00ff00;
  --dark: #1f2617;
  --dark2: #161a0f;
  --dark3: #2a3320;
  --glass: rgba(128,255,0,0.07);
  --glass-border: rgba(128,255,0,0.25);
  --text: #d4f0a0;
  --text-dim: #7a9a50;
  --font-head: 'Orbitron', 'JetBrains Mono', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 4px;
  --bottom-bar-h: 56px;
  --transition: 0.2s ease;
}

*, *::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-mono);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-bar-h) + 8px);
  overflow-x: hidden;
}

a { color: var(--neon); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--neon2); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--neon); letter-spacing: 0.04em; }
h2 { font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--neon); margin-bottom: 0.75rem; }
h3 { font-size: 1rem; color: var(--neon2); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
time { font-size: 0.82rem; color: var(--text-dim); font-family: var(--font-mono); }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }

/* h2/h3 > span 装饰 */
h2 > span, h3 > span {
  display: inline-block;
  border-bottom: 2px solid var(--neon);
  padding-bottom: 2px;
}

/* ============================================================
   跑马灯
   ============================================================ */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--dark2);
  border-bottom: 1px solid var(--glass-border);
  height: 32px;
  display: flex;
  align-items: center;
}
.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; }
}

/* ============================================================
   底部固定导航条
   ============================================================ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-h);
  background: rgba(31,38,23,0.97);
  border-top: 2px solid var(--neon);
  backdrop-filter: blur(12px);
  z-index: 1000;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bottom-bar-dl {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0.75rem;
  gap: 0.25rem;
  list-style: none;
  min-width: max-content;
}
.bottom-bar-dl dt,
.bottom-bar-dl dd {
  display: flex;
  align-items: center;
}
.bottom-bar-dl dt a,
.bottom-bar-dl dd a {
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  height: 40px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text);
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.04em;
}
.bottom-bar-dl dt a:hover,
.bottom-bar-dl dd a:hover { color: var(--neon); background: var(--glass); text-decoration: none; }
.bottom-bar-brand a {
  font-family: var(--font-head) !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  color: var(--neon) !important;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}
.bottom-bar-cta { margin-left: auto; }

/* ============================================================
   CTA 按钮
   ============================================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: var(--neon);
  color: var(--dark) !important;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  border: 2px solid var(--neon);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  text-decoration: none !important;
  min-height: 40px;
}
.cta-btn:hover {
  background: var(--neon2);
  border-color: var(--neon2);
  box-shadow: 0 0 16px var(--neon);
  color: var(--dark) !important;
}
.cta-btn--lg {
  padding: 0.75rem 2rem;
  font-size: 0.92rem;
  min-height: 48px;
}

/* ============================================================
   玻璃拟态卡片
   ============================================================ */
.glass-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text);
}
.glass-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.glass-card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 20px rgba(128,255,0,0.2);
  transform: translateY(-2px);
  color: var(--text);
  text-decoration: none;
}
.glass-card:hover::before { opacity: 1; }
.glass-card strong {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--neon);
  display: block;
  line-height: 1.3;
  letter---spacing: 0.03em;
}
.card-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-date { margin-top: 0.25rem; }
.card-thumb { display: block; margin-top: 0.25rem; }
.card-thumb img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius); }
.card-img { width: 100%; height: 140px; object-fit: cover; }

/* ============================================================
   Hero（首页 双图错位拼贴）
   ============================================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 45vh;
  max-height: 60vh;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}
.hero-figure {
  position: relative;
  overflow: hidden;
}
.hero-collage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 45vh;
}
.hero-img {
  position: absolute;
  object-fit: cover;
  border-radius: 0;
}
.hero-img-a {
  width: 62%;
  height: 85%;
  top: 0; left: 0;
  z-index: 2;
  filter: saturate(120%) contrast(105%);
  mix-blend-mode: normal;
}
.hero-img-b {
  width: 58%;
  height: 80%;
  bottom: 0; right: 0;
  z-index: 3;
  filter: saturate(140%) contrast(108%);
  mix-blend-mode: normal;
  transform: rotate(-1.5deg);
}
.hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(31,38,23,0.9) 0%, rgba(42,51,32,0.95) 100%);
  border-left: 1px solid var(--glass-border);
  gap: 1rem;
  z-index: 4;
}
.hero-h1 {
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  text-align: center;
}
.hero-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 320px;
  margin-bottom: 0;
}

/* ============================================================
   Glitch 文字效果
   ============================================================ */
.glitch-text {
  position: relative;
  animation: glitch-shift 6s infinite;
}
@keyframes glitch-shift {
  0%, 90%, 100% { text-shadow: none; }
  92% { text-shadow: 2px 0 var(--neon2), -2px 0 #ff00c8; }
  94% { text-shadow: -2px 0 var(--neon2), 2px 0 #ff00c8; }
  96% { text-shadow: 2px 2px var(--neon2), -1px -1px #ff00c8; }
  98% { text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .glitch-text { animation: none; }
}

/* ============================================================
   Stagger 动画
   ============================================================ */
.stagger-item {
  animation: stagger-in 0.4s both;
  animation-delay: calc(var(--stagger, 0) * 60ms);
}
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .stagger-item { animation: none; }
}

/* ============================================================
   内容区通用（prose + sidebar）
   ============================================================ */
.content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}
.prose-wrap {
  min-width: 0;
}
.prose-wrap h2, .prose-wrap h3 { margin-top: 1.5rem; }
.prose-wrap img { margin: 1rem 0; }
.prose-wrap a { color: var(--neon); }
.prose-wrap a:hover { color: var(--neon2); }

.sidebar-aside {
  min-width: 0;
}
.sidebar-aside h2 {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.sidebar-aside h2:first-child { margin-top: 0; }
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-link {
  display: block;
  padding: 0.45rem 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text);
  font-family: var(--font-mono);
  transition: border-color var(--transition), color var(--transition);
  min-height: 36px;
  line-height: 1.4;
}
.sidebar-link:hover {
  border-color: var(--neon);
  color: var(--neon);
  text-decoration: none;
}

/* ============================================================
   卡片网格
   ============================================================ */
.cards-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}
.cards-section h2 { margin-bottom: 1rem; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.child-card strong { font-size: 0.9rem; }

/* ============================================================
   栏目页 Hero
   ============================================================ */
.cat-header-section {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 300px;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.cat-hero-fig {
  position: relative;
  overflow: hidden;
  background: var(--dark2);
}
.cat-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(130%);
}
.cat-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: repeating-linear-gradient(
    45deg,
    var(--dark3),
    var(--dark3) 10px,
    var(--dark2) 10px,
    var(--dark2) 20px
  );
}
.cat-header-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(31,38,23,0.95), rgba(42,51,32,0.98));
}
.cat-desc { font-size: 0.88rem; color: var(--text-dim); }
.back-link {
  font-size: 0.8rem;
  color: var(--text-dim);
  align-self: flex-start;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  min-height: 32px;
  display: flex;
  align-items: center;
}
.back-link:hover { border-color: var(--neon); color: var(--neon); text-decoration: none; }
.page-date { display: block; font-size: 0.8rem; color: var(--text-dim); }

/* ============================================================
   条目页
   ============================================================ */
.entry-header-section {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 320px;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.entry-hero-fig {
  overflow: hidden;
  background: var(--dark2);
}
.entry-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(120%);
}
.entry-meta-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 0.75rem;
}
.entry-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.entry-desc { font-size: 0.88rem; color: var(--text-dim); }
.entry-body-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

/* ============================================================
   图集区
   ============================================================ */
.gallery-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.gallery-fig { display: block; }
.gallery-img { width: 100%; height: 120px; object-fit: cover; }
.gallery-nav-aside { display: flex; flex-direction: column; gap: 0.5rem; }
.gallery-nav-aside h3 { font-size: 0.85rem; }

/* ============================================================
   标签页
   ============================================================ */
.tag-header-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 220px;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.tag-badge-fig {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark2);
  border-right: 1px solid var(--glass-border);
  padding: 2rem;
}
.tag-badge-display {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--neon);
  background: var(--dark3);
  border: 2px solid var(--neon);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  letter-spacing: 0.1em;
  box-shadow: 0 0 20px rgba(128,255,0,0.3);
}
.tag-meta-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 0.75rem;
}
.tag-desc { font-size: 0.88rem; color: var(--text-dim); }
.tag-eyebrow {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  color: var(--neon2);
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ============================================================
   关于页 / 隐私页
   ============================================================ */
.about-header-section,
.privacy-header-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 200px;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.about-deco-fig,
.privacy-deco-fig {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark3), var(--dark2));
  border-right: 1px solid var(--glass-border);
}
.about-deco-block {
  text-align: center;
  padding: 1rem;
}
.deco-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--neon);
  opacity: 0.6;
  line-height: 1;
}
.deco-label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}
.about-intro-aside,
.privacy-intro-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 0.5rem;
}
.about-tagline { font-size: 0.88rem; color: var(--text-dim); }

.about-cats-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}
.cats-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.cat-link-card { min-height: 80px; }
.about-extra-aside { display: flex; flex-direction: column; gap: 0.5rem; }

.privacy-notice-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}
.notice-fig { display: block; }
.notice-block {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--neon);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.notice-aside { display: flex; flex-direction: column; gap: 0.5rem; }

/* ============================================================
   页脚
   ============================================================ */
footer {
  background: var(--dark2);
  border-top: 2px solid var(--glass-border);
  padding: 0;
  margin-top: 3rem;
}
.footer-cta {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: linear-gradient(180deg, var(--dark3) 0%, var(--dark2) 100%);
  border-bottom: 1px solid var(--glass-border);
}
.footer-cta h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
footer > section {
  padding: 1.5rem 1.25rem;
}
footer > section + section {
  border-top: 1px solid var(--glass-border);
}
.footer-brand, .footer-nav, .footer-legal {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 900;
  color: var(--neon);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0; }
.footer-nav nav dl { display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.footer-nav nav dt,
.footer-nav nav dd { display: flex; }
.footer-nav nav dt a,
.footer-nav nav dd a {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.3rem 0.5rem;
  min-height: 36px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.footer-nav nav dt a::after { content: '　'; }
.footer-nav nav dt a { color: var(--neon); }
.footer-nav nav dt a:hover,
.footer-nav nav dd a:hover { color: var(--neon); text-decoration: none; }
.footer-legal p { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.footer-legal a { color: var(--text-dim); }
.footer-legal a:hover { color: var(--neon); }
.footer-copy { font-size: 0.75rem; }
.footer-bottom-nav {
  background: var(--dark);
  border-top: 1px solid var(--glass-border);
  padding: 0.5rem 1.25rem;
  max-width: 100%;
}
.footer-bottom-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom-nav dt,
.footer-bottom-nav dd { display: flex; }
.footer-bottom-nav dt a,
.footer-bottom-nav dd a {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.3rem 0.5rem;
  min-height: 36px;
  display: flex;
  align-items: center;
}
.footer-bottom-nav dt a { color: var(--neon); font-weight: 700; }
.footer-bottom-nav dt a:hover,
.footer-bottom-nav dd a:hover { color: var(--neon); text-decoration: none; }

/* 桌面 3 栏页脚 */
@media (min-width: 768px) {
  footer .footer-brand,
  footer .footer-nav,
  footer .footer-legal {
    display: block;
  }
  footer > .footer-brand + .footer-nav,
  footer > .footer-nav + .footer-legal {
    /* handled by grid below if needed */
  }
}

/* ============================================================
   .no-items
   ============================================================ */
.no-items {
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 1rem;
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius);
}

/* ============================================================
   响应式：≤900px
   ============================================================ */
@media (max-width: 900px) {
  .content-section,
  .entry-body-section {
    grid-template-columns: 1fr;
  }
  .sidebar-aside { margin-top: 1.5rem; }
  .hero-section { grid-template-columns: 1fr; max-height: none; min-height: auto; }
  .hero-figure { min-height: 200px; height: 200px; }
  .hero-collage { min-height: 200px; }
  .hero-aside { border-left: none; border-top: 1px solid var(--glass-border); }
  .cat-header-section { grid-template-columns: 1fr; }
  .cat-hero-fig { height: 200px; }
  .cat-hero-img { height: 200px; }
  .entry-header-section { grid-template-columns: 1fr; }
  .entry-hero-fig { height: 220px; }
  .entry-hero-img { height: 220px; }
  .tag-header-section { grid-template-columns: 1fr; }
  .tag-badge-fig { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 1.25rem; min-height: 100px; }
  .about-header-section,
  .privacy-header-section { grid-template-columns: 1fr; }
  .about-deco-fig,
  .privacy-deco-fig { padding: 1rem; border-right: none; border-bottom: 1px solid var(--glass-border); min-height: 80px; }
  .gallery-section,
  .about-cats-section,
  .privacy-notice-section { grid-template-columns: 1fr; }
}

/* ============================================================
   响应式：≤600px（移动端）
   ============================================================ */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .glass-card { padding: 0.75rem; }
  .glass-card strong { font-size: 0.78rem; }
  .card-thumb img, .card-img { height: 100px; }
  .content-section, .entry-body-section { padding: 0 0.75rem; }
  .cards-section { padding: 0 0.75rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .cats-list { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1rem; }
  .footer-cta { padding: 1.75rem 0.75rem; }
  .bottom-bar-dl { gap: 0; }
  .bottom-bar-dl dt a,
  .bottom-bar-dl dd a { padding: 0 0.4rem; font-size: 0.65rem; }
  .bottom-bar-brand a { font-size: 0.68rem !important; }
}

/* ============================================================
   375px 最小宽度兜底
   ============================================================ */
@media (max-width: 375px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cats-list { grid-template-columns: 1fr; }
}
