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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

:root {
  --c-red: #ff0000;
  --c-pink: #ff006e;
  --c-dark: #1a1a2e;
  --c-darker: #0d0d1a;
  --c-cyan: #00ffff;
  --c-blue: #0080ff;
  --c-white: #f0f0f8;
  --c-muted: #8888aa;
  --c-card-bg: rgba(255,255,255,0.04);
  --c-card-border: rgba(255,0,110,0.35);
  --font-display: 'Libre Bodoni', Georgia, serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --nav-height: 110px;
  --radius: 10px;
  --glow-red: 0 0 8px #ff0000, 0 0 20px #ff000080;
  --glow-pink: 0 0 8px #ff006e, 0 0 20px #ff006e80;
  --glow-cyan: 0 0 8px #00ffff, 0 0 20px #00ffff60;
}

body.neon-body {
  background-color: var(--c-darker);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* 全局扫描线叠加 */
body.neon-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 9999;
  animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

/* ===== 站点容器 ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== aside 导航 ===== */
.site-aside {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,26,0.97);
  border-bottom: 1px solid var(--c-pink);
  box-shadow: 0 2px 20px rgba(255,0,110,0.25);
  backdrop-filter: blur(8px);
}

/* 品牌行 */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-bottom: 1px solid rgba(255,0,110,0.2);
}

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

.brand-logo-img {
  height: 36px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-red);
  text-shadow: var(--glow-red);
  letter-spacing: 0.05em;
  line-height: 1;
}

.cta-btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--glow-pink);
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 40px;
  line-height: 1.2;
}

.cta-btn:hover {
  box-shadow: 0 0 16px #ff006e, 0 0 40px #ff006e80;
  transform: translateY(-1px);
}

/* 菜单行 */
.main-nav {
  padding: 0 32px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
}

.main-nav ul li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  color: var(--c-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
  min-height: 44px;
  white-space: nowrap;
}

.main-nav ul li a:hover {
  color: var(--c-pink);
  border-bottom-color: var(--c-pink);
  text-shadow: var(--glow-pink);
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--c-darker) 0%, #160020 60%, var(--c-dark) 100%);
  overflow: hidden;
  scroll-margin-top: var(--nav-height);
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,0,0,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(255,0,110,0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* 超大背景文字 */
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 20vw, 220px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,0,110,0.12);
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px;
}

.hero-content {
  flex: 1;
  max-width: 620px;
  text-align: left;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-white);
  text-shadow: var(--glow-red);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--c-red), var(--c-pink));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--glow-pink);
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px #ff006e, 0 0 50px #ff006e60;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border: 1px solid var(--c-pink);
  color: var(--c-pink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.btn-ghost:hover {
  background: rgba(255,0,110,0.1);
  box-shadow: var(--glow-pink);
}

/* 像素装饰 */
.hero-deco {
  flex-shrink: 0;
  width: 220px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--c-card-border);
  box-shadow: var(--glow-pink);
}

.pixel-screen {
  width: 180px;
  height: 200px;
  border: 2px solid var(--c-pink);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--glow-pink), inset 0 0 30px rgba(255,0,110,0.1);
  overflow: hidden;
}

.pixel-play {
  font-size: 4rem;
  color: var(--c-red);
  text-shadow: var(--glow-red);
  animation: pulse 2s ease-in-out infinite;
}

.pixel-scanline {
  position: absolute;
  width: 100%;
  height: 3px;
  background: rgba(0,255,255,0.4);
  animation: scanDown 3s linear infinite;
  top: 0;
}

@keyframes scanDown {
  0%   { top: 0; opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.95); }
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ===== Glitch 效果 ===== */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-text::before {
  color: var(--c-cyan);
  animation: glitch1 4s infinite;
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}

.glitch-text::after {
  color: var(--c-pink);
  animation: glitch2 4s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch1 {
  0%,90%,100% { transform: translate(0); opacity: 0; }
  92%          { transform: translate(-3px, 1px) skewX(-2deg); opacity: 0.7; }
  94%          { transform: translate(3px, -1px); opacity: 0.5; }
  96%          { transform: translate(0); opacity: 0; }
}

@keyframes glitch2 {
  0%,85%,100% { transform: translate(0); opacity: 0; }
  87%          { transform: translate(3px, 1px) skewX(2deg); opacity: 0.6; }
  89%          { transform: translate(-3px, 0); opacity: 0.4; }
  91%          { transform: translate(0); opacity: 0; }
}

/* ===== 主内容区 ===== */
.site-main {
  flex: 1;
  background: var(--c-darker);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.content-section {
  padding: 20px 0;
}

.content-article {
  width: 100%;
}

/* ===== 正文内 div 样式（page.content 里的 div） ===== */
.content-article div {
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255,0,110,0.15);
  scroll-margin-top: var(--nav-height);
  position: relative;
}

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

/* div 左侧装饰线 */
.content-article div::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 80px;
  width: 3px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-red), var(--c-pink));
  box-shadow: var(--glow-pink);
}

/* 正文排版 */
.content-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 24px;
  line-height: 1.25;
  position: relative;
}

.content-article h2 span {
  color: var(--c-red);
  text-shadow: var(--glow-red);
}

.content-article h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--c-pink);
  text-shadow: 0 0 8px rgba(255,0,110,0.5);
  margin: 32px 0 16px;
  line-height: 1.3;
}

.content-article h3 span {
  color: var(--c-pink);
}

.content-article p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(240,240,248,0.85);
  margin-bottom: 18px;
  max-width: 760px;
}

.content-article ul,
.content-article ol {
  margin: 16px 0 24px 20px;
  max-width: 720px;
}

.content-article li {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(240,240,248,0.85);
  margin-bottom: 8px;
}

.content-article a {
  color: var(--c-pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,0,110,0.4);
  transition: color 0.2s, border-color 0.2s;
}

.content-article a:hover {
  color: var(--c-red);
  border-bottom-color: var(--c-red);
  text-shadow: 0 0 6px rgba(255,0,0,0.6);
}

.content-article strong {
  color: var(--c-white);
  font-weight: 600;
}

.content-article em {
  color: var(--c-cyan);
  font-style: normal;
  text-shadow: 0 0 6px rgba(0,255,255,0.5);
}

/* 卡片：描边无阴影，圆角10px */
.content-article .card,
.content-article figure {
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius);
  background: var(--c-card-bg);
  padding: 24px;
  margin: 24px 0;
}

.content-article blockquote {
  border-left: 3px solid var(--c-pink);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(255,0,110,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--c-muted);
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.content-article th,
.content-article td {
  padding: 12px 16px;
  border: 1px solid rgba(255,0,110,0.2);
  text-align: left;
}

.content-article th {
  background: rgba(255,0,110,0.1);
  color: var(--c-pink);
  font-weight: 600;
}

.content-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--c-card-border);
}

/* details 不隐藏 */
.content-article details {
  border: 1px solid var(--c-card-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  background: var(--c-card-bg);
}

.content-article details summary {
  font-weight: 600;
  color: var(--c-pink);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}

/* ===== 滚动显示动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-darker) 100%);
  border-top: 1px solid rgba(255,0,110,0.3);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-red), var(--c-pink), var(--c-red), transparent);
  box-shadow: var(--glow-pink);
}

/* 超大品牌字 */
.footer-brand-row {
  text-align: center;
  padding: 48px 32px 0;
  overflow: hidden;
}

.footer-bigbrand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 12vw, 8rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,0,110,0.3);
  letter-spacing: 0.08em;
  line-height: 1;
  display: block;
  user-select: none;
}

/* 三栏 */
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 40px;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  text-shadow: 0 0 6px rgba(255,0,0,0.5);
  margin-bottom: 20px;
}

.footer-col-title span {
  display: inline-block;
  border-bottom: 1px solid rgba(255,0,0,0.4);
  padding-bottom: 6px;
}

/* address */
.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--c-muted);
  line-height: 1.7;
}

.footer-address a {
  color: var(--c-pink);
  text-decoration: none;
}

.footer-address a:hover {
  text-shadow: var(--glow-pink);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--c-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s, text-shadow 0.2s;
  display: inline-block;
  min-height: 28px;
  line-height: 28px;
  padding: 6px 0;
}

.footer-col ul li a:hover {
  color: var(--c-pink);
  text-shadow: 0 0 6px rgba(255,0,110,0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 24px 32px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ===== Stagger 动效 ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 滚动偏移（吸顶导航补偿） ===== */
div[id],
.content-article div[id],
[id^="about"],
[id^="yy6090"],
[id^="changwen"],
[id^="guankan"],
[id^="shijian"],
[id^="home"] {
  scroll-margin-top: var(--nav-height);
}

/* ===== 移动端响应 ===== */
@media (max-width: 768px) {
  :root {
    --nav-height: 136px;
  }

  .brand-bar {
    padding: 10px 20px;
  }

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

  .main-nav {
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav ul {
    flex-wrap: nowrap;
    gap: 0;
  }

  .main-nav ul li a {
    padding: 10px 12px;
    font-size: 0.82rem;
    min-height: 44px;
  }

  .hero-inner {
    flex-direction: column;
    padding: 40px 20px;
    align-items: flex-start;
  }

  .hero-deco {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .pixel-screen {
    width: 140px;
    height: 160px;
  }

  .hero-bg-text {
    font-size: clamp(60px, 22vw, 100px);
  }

  .wrap {
    padding: 0 20px;
  }

  .content-article div {
    padding: 56px 0 40px;
  }

  .content-article div::before {
    left: -20px;
  }

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

  .footer-brand-row {
    padding: 32px 20px 0;
  }

  .footer-bottom {
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .cta-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .brand-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-h1 {
    font-size: 1.8rem;
  }

  .content-article h2 {
    font-size: 1.4rem;
  }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .glitch-text::before,
  .glitch-text::after {
    display: none;
  }
}
