/* ===================================================================
   DEEPSEEK SHANSHUI V2 FINAL - 实景山水 · 宋画构图 · 摄影级云雾山海
   设计哲学：
   - 摄影级云雾山海，宋画构图：远山含黛，千顷烟岚，计白当黑。
   - 官网一张照片即全部：Hero 处一整幅横贯的摄影级云山画卷奠定全站气魄。
   - 题字「探索未至之境」落在留白处：右上角纯净虚白水汽中，竖排金石书体，空灵出尘。
   - 印章大不过一字：朱砂小方印精确限定为 18px × 18px，不偏不倚落款于题字末尾。
   - 墨玉黑底、宣纸暖雾、黛青矿物岩彩、朱砂点睛，杜绝一切 AI 渐变味。
=================================================================== */

:root {
  /* 宋代山水岩彩与墨水色谱 */
  --ink-void: #0A0D0E;            /* 焦墨玄底 */
  --ink-slate: #121618;           /* 端砚黑石板 */
  --ink-paper: #F3F1EA;           /* 澄心堂宣纸白 */
  --ink-mineral-cyan: #1E332E;    /* 绢本矿物石青 */
  --ink-mist-gray: #B8C2BC;       /* 烟岚浮云灰 */
  --ink-wash-border: rgba(184, 194, 188, 0.14);
  --ink-wash-hover: rgba(184, 194, 188, 0.35);

  /* 朱砂小印色标 (大不过一字) */
  --seal-cinnabar: #8C2215;       /* 正色朱砂 */
  --seal-edge: #6D160C;           /* 泥封暗红 */
  --seal-char: #FDFBF7;           /* 阴刻/阳刻白文 */

  /* 现代阅读对比 */
  --text-pure: #F7F5F0;
  --text-mist: #CFD9D3;
  --text-subtle: #82918B;
  --code-slate: #07090A;

  /* 字体家族 */
  --font-serif: "Songti SC", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", STSong, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* 结构基准 */
  --nav-height: 48px;
  --max-width: 1240px;
}

/* 全局重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--ink-void);
  color: var(--text-pure);
}

body {
  font-family: var(--font-sans);
  background-color: var(--ink-void);
  line-height: 1.65;
  color: var(--text-pure);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* 宣纸水墨微噪大气背景 */
.shanshui-scroll-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  background: 
    radial-gradient(circle at 80% 25%, rgba(184, 194, 188, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(30, 51, 46, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #080A0B 0%, #0F1315 45%, #0A0D0E 100%);
}

.shanshui-scroll-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(243, 241, 234, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* 1. 紧凑导航栏 (始终吸顶，48px 矮导航，不抢主视觉) */
.shanshui-v2-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 13, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-wash-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-pure);
}

.brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
}

.brand-text-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #FFFFFF;
}

.brand-desc {
  font-size: 0.74rem;
  color: var(--text-subtle);
  border-left: 1px solid rgba(184, 194, 188, 0.2);
  padding-left: 0.5rem;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-mist);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink-mist-gray);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-enter-mist {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 51, 46, 0.7);
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  border: 1px solid rgba(184, 194, 188, 0.28);
  transition: all 0.25s ease;
  letter-spacing: 0.06em;
}

.btn-enter-mist:hover {
  background: rgba(30, 51, 46, 1);
  border-color: rgba(184, 194, 188, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* 页面主要视界容器 */
.shanshui-page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 2. Hero 价值宣称 (实景山水 — 摄影级云雾山海，宋画构图。官网一张照片即全部，题字「探索未至之境」落在留白处，印章大不过一字) */
.hero-scroll-monolith {
  padding-top: calc(var(--nav-height) + 2.2rem);
  padding-bottom: 3.5rem;
  position: relative;
}

/* 摄影级实景山海视界长卷 (官网一张照片即全部) */
.shanshui-panoramic-scroll {
  position: relative;
  width: 100%;
  min-height: 540px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(184, 194, 188, 0.2);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.2rem 3.5rem;
  background-color: #0A0D0E;
}

/* 摄影级实景全景底图：一张照片即全部 (使用 2.webp 实景巨幅全景) */
.shanshui-master-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.1) brightness(0.66) saturate(0.85);
  transform: scale(1.02);
  z-index: 1;
}

/* 宋画烟岚水墨虚白遮罩 (左侧深邃墨韵衬托文字，右上空灵虚白留给题字) */
.shanshui-ink-veil {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(10, 13, 14, 0.94) 0%, rgba(10, 13, 14, 0.76) 38%, rgba(10, 13, 14, 0.22) 72%, rgba(10, 13, 14, 0.58) 100%),
    linear-gradient(180deg, rgba(10, 13, 14, 0.75) 0%, transparent 45%, rgba(10, 13, 14, 0.92) 100%);
  z-index: 2;
}

/* 宋画留白处题字与朱砂印章 (题字「探索未至之境」落在留白处，印章大不过一字) */
.shanshui-inscription-chamber {
  position: absolute;
  top: 3rem;
  right: 3.8rem;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  pointer-events: none;
}

/* 竖排题字「探索未至之境」 */
.inscription-calligraphy-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 255, 255, 0.25);
  line-height: 1.2;
}

/* 印章大不过一字 (精确限定为 18px × 18px，正红色朱砂小方印，大不过一字) */
.cinnabar-seal-exact {
  width: 18px;
  height: 18px;
  background: var(--seal-cinnabar);
  border: 1px solid var(--seal-edge);
  box-shadow: 
    inset 0 0 1.5px rgba(0, 0, 0, 0.5),
    0 2px 5px rgba(0, 0, 0, 0.6);
  border-radius: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  transform: rotate(-1deg);
}

.cinnabar-seal-exact span {
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 900;
  color: var(--seal-char);
  line-height: 1;
  letter-spacing: 0;
  display: block;
}

/* Hero 内容层 (位于长卷左侧) */
.hero-content-block {
  position: relative;
  z-index: 4;
  max-width: 660px;
}

/* 小状态标签 (例如 Public Preview) */
.status-tag-shanshui {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.26rem 0.72rem;
  background: rgba(10, 13, 14, 0.8);
  border: 1px solid rgba(184, 194, 188, 0.24);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-mist-gray);
  margin-bottom: 1.5rem;
}

.status-dot-emerald {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #6EE7B7;
  box-shadow: 0 0 8px #6EE7B7;
}

/* 超大标题 (说清产品是什么，唯一 h1) */
.hero-title-master {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85);
}

.hero-title-master .ink-highlight {
  color: #E6EFEA;
}

/* 两三行副标题 (说明解决什么问题、采用什么架构) */
.hero-subtitle-master {
  font-size: 1.05rem;
  color: var(--text-mist);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 610px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* 两个按钮：主按钮引导下载或开始使用，辅助按钮指向命令行或文档 */
.hero-action-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.btn-primary-inkwell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: #0A0D0E;
  padding: 0.85rem 1.9rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.btn-primary-inkwell:hover {
  background: #E5ECE7;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
}

.btn-secondary-mistwell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(18, 22, 24, 0.85);
  color: var(--text-pure);
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(184, 194, 188, 0.3);
  transition: all 0.25s ease;
  letter-spacing: 0.04em;
}

.btn-secondary-mistwell:hover {
  background: rgba(30, 51, 46, 0.65);
  border-color: rgba(184, 194, 188, 0.55);
}

/* 3. 产品核心 UI 舞台 (正下方放一块大的产品界面预览，用真实界面代替抽象插画，配 1.webp) */
.stage-section-shanshui {
  margin-top: 3rem;
  margin-bottom: 4.5rem;
}

.stage-chassis-inkwell {
  background: #0C0F10;
  border: 1px solid rgba(184, 194, 188, 0.2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.stage-topbar-inkwell {
  background: #121719;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(184, 194, 188, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trio-ink-dots {
  display: flex;
  gap: 6px;
}

.trio-ink-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(184, 194, 188, 0.25);
}

.stage-title-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
  letter-spacing: 0.06em;
}

.stage-visual-container {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #060809;
}

.stage-visual-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: contrast(1.02);
}

/* 4. 核心特性矩阵 (两列并排 + 通栏卡片，配代码/Diff与组件示意，配 3.webp, 5.webp) */
.matrix-section-shanshui {
  margin-bottom: 4.5rem;
}

.section-head-shanshui {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-kicker-shanshui {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-mist-gray);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title-shanshui {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-desc-shanshui {
  font-size: 0.98rem;
  color: var(--text-subtle);
  max-width: 600px;
  margin: 0 auto;
}

/* 两列并排 */
.matrix-grid-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-bottom: 1.75rem;
}

.matrix-card-inkwell {
  background: rgba(18, 22, 24, 0.75);
  border: 1px solid var(--ink-wash-border);
  border-radius: 6px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.matrix-card-inkwell:hover {
  border-color: var(--ink-wash-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.card-kicker-shanshui {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-mist-gray);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.card-title-shanshui {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
  letter-spacing: 0.03em;
}

.card-desc-shanshui {
  font-size: 0.92rem;
  color: var(--text-mist);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* 卡片内部配图容器 (内嵌 3.webp) */
.card-visual-frame {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(184, 194, 188, 0.15);
  margin-bottom: 1.25rem;
  background: #060809;
}

.card-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* 代码或 Unified Diff 示意 */
.code-diff-scroll {
  background: var(--code-slate);
  border: 1px solid rgba(184, 194, 188, 0.15);
  border-radius: 4px;
  padding: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-mist);
  overflow-x: auto;
}

.diff-add {
  color: #6EE7B7;
  background: rgba(110, 231, 183, 0.08);
  display: block;
  padding: 0 4px;
}

.diff-del {
  color: #F87171;
  background: rgba(248, 113, 113, 0.08);
  display: block;
  padding: 0 4px;
}

.diff-meta {
  color: var(--text-subtle);
}

/* 通栏卡片：高阶能力 (执行轨迹、可观测性、定时自动化，配 5.webp) */
.matrix-card-fullspan {
  background: rgba(18, 22, 24, 0.75);
  border: 1px solid var(--ink-wash-border);
  border-radius: 6px;
  padding: 2.2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  transition: all 0.3s ease;
}

.matrix-card-fullspan:hover {
  border-color: var(--ink-wash-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* 5. 零摩擦起步 (单独一块快速开始，只展示一条可复制命令) */
.zerofriction-section-shanshui {
  margin-bottom: 4.5rem;
}

.zerofriction-scroll-slab {
  background: linear-gradient(135deg, rgba(18, 22, 24, 0.95) 0%, rgba(12, 15, 17, 0.95) 100%);
  border: 1px solid rgba(184, 194, 188, 0.22);
  border-radius: 6px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.zerofriction-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.6rem;
}

.zerofriction-desc {
  font-size: 0.92rem;
  color: var(--text-subtle);
  margin-bottom: 1.8rem;
}

.command-box-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #060809;
  border: 1px solid rgba(184, 194, 188, 0.3);
  padding: 0.9rem 1.6rem;
  border-radius: 4px;
  max-width: 650px;
  width: 100%;
}

.command-str-scroll {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #A7F3D0;
  word-break: break-all;
}

.btn-copy-scroll {
  background: rgba(30, 51, 46, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(184, 194, 188, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy-scroll:hover {
  background: rgba(30, 51, 46, 1);
  border-color: rgba(184, 194, 188, 0.6);
}

/* 6. 生态号召 (开源协议、文档、插件生态、论文或社区入口) */
.community-section-shanshui {
  margin-bottom: 5rem;
}

.community-grid-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.community-card-link {
  background: rgba(18, 22, 24, 0.75);
  border: 1px solid var(--ink-wash-border);
  border-radius: 6px;
  padding: 1.75rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.community-card-link:hover {
  border-color: var(--ink-wash-hover);
  transform: translateY(-3px);
  background: rgba(25, 32, 34, 0.85);
}

.community-icon-scroll {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--ink-mist-gray);
}

.community-name-scroll {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.45rem;
}

.community-desc-scroll {
  font-size: 0.82rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

/* 7. 极简页脚 (最底部一行低对比度信息：版权、开源协议，以及隐私政策、文档等链接) */
.shanshui-v2-footer {
  border-top: 1px solid var(--ink-wash-border);
  padding: 2.2rem 0;
  background: #080A0B;
}

.footer-inner-scroll {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-stamp-scroll {
  font-size: 0.8rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

.footer-stamp-scroll strong {
  color: var(--text-mist);
  font-weight: 600;
}

.footer-nav-scroll {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav-scroll a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-nav-scroll a:hover {
  color: #FFFFFF;
}

/* 响应式断点适配 */
@media (max-width: 992px) {
  .shanshui-panoramic-scroll {
    padding: 2.5rem 2rem;
    min-height: auto;
  }
  .shanshui-inscription-chamber {
    position: static;
    margin-bottom: 1.5rem;
    writing-mode: horizontal-tb;
    flex-direction: row;
    align-items: center;
  }
  .inscription-calligraphy-text {
    writing-mode: horizontal-tb;
    letter-spacing: 0.2em;
    font-size: 1.25rem;
  }
  .matrix-grid-dual {
    grid-template-columns: 1fr;
  }
  .matrix-card-fullspan {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .community-grid-quad {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-title-master {
    font-size: 2rem;
  }
  .community-grid-quad {
    grid-template-columns: 1fr;
  }
  .footer-inner-scroll {
    flex-direction: column;
    align-items: flex-start;
  }
}
