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

/* =============================================
   CSS 变量 & 重置
   ============================================= */
:root {
  --c-white: #ffffff;
  --c-light: #f5f5f5;
  --c-dark: #1f1f1f;
  --c-gray: #4a4a4a;
  --c-gray-light: #d0d0d0;
  --c-accent: #e0e0e0;
  --c-black: #0a0a0a;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.14);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.20);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.28);

  --radius-card: 28px;
  --radius-btn: 6px;

  --font-main: 'Space Grotesk', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;

  --header-height: 110px;
  --nav-height: 52px;
}

*, *::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-main);
  background: var(--c-light);
  color: var(--c-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.home-page {
  background: var(--c-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol, dl {
  list-style: none;
}

/* =============================================
   站点包装
   ============================================= */
.site-wrapper {
  position: relative;
  min-height: 100vh;
}

/* =============================================
   HEADER — 两行
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-dark);
  color: var(--c-white);
  box-shadow: var(--shadow-md);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 58px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

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

.brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 52px;
  gap: 1rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-gray-light);
  border-radius: var(--radius-btn);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--c-white);
  background: rgba(255,255,255,0.1);
}

/* =============================================
   汉堡按钮
   ============================================= */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  transition: background 0.2s;
  flex-shrink: 0;
}

.hamburger:hover {
  background: rgba(255,255,255,0.1);
}

.ham-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open .ham-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open .ham-bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .ham-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   全屏遮罩菜单
   ============================================= */
.fsm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  backdrop-filter: blur(4px);
}

.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--c-dark);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2%);
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

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

.fsm-inner {
  width: 100%;
  max-width: 600px;
  padding: 3rem 2.5rem;
  position: relative;
}

.fsm-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--c-white);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.fsm-close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

.fsm-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.fsm-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: -0.02em;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.2s;
  text-transform: uppercase;
}

.fsm-link::before {
  content: attr(data-index);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  min-width: 1.5rem;
  letter-spacing: 0;
}

.fsm-link:hover {
  color: var(--c-white);
  padding-left: 0.5rem;
}

/* =============================================
   CTA 按钮
   ============================================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1.4rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.header-cta {
  background: var(--c-white);
  color: var(--c-dark);
  border-color: var(--c-white);
  flex-shrink: 0;
}

.header-cta:hover {
  background: var(--c-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cta-primary {
  background: var(--c-white);
  color: var(--c-dark);
  padding: 0 2.2rem;
  min-height: 52px;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.4);
  padding: 0 2.2rem;
  min-height: 52px;
  font-size: 1rem;
}

.cta-ghost:hover {
  border-color: var(--c-white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* =============================================
   HERO — 满屏 100vh
   ============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--c-dark);
  color: var(--c-white);
  display: flex;
  align-items: flex-end;
  padding: 0 2.5rem 5rem;
  overflow: hidden;
  margin-top: var(--header-height);
  scroll-margin-top: var(--header-height);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(-1px) scale(1.05);
  font-size: clamp(18rem, 40vw, 36rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.hero-h1 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 浮动卡片 */
.hero-float-card {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-card);
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.fc-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.fc-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.02em;
}

.fc-1 {
  top: 18%;
  right: 8%;
  transform: rotate(-3deg) translateZ(20px);
  box-shadow: var(--shadow-xl);
}

.fc-2 {
  top: 38%;
  right: 22%;
  transform: rotate(2deg) translateZ(30px);
  box-shadow: var(--shadow-lg);
}

.fc-3 {
  top: 58%;
  right: 6%;
  transform: rotate(-1deg) translateZ(10px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   MAIN + CONTENT SECTION
   ============================================= */
.site-main {
  position: relative;
  z-index: 1;
}

.content-section {
  display: flex;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  align-items: flex-start;
}

/* ASIDE — 左侧 */
.content-aside {
  flex: 0 0 220px;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  z-index: 10;
}

.aside-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.2rem;
  box-shadow: var(--shadow-md);
}

.aside-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gray);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--c-accent);
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aside-links li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-dark);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  line-height: 1.35;
}

.aside-links li a:hover {
  background: var(--c-light);
  color: var(--c-black);
}

/* 正文区 */
.content-body {
  flex: 1 1 0;
  min-width: 0;
}

/* =============================================
   page.content 内的 section 样式
   ============================================= */
.content-body section {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.content-body section:last-child {
  margin-bottom: 0;
}

.content-body h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--c-dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.content-body h2 + p,
.content-body .subtitle,
.content-body .subhead,
.content-body .desc,
.content-body .lead {
  font-size: 1rem;
  color: var(--c-gray);
  margin-bottom: 1.4rem;
  font-weight: 400;
}

.content-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  margin-top: 1.4rem;
  color: var(--c-dark);
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 1rem;
}

.content-body ul,
.content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

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

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

.content-body li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.3rem;
  color: #333;
}

.content-body a {
  color: var(--c-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.content-body a:hover {
  opacity: 0.7;
}

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

.content-body figure {
  margin: 1.5rem 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.content-body figcaption {
  font-size: 0.8rem;
  color: var(--c-gray);
  padding: 0.5rem 1rem;
  background: var(--c-light);
}

/* 每个 section 像卡片 */
.content-body section {
  background: var(--c-white);
  border-radius: var(--radius-card);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.content-body section:hover {
  box-shadow: var(--shadow-md);
}

/* 区块分隔线 */
.content-body section + section {
  position: relative;
}

/* =============================================
   SCROLL REVEAL 动效
   ============================================= */
.reveal-section {
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 0;
  margin-top: 5rem;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  max-width: 320px;
}

.footer-address {
  font-size: 0.84rem;
  font-style: normal;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-address a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-address a:hover {
  color: var(--c-white);
}

.footer-social-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}

.footer-social-list li a:hover {
  background: rgba(255,255,255,0.14);
  color: var(--c-white);
}

.footer-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.2rem;
}

.footer-dl {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-dl dt a,
.footer-dl dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, padding-left 0.2s;
  padding: 0.2rem 0;
}

.footer-dl dt a {
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.footer-dl dt a:hover,
.footer-dl dd a:hover {
  color: var(--c-white);
  padding-left: 0.4rem;
}

.footer-bottom {
  padding: 1.2rem 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* =============================================
   scroll-margin-top for sections
   ============================================= */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 900px) {
  .hero-section {
    padding: 0 1.8rem 4rem;
    align-items: flex-end;
    min-height: 100svh;
  }

  .fc-2, .fc-3 {
    display: none;
  }

  .fc-1 {
    top: 14%;
    right: 5%;
  }

  .content-section {
    flex-direction: column;
    gap: 1.8rem;
    padding: 3rem 1.5rem 4rem;
  }

  .content-aside {
    flex: none;
    width: 100%;
    position: static;
  }

  .aside-card {
    padding: 1.2rem;
  }

  .aside-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .aside-links li a {
    min-height: 38px;
    padding: 0.3rem 0.75rem;
    background: var(--c-light);
    border-radius: 999px;
    font-size: 0.82rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 640px) {
  :root {
    --header-height: 106px;
  }

  .header-brand-row {
    padding: 0 1.2rem;
  }

  .header-nav-row {
    padding: 0 1.2rem;
  }

  .desktop-nav {
    display: none;
  }

  .hero-section {
    padding: 0 1.2rem 3.5rem;
    margin-top: var(--header-height);
  }

  .hero-h1 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-primary,
  .cta-ghost {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  .fc-1 {
    display: none;
  }

  .content-section {
    padding: 2.2rem 1rem 3rem;
  }

  .content-body section {
    padding: 1.5rem 1.2rem;
    border-radius: 18px;
  }

  .content-body h2 {
    font-size: 1.45rem;
  }

  .fsm-link {
    font-size: 1.5rem;
  }

  .footer-inner {
    padding: 2.5rem 1.2rem 0;
  }

  .footer-social-list {
    gap: 0.5rem;
  }

  .footer-social-list li a {
    padding: 0 0.75rem;
    font-size: 0.74rem;
  }
}

/* =============================================
   prefers-reduced-motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fullscreen-menu {
    transition: opacity 0.1s;
  }
  .fsm-link,
  .nav-link,
  .cta-btn,
  .aside-links li a,
  .footer-dl dt a,
  .footer-dl dd a {
    transition: none;
  }
}
