/* ============================================================
   匠心艺品官方网站 · 纹藏设计系统 v1.0
   风格：方案C 纹藏·数字展馆（玄墨黑 × 赭金 × 织锦红）
   ============================================================ */

:root {
  --bg-0: #0D0C0A;
  --bg-1: #131109;
  --bg-1: #14120E;
  --bg-2: #1B1913;
  --bg-3: #232015;
  --card: #201D15;
  --gold: #C9A063;
  --gold-l: #E6C88C;
  --gold-d: #8F6F42;
  --red: #8E2C2C;
  --red-l: #B0453E;
  --blue: #46647A;
  --ink-w: #F0EAD8;
  --ink-s: #C2B9A3;
  --ink-d: #978E7A;
  --line: rgba(201, 160, 99, .25);
  --line-soft: rgba(201, 160, 99, .12);
  --serif: 'STZhongsong', 'SimSun', 'Songti SC', 'Noto Serif SC', serif;
  --kai: 'KaiTi', 'STKaiti', '楷体', serif;
  --sans: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --en: 'Times New Roman', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background: var(--bg-1);
  color: var(--ink-s);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold-d); color: var(--ink-w); }

a { color: inherit; text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold-l); }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- 通用容器 ---------- */
.wrap { width: min(1240px, 92%); margin: 0 auto; }
.wrap-wide { width: min(1440px, 95%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(13,12,10,.85), rgba(13,12,10,0));
  transition: all .45s ease;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(13, 12, 10, .94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--kai); font-size: 22px; color: var(--gold);
  background: rgba(201, 160, 99, .06);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 3px;
  border: 1px solid rgba(201, 160, 99, .35);
}
.brand-txt .cn { font-family: var(--serif); font-size: 21px; color: var(--ink-w); letter-spacing: 6px; }
.brand-txt .en { font-family: var(--en); font-size: 10px; color: var(--gold); letter-spacing: 3.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px; color: var(--ink-s); letter-spacing: 2px;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: all .35s ease; transform: translateX(-50%);
}
.nav-links a:hover { color: var(--gold-l); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold-l); }
.nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--gold); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--bg-0);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero_phoenix.jpg') center / cover no-repeat;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 68% 45%, transparent 0%, rgba(13,12,10,.55) 55%, var(--bg-0) 100%),
    linear-gradient(to bottom, rgba(13,12,10,.6), transparent 30%, transparent 65%, var(--bg-0) 100%);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero-inner { position: relative; z-index: 2; padding: 120px 0 100px; width: 100%; }
.hero-tag { font-family: var(--en); font-size: 12px; letter-spacing: 6px; color: var(--gold); text-transform: uppercase; margin-bottom: 26px; }
.hero-title {
  font-family: var(--serif); color: var(--ink-w);
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: 14px; line-height: 1.25;
  text-shadow: 0 4px 40px rgba(0,0,0,.8);
}
.hero-title .gold { color: var(--gold-l); }
.hero-sub {
  margin-top: 30px; max-width: 560px;
  font-size: 15.5px; color: var(--ink-s); letter-spacing: 1.5px;
}
.hero-line { width: 90px; height: 1px; background: linear-gradient(to right, var(--gold), transparent); margin: 34px 0; }
.hero-meta { display: flex; gap: 46px; margin-top: 44px; flex-wrap: wrap; }
.hero-meta .item .num { font-family: var(--en); font-size: 30px; color: var(--gold-l); }
.hero-meta .item .num i { font-style: normal; font-size: 15px; color: var(--gold); margin-left: 3px; }
.hero-meta .item .lab { font-size: 12.5px; color: var(--ink-d); letter-spacing: 3px; margin-top: 4px; }

.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 4px; color: var(--ink-d);
}
.hero-scroll .bar { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--gold), transparent); animation: drop 2.2s ease-in-out infinite; }
@keyframes drop { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

.hero-side {
  position: absolute; right: 46px; top: 50%; transform: translateY(-50%); z-index: 3;
  writing-mode: vertical-rl; font-family: var(--kai);
  font-size: 15px; letter-spacing: 12px; color: rgba(201, 160, 99, .55);
  border-left: 1px solid var(--line-soft); padding-left: 18px;
}

/* ---------- 章节 ---------- */
.section { position: relative; padding: 110px 0; }
.section.bg2 { background: var(--bg-2); }
.section.dark { background: var(--bg-0); }

.sec-head { display: flex; align-items: flex-end; gap: 26px; margin-bottom: 18px; }
.sec-no {
  font-family: var(--en); font-size: 15px; color: var(--gold);
  letter-spacing: 2px; padding-bottom: 10px; white-space: nowrap;
}
.sec-no::after { content: ' —'; color: var(--gold-d); }
.sec-title {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px);
  color: var(--ink-w); letter-spacing: 8px; line-height: 1.3;
}
.sec-title .thin { color: var(--gold); font-size: .55em; letter-spacing: 4px; margin-left: 12px; }
.sec-en { font-family: var(--en); font-size: 11.5px; letter-spacing: 5px; color: var(--ink-d); text-transform: uppercase; margin: 8px 0 0; }
.sec-rule { height: 1px; background: linear-gradient(to right, var(--gold-d), var(--line-soft) 45%, transparent); margin: 26px 0 46px; position: relative; }
.sec-rule::before { content: ''; position: absolute; left: 0; top: -2.5px; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.sec-desc { max-width: 720px; color: var(--ink-s); margin-bottom: 40px; }
.sec-desc strong { color: var(--gold-l); font-weight: normal; }

/* ---------- 印章 ---------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: auto; padding: 13px 9px;
  background: var(--red);
  color: #F3E7CF; font-family: var(--kai); font-size: 14px; line-height: 1.3;
  letter-spacing: 3px; text-align: center;
  box-shadow: 0 4px 18px rgba(142, 44, 44, .4);
  writing-mode: vertical-rl;
}

/* ---------- 卷轴横滑区 ---------- */
.scroll-zone { position: relative; }
.scroll-row {
  display: flex; gap: 26px; overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }

.exhibit {
  flex: none; width: 300px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line-soft);
  transition: all .45s ease; position: relative;
}
.exhibit:hover { border-color: var(--gold); transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.exhibit .pic { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.exhibit .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; filter: brightness(.94); }
.exhibit:hover .pic img { transform: scale(1.06); filter: brightness(1.02); }
.exhibit .pic::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(240, 234, 216, .22); pointer-events: none; }
.exhibit .tag-no {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--en); font-size: 11px; letter-spacing: 2px; color: var(--ink-w);
  background: rgba(13,12,10,.72); padding: 3px 10px; border: 1px solid var(--line-soft);
}
.exhibit .info { padding: 20px 20px 22px; border-top: 1px solid var(--line-soft); }
.exhibit .info .cn { font-family: var(--serif); font-size: 19px; color: var(--ink-w); letter-spacing: 4px; }
.exhibit .info .en { font-family: var(--en); font-size: 10px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-top: 3px; }
.exhibit .info .desc { font-size: 12.5px; color: var(--ink-d); margin-top: 10px; line-height: 1.85; }

.scroll-ctl { display: flex; gap: 12px; margin-top: 6px; justify-content: flex-end; }
.scroll-ctl button {
  width: 42px; height: 42px; background: transparent;
  border: 1px solid var(--line); color: var(--gold);
  font-size: 16px; cursor: pointer; transition: all .3s;
  font-family: var(--en);
}
.scroll-ctl button:hover { background: var(--gold); color: var(--bg-0); }

/* ---------- 跑马灯 ---------- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 16px 0; background: rgba(201, 160, 99, .03);
}
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marq 36s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-size: 14.5px; color: var(--gold-d); letter-spacing: 6px; white-space: nowrap;
}
.marquee-track span i { font-style: normal; color: var(--gold); margin-right: 10px; font-family: var(--en); }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 淡入 ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; } .reveal.d4 { transition-delay: .48s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 34px; border: 1px solid var(--gold-d);
  color: var(--gold-l); font-size: 13.5px; letter-spacing: 4px;
  transition: all .35s; background: transparent; cursor: pointer;
}
.btn::after { content: '→'; font-family: var(--en); transition: transform .35s; }
.btn:hover { background: var(--gold); color: var(--bg-0); border-color: var(--gold); }
.btn:hover::after { transform: translateX(5px); }
.btn.ghost { border-color: var(--line-soft); color: var(--ink-s); }

/* ---------- 通用网格卡 ---------- */
.grid { display: grid; gap: 26px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }

.pcard { background: var(--card); border: 1px solid var(--line-soft); transition: all .4s; overflow: hidden; }
.pcard:hover { border-color: var(--gold); transform: translateY(-6px); }
.pcard .pic { aspect-ratio: 3/4; overflow: hidden; position: relative; }
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.pcard:hover .pic img { transform: scale(1.05); }
.pcard .cap { padding: 18px 20px; }
.pcard .cap .t { font-family: var(--serif); font-size: 17px; color: var(--ink-w); letter-spacing: 3px; }
.pcard .cap .s { font-size: 12px; color: var(--ink-d); margin-top: 6px; letter-spacing: 1px; }

/* ---------- 图文对排版 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .pic-wrap { position: relative; }
.split .pic-wrap .frame { position: absolute; inset: -16px; border: 1px solid var(--line-soft); pointer-events: none; }
.split .pic-wrap img { width: 100%; position: relative; z-index: 1; }
.split.rev .txt { order: -1; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--gold), var(--line-soft)); }
.tl-item { position: relative; padding: 0 0 44px 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -37px; top: 8px;
  width: 9px; height: 9px; background: var(--bg-1);
  border: 1px solid var(--gold); transform: rotate(45deg);
}
.tl-item .phase { font-family: var(--en); font-size: 11px; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; }
.tl-item .t { font-family: var(--serif); font-size: 21px; color: var(--ink-w); letter-spacing: 4px; margin: 6px 0 10px; }
.tl-item p { font-size: 13.5px; color: var(--ink-s); }

/* ---------- 数据条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.stats .cell { background: var(--bg-1); padding: 40px 24px; text-align: center; }
.stats .num { font-family: var(--en); font-size: 40px; color: var(--gold-l); }
.stats .num i { font-style: normal; font-size: 17px; color: var(--gold); margin-left: 4px; }
.stats .lab { font-size: 12.5px; color: var(--ink-d); letter-spacing: 3px; margin-top: 8px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-0); border-top: 1px solid var(--line-soft); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 56px; }
.footer .f-brand .cn { font-family: var(--serif); font-size: 24px; color: var(--ink-w); letter-spacing: 8px; }
.footer .f-brand .en { font-family: var(--en); font-size: 10.5px; color: var(--gold); letter-spacing: 4px; margin-top: 6px; text-transform: uppercase; }
.footer .f-brand p { font-size: 12.5px; color: var(--ink-d); margin-top: 18px; line-height: 2; max-width: 320px; }
.footer h4 { font-family: var(--serif); font-size: 15.5px; color: var(--gold-l); letter-spacing: 4px; margin-bottom: 20px; font-weight: normal; }
.footer li { font-size: 13px; color: var(--ink-d); margin-bottom: 11px; letter-spacing: 1px; }
.footer li a:hover { color: var(--gold-l); }
.footer li .en { font-family: var(--en); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--ink-d); letter-spacing: 1px;
}
.footer-bottom a { color: var(--ink-d); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 面包屑 / 页面 Hero ---------- */
.page-hero {
  position: relative; padding: 190px 0 100px;
  background: var(--bg-0); overflow: hidden;
}
.page-hero .ph-bg { position: absolute; inset: 0; opacity: .3; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .ph-mask { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,12,10,.75), var(--bg-0)); }
.page-hero .inner { position: relative; z-index: 2; }
.page-hero .crumb { font-size: 12px; color: var(--ink-d); letter-spacing: 2px; margin-bottom: 20px; }
.page-hero .crumb a:hover { color: var(--gold); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 52px); color: var(--ink-w); letter-spacing: 10px; }
.page-hero .ph-en { font-family: var(--en); font-size: 12px; color: var(--gold); letter-spacing: 5px; text-transform: uppercase; margin-top: 14px; }
.page-hero .ph-line { width: 80px; height: 1px; background: linear-gradient(to right, var(--gold), transparent); margin-top: 30px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 0; right: -300px; bottom: 0; width: 280px;
    background: rgba(13, 12, 10, .98); flex-direction: column;
    padding: 100px 40px; gap: 30px; border-left: 1px solid var(--line-soft);
    transition: right .4s ease;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 110; }
  .hero-side { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.rev .txt { order: 0; }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .exhibit { width: 76vw; }
  .brand-txt .cn { font-size: 17px; letter-spacing: 4px; }
  /* 手机可读性优化 */
  body { font-size: 14.5px; line-height: 1.95; }
  .hero-title { letter-spacing: 8px; }
  .hero-sub { font-size: 15px; }
  .hero-meta { gap: 22px 34px; margin-top: 34px; }
  .hero-meta .item .num { font-size: 26px; }
  .sec-title { letter-spacing: 5px; }
  .sec-desc { font-size: 14.5px; }
  .exhibit .info .desc { font-size: 13.5px; }
  .pcard .cap .t { font-size: 17.5px; }
  .pcard .cap .s { font-size: 13px; }
  .footer li { font-size: 13.5px; }
  .footer .f-brand p { font-size: 13px; }
  .footer-bottom { font-size: 12.5px; }
  .page-hero { padding: 150px 0 72px; }
  .page-hero h1 { letter-spacing: 7px; }
  /* iOS/Safari：控件字号 <16px 时聚焦会自动缩放页面 */
  .f-field input, .f-field select, .f-field textarea { font-size: 16px; }
  /* 触控目标加大（推荐 ≥44px） */
  .scroll-ctl button { width: 46px; height: 46px; }
  .btn { padding: 14px 28px; }
}
