/* ===========================================================================
   厉毒小萝 - 发布页样式
   罗小黑风格：黑底 / 绿边 #00d18c / 白字
   =========================================================================== */

:root {
  --bg: #101214;
  --bg-alt: #16191c;
  --panel: #1c2024;
  --panel-2: #22262b;
  --line: #2c3238;
  --accent: #00d18c;
  --accent-soft: rgba(0, 209, 140, 0.14);
  --accent-glow: rgba(0, 209, 140, 0.35);
  --text: #f2f4f5;
  --text-dim: #9aa4ab;
  --text-faint: #6b757c;
  --radius: 14px;
  --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: Consolas, "Courier New", monospace;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.9em;
  color: var(--accent);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 导航 ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(16, 18, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.brand-icon { width: 28px; height: 28px; border-radius: 6px; }
.brand em { font-style: normal; color: var(--accent); font-size: 13px; font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #08281c;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 32px var(--accent-glow); }

.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }

.btn-lg { padding: 13px 34px; font-size: 16px; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  /* 静态柔光：不做呼吸动画。blur+scale 逐帧重栅格化开销大，
     低性能环境掉帧后会变成"鬼畜闪烁"，静态渲染一次即可 */
  opacity: 0.6;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 1px;
}
.accent { color: var(--accent); text-shadow: 0 0 40px var(--accent-glow); }

.lead {
  color: var(--text-dim);
  font-size: 17px;
  margin: 22px 0 34px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent);
}
.stat span { font-size: 13px; color: var(--text-faint); }

/* 宠物舞台与气泡 */
.hero-visual { display: flex; justify-content: center; }
.pet-stage {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 42%, var(--accent-soft) 0%, transparent 62%),
    var(--panel);
  border: 2px solid var(--accent);
  box-shadow: 0 0 60px rgba(0, 209, 140, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px;
  overflow: visible;
}
.pet-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  /* 不叠加 CSS 位移动画：GIF 自身已在逐帧播放，
     双层动画抢占渲染资源会掉帧，表现为上下快速抖动 */
}

.bubble {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #141414;
  color: var(--text);
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
  /* 静态气泡：不做浮动动画，避免低性能环境掉帧后文字快速抖动 */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #141414;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ---------------- 区块 ---------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 14px auto 0;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 56px;
}

/* ---------------- 功能卡 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14px; }

/* ---------------- 角色卡 ---------------- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.char-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.char-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
.char-card:hover .char-stage { border-color: var(--accent); }

.char-stage {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 45%, var(--accent-soft) 0%, transparent 70%);
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.25s;
}
.char-stage img { height: 92%; width: 92%; object-fit: contain; }

.char-card h3 { margin: 16px 0 6px; font-size: 19px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
}
.tag-main { color: #08281c; background: var(--accent); border-color: var(--accent); }
.char-desc { margin-top: 12px; font-size: 13px; color: var(--text-dim); }

/* ---------------- 指南 ---------------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.guide-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  transition: border-color 0.25s;
}
.guide-card:hover { border-color: var(--accent); }
.guide-step {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 44px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  line-height: 1;
}
.guide-card:hover .guide-step { -webkit-text-stroke-color: var(--accent); }
.guide-card h3 { font-size: 19px; margin-bottom: 10px; }
.guide-card p { color: var(--text-dim); font-size: 14px; max-width: 92%; }
.guide-card p b { color: var(--accent); font-weight: 700; }

/* ---------------- 下载 ---------------- */
.download-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  align-items: start;
}
.download-main { display: grid; gap: 22px; }

.dl-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s;
}
.dl-card:hover { border-color: var(--accent); }

.dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 18px;
}
.dl-name b { display: block; font-size: 19px; }
.dl-name span { color: var(--text-faint); font-size: 13px; }

.dl-meta { list-style: none; }
.dl-meta li {
  padding: 6px 0 6px 26px;
  position: relative;
  color: var(--text-dim);
  font-size: 14px;
}
.dl-meta li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 900;
}

.dl-steps { padding-left: 22px; }
.dl-steps li { padding: 5px 0; color: var(--text-dim); font-size: 14px; }

.download-side {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.download-side h3 { font-size: 17px; margin-bottom: 18px; }
.log-entry { padding-bottom: 6px; }
.log-ver {
  display: inline-block;
  color: var(--accent);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 8px;
}
.log-entry ul { list-style: none; }
.log-entry li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0 4px 18px;
  position: relative;
}
.log-entry li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.side-note {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------------- 下载独立页 ---------------- */
.page-hero {
  position: relative;
  padding: 150px 0 60px;
  text-align: center;
  overflow: hidden;
}
.page-hero .lead { margin: 20px auto 0; text-align: center; }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 1px;
}

.dl-tag {
  display: inline-block;
  vertical-align: 4px;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

/* Gitee 品牌红按钮（描边款） */
.btn-gitee {
  background: rgba(193, 29, 35, 0.1);
  color: #ff7b6e;
  border-color: #c71d23;
}
.btn-gitee:hover {
  background: #c71d23;
  color: #fff;
  box-shadow: 0 10px 32px rgba(193, 29, 35, 0.35);
}

/* B站品牌粉按钮（描边款） */
.btn-bilibili {
  background: rgba(251, 114, 153, 0.1);
  color: #fb7299;
  border-color: #fb7299;
}
.btn-bilibili:hover {
  background: #fb7299;
  color: #fff;
  box-shadow: 0 10px 32px rgba(251, 114, 153, 0.35);
}

/* 卡片头部按钮组（多链接并排） */
.dl-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.repo-url {
  margin: 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13.5px;
  color: var(--text-dim);
  word-break: break-all;
  user-select: all;
}

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; color: var(--text-dim); font-size: 14px; }

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  background: var(--bg-alt);
}
.footer-inner { text-align: center; }

/* 页脚/侧栏社交链接行 */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.footer-social a {
  color: var(--text-dim);
  font-size: 13px;
  border-bottom: 1px dashed transparent;
  padding-bottom: 1px;
}
.footer-social a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.footer-social .dot { color: var(--text-faint); }
/* 侧栏场景下左对齐 */
.download-side .footer-social { justify-content: flex-start; margin-top: 22px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-brand img { width: 26px; height: 26px; border-radius: 6px; }
.footer-copy { color: var(--text-faint); font-size: 13px; }
.footer-copy.dim { margin-top: 4px; opacity: 0.6; }

/* ---------------- 滚动出现动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 96px; }
  .hero-stats { gap: 22px; }
  .stat b { font-size: 24px; }
  .feature-grid, .guide-grid, .char-grid { grid-template-columns: 1fr; }
  .guide-card p { max-width: 100%; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(16, 18, 20, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px;
    display: none;
  }
  .nav-links.show { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 0; }
  .nav-links .btn { margin-top: 8px; }
}

/* 动效弱化（无障碍） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
