@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Barlow: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%;
}

body {
  font-family: 'Barlow', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: #1A1A2E;
  color: #F5F5F5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #E94560;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}
a:hover { color: #ff6b84; }
a:focus-visible {
  outline: 2px solid #E94560;
  outline-offset: 3px;
  border-radius: 3px;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Barlow Condensed', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* scroll-margin for fixed header */
section[id] { scroll-margin-top: 72px; }

/* ========== 包裹层 ========== */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1A1A2E;
  border-bottom: 2px solid #E94560;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F5F5F5;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.brand-link:hover { color: #E94560; }

.logo-mark { display: flex; align-items: center; }
.logo-text-mark { font-size: 1.4rem; color: #E94560; }
.logo-img { width: 36px; height: 36px; border-radius: 6px; }
.brand-name { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
}
.toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #F5F5F5;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.main-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav-list dt,
.nav-list dd { display: contents; }
.nav-item { display: flex; }

.nav-link {
  display: flex;
  align-items: center;
  color: #ccc;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0 12px;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}
.nav-link:hover {
  color: #F5F5F5;
  background: rgba(233,69,96,0.15);
}

.btn-cta {
  display: flex;
  align-items: center;
  background: #E94560;
  color: #F5F5F5;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 18px;
  border-radius: 4px;
  min-height: 44px;
  white-space: nowrap;
  text-transform: uppercase;
  transition: background 180ms ease, opacity 180ms ease;
}
.btn-cta:hover { background: #c73652; color: #F5F5F5; }

/* ========== Hero ========== */
.hero-wrapper {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: #1A1A2E;
  overflow: hidden;
}

/* 点阵底纹 */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(233,69,96,0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 50px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E94560;
  background: rgba(233,69,96,0.12);
  border: 1px solid rgba(233,69,96,0.4);
  border-radius: 3px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.hero-h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #F5F5F5;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(245,245,245,0.75);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  background: #E94560;
  color: #F5F5F5;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  min-height: 48px;
  transition: background 180ms ease;
}
.btn-hero:hover { background: #c73652; color: #F5F5F5; }

.hero-icon {
  flex-shrink: 0;
  width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-svg { width: 120px; height: 120px; }

/* ========== 主内容 ========== */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.content-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  gap: 32px 28px;
  position: relative;
}

/* aside 在左侧 */
.content-aside {
  grid-column: 1;
  grid-row: 1 / 3;
  position: sticky;
  top: 80px;
  align-self: start;
}

.aside-inner {
  background: rgba(245,245,245,0.04);
  border: 1px solid rgba(233,69,96,0.25);
  border-radius: 18px;
  padding: 20px 16px;
}

.aside-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E94560;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(233,69,96,0.2);
}

.aside-nav-list { display: flex; flex-direction: column; gap: 4px; }
.aside-nav-list li a {
  display: block;
  color: rgba(245,245,245,0.7);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 180ms ease, color 180ms ease;
  line-height: 1.4;
}
.aside-nav-list li a:hover {
  background: rgba(233,69,96,0.15);
  color: #F5F5F5;
}

/* figure 装饰 - 右侧上方 */
.content-figure {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(233,69,96,0.06);
  border: 1px solid rgba(233,69,96,0.2);
  border-radius: 18px;
  margin-bottom: 0;
}

.fig-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.fig-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #E94560;
  line-height: 1;
}
.fig-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.5);
}
.fig-decor { display: flex; gap: 8px; align-items: flex-end; }
.fig-block { border-radius: 3px; }
.fig-block--a { width: 12px; height: 32px; background: #E94560; }
.fig-block--b { width: 12px; height: 20px; background: rgba(233,69,96,0.5); }
.fig-block--c { width: 12px; height: 14px; background: rgba(233,69,96,0.25); }

/* 正文内容 */
.content-body {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

/* ========== 正文内 section 样式（page.content 注入） ========== */
.content-body section {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,245,245,0.07);
}
.content-body section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.content-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #F5F5F5;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.content-body h2 + hr {
  border: none;
  border-top: 2px solid #E94560;
  width: 48px;
  margin: 0 0 20px 0;
}
.content-body hr {
  border: none;
  border-top: 1px solid rgba(245,245,245,0.1);
  margin: 24px 0;
}

.content-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #E94560;
  margin: 28px 0 10px;
  letter-spacing: 0.02em;
}
.content-body h3 + hr {
  border: none;
  border-top: 1px solid rgba(233,69,96,0.35);
  width: 32px;
  margin: 0 0 14px 0;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(245,245,245,0.88);
  margin-bottom: 14px;
}

.content-body ul, .content-body ol {
  padding-left: 1.4em;
  margin-bottom: 16px;
}
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245,245,245,0.85);
  margin-bottom: 6px;
}

.content-body a {
  color: #E94560;
  border-bottom: 1px solid rgba(233,69,96,0.4);
  transition: border-color 180ms ease;
}
.content-body a:hover { border-color: #E94560; }

.content-body strong { color: #F5F5F5; font-weight: 700; }

/* 玻璃拟态卡片 - 正文内卡片 */
.content-body .card,
.content-body article,
.content-body .site-card {
  background: rgba(245,245,245,0.05);
  border: 1px solid rgba(245,245,245,0.12);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: border-color 180ms ease, background 180ms ease;
}
.content-body .card:hover,
.content-body article:hover,
.content-body .site-card:hover {
  border-color: rgba(233,69,96,0.5);
  background: rgba(233,69,96,0.07);
}

/* table */
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.content-body th {
  background: rgba(233,69,96,0.2);
  color: #F5F5F5;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid rgba(233,69,96,0.25);
}
.content-body td {
  padding: 9px 14px;
  border: 1px solid rgba(245,245,245,0.08);
  color: rgba(245,245,245,0.85);
  vertical-align: top;
}
.content-body tr:nth-child(even) td {
  background: rgba(245,245,245,0.03);
}

/* blockquote */
.content-body blockquote {
  border-left: 3px solid #E94560;
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(233,69,96,0.07);
  border-radius: 0 8px 8px 0;
  color: rgba(245,245,245,0.8);
  font-style: italic;
}

/* code */
.content-body code {
  background: rgba(245,245,245,0.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}
.content-body pre {
  background: rgba(245,245,245,0.06);
  border: 1px solid rgba(245,245,245,0.1);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.content-body pre code { background: none; padding: 0; }

/* ========== 页脚 ========== */
.site-footer {
  background: #0d0d1a;
  border-top: 2px solid #E94560;
  padding: 48px 20px 24px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #F5F5F5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(245,245,245,0.55);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-address {
  font-style: normal;
}
.footer-contact-link {
  display: inline-block;
  color: #E94560;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-contact-link:hover { color: #ff6b84; }

.footer-contact-list { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-list li a {
  color: rgba(245,245,245,0.55);
  font-size: 0.88rem;
  transition: color 180ms ease;
  display: inline-block;
  padding: 4px 0;
}
.footer-contact-list li a:hover { color: #E94560; }

/* 页脚导航 dl */
.footer-nav-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E94560;
  margin-bottom: 16px;
  display: block;
}
.footer-nav-dl { display: flex; flex-direction: column; }
.footer-nav-dl dt {
  margin-bottom: 4px;
}
.footer-nav-dl dt a {
  display: block;
  color: rgba(245,245,245,0.65);
  font-size: 0.9rem;
  padding: 6px 8px;
  border-radius: 4px;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 180ms ease, background 180ms ease;
}
.footer-nav-dl dt a:hover {
  color: #E94560;
  background: rgba(233,69,96,0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(245,245,245,0.08);
  padding-top: 20px;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(245,245,245,0.35);
  text-align: center;
}

/* ========== 动效 ========== */
@media (prefers-reduced-motion: no-preference) {
  .content-body section {
    transition: opacity 200ms ease;
  }
  .aside-nav-list li a,
  .nav-link,
  .btn-cta,
  .btn-hero {
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
  }
  .content-body .card,
  .content-body article {
    transition: border-color 160ms ease, background 160ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ========== 响应式 ========== */

/* 平板 */
@media (max-width: 900px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }
  .content-aside {
    grid-column: 1;
    grid-row: 2;
    position: static;
  }
  .content-figure {
    grid-column: 1;
    grid-row: 1;
  }
  .content-body {
    grid-column: 1;
    grid-row: 3;
  }
  .aside-inner { display: flex; gap: 20px; align-items: flex-start; }
  .aside-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; white-space: nowrap; }
  .aside-nav-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .aside-nav-list li a { padding: 6px 12px; }
  .hero-icon { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* 导航在小屏收折 */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1A1A2E;
    border-bottom: 2px solid #E94560;
    padding: 16px 20px 20px;
    z-index: 99;
  }
  .main-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav-list dt,
  .nav-list dd { display: block; }
  .nav-item { display: block; }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 6px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 1rem;
  }
  .btn-cta {
    width: 100%;
    justify-content: flex-start;
    border-radius: 6px;
    min-height: 48px;
    padding: 0 16px;
    font-size: 1rem;
    margin-top: 6px;
  }

  .header-inner { position: relative; }

  .hero-wrapper { min-height: 40vh; }
  .hero-h1 { font-size: 1.8rem; }

  .site-main { padding: 24px 16px 40px; }
}

/* 手机 */
@media (max-width: 480px) {
  .header-inner { padding: 0 14px; }
  .brand-name { font-size: 1.1rem; }

  .hero-inner { padding: 40px 16px 36px; }
  .hero-h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 0.93rem; }
  .btn-hero { font-size: 1rem; padding: 12px 24px; }

  .content-section { gap: 20px 0; }
  .aside-inner { flex-direction: column; gap: 12px; }
  .aside-nav-list { flex-direction: row; flex-wrap: wrap; }

  .content-body h2 { font-size: 1.35rem; }
  .content-body h3 { font-size: 1.1rem; }
  .content-body p { font-size: 0.97rem; }

  .footer-grid { gap: 28px; }
  .footer-brand-desc { max-width: 100%; }
  .footer-copy { font-size: 0.78rem; }
}

/* 宽屏优化 */
@media (min-width: 1280px) {
  .content-section { grid-template-columns: 220px 1fr; gap: 40px 36px; }
}

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