@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.aqd-body {
  background-color: #261717;
  color: #f0e8e8;
  font-family: 'Cabin', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== 品牌色变量 ===== */
:root {
  --c-red: #ff0000;
  --c-purple: #8b00ff;
  --c-dark: #261717;
  --c-dark2: #1a0e0e;
  --c-glass-bg: rgba(255, 255, 255, 0.10);
  --c-glass-border: rgba(255, 255, 255, 0.18);
  --c-glass-blur: 15px;
  --c-text: #f0e8e8;
  --c-text-muted: #c4a8a8;
  --nav-height: 64px;
  --topbar-height: 36px;
}

/* ===== 滚动边距（吸顶导航补偿） ===== */
article[id] {
  scroll-margin-top: calc(var(--nav-height) + var(--topbar-height) + 8px);
}

/* ===== 站点容器 ===== */
.site-wrapper {
  position: relative;
  width: 100%;
}

/* ===== 顶部公告条 ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--topbar-height);
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-purple) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-bar-text {
  font-family: 'Amatic SC', cursive;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(60vw); }
  100% { transform: translateX(-110%); }
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-height);
  backdrop-filter: blur(var(--c-glass-blur));
  -webkit-backdrop-filter: blur(var(--c-glass-blur));
  background: rgba(38, 23, 23, 0.72);
  border-bottom: 1px solid var(--c-glass-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-tagline {
  font-family: 'Amatic SC', cursive;
  font-size: 18px;
  color: var(--c-text-muted);
  letter-spacing: 0.12em;
}

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

.brand-text {
  font-family: 'Amatic SC', cursive;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.7), 0 0 40px rgba(139, 0, 255, 0.5);
}

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

/* ===== 汉堡按钮 ===== */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 全屏遮罩菜单 ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(26, 14, 14, 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 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.nav-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: calc(var(--topbar-height) + 12px);
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.overlay-close:hover {
  background: rgba(255, 0, 0, 0.2);
}

.overlay-aside {
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

.overlay-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overlay-nav li {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-overlay.is-open .overlay-nav li {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.is-open .overlay-nav li:nth-child(1) { transition-delay: 0.05s; }
.nav-overlay.is-open .overlay-nav li:nth-child(2) { transition-delay: 0.10s; }
.nav-overlay.is-open .overlay-nav li:nth-child(3) { transition-delay: 0.15s; }
.nav-overlay.is-open .overlay-nav li:nth-child(4) { transition-delay: 0.20s; }
.nav-overlay.is-open .overlay-nav li:nth-child(5) { transition-delay: 0.25s; }
.nav-overlay.is-open .overlay-nav li:nth-child(6) { transition-delay: 0.30s; }
.nav-overlay.is-open .overlay-nav li:nth-child(7) { transition-delay: 0.35s; }

.overlay-nav a {
  display: block;
  font-family: 'Amatic SC', cursive;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
}

.overlay-nav a:hover {
  color: var(--c-red);
  border-left-color: var(--c-red);
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

/* ===== Hero 区域 ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--topbar-height) + var(--nav-height));
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(139, 0, 255, 0.35) 0%, rgba(38, 23, 23, 0.85) 70%),
              linear-gradient(180deg, rgba(255, 0, 0, 0.10) 0%, rgba(38, 23, 23, 0.95) 100%);
}

.hero-deco-text {
  position: absolute;
  bottom: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Amatic SC', cursive;
  font-size: clamp(120px, 25vw, 280px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  letter-spacing: 0.1em;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-title {
  font-family: 'Amatic SC', cursive;
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 60px rgba(139, 0, 255, 0.5);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--c-text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--c-red), var(--c-purple));
  color: #fff;
  font-family: 'Cabin', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 28px;
  letter-spacing: 0.06em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255, 0, 0, 0.4);
  min-height: 48px;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.6);
}

/* ===== 主体内容 ===== */
.site-main {
  position: relative;
  z-index: 10;
}

.main-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.content-section {
  width: 100%;
}

/* ===== 内容区内的各节（page.content 里的 article） ===== */
.content-section article {
  margin-bottom: 72px;
  padding: 40px;
  backdrop-filter: blur(var(--c-glass-blur));
  -webkit-backdrop-filter: blur(var(--c-glass-blur));
  background: var(--c-glass-bg);
  border: 1px solid var(--c-glass-border);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.content-section article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.content-section article::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(139, 0, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== 正文排版 ===== */
.content-section h2,
.content-section h3 {
  font-family: 'Amatic SC', cursive;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.content-section h2 {
  font-size: clamp(32px, 5vw, 52px);
  text-shadow: 0 0 16px rgba(255, 0, 0, 0.5);
}

.content-section h2 > span {
  display: inline;
}

.content-section h3 {
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--c-text-muted);
}

.content-section h3 > span {
  display: inline;
}

.content-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 14px;
}

.content-section ul,
.content-section ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.content-section li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 8px;
}

.content-section a {
  color: var(--c-red);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.content-section a:hover {
  color: #ff4444;
}

.content-section strong {
  color: #fff;
  font-weight: 700;
}

.content-section blockquote {
  border-left: 3px solid var(--c-purple);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(139, 0, 255, 0.08);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--c-text-muted);
}

.content-section time {
  font-size: 13px;
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
}

/* 图片处理 */
.content-section img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 16px 0;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--c-dark2);
  border-top: 1px solid var(--c-glass-border);
  text-align: center;
  padding: 48px 24px 36px;
}

.footer-brand-big {
  font-family: 'Amatic SC', cursive;
  font-size: clamp(64px, 14vw, 140px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 0, 0.4);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 16px;
  user-select: none;
}

.footer-copy {
  display: block;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* ===== 图片工具 ===== */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 响应式断点 ===== */
@media (max-width: 768px) {
  :root {
    --nav-height: 56px;
    --topbar-height: 32px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .brand-text {
    font-size: 26px;
  }

  .hero-title {
    font-size: clamp(38px, 12vw, 64px);
  }

  .main-article {
    padding: 40px 16px 60px;
  }

  .content-section article {
    padding: 28px 20px;
    margin-bottom: 48px;
    border-radius: 20px;
  }

  .overlay-nav a {
    font-size: 34px;
    min-height: 52px;
    padding: 8px 16px;
  }

  .footer-brand-big {
    font-size: clamp(52px, 18vw, 96px);
  }
}

@media (max-width: 480px) {
  .hero-sub {
    font-size: 15px;
  }

  .hero-cta {
    padding: 12px 28px;
    font-size: 15px;
  }

  .content-section article {
    padding: 22px 16px;
  }

  .overlay-nav a {
    font-size: 28px;
  }
}

/* ===== 减弱动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .top-bar-text {
    animation: none;
  }

  .overlay-nav li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-cta {
    transition: none;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
