/* ==========================================================================
   未笺 NORVAE · 2026-2027 前沿扁平美学官方网站样式表
   美学定位：扁平化、温柔舒心、安心、高级感、纯粹软件亮点介绍
   ========================================================================== */

:root {
  /* 基础纸墨色彩体系 (温柔、安心、克制) */
  --bg-page: #FAF8F5;
  --bg-card: rgba(255, 255, 255, 0.76);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-card-subtle: #F3EEE7;
  --bg-elevated: #FFFFFF;

  --ink-primary: #15272D;
  --ink-secondary: #4B5E66;
  /* 可读性：原 #7F9196 在纸底上对比度仅 3.10（不达 AA），改后 5.04 */
  --ink-muted: #5C6E73;
  /* 原 #A6B4B8 仅 2.01（几乎看不清），改后 4.65，仍比 muted 浅一档 */
  --ink-faint: #63737A;

  --accent-teal: #235967;
  --accent-teal-deep: #163B44;
  --accent-teal-light: #4A8392;
  --accent-teal-soft: rgba(35, 89, 103, 0.08);

  --accent-seal: #A34838;
  --accent-seal-soft: rgba(163, 72, 56, 0.08);
  --accent-warm-sand: #EFE9DE;

  /* 超精细扁平线条与微晶光影 */
  --border-subtle: rgba(21, 39, 45, 0.08);
  --border-medium: rgba(21, 39, 45, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.85);

  --shadow-flat-sm: 0 2px 8px rgba(21, 39, 45, 0.03);
  --shadow-flat-md: 0 10px 28px rgba(21, 39, 45, 0.04);
  --shadow-flat-lg: 0 18px 48px rgba(21, 39, 45, 0.06);

  /* 圆角规范 (现代有机圆角) */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 9999px;

  /* 字体规范 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-display: "XYDisplay", "Noto Serif SC", Georgia, serif;
  /* 信纸上的字：楷体优先（像手写），回退到衬线 */
  --font-hand: "Kaiti SC", "STKaiti", "KaiTi", "XYDisplay", "Noto Serif SC", Georgia, serif;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 优雅字形嵌入 */
@font-face {
  font-family: "XYDisplay";
  /* 仓库里实际存在的是 97KB 的子集 woff2；之前指向的 .ttf 未随站发布，一直 404 + 回退系统字体 */
  src: url("assets/fonts/xy-display.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-page);
  color: var(--ink-primary);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 呼吸式背景微噪与柔和底晕 (扁平高级感) */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 15% 10%, rgba(235, 243, 242, 0.8), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 35%, rgba(246, 239, 229, 0.65), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 90%, rgba(239, 245, 245, 0.7), transparent 65%),
    var(--bg-page);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("assets/grain.svg");
  background-repeat: repeat;
}

/* 无障碍跳过链接 */
.skip-to-content {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 999;
  background: var(--ink-primary);
  color: #FFF;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 16px;
}

/* 容器架构 */
.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
}

/* ==========================================================================
   顶栏 (Header / Navigation)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(21, 39, 45, 0.06);
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* 导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--accent-teal);
}

/* 顶栏右侧功能区 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ambient-sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  /* 可点音频开关：边界不该淡到看着像禁用态 */
  border: 1px solid var(--border-medium);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn-ambient-sound:hover {
  background: #FFF;
  border-color: var(--border-medium);
  color: var(--accent-teal);
  box-shadow: var(--shadow-flat-sm);
}

.btn-ambient-sound.is-playing {
  background: var(--accent-teal-soft);
  border-color: rgba(35, 89, 103, 0.22);
  color: var(--accent-teal);
}

/* 听海波形：9 根发丝线，高度由 ambient.js 根据真实音频频谱实时驱动。
   没有脚本 / 拿不到频谱时，退回到一整个安静的呼吸态，不做跳动动画。 */
.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}

.sound-waves span {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.68;
  transition: height 0.12s linear, opacity 0.3s ease;
}

.btn-ambient-sound.is-playing .sound-waves span {
  opacity: 1;
}

.btn-ambient-sound.is-playing .sound-waves {
  animation: soundBreathe 2.8s ease-in-out infinite alternate;
}

@keyframes soundBreathe {
  from { opacity: 0.86; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-ambient-sound.is-playing .sound-waves {
    animation: none;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   首屏 (Hero Section) · 见字如面，给时间的重量
   ========================================================================== */
.hero-section {
  padding: 72px 0 72px;
  text-align: center;
  position: relative;
}

/* 首屏品牌标识：徽标 + 「未笺」大字 + NORVAE + 发丝线（进门先看到名字） */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}


.hero-brand-word {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2.1rem + 2.6vw, 3.9rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink-primary);
  letter-spacing: 0.26em;
  /* 末字右侧也有字距，补偿后才是真居中 */
  text-indent: 0.26em;
  margin: 0;
}

.hero-brand-latin {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  color: var(--ink-muted);
}

.hero-brand-rule {
  width: min(320px, 62%);
  height: 1px;
  margin-top: 26px;
  background: var(--border-medium);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(35, 89, 103, 0.06);
  border: 1px solid rgba(35, 89, 103, 0.12);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-teal);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--ink-primary);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-heading span {
  color: var(--accent-teal);
  font-style: normal;
}

.hero-prose {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  line-height: 1.85;
  color: var(--ink-secondary);
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: 44px;
  text-wrap: pretty;
}

/* 扁平诗意导言卡 (纯扁平纸张折叠与手迹美学，无手机模型) */
.hero-manifesto-card {
  max-width: 840px;
  margin-inline: auto;
  background: var(--bg-card);
  /* 更像一张真信纸：纸白 + 极浅横线 */
  background-color: var(--bg-elevated);
  /* 横格线只画在正文区（见 .manifesto-body）：画在整张卡上会和页眉、正文起点都错位 */
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 46px 52px 38px;
  box-shadow: var(--shadow-flat-md);
  position: relative;
  text-align: left;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.manifesto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border-medium);
  margin-bottom: 22px;
}

.manifesto-source {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.manifesto-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-seal-soft);
  color: var(--accent-seal);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
}

.manifesto-time {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.manifesto-body {
  font-family: var(--font-hand);
  font-size: 16.5px;
  /* 行高必须等于横格线间隔（32px），文字才会逐行坐在线上 */
  line-height: 32px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 31px,
    rgba(21, 39, 45, 0.055) 31px,
    rgba(21, 39, 45, 0.055) 32px
  );
  color: var(--ink-primary);
  letter-spacing: 0.02em;
}

.manifesto-body p + p {
  /* 段落间空整整一行，否则段与线就错位了 */
  margin-top: 32px;
}

/* 读信感：抬头与落款 */
.manifesto-salute {
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink-primary);
  margin-bottom: 14px;
}

.manifesto-sign {
  margin-top: 26px;
  text-align: right;
  color: var(--ink-secondary);
}

.manifesto-sign span {
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.manifesto-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.manifesto-postmark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stamp-mini-thumb {
  width: 44px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(21, 39, 45, 0.08));
}

.postmark-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.postmark-text strong {
  display: block;
  font-size: 13px;
  color: var(--ink-primary);
}

.btn-hero-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent-teal);
  color: #FFF;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(35, 89, 103, 0.2);
  transition: all 0.25s var(--ease-out);
}

.btn-hero-explore:hover {
  background: var(--accent-teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(35, 89, 103, 0.28);
}

/* ==========================================================================
   四项初心准则 (Philosophy Section) · 安心承诺
   ========================================================================== */
.philosophy-section {
  padding: 72px 0 88px;
}

.section-head-center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-summary {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-secondary);
  text-wrap: pretty;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  flex-direction: column;
}

.philosophy-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-flat-md);
  transform: translateY(-2px);
}

.card-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-teal);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.philosophy-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.philosophy-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   软件五大核心亮点 (Features Bento Showcase) · 扁平高级感
   ========================================================================== */
.features-section {
  padding: 88px 0;
  background: linear-gradient(180deg, transparent, rgba(235, 243, 242, 0.45) 30%, transparent 100%);
}

.features-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-flat-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-flat-lg);
  transform: translateY(-2px);
}

.bento-card-col-8 {
  grid-column: span 8;
}

.bento-card-col-4 {
  grid-column: span 4;
}

.bento-card-col-6 {
  grid-column: span 6;
}

.bento-card-col-12 {
  grid-column: span 12;
}

.bento-header {
  margin-bottom: 24px;
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}


.bento-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.bento-desc {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-secondary);
  max-width: 58ch;
}

/* 扁平艺术视窗 (Flat Art Panels) · 纯几何与极简线框，替代手机截图 */
.bento-art-panel {
  margin-top: 24px;
  border-radius: var(--radius-md);
  background: rgba(250, 248, 245, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 24px 28px;
  position: relative;
}

/* 亮点 1 艺术组件: 慢海漂流航迹 */
.sea-journey-art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  padding: 16px 0;
}

.sea-journey-path {
  position: absolute;
  left: 40px;
  right: 40px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--accent-teal-light) 0, var(--accent-teal-light) 6px, transparent 6px, transparent 12px);
  z-index: 1;
}

.sea-node {
  position: relative;
  z-index: 2;
  background: #FFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 4px 14px rgba(21, 39, 45, 0.05);
  text-align: center;
}

.sea-node strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink-primary);
}

.sea-node span {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.sea-node-floating {
  background: var(--accent-teal-deep);
  color: #FFF;
  border-color: var(--accent-teal);
  box-shadow: 0 6px 16px rgba(22, 59, 68, 0.25);
}

.sea-node-floating strong {
  color: #FFF;
}
.sea-node-floating span {
  color: rgba(255, 255, 255, 0.75);
}

/* 亮点 2 艺术组件: 纸张哲学横线与书信排版 */
.paper-prose-sample {
  position: relative;
  background: #FFFDF9;
  border-radius: var(--radius-sm);
  border: 1px solid #E5E0D5;
  padding: 24px 26px;
  box-shadow: var(--shadow-flat-sm);
}

.ruled-lines-layer {
  position: absolute;
  inset: 24px 26px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 27px,
    rgba(75, 94, 102, 0.09) 27px,
    rgba(75, 94, 102, 0.09) 28px
  );
  pointer-events: none;
}

.paper-prose-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 28px;
  color: var(--ink-primary);
}

/* 亮点 3 艺术组件: 树友生长微纪实 */
.tree-grow-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #FFF;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-teal);
  flex-shrink: 0;
}

.timeline-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink-primary);
}

.timeline-info span {
  font-size: 11.5px;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .bento-card-col-8,
  .bento-card-col-4,
  .bento-card-col-6 {
    grid-column: span 12;
  }
  /* 窄屏沿用原本的三段航迹（保留中间深色那一段），只把节奏和层级做精致 */
  .bento-art-panel {
    padding: 20px;
  }
  .sea-journey-art {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 4px 0;
  }
  .sea-journey-path {
    display: none;
  }
  .sea-node {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: #FFF;
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-flat-sm);
    text-align: left;
  }
  .sea-node strong {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
  .sea-node span {
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
  }
  .sea-node-floating {
    background: var(--accent-teal-deep);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(22, 59, 68, 0.18);
  }
}

/* ==========================================================================
   四枚手绘题材邮票 (Stamps Showcase) · 扁平透明齿孔画廊
   ========================================================================== */
.stamps-section {
  padding: 88px 0 96px;
}

.stamps-flex-gallery {
  display: grid;
  /* 只有四枚邮票：之前写成 7 列，右侧空了 3 列，卡片看起来偏左 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stamp-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s var(--ease-smooth);
}

.stamp-item-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-flat-md);
  transform: translateY(-4px);
}

.stamp-graphic-wrap {
  width: 76px;
  height: 92px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
}

.stamp-graphic-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(21, 39, 45, 0.08));
  transition: transform 0.3s ease;
}

.stamp-item-card:hover .stamp-graphic-wrap img {
  transform: scale(1.06);
}

.stamp-item-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.stamp-item-card p {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

@media (max-width: 1120px) {
  .stamps-flex-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 700px) {
  .stamps-flex-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .stamps-flex-gallery {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   合规与资质公示 (Compliance & Legal Section)
   ========================================================================== */
.compliance-section {
  padding: 64px 0 88px;
}

.compliance-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-flat-sm);
}

.compliance-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.compliance-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.compliance-header p {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
}

.comp-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comp-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}

.comp-value {
  font-size: 14.5px;
  color: var(--ink-primary);
  font-weight: 500;
}

.comp-value a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.comp-value a:hover {
  color: var(--accent-teal-deep);
}

@media (max-width: 700px) {
.compliance-block + .compliance-block {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border-medium);
}

.compliance-block-header {
  margin-bottom: 18px;
}

.compliance-block-header h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.compliance-block-header p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.comp-value-status {
  color: var(--accent-seal);
  font-weight: 600;
}

  .compliance-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   诗意收尾 (Closing Verse)
   ========================================================================== */
.closing-verse-section {
  padding: 64px 0 80px;
  text-align: center;
}

.verse-block {
  max-width: 600px;
  margin-inline: auto;
}

.verse-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  line-height: 1.6;
  color: var(--ink-primary);
  margin-bottom: 24px;
}

.btn-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.btn-back-top:hover {
  border-color: var(--border-medium);
  color: var(--accent-teal);
  background: #FFF;
}

/* ==========================================================================
   页脚 (Site Footer) · 严格遵照合规标准与用户指令
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(250, 248, 245, 0.95);
  padding: 56px 0 72px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-primary);
}

.footer-motto {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  color: var(--ink-muted);
}

.footer-legal-line a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-line a:hover {
  color: var(--accent-teal);
}

.police-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-secondary);
}

.police-badge-icon {
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
}

.police-badge-wrap .police-badge-icon {
  width: 16px;
  height: 17px;
}

.comp-value .police-badge-icon {
  width: 20px;
  height: 22px;
  margin-right: 6px;
  vertical-align: -5px;
}

.police-badge-wrap svg {
  color: var(--accent-teal);
}

.footer-legal-line a:focus-visible,
.comp-value a:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-divider {
  opacity: 0.3;
}

@media (max-width: 640px) {
  .hero-section {
    padding: 56px 0 44px;
  }
  .hero-manifesto-card {
    padding: 24px 20px;
  }
  .bento-card {
    padding: 28px 20px;
  }
  .compliance-sheet {
    padding: 30px 22px;
  }
}

/* ==========================================================================
   下载入口与下载页 (Download entry / page)
   ========================================================================== */
.download-section {
  padding: 72px 0 40px;
}

.download-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 38px 42px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 238, 231, 0.76));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-flat-md);
}

.download-ribbon::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: 0;
  width: 148px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-teal-light));
  opacity: 0.55;
}

.download-ribbon-copy .section-title {
  margin-bottom: 10px;
}

.download-ribbon-copy p {
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-secondary);
}

.download-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.download-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
}

.download-ribbon-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--accent-teal);
  color: #FFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(35, 89, 103, 0.18);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download-primary[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-download-primary:hover {
  background: var(--accent-teal-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 89, 103, 0.24);
}

.btn-download-primary:focus-visible,
.download-back:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
}

.download-note {
  color: var(--ink-muted);
  font-size: 12px;
}

.download-main {
  padding: 54px 0 48px;
}

.download-page-hero {
  padding: 18px 0 52px;
}

.download-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}

.download-back:hover {
  color: var(--accent-teal);
}

.download-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 52px;
  align-items: center;
}

.download-page-copy {
  max-width: 720px;
}

.download-page-title {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 2rem + 2vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--ink-primary);
}

.download-page-lead {
  max-width: 58ch;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.download-button-large {
  margin-top: 26px;
  min-height: 56px;
}

.download-version-inline {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.78;
}

.download-page-hint {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 12.5px;
}

.download-meta-list {
  margin-top: 34px;
  border-top: 1px solid var(--border-subtle);
}

.download-meta-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.download-meta-row dt {
  color: var(--ink-muted);
  font-size: 12.5px;
}

.download-meta-row dd code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
}

.download-meta-row dd {
  margin: 0;
  color: var(--ink-primary);
  font-size: 13.5px;
}


.download-ticket {
  min-height: 350px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #FFFDF9;
  border: 1px solid #E5E0D5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-flat-md);
  transform: rotate(1.2deg);
}

.download-ticket-head,
.download-ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.download-ticket-mark {
  color: var(--accent-seal);
  font-weight: 700;
}

.download-ticket-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.download-ticket-body img {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(21, 39, 45, 0.10);
}

.download-ticket-version {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-primary);
}

.download-ticket-caption {
  color: var(--ink-muted);
  font-size: 12px;
}

@media (max-width: 820px) {
  .download-ribbon,
  .download-page-grid {
    grid-template-columns: 1fr;
  }
  .download-ribbon::after {
    right: 28px;
  }
  .download-ticket {
    max-width: 430px;
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .download-section {
    padding: 52px 0 28px;
  }
  .download-ribbon {
    padding: 28px 22px;
    gap: 24px;
  }
  .download-ribbon-action {
    width: 100%;
  }
  .btn-download-primary {
    width: 100%;
  }
  .download-note {
    align-self: center;
  }
  .download-main {
    padding-top: 34px;
  }
  .download-page-grid {
    gap: 32px;
  }
  .download-page-title {
    font-size: clamp(2.2rem, 1.7rem + 5vw, 3.2rem);
  }
  .download-meta-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .download-ticket {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-download-primary {
    transition: none;
  }
}
