/* ==========================================================================
   BeiningWuyou · Personal Flagship (beiningwuyou.com)
   Design System: Societies.ai Aesthetic with Premium Chinese Typography (Noto Serif SC)
   ========================================================================== */

:root {
  /* 暖燕麦米色调 (Warm Linen / Oatmeal) */
  --bg-primary: #f6f5f0;
  --bg-pure: #ffffff;
  --bg-card: #eceae3;
  --bg-subtle: #f0eee8;

  /* 文字深炭墨黑 */
  --text-main: #181715;
  --text-muted: #524f49;
  --text-dim: #848077;

  /* 细分割线 */
  --border-line: rgba(24, 23, 21, 0.14);
  --border-light: rgba(24, 23, 21, 0.08);

  /* 品牌高雅点缀 */
  --btn-dark: #181715;
  --btn-dark-hover: #2e2c29;

  /* 顶尖排印系统体系:
     1. 西文主衬线: Newsreader (Klim / Editorial 级典雅衬线)
     2. 现代人文黑体: Inter + 苹方 (PingFang SC) 黄金屏显 + 冬青黑体 / 思源黑体
     3. 典籍人文雅宋: Noto Serif SC + 苹果宋体 (Songti SC / STSong) + palt 比例紧缩标点
     4. 哲学田野文楷: 霞鹜文楷 (LXGW WenKai) + 楷体
     5. 等宽代码字体: DM Mono
  */
  --font-serif: 'Newsreader', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-wenkai: 'LXGW WenKai', 'Kaiti SC', 'STKaiti', 'KaiTi', serif;
  --font-mono: 'DM Mono', monospace;

  /* 动态排印映射 (默认预设为：现代人文黑体 - 契合 societies.ai 现代极简) */
  --font-quote: var(--font-sans);
  --font-title-cn: var(--font-sans);
  --quote-weight: 500;
  --quote-line-height: 1.76;
  --quote-spacing: 0.03em;
  --quote-size: 1.18rem;

  --max-w: 1360px;
  --shell-padding: clamp(24px, 4.5vw, 64px);
}

/* ==========================================================================
   三套顶级中文排印风格状态机 (供一键切换与体验对比)
   ========================================================================== */

/* 风格 1：现代人文黑体 (推荐 · Apple & Societies.ai 国际当代范式) */
body, body.font-mode-sans {
  --font-quote: var(--font-sans);
  --font-title-cn: var(--font-sans);
  --quote-weight: 500;
  --quote-line-height: 1.76;
  --quote-spacing: 0.03em;
  --quote-size: 1.18rem;
}

/* 风格 2：典籍人文雅宋 (理想国 / 单读学术期刊精排范式，精修字重与挤压标点) */
body.font-mode-serif {
  --font-quote: 'Newsreader', 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', serif;
  --font-title-cn: 'Newsreader', 'Songti SC', 'STSong', 'Noto Serif SC', serif;
  --quote-weight: 400;
  --quote-line-height: 1.84;
  --quote-spacing: 0.045em;
  --quote-size: 1.22rem;
}

/* 风格 3：哲学田野文楷 (思想家札记 · 田野手记温润质感) */
body.font-mode-wenkai {
  --font-quote: var(--font-wenkai);
  --font-title-cn: var(--font-wenkai);
  --quote-weight: 400;
  --quote-line-height: 1.82;
  --quote-spacing: 0.035em;
  --quote-size: 1.25rem;
}

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

html {
  font-size: 16.5px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1400px) {
  html {
    font-size: 17.5px;
  }
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 容器宽幅 */
.shell {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--shell-padding);
  padding-right: var(--shell-padding);
}

/* ==========================================================================
   1. Header 顶栏导航
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 84px;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem-sq {
  width: 36px;
  height: 36px;
  background: #ffffff;
  color: #181715;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 3px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
}

.nav-links a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-actions a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.btn-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #181715 !important;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-demo-pill:hover {
  background: #f0eee8;
  transform: translateY(-1px);
}

/* ==========================================================================
   2. Hero 全屏电影级摄影
   ========================================================================== */
.hero-wrap {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 90px;
  padding-top: 150px;
  color: #ffffff;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 15, 0.45) 0%, rgba(18, 17, 15, 0.15) 35%, rgba(18, 17, 15, 0.65) 100%);
  z-index: 2;
}

.hero-content-layer {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-headline-big {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6.8vw, 6rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 64px;
  max-width: 920px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: flex-end;
  gap: 48px;
}

.hero-bio-card {
  background: rgba(255, 255, 255, 0.98);
  color: #181715;
  padding: 32px 36px;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 520px;
}

.hero-bio-card p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.82;
  color: #2b2824;
  margin-bottom: 22px;
  letter-spacing: 0.015em;
  font-feature-settings: "palt" 1;
}

.hero-bio-card p strong {
  font-weight: 600;
  color: #181715;
}

.btn-black-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--btn-dark);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-black-pill:hover {
  background: var(--btn-dark-hover);
  transform: translateY(-1px);
}

/* 右侧网络拓扑图卡片 */
.hero-network-card {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 28px 32px;
  max-width: 440px;
  margin-left: auto;
}

.network-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  font-weight: 500;
}

.network-title {
  font-family: var(--font-title-cn);
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
  letter-spacing: 0.015em;
  font-feature-settings: "palt" 1;
}

.network-desc {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.68;
  letter-spacing: 0.015em;
  font-feature-settings: "palt" 1;
}

/* ==========================================================================
   3. 核心主张与 4 张抽象织物艺术卡片 (精修中西文排印与呼吸感)
   ========================================================================== */
.section-statement {
  padding: 120px 0 72px;
}

.statement-title-wrap {
  margin-bottom: 72px;
  max-width: 960px;
}

.statement-main-text {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* 4 张卡片网格 */
.textile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 84px;
}

.textile-card {
  position: relative;
  aspect-ratio: 1 / 1.55;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 28px;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.textile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.textile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.textile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0.78) 0%, rgba(14, 13, 12, 0.28) 42%, rgba(14, 13, 12, 0.84) 100%);
  z-index: 2;
}

.textile-top {
  position: relative;
  z-index: 3;
}

.textile-quote {
  font-family: var(--font-quote);
  font-size: var(--quote-size);
  line-height: var(--quote-line-height);
  font-weight: var(--quote-weight);
  letter-spacing: var(--quote-spacing);
  font-feature-settings: "palt" 1, "kern" 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: font-family 0.25s ease, letter-spacing 0.25s ease;
}

.textile-bottom {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* 合作方 / 背书 Logo 墙 */
.partners-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 36px;
  padding: 42px 0;
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
}

.partner-logo-item {
  font-family: var(--font-title-cn);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-main);
  transition: font-family 0.25s ease;
}

/* ==========================================================================
   4. 宽幅古典罗马大理石柱廊全景图
   ========================================================================== */
.full-bleed-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 640px;
  overflow: hidden;
  margin: 72px 0 100px;
}

.full-bleed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bleed-caption {
  position: absolute;
  bottom: 28px;
  left: clamp(24px, 4.5vw, 64px);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 4px;
}

/* ==========================================================================
   5. 极度克制的大号排印清单 (Typographic Methodology)
   ========================================================================== */
.section-methodology {
  text-align: center;
  padding: 72px 0 110px;
}

.typo-cascade {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.typo-row {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.typo-row.serif-light {
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
}

.typo-row.serif-bold {
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   6. 深度案例与实木框艺术画 (Rothko Split Layout)
   ========================================================================== */
.section-case-split {
  padding: 80px 0 110px;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
}

.split-left {
  max-width: 520px;
}

.split-label {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 500;
}

.split-title {
  font-family: var(--font-title-cn);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.28;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  font-feature-settings: "palt" 1;
  transition: font-family 0.25s ease;
}

.split-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--text-muted);
  margin-bottom: 30px;
  letter-spacing: 0.015em;
  font-feature-settings: "palt" 1;
}

.split-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-dim);
  font-weight: 500;
}

.split-right {
  display: flex;
  justify-content: center;
}

.framed-picture-wrapper {
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  overflow: hidden;
  border: 10px solid #36291e;
}

/* ==========================================================================
   7. 宽幅绿荫大道全景摄影 (Paris Avenue Trees)
   ========================================================================== */
.avenue-trees-wrap {
  width: 100%;
  aspect-ratio: 21 / 8;
  max-height: 580px;
  overflow: hidden;
  margin: 72px 0 100px;
}

/* ==========================================================================
   8. 6 格温润浅米色卡片矩阵
   ========================================================================== */
.section-six-grid {
  padding: 72px 0 120px;
}

.six-grid-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.six-grid-left h3 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 26px;
}

.six-grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.beige-card {
  background: var(--bg-card);
  padding: 32px 28px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.beige-card:hover {
  background: #e4e1d9;
  transform: translateY(-3px);
}

.beige-card h4 {
  font-family: var(--font-title-cn);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
  transition: font-family 0.25s ease;
}

.beige-card p {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.72;
  letter-spacing: 0.015em;
  font-feature-settings: "palt" 1;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
  padding: 90px 0 54px;
  border-top: 1px solid var(--border-line);
  background: var(--bg-primary);
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 80px;
}

.footer-newsletter-title {
  font-family: var(--font-title-cn);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer-input-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 10px;
  max-width: 360px;
}

.footer-input-row input {
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-main);
  width: 100%;
  outline: none;
  font-weight: 500;
}

.footer-nav-col h5 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.footer-nav-col a:hover {
  color: var(--text-main);
}

.footer-giant-logo {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--text-main);
  padding-top: 40px;
  border-top: 1px solid var(--border-line);
}

/* ==========================================================================
   中文字体快速风格切换悬浮按钮 (现代人文黑体 / 典籍雅宋 / 哲学文楷)
   ========================================================================== */
.chinese-font-switch-pill {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(24, 23, 21, 0.94);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.chinese-font-switch-pill:hover {
  background: #000000;
  transform: translateY(-2px);
  border-color: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.dot-amber {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5b083;
  box-shadow: 0 0 8px rgba(229, 176, 131, 0.8);
  flex-shrink: 0;
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ==========================================================================
   响应式断点
   ========================================================================== */
@media (max-width: 1024px) {
  .textile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .six-grid-layout {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
}

@media (width < 1024px) {
  .site-header {
    height: auto;
    min-height: 84px;
    padding-block: 12px;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: 12px;
    row-gap: 8px;
    margin-left: auto;
  }
  .btn-demo-pill {
    min-height: 44px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .site-header {
    min-height: 68px;
  }
  .header-inner > nav {
    display: none;
  }
  .header-actions {
    column-gap: 8px;
  }
  .btn-demo-pill {
    padding-inline: 10px;
  }
  .hero-bottom-grid {
    grid-template-columns: 1fr;
  }
  .textile-grid {
    grid-template-columns: 1fr;
  }
  .six-grid-cards {
    grid-template-columns: 1fr;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .chinese-font-switch-pill {
    bottom: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    min-height: 44px;
    font-size: 0.74rem;
    padding: 8px 14px;
  }
}
