/* ============================================================
   万象城入口 · 共享样式表 /assets/site.css
   含 reset、变量、中文排版、页头、页脚、通用组件
   ============================================================ */

:root {
  /* 色彩 · 自然矿物色体系 */
  --ink-deep: #0B2E29;
  --ink-mid: #14453C;
  --gold: #C9A24A;
  --gold-soft: #EBDCB4;
  --clay: #B4643C;
  --mist: #6F8CA0;
  --mist-soft: #DCE6EC;
  --cream: #F7F3EA;
  --rock: #545A52;
  --line: #C9C7BC;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);

  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;

  /* 阴影 */
  --shadow-sm: 0 4px 14px rgba(11, 46, 41, 0.07);
  --shadow-md: 0 10px 30px rgba(11, 46, 41, 0.10);
  --shadow-lg: 0 22px 52px rgba(11, 46, 41, 0.16);

  /* 形状 */
  --radius-panel: 20px;
  --radius-deep: 24px;
  --radius-pill: 999px;

  /* 节奏 */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gap-loose: 96px;
  --gap-mid: 64px;
  --gap-tight: 40px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--rock);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, li, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 中文排版与标题层级 ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: 0.01em;
}

h1 { font-size: 40px; line-height: 1.25; }
h2 { font-size: 28px; line-height: 1.35; }
h3 { font-size: 22px; line-height: 1.45; }

p { max-width: 38em; }

.page-title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-deep);
}

.section-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-deep);
}

.lede {
  font-size: 17px;
  line-height: 1.85;
  color: var(--rock);
  max-width: 38em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
}

/* ---------- 无障碍 ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 130;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink-deep);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--gap-tight); }
.section-mid { padding-block: var(--gap-mid); }
.section-loose { padding-block: var(--gap-loose); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .section-loose { padding-block: 56px; }
  .section-mid { padding-block: 40px; }
  .page-title, h1 { font-size: 30px; }
  .section-title, h2 { font-size: 23px; }
  .container { padding-inline: 20px; }
}

/* ---------- 画板 / 面板 ---------- */
.panel {
  background: var(--cream);
  border: 1px solid rgba(201, 199, 188, 0.72);
  border-radius: var(--radius-panel);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.panel-dark {
  background: var(--ink-deep);
  color: rgba(247, 243, 234, 0.82);
  border-radius: var(--radius-deep);
  padding: 40px;
  border: 1px solid rgba(235, 220, 180, 0.14);
}
.panel-dark h2,
.panel-dark h3,
.panel-dark .section-title { color: var(--gold-soft); }
.panel-dark p { color: rgba(247, 243, 234, 0.78); }

.panel-note {
  background: var(--gold-soft);
  border: 1px solid rgba(201, 162, 74, 0.30);
  border-radius: var(--radius-panel);
  padding: 28px;
  color: #5C4A1E;
}
.panel-note p { color: #5C4A1E; }

@media (max-width: 760px) {
  .panel, .panel-dark { padding: 26px; }
  .panel-note { padding: 22px; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease),
              transform .22s var(--ease);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink-deep);
  box-shadow: 0 6px 18px rgba(201, 162, 74, 0.28);
}
.btn-gold:hover { background: #D8B45E; transform: translateY(-1px); }

.btn-ink {
  background: var(--ink-deep);
  color: var(--cream);
}
.btn-ink:hover { background: var(--ink-mid); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-deep);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-mid);
  background: rgba(20, 69, 60, 0.06);
  color: var(--ink-mid);
}

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--mist-soft);
  color: var(--ink-mid);
}
.tag-gold { background: var(--gold-soft); color: #6B5218; }
.tag-clay { background: rgba(180, 100, 60, 0.14); color: var(--clay); }
.tag-mist { background: var(--mist-soft); color: #3F5B6D; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--rock);
}
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}
.breadcrumb li:last-child::after { content: ""; margin: 0; }
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.breadcrumb a:hover { color: var(--ink-mid); text-decoration: underline; }

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--mist-soft);
  aspect-ratio: 16 / 10;
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame.is-wide { aspect-ratio: 21 / 9; }
.media-frame.is-tall { aspect-ratio: 4 / 5; }
.media-frame.is-square { aspect-ratio: 1 / 1; }
.media-frame.is-dark { background: var(--ink-mid); }
.media-frame.is-gold { background: var(--gold-soft); }

/* ============================================================
   页头 · 悬浮胶囊导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-block: 14px 22px;
  background: linear-gradient(180deg,
              rgba(247, 243, 234, 0.96) 0%,
              rgba(247, 243, 234, 0.88) 62%,
              rgba(247, 243, 234, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: padding-block .28s var(--ease);
}
.site-header[data-scrolled] { padding-block: 9px 16px; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--clay));
  z-index: 130;
  pointer-events: none;
}

.header-shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 品牌岛 */
.brand-island {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(11, 46, 41, 0.10);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow .28s var(--ease), background .28s var(--ease);
}
.brand-island:hover { box-shadow: var(--shadow-md); }

.brand-mark {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-deep);
  line-height: 1.3;
}
.brand-line {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--rock);
  line-height: 1.4;
  white-space: nowrap;
}

/* 栏目胶囊 */
.nav-capsule {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(11, 46, 41, 0.08);
  box-shadow: var(--shadow-sm);
  transition: background .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header[data-scrolled] .nav-capsule {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item { display: flex; }

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 17px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  text-decoration: none;
  white-space: nowrap;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.nav-link:hover {
  background: rgba(201, 162, 74, 0.18);
  color: var(--ink-deep);
}
.nav-link[aria-current="page"] {
  background: var(--ink-deep);
  color: var(--gold-soft);
}

/* 右侧行动岛 */
.header-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tool-link:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

.fav-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: #5C4A1E;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 17px;
  border-radius: var(--radius-pill);
  background: var(--ink-deep);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background .22s var(--ease);
}
.nav-toggle:hover { background: var(--ink-mid); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* 页头响应式 */
@media (min-width: 1024px) {
  .header-shell { padding-inline: 32px; }
}
@media (min-width: 1440px) {
  .header-shell { max-width: 1400px; padding-inline: 48px; }
}
@media (max-width: 1180px) {
  .nav-link { padding: 0 13px; }
  .tool-link { display: none; }
}
@media (max-width: 980px) {
  .site-header { padding-block: 12px 18px; }
  .brand-island { flex: 1 1 auto; min-width: 0; padding: 8px 16px; }
  .brand-mark { font-size: 16px; }
  .brand-line {
    font-size: 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-capsule {
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 10px;
    border-radius: 24px;
    background: rgba(247, 243, 234, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(11, 46, 41, 0.10);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s linear;
  }
  .nav-capsule[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link {
    height: 50px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 15px;
  }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 700px) {
  .brand-line { display: none; }
}
@media (max-width: 420px) {
  .brand-mark { font-size: 15px; }
  .btn-gold { padding: 0 15px; font-size: 14px; }
  .fav-badge { display: none; }
}

/* ============================================================
   页脚 · 深墨绿收口面板
   ============================================================ */
.site-footer {
  margin-top: 96px;
  padding-block: 72px 34px;
  background: var(--ink-deep);
  color: rgba(247, 243, 234, 0.78);
  border-radius: 32px 32px 0 0;
}

.footer-shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1024px) {
  .footer-shell { padding-inline: 32px; }
}
@media (min-width: 1440px) {
  .footer-shell { max-width: 1400px; padding-inline: 48px; }
}

.footer-head {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(235, 220, 180, 0.16);
}

.footer-mark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  margin-bottom: 14px;
  line-height: 1.3;
}
.footer-slogan {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(247, 243, 234, 0.72);
  max-width: 30em;
}
.footer-domain {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(201, 162, 74, 0.9);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.footer-col-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  display: inline-block;
  padding-block: 2px;
  font-size: 15px;
  color: rgba(247, 243, 234, 0.74);
  text-decoration: none;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-list a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 40px;
  border-bottom: 1px solid rgba(235, 220, 180, 0.16);
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(201, 162, 74, 0.92);
}
.contact-value {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.78);
  word-break: break-word;
}
.contact-value.is-mono {
  font-family: var(--mono);
  letter-spacing: 0.02em;
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
}
.footer-note {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(247, 243, 234, 0.5);
  max-width: 78em;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(247, 243, 234, 0.52);
}
.footer-icp {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.footer-copy { letter-spacing: 0.02em; }

@media (max-width: 980px) {
  .site-footer { margin-top: 64px; padding-block: 56px 30px; }
  .footer-head { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 34px; }
  .footer-nav { gap: 22px; }
  .footer-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-block: 30px; }
}
@media (max-width: 560px) {
  .site-footer { border-radius: 24px 24px 0 0; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   显现动画
   ============================================================ */
html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}
html[data-js="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   减少动态效果
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html[data-js="on"] [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-header,
  .nav-capsule,
  .footer-list a,
  .btn { transition: none; }
}
