@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');

/* =============================================
   CSS 自定义属性
   ============================================= */
:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #e8000d;
  --c-grey-100: #f4f4f4;
  --c-grey-200: #e0e0e0;
  --c-grey-400: #999999;
  --c-grey-700: #333333;

  --font-cond: 'Barlow Condensed', 'Arial Narrow', Helvetica, Arial, sans-serif;
  --font-body: 'Barlow', Helvetica, Arial, sans-serif;

  --base: 8px;
  --gap: 1rem;
  --max-w: 1280px;
  --header-h: 64px;
  --anchor-h: 48px;
  --scroll-offset: calc(var(--header-h) + var(--anchor-h));

  --radius: 4px;
  --border: 1.5px solid var(--c-black);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::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: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-black);
  background: var(--c-white);
  overflow-x: hidden;
}

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

/* Smooth scroll offset for sections */
div[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* =============================================
   12 列 Grid 工具
   ============================================= */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: calc(var(--base) * 3);
}

.col-span-3  { grid-column: span 3; }
.col-span-4  { grid-column: span 4; }
.col-span-6  { grid-column: span 6; }
.col-span-8  { grid-column: span 8; }
.col-span-9  { grid-column: span 9; }
.col-span-12 { grid-column: span 12; }
.col-start-1 { grid-column-start: 1; }
.col-start-5 { grid-column-start: 5; }

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

/* =============================================
   顶部 Header
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--c-black);
  border-bottom: 2px solid var(--c-accent);
  display: flex;
  align-items: center;
}

.header-inner {
  align-items: center;
  height: 100%;
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
}

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

.logo-text {
  font-family: var(--font-cond);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1.5px solid var(--c-white);
  border-radius: var(--radius);
  padding: 8px 10px;
  min-height: 40px;
}

.menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  transition: transform var(--transition), opacity var(--transition);
}

/* =============================================
   粘性锚点导航条
   ============================================= */
.anchor-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 150;
  background: var(--c-white);
  border-bottom: var(--border);
  height: var(--anchor-h);
  overflow: hidden;
}

.anchor-bar-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: calc(var(--base) * 3);
  height: 100%;
  display: flex;
  align-items: center;
}

.anchor-nav ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  height: 100%;
  align-items: center;
}

.anchor-nav li {
  position: relative;
}

.anchor-nav li + li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 1px;
  background: var(--c-grey-200);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: var(--anchor-h);
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-black);
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  background: var(--c-grey-100);
  outline: none;
}

.nav-num {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--c-grey-400);
  margin-right: 2px;
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
  position: relative;
  margin-top: calc(var(--header-h) + var(--anchor-h));
  min-height: 45vh;
  background: var(--c-black);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: calc(var(--base) * 6);
}

.hero-inner {
  position: relative;
  z-index: 2;
  align-items: center;
  padding-block: calc(var(--base) * 4);
}

/* Diagonal band */
.hero-band {
  position: absolute;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 60px;
  background: var(--c-white);
  transform: skewY(-2.5deg);
  transform-origin: left bottom;
  z-index: 1;
}

/* Hero deco box (left columns) */
.hero-deco {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-deco-box {
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  padding: calc(var(--base) * 3) calc(var(--base) * 2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.deco-num {
  font-family: var(--font-cond);
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  letter-spacing: 0.08em;
}

.deco-slash {
  font-family: var(--font-cond);
  font-size: 2rem;
  font-weight: 300;
  color: var(--c-accent);
  line-height: 1;
}

.deco-label {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--c-grey-400);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero text (right) */
.hero-text {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(var(--base) * 2);
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.hero-title {
  font-family: var(--font-cond);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--c-white);
  text-transform: uppercase;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--c-grey-200);
  max-width: 480px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  min-height: 48px;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--c-white);
  color: var(--c-accent);
  outline: none;
}

/* =============================================
   Main Content
   ============================================= */
.site-main {
  flex: 1;
  padding-block: calc(var(--base) * 8);
  background: var(--c-white);
}

.content-section {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: calc(var(--base) * 3);
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto 1fr;
  gap: calc(var(--base) * 5) calc(var(--base) * 6);
}

.content-figure {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  gap: calc(var(--base) * 2);
  border-left: 4px solid var(--c-accent);
  padding-left: calc(var(--base) * 2);
  margin-bottom: calc(var(--base) * 2);
}

.figure-accent-bar {
  width: 40px;
  height: 4px;
  background: var(--c-black);
  border-radius: 2px;
}

.content-aside {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  border: var(--border);
  border-radius: var(--radius);
  padding: calc(var(--base) * 3);
  align-self: start;
  position: sticky;
  top: var(--scroll-offset);
  background: var(--c-grey-100);
}

.aside-eyebrow {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.aside-title {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: var(--border);
  padding-bottom: calc(var(--base) * 1);
  margin-bottom: calc(var(--base) * 2);
}

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

.aside-link {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  min-height: 40px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.aside-link:hover,
.aside-link:focus-visible {
  border-color: var(--c-black);
  background: var(--c-white);
  color: var(--c-accent);
  outline: none;
}

.content-body {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  min-width: 0;
}

/* =============================================
   正文内容样式（page.content 的内部元素）
   ============================================= */
.content-body h2 {
  font-family: var(--font-cond);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: calc(var(--base) * 7);
  margin-bottom: calc(var(--base) * 2);
  padding-bottom: calc(var(--base) * 1);
  border-bottom: 2px solid var(--c-black);
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body h3 {
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: calc(var(--base) * 5);
  margin-bottom: calc(var(--base) * 1.5);
  color: var(--c-grey-700);
}

.content-body p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: calc(var(--base) * 2);
  color: var(--c-grey-700);
}

.content-body ul,
.content-body ol {
  margin-bottom: calc(var(--base) * 2);
  padding-left: calc(var(--base) * 3);
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: calc(var(--base) * 1);
  color: var(--c-grey-700);
}

.content-body a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content-body a:hover { text-decoration-thickness: 2px; }

.content-body strong { font-weight: 700; color: var(--c-black); }

.content-body blockquote {
  border-left: 4px solid var(--c-accent);
  padding: calc(var(--base) * 2) calc(var(--base) * 3);
  margin-block: calc(var(--base) * 3);
  background: var(--c-grey-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* div 内部区块间隔 */
.content-body div {
  margin-bottom: calc(var(--base) * 8);
  padding-bottom: calc(var(--base) * 6);
  border-bottom: 1px solid var(--c-grey-200);
}

.content-body div:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* =============================================
   页脚
   ============================================= */
.site-footer {
  background: var(--c-black);
  color: var(--c-white);
  margin-top: calc(var(--base) * 8);
  position: relative;
  overflow: hidden;
}

.footer-brand-row {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: calc(var(--base) * 3) calc(var(--base) * 3) 0;
  max-width: var(--max-w);
  margin-inline: auto;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}

.footer-brand-big {
  display: block;
  font-family: var(--font-cond);
  font-size: clamp(4rem, 14vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.85;
  text-transform: uppercase;
  color: rgba(255,255,255,0.06);
  white-space: nowrap;
}

.footer-inner {
  padding-block: calc(var(--base) * 6);
  align-items: start;
}

.footer-sec {
  display: flex;
  flex-direction: column;
  gap: calc(var(--base) * 1.5);
}

.footer-eyebrow {
  display: block;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.footer-sec-title {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-white);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: calc(var(--base) * 1);
  margin-bottom: calc(var(--base) * 1);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: calc(var(--base) * 1);
}

.footer-contact-item {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  min-height: 40px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.footer-nav-link:hover,
.footer-nav-link:focus-visible {
  color: var(--c-white);
  background: rgba(255,255,255,0.06);
  outline: none;
}

.footer-nav-num {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-cond);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: calc(var(--base) * 2.5);
  padding-inline: calc(var(--base) * 3);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* =============================================
   动效 — Stagger List (入场)
   ============================================= */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anchor-nav li {
  animation: fadeSlideIn 0.35s ease both;
}

.anchor-nav li:nth-child(1) { animation-delay: 0.04s; }
.anchor-nav li:nth-child(2) { animation-delay: 0.08s; }
.anchor-nav li:nth-child(3) { animation-delay: 0.12s; }
.anchor-nav li:nth-child(4) { animation-delay: 0.16s; }
.anchor-nav li:nth-child(5) { animation-delay: 0.20s; }
.anchor-nav li:nth-child(6) { animation-delay: 0.24s; }
.anchor-nav li:nth-child(7) { animation-delay: 0.28s; }

/* Hover micro */
.aside-link,
.footer-nav-link,
.nav-link {
  will-change: background, color;
}

/* 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; }
}

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

/* Tablet: ≤1024px */
@media (max-width: 1024px) {
  .hero-deco { display: none; }

  .hero-text {
    grid-column: 1 / -1;
    grid-column-start: 1;
    text-align: left;
    align-items: flex-start;
  }

  .content-section {
    grid-template-columns: 1fr 220px;
  }
}

/* Mobile: ≤768px */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
    --anchor-h: auto;
  }

  .grid-12 {
    grid-template-columns: 1fr;
    padding-inline: calc(var(--base) * 2);
  }

  [class*="col-span-"],
  [class*="col-start-"] {
    grid-column: 1 / -1;
  }

  /* 汉堡菜单 */
  .menu-toggle { display: flex; }

  /* 锚点条变为折叠 */
  .anchor-bar {
    position: sticky;
    top: var(--header-h);
    height: auto;
    overflow: visible;
  }

  .anchor-bar-inner {
    flex-direction: column;
    padding-block: 0;
    height: auto;
  }

  .anchor-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .anchor-bar.open .anchor-nav {
    max-height: 500px;
  }

  .anchor-nav ol {
    flex-direction: column;
    height: auto;
    padding-block: 8px;
    background: var(--c-white);
    border-top: var(--border);
  }

  .anchor-nav li::before { display: none; }

  .nav-link {
    height: auto;
    padding: 12px 16px;
    min-height: 44px;
    border-bottom: 1px solid var(--c-grey-200);
    font-size: 1rem;
  }

  /* Hero */
  .hero-section {
    min-height: auto;
    padding-block: calc(var(--base) * 5) calc(var(--base) * 8);
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  /* Content */
  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: calc(var(--base) * 4);
  }

  .content-figure {
    grid-column: 1;
    grid-row: auto;
  }

  .content-aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .content-body {
    grid-column: 1;
    grid-row: auto;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    padding-inline: calc(var(--base) * 2);
  }

  .footer-sec {
    grid-column: 1;
  }

  .footer-bottom {
    padding-inline: calc(var(--base) * 2);
  }
}

/* Mobile: ≤480px */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .footer-brand-big {
    font-size: 4rem;
  }
}
