@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

/* ===== 自定义属性 ===== */
:root {
  --c-red: #ff0000;
  --c-purple: #8b00ff;
  --c-dark: #261717;
  --c-dark2: #1a0f0f;
  --c-dark3: #320e0e;
  --c-glass-bg: rgba(255, 255, 255, 0.08);
  --c-glass-border: rgba(255, 255, 255, 0.15);
  --c-glass-hover: rgba(255, 255, 255, 0.13);
  --c-text: #f0e8e8;
  --c-text-muted: #c4a8a8;
  --c-link: #ff6666;
  --c-link-hover: #ff9999;
  --c-red-glow: rgba(255, 0, 0, 0.35);
  --c-purple-glow: rgba(139, 0, 255, 0.35);
  --radius: 0px;
  --header-h: 64px;
  --max-w: 1100px;
  --font: 'Atkinson Hyperlegible', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-dark);
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(255,0,0,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139,0,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 10%, rgba(255,0,0,0.10) 0%, transparent 55%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 排版基础 ===== */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; }
a { color: var(--c-link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-link-hover); }
img { max-width: 100%; height: auto; display: block; }
ol, ul { padding-left: 1.4em; }
li { margin-bottom: .4em; }
table { border-collapse: collapse; width: 100%; }
input, textarea, button { font-family: var(--font); }

/* ===== 站点骨架 ===== */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; padding-top: var(--header-h); }

/* ===== 玻璃效果基类 ===== */
.glass-card {
  background: var(--c-glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--c-glass-border);
  box-shadow: 0 4px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04);
}

/* ===== 顶部头部 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(38,23,23,.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-glass-border);
}

.glass-header { border-radius: 0; }

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-icon .logo-mark { width: 40px; height: 40px; object-fit: contain; }
.brand-glyph {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-red);
  text-shadow: 0 0 14px var(--c-red-glow);
  line-height: 1;
}

.header-cta {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--c-red), var(--c-purple));
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 0 16px var(--c-red-glow);
  transition: box-shadow .2s, transform .15s;
  flex-shrink: 0;
}
.header-cta:hover { box-shadow: 0 0 28px var(--c-red-glow); transform: translateY(-1px); color: #fff !important; }

/* ===== 汉堡按钮 ===== */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--c-glass-border);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: border-color .2s;
}
.burger-btn:hover { border-color: var(--c-red); }
.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: background .2s;
}
.burger-btn:hover .burger-bar { background: var(--c-red); }

/* ===== 全屏菜单 ===== */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(26, 15, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.fullscreen-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-close {
  position: absolute;
  top: 18px; right: 22px;
  background: transparent;
  border: 1px solid var(--c-glass-border);
  color: var(--c-text);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color .2s, color .2s;
}
.nav-close:hover { border-color: var(--c-red); color: var(--c-red); }

.main-nav ol {
  list-style: none;
  padding: 0;
  text-align: center;
}
.main-nav ol li { margin-bottom: 1rem; }
.main-nav ol li a {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  min-height: 44px;
  line-height: 1.4;
}
.main-nav ol li a:hover { color: var(--c-red); border-color: var(--c-red); }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--c-red), var(--c-purple));
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 0 20px var(--c-red-glow);
  transition: box-shadow .2s, transform .15s;
}
.btn-primary:hover { box-shadow: 0 0 36px var(--c-red-glow), 0 0 16px var(--c-purple-glow); transform: translateY(-2px); color: #fff !important; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: var(--c-glass-bg);
  color: var(--c-text) !important;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--c-purple); background: var(--c-glass-hover); color: var(--c-text) !important; }

/* ===== 首页 Hero ===== */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 60px 20px 40px;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 32px var(--c-red-glow);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media {
  flex: 0 0 42%;
  max-width: 480px;
}
.hero-media .hero-img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 40px var(--c-purple-glow), 0 8px 40px rgba(0,0,0,.5);
}

/* ===== 内容+侧边布局 ===== */
.content-with-aside {
  display: flex;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  align-items: flex-start;
}
.main-content { flex: 1; min-width: 0; }
.content-aside {
  flex: 0 0 260px;
  width: 260px;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.aside-title {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--c-red);
  text-transform: none;
  letter-spacing: 0;
}
.aside-links {
  list-style: none;
  padding: 0;
}
.aside-links li { margin-bottom: 10px; }
.aside-links a {
  color: var(--c-text-muted);
  font-size: .95rem;
  transition: color .2s;
  display: block;
  padding: 4px 0;
}
.aside-links a:hover { color: var(--c-red); }
.aside-cta-wrap { margin-top: 20px; }
.aside-cta { width: 100%; justify-content: center; height: 44px; padding: 0 12px; font-size: .9rem; }

/* ===== 区段 ===== */
.content-section,
.pricing-body-section,
.faq-body-section,
.about-body-section,
.contact-body-section,
.privacy-body-section,
.feature-body-section {
  padding: 48px 0;
}
.cards-section,
.nav-links-section,
.feature-nav-section,
.pricing-nav-section,
.faq-nav-section,
.about-nav-section,
.contact-nav-section,
.privacy-nav-section {
  padding: 40px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== 卡片网格 ===== */
.cards-section { padding: 48px 20px; max-width: var(--max-w); margin: 0 auto; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.card {
  background: var(--c-glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--c-glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 36px rgba(0,0,0,.55), 0 0 16px var(--c-red-glow);
}
.card-thumb { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-size: 1.05rem; margin-bottom: 8px; }
.card-date { font-size: .82rem; color: var(--c-text-muted); display: block; margin-bottom: 8px; }
.card-desc { font-size: .9rem; color: var(--c-text-muted); margin-bottom: 14px; }
.card-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--c-red), var(--c-purple));
  color: #fff !important;
  font-size: .88rem;
  font-weight: 700;
  border-radius: 3px;
  text-decoration: none;
  transition: box-shadow .2s;
}
.card-link:hover { box-shadow: 0 0 16px var(--c-red-glow); color: #fff !important; }

/* ===== 标题区段 ===== */
.section-title {
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}
.section-title span {
  background: linear-gradient(90deg, var(--c-red), var(--c-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 导航链接列表 ===== */
.nav-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-links-list li a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: var(--c-glass-bg);
  border: 1px solid var(--c-glass-border);
  color: var(--c-text-muted);
  font-size: .9rem;
  border-radius: 3px;
  transition: border-color .2s, color .2s, background .2s;
}
.nav-links-list li a:hover { border-color: var(--c-red); color: var(--c-red); background: var(--c-glass-hover); }

/* ===== Hero 区（内页）===== */
.page-hero, .feature-hero {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.page-hero::before, .feature-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--c-red-glow), transparent 70%);
  pointer-events: none;
}
.feature-hero-inner { position: relative; z-index: 1; }
.page-h1, .feature-h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin: 12px 0 8px;
  text-shadow: 0 0 24px var(--c-red-glow);
}
.page-sub { color: var(--c-text-muted); margin-top: 10px; font-size: 1rem; }

/* ===== 面包屑 ===== */
.breadcrumb {
  font-size: .88rem;
  color: var(--c-text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-red); }
.breadcrumb span { color: var(--c-text-muted); }

/* ===== 日期 ===== */
.meta-dates { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.pub-date, .mod-date { font-size: .82rem; color: var(--c-text-muted); }

/* ===== 正文 ===== */
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.prose h3 { margin: 1.6rem 0 .8rem; font-size: 1.2rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose a { color: var(--c-link); }
.prose a:hover { color: var(--c-link-hover); }
.prose strong { color: #fff; }
.prose blockquote {
  border-left: 3px solid var(--c-red);
  padding-left: 16px;
  margin: 1.5rem 0;
  color: var(--c-text-muted);
}
.prose table { margin: 1.5rem 0; }
.prose th, .prose td {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  text-align: left;
}
.prose th { background: rgba(255,0,0,.1); color: #fff; }

/* ===== 子页表格 ===== */
.child-table-wrap {
  max-width: var(--max-w);
  margin: 40px auto;
  padding: 28px;
}
.child-table { width: 100%; }
.child-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .2s;
}
.child-table tbody tr:hover { background: rgba(255,255,255,.04); }
.child-table td { padding: 14px 12px; vertical-align: top; font-size: .95rem; }
.ct-title { width: 35%; }
.ct-title a { color: var(--c-link); font-weight: 700; }
.ct-title a:hover { color: var(--c-link-hover); }
.ct-desc { color: var(--c-text-muted); font-size: .9rem; }
.ct-date { white-space: nowrap; color: var(--c-text-muted); font-size: .85rem; width: 130px; }

/* ===== FAQ 样式 ===== */
.faq-list .prose h2, .faq-list .prose h3 { color: var(--c-red); }

/* ===== 联系表单 ===== */
.contact-form-wrap { padding: 28px; margin-top: 32px; max-width: 600px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .9rem; color: var(--c-text-muted); font-weight: 700; }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--c-glass-border);
  color: var(--c-text);
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 3px;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 2px rgba(255,0,0,.15);
}
.form-submit { cursor: pointer; border: none; align-self: flex-start; }

/* ===== 页脚 ===== */
.site-footer {
  padding: 28px 24px;
  border-top: 1px solid var(--c-glass-border);
  background: rgba(26,15,15,.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { font-size: .9rem; color: var(--c-text-muted); }
.footer-brand a { color: var(--c-text-muted); font-weight: 700; }
.footer-brand a:hover { color: var(--c-red); }
.footer-links { font-size: .85rem; color: var(--c-text-muted); }
.footer-links a { color: var(--c-text-muted); }
.footer-links a:hover { color: var(--c-red); }

/* ===== 动效：Stagger 卡片 ===== */
@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: cardFadeUp .5s ease both;
  }
  .cards-grid .card:nth-child(1) { animation-delay: .05s; }
  .cards-grid .card:nth-child(2) { animation-delay: .12s; }
  .cards-grid .card:nth-child(3) { animation-delay: .19s; }
  .cards-grid .card:nth-child(4) { animation-delay: .26s; }
  .cards-grid .card:nth-child(5) { animation-delay: .33s; }
  .cards-grid .card:nth-child(6) { animation-delay: .40s; }

  @keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-h1 {
    animation: heroReveal .7s ease both;
  }
  @keyframes heroReveal {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; gap: 28px; }
  .hero-media { flex: none; width: 100%; max-width: 100%; order: -1; }
  .content-with-aside { flex-direction: column; }
  .content-aside { flex: none; width: 100%; position: static; }
  .child-table-wrap { margin: 24px 16px; }
  .ct-desc { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { padding: 0 14px; }
  .hero-section { padding: 40px 16px 28px; min-height: 60vh; }
  .hero-h1 { font-size: 1.7rem; }
  .hero-actions { gap: 12px; }
  .btn-primary, .btn-secondary { height: 44px; padding: 0 18px; font-size: .95rem; }
  .page-hero, .feature-hero { margin: 24px 16px 0; padding: 28px 20px; }
  .content-with-aside { padding: 0 16px; }
  .cards-section { padding: 32px 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .nav-links-section,
  .feature-nav-section,
  .pricing-nav-section,
  .faq-nav-section,
  .about-nav-section,
  .contact-nav-section,
  .privacy-nav-section { padding: 28px 16px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 20px 16px; }
  .child-table-wrap { margin: 20px 12px; padding: 16px; }
  .contact-form-wrap { padding: 20px 16px; margin-top: 20px; }
  .main-nav ol li a { font-size: 1.1rem; }
}
