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

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

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

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background-color: #1f1726;
  color: #e8dff5;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== scroll-margin-top for sections ===== */
div[id] { scroll-margin-top: 110px; }

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

/* ===== 顶部 Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(31, 23, 38, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(86, 34, 139, 0.3);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #a855f7, #8b4513);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger-bar {
  display: block;
  width: 22px; height: 2px;
  background: #e8dff5;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== 粘性锚点导航 ===== */
.sticky-nav-wrap {
  position: sticky;
  top: 64px;
  z-index: 190;
  background: rgba(31, 23, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.25);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.anchor-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.anchor-nav ol {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  white-space: nowrap;
}

.anchor-nav ol li a {
  display: inline-block;
  padding: 8px 16px;
  min-height: 40px;
  line-height: 1.3;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 1.5px solid rgba(86, 34, 139, 0.4);
  color: #c8b8e8;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}

.anchor-nav ol li a:hover,
.anchor-nav ol li a.active {
  background: #56228b;
  border-color: #56228b;
  color: #fff;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

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

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.35) saturate(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(86, 34, 139, 0.6) 0%,
    rgba(31, 23, 38, 0.85) 60%,
    rgba(139, 69, 19, 0.4) 100%
  );
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c084fc;
  background: rgba(86, 34, 139, 0.3);
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(86, 34, 139, 0.6);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c8b8e8;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 36px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: linear-gradient(135deg, #56228b, #8b4513);
  color: #fff;
  box-shadow: 0 8px 32px rgba(86, 34, 139, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(86, 34, 139, 0.7);
}

/* Hero 底部圆弧 */
.hero-arc {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 3;
  line-height: 0;
}
.hero-arc svg { width: 100%; height: 80px; display: block; }

/* ===== 主体布局 ===== */
.site-main {
  flex: 1;
  background: #1f1726;
}

.content-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* ===== Aside 侧边栏 ===== */
.content-aside {
  position: sticky;
  top: 120px;
}

.aside-inner {
  background: linear-gradient(160deg, rgba(86, 34, 139, 0.15), rgba(139, 69, 19, 0.1));
  border: 1px solid rgba(86, 34, 139, 0.3);
  border-radius: 20px;
  padding: 28px 22px;
  backdrop-filter: blur(6px);
}

.aside-heading {
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c084fc;
  margin-bottom: 6px;
}

.aside-inner .subtitle {
  font-size: 0.8rem;
  color: #9980b8;
  margin-bottom: 20px;
  line-height: 1.5;
}

.aside-nav-list { display: flex; flex-direction: column; gap: 4px; }

.aside-nav-list li a {
  display: block;
  padding: 9px 14px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c8b8e8;
  border-radius: 12px;
  border-left: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.aside-nav-list li a:hover {
  background: rgba(86, 34, 139, 0.25);
  border-left-color: #8b4513;
  color: #fff;
}

.aside-badge {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(139, 69, 19, 0.2);
  border: 1px solid rgba(139, 69, 19, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.badge-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c97840;
}
.badge-value {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
}

/* ===== 正文主容器 ===== */
.content-main { min-width: 0; }

.page-content-section { width: 100%; }

/* 正文内容通用样式 */
.page-content-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #e8dff5;
  margin: 56px 0 10px;
  line-height: 1.2;
}
.page-content-section h2:first-child { margin-top: 0; }

.page-content-section h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #c084fc;
  margin: 32px 0 10px;
  line-height: 1.3;
}

.page-content-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #c8b8e8;
  margin-bottom: 16px;
}

.page-content-section ul,
.page-content-section ol {
  padding-left: 20px;
  margin-bottom: 20px;
  list-style: disc;
}
.page-content-section ol { list-style: decimal; }

.page-content-section li {
  font-size: 1rem;
  line-height: 1.8;
  color: #c8b8e8;
  margin-bottom: 8px;
}

.page-content-section a {
  color: #c084fc;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.page-content-section a:hover { color: #e8dff5; }

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

.page-content-section blockquote {
  border-left: 3px solid #8b4513;
  padding: 12px 20px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  background: rgba(139, 69, 19, 0.12);
  color: #c8b8e8;
  font-style: italic;
}

.page-content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
}
.page-content-section th {
  background: rgba(86, 34, 139, 0.4);
  color: #e8dff5;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-content-section td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(86, 34, 139, 0.15);
  color: #c8b8e8;
  font-size: 0.95rem;
}
.page-content-section tr:last-child td { border-bottom: none; }
.page-content-section tr:nth-child(even) td { background: rgba(86, 34, 139, 0.07); }

/* div 内容区块卡片化 */
.page-content-section > div,
.page-content-section div {
  background: linear-gradient(160deg, rgba(86, 34, 139, 0.1) 0%, rgba(31, 23, 38, 0.6) 100%);
  border: 1px solid rgba(86, 34, 139, 0.2);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.page-content-section > div:hover,
.page-content-section div:hover {
  border-color: rgba(86, 34, 139, 0.45);
  box-shadow: 0 8px 40px rgba(86, 34, 139, 0.2);
}

/* ===== h2 + p.subtitle 装饰 ===== */
.page-content-section h2 + .subtitle,
.page-content-section h2 + .subhead,
.page-content-section h2 + .desc,
.page-content-section h2 + .lead,
h2 + .subtitle,
h2 + .subhead,
h2 + .desc,
h2 + .lead {
  font-size: 0.95rem;
  color: #9980b8;
  margin-bottom: 24px;
  margin-top: -4px;
  font-style: italic;
}

/* ===== Reveal 动效 ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===== 页脚 ===== */
.site-footer {
  background: linear-gradient(180deg, #150f1e 0%, #0e0a16 100%);
  border-top: 1px solid rgba(86, 34, 139, 0.3);
}

.footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo .logo-img { width: 32px; height: 32px; }
.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #a855f7, #8b4513);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 0.9rem;
  color: #7d6a9a;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: #9980b8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(86, 34, 139, 0.1);
  border: 1px solid rgba(86, 34, 139, 0.2);
}
.address-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c084fc;
  margin-bottom: 4px;
}
.footer-address a {
  color: #c084fc;
  transition: color 0.18s;
}
.footer-address a:hover { color: #fff; }

.footer-links-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c084fc;
  margin-bottom: 16px;
}

.footer-links-col ul { display: flex; flex-direction: column; gap: 2px; }

.footer-links-col ul li a {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  min-height: 40px;
  font-size: 0.88rem;
  color: #9980b8;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s;
}
.footer-links-col ul li a:hover {
  background: rgba(86, 34, 139, 0.2);
  color: #e8dff5;
}

.footer-bottom {
  border-top: 1px solid rgba(86, 34, 139, 0.2);
  padding: 24px;
  text-align: center;
}
.copyright {
  font-size: 0.82rem;
  color: #6b5a87;
  margin-bottom: 6px;
}
.footer-note {
  font-size: 0.78rem;
  color: #4a3d60;
  line-height: 1.5;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .anchor-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .anchor-nav.nav-open {
    max-height: 500px;
  }
  .anchor-nav ol {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    gap: 4px;
    white-space: normal;
  }
  .anchor-nav ol li a {
    border-radius: 10px;
    width: 100%;
    padding: 12px 16px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px 60px;
  }

  .content-aside {
    position: static;
  }
  .aside-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
  }
  .aside-heading, .aside-inner .subtitle { display: none; }
  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .aside-nav-list li a {
    padding: 8px 12px;
    border-radius: 999px;
    border-left: none;
    border: 1px solid rgba(86, 34, 139, 0.35);
    font-size: 0.8rem;
  }
  .aside-badge { display: none; }

  .hero-section { min-height: 60vh; }
  .hero-body { padding: 48px 16px 80px; }
  .hero-title { font-size: 2rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-top { padding: 40px 16px 28px; }

  .page-content-section > div,
  .page-content-section div {
    padding: 24px 18px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-cta { padding: 12px 28px; font-size: 0.9rem; }
  .brand-name { font-size: 1rem; }
  div[id] { scroll-margin-top: 130px; }
}

/* ===== 工具 ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
