@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS 变量 & 基础重置
   ============================================================ */
:root {
  --c-white: #ffffff;
  --c-surface: #f5f5f5;
  --c-ink: #1f1f1f;
  --c-ink-60: rgba(31,31,31,0.6);
  --c-ink-20: rgba(31,31,31,0.12);
  --c-accent: #e8003d;
  --c-accent-2: #c400a0;
  --c-accent-dim: rgba(232,0,61,0.08);

  --shadow-sm:  0 2px 6px rgba(31,31,31,0.10);
  --shadow-md:  0 6px 18px rgba(31,31,31,0.14);
  --shadow-lg:  0 14px 36px rgba(31,31,31,0.18);
  --shadow-xl:  0 28px 60px rgba(31,31,31,0.24);

  --radius-card: 18px;
  --radius-sm: 8px;

  --font-main: 'Rubik', 'Nunito Sans', system-ui, sans-serif;

  --nav-h: 64px;
  --topbar-h: 36px;
  --scroll-offset: calc(var(--nav-h) + var(--topbar-h));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-surface);
  color: var(--c-ink);
}

body {
  font-family: var(--font-main);
  line-height: 1.7;
  background: var(--c-surface);
  color: var(--c-ink);
  overflow-x: hidden;
}

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

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

/* ============================================================
   滚动偏移（吸顶导航）
   ============================================================ */
article[id] { scroll-margin-top: var(--scroll-offset); }

/* ============================================================
   Elevation 工具类
   ============================================================ */
.elevation-sm  { box-shadow: var(--shadow-sm); }
.elevation-md  { box-shadow: var(--shadow-md); }
.elevation-lg  { box-shadow: var(--shadow-lg); }
.elevation-xl  { box-shadow: var(--shadow-xl); }

/* ============================================================
   顶部公告条
   ============================================================ */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: var(--c-ink);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
}
.top-bar-text { opacity: 0.92; }

/* ============================================================
   页头
   ============================================================ */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  z-index: 99;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-ink-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}

.brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.brand-mark:hover { transform: scale(1.08); }
.brand-logo-img { width: 40px; height: 40px; border-radius: 10px; }
.brand-logo-text { font-family: 'Rubik', sans-serif; font-weight: 700; }

/* 桌面导航 */
.site-nav { flex: 1; display: flex; justify-content: center; }
.nav-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover { background: var(--c-accent-dim); color: var(--c-accent); }

/* 汉堡 */
.hamburger-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1.5px solid var(--c-ink-20);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}
.hamburger-btn:hover { background: var(--c-surface); }
.ham-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger-btn.is-open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open .ham-bar:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   全屏遮罩菜单
   ============================================================ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}
.menu-close-btn {
  position: absolute;
  top: 28px; right: 28px;
  background: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: var(--c-white);
  font-size: 1.4rem;
  width: 48px; height: 48px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.menu-close-btn:hover { background: rgba(255,255,255,0.1); }

.fullscreen-nav { text-align: center; }
.fullscreen-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fullscreen-nav-link {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--c-white);
  padding: 10px 24px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
  display: block;
  min-height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.fullscreen-nav-link:hover { background: rgba(255,255,255,0.08); color: var(--c-accent); }

/* 菜单打开时锁定滚动 */
body.menu-open { overflow: hidden; }

/* ============================================================
   站点包裹
   ============================================================ */
.site-wrapper {
  padding-top: calc(var(--topbar-h) + var(--nav-h));
}

/* ============================================================
   Hero
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 70vh;
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 60px clamp(24px, 6vw, 80px);
  overflow: hidden;
}

.hero-layer {
  position: absolute;
  pointer-events: none;
  border-radius: 24px;
}
.hero-layer--back {
  inset: -40px;
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-white) 60%);
  z-index: 0;
  transform: translateZ(-2px);
}
.hero-layer--mid {
  width: 55%; height: 70%;
  top: 10%; left: -5%;
  background: var(--c-surface);
  z-index: 1;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
}

.hero-slash {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--c-surface);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  z-index: 3;
}

/* 错位拼贴卡片 */
.hero-collage {
  position: absolute;
  left: clamp(20px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 420px;
  aspect-ratio: 4/3;
  z-index: 2;
}
.collage-card {
  position: absolute;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--c-ink);
}
.collage-card--a {
  width: 78%; height: 78%;
  top: 0; left: 0;
  z-index: 2;
  background: linear-gradient(135deg, #2d1030 0%, #1f1f1f 100%);
  transform: rotate(-3deg);
}
.collage-card--b {
  width: 68%; height: 68%;
  bottom: 0; right: 0;
  z-index: 3;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  transform: rotate(4deg);
}
.collage-card-inner {
  width: 100%; height: 100%;
  opacity: 0.18;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.15) 0px,
    rgba(255,255,255,0.15) 2px,
    transparent 2px,
    transparent 12px
  );
}

/* Hero 文案 */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: right;
  max-width: 480px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-dim);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 1rem;
  color: var(--c-ink-60);
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   主体内容区
   ============================================================ */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px clamp(16px, 4vw, 40px) 80px;
}

.content-section--with-aside {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

/* Aside（内容左侧） */
.content-aside {
  position: sticky;
  top: calc(var(--scroll-offset) + 20px);
  z-index: 4;
}
.aside-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  border: 1px solid var(--c-ink-20);
}
.aside-title {
  font-family: 'Rubik', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-ink);
  margin-bottom: 12px;
}
.aside-card hr {
  border: none;
  border-top: 1.5px solid var(--c-ink-20);
  margin-bottom: 16px;
}
.aside-nav-list { display: flex; flex-direction: column; gap: 4px; }
.aside-nav-link {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--c-ink-60);
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  min-height: 36px;
}
.aside-nav-link:hover { background: var(--c-accent-dim); color: var(--c-accent); }

/* Figure（正文容器） */
.content-figure {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* ============================================================
   page.content 内部样式（article / h2 / p 等）
   ============================================================ */
.page-content-body h2 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--c-ink);
  margin-top: 56px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.page-content-body h2:first-child { margin-top: 0; }

.page-content-body hr {
  border: none;
  border-top: 2px solid var(--c-ink-20);
  margin: 0 0 24px;
}

.page-content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-ink);
  margin-top: 32px;
  margin-bottom: 10px;
}

.page-content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-ink);
  margin-bottom: 18px;
}

.page-content-body ul,
.page-content-body ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
.page-content-body li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

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

.page-content-body article {
  padding-top: 16px;
}

.page-content-body strong { font-weight: 600; }

.page-content-body blockquote {
  border-left: 4px solid var(--c-accent);
  padding: 12px 20px;
  background: var(--c-accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: var(--c-ink);
  color: var(--c-white);
  padding: 0;
}

.footer-cta-block {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-2) 100%);
  padding: 48px clamp(24px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-cta-text {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--c-white);
  flex: 1;
  min-width: 200px;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--c-white);
  color: var(--c-ink);
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s;
  min-height: 48px;
  white-space: nowrap;
}
.footer-cta-btn:hover { transform: translateY(-2px); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  padding: 40px clamp(24px, 6vw, 80px);
  align-items: start;
}

.footer-brand-link { display: inline-block; margin-bottom: 10px; }
.footer-brand-name {
  font-family: 'Rubik', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-white);
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-nav { }
.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  justify-content: center;
}
.footer-nav-link {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-nav-link:hover { background: rgba(255,255,255,0.08); color: var(--c-white); }

.footer-info-col { text-align: right; }
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.footer-disclaimer {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* ============================================================
   Stagger 动画
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .stagger-item.in-view {
    opacity: 1;
    transform: translateY(0);
  }
  .collage-card--a {
    transition: transform 0.3s ease;
  }
  .collage-card--b {
    transition: transform 0.35s ease;
  }
  .content-figure {
    transition: box-shadow 0.3s;
  }
  .content-figure:hover {
    box-shadow: var(--shadow-md);
  }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .content-section--with-aside {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
  }
  .aside-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-info-col { text-align: left; }
}

@media (max-width: 680px) {
  .site-header { padding: 0 16px; }
  .site-nav { display: none; }
  .hero-section {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 40px 20px 60px;
    min-height: 70vh;
  }
  .hero-collage {
    position: relative;
    left: auto; top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 28px;
  }
  .hero-content {
    text-align: right;
    max-width: 100%;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-info-col { text-align: left; }
  .footer-cta-block {
    flex-direction: column;
    text-align: center;
  }
  .footer-nav-links { justify-content: flex-start; }
}

@media (max-width: 375px) {
  .hero-title { font-size: 1.5rem; }
  .site-main { padding: 40px 16px 60px; }
}
