/* ═══════════════════════════════════════════════════════════════
   一山红文化 YISHANHONG CULTURE · 官网首页样式
   设计系统：米黄为底 · 朱红为魂 · 鎏金为饰 · 书法为骨
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 色彩 */
  --cream: #F5EDDC;         /* 米黄 · 主底 */
  --cream-2: #EFE3CB;       /* 米黄深一档 */
  --cream-3: #FAF4E8;       /* 米黄浅一档 */
  --paper: #FDFAF3;         /* 纸白暖 */
  --ink: #2A2119;           /* 主墨 */
  --ink-2: #5C4F3D;         /* 次级文字 */
  --ink-3: #8A7A63;         /* 弱文字 */
  --red: #9C272B;           /* 朱红 · 主 */
  --red-deep: #7C1F23;
  --red-bright: #C0392F;
  --gold: #B5893C;          /* 鎏金 · 主 */
  --gold-soft: #D4B878;
  --gold-deep: #8C6A2F;
  --hairline: rgba(181, 137, 60, .4);
  --hairline-strong: rgba(181, 137, 60, .75);
  --dark: #231C14;

  --shadow-soft: 0 24px 60px -24px rgba(42, 33, 25, .22);
  --shadow-lift: 0 34px 80px -28px rgba(42, 33, 25, .34);

  /* 字体（全站黑体：--serif 变量现为黑体栈，历史引用处一并生效） */
  --serif: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Heiti SC', sans-serif;
  --sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;

  /* 动效 */
  --ease-out: cubic-bezier(.22, .9, .28, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);

  /* 布局 */
  --nav-h: 110px;
  --nav-links-h: 48px;
  --gutter: clamp(20px, 5vw, 72px);
  --sec-pad: clamp(64px, 9vw, 128px);
  --width: 1240px;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-3); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--gold), var(--gold-deep)); border-radius: 8px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─────────── 通用排版 ─────────── */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--gold-soft); }

.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(44px, 5vw, 68px);
  padding: 0 var(--gutter);
}
.sec-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.2;
  letter-spacing: .06em;
  color: var(--ink);
}
.sec-sub {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 15px;
  letter-spacing: .06em;
}

/* 滚动浮现 */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ─────────── 按钮 ─────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-indent: .16em;
  padding: 15px 32px;
  border-radius: 2px;
  transition: all .4s var(--ease-out);
  white-space: nowrap;
}
.btn-red {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(156, 39, 43, .55);
}
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(156, 39, 43, .65); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(140, 106, 47, .55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(140, 106, 47, .65); }
.btn-line {
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-line-invert {
  border: 1px solid rgba(212, 184, 120, .55);
  color: #F7F1E5;
  background: transparent;
}
.btn-line-invert:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 12.5px; }

/* ═══════════ 切入动画 · 鎏金扫光 ═══════════ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cream-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .6s var(--ease-out);
}
#preloader.done { opacity: 0; pointer-events: none; }

.pre-logo { width: min(260px, 52vw); color: var(--red); }
.pre-logo-svg { width: 100%; display: block; overflow: visible; }
.pre-logo-path { fill: var(--red); }

/* 鎏金扫光：沿 logo 横向扫过 */
.pre-logo { position: relative; }
.pre-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(212, 184, 120, .85) 50%, transparent 70%);
  mix-blend-mode: overlay;
  transform: translateX(-120%);
  animation: goldSweep 1.4s .2s var(--ease-expo) forwards;
}
@keyframes goldSweep { to { transform: translateX(120%); } }

.pre-name {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  color: var(--ink);
}
.pre-name span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: plChar .7s var(--ease-out) forwards;
}
.pre-name span:nth-child(1) { animation-delay: .75s; }
.pre-name span:nth-child(2) { animation-delay: .88s; }
.pre-name span:nth-child(3) { animation-delay: 1.01s; }
@keyframes plChar { to { opacity: 1; transform: none; } }

.pre-sub {
  font-size: 10px;
  letter-spacing: .45em;
  text-indent: .45em;
  color: var(--gold-deep);
  opacity: 0;
  animation: plFade .7s 1.2s forwards;
}
@keyframes plFade { to { opacity: 1; } }

.pre-bar {
  width: min(180px, 40vw);
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
  opacity: 0;
  animation: plFade .4s .3s forwards;
}
.pre-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform: scaleX(0);
  transform-origin: left;
  animation: plBar 1.3s .4s var(--ease-out) forwards;
}
@keyframes plBar { to { transform: scaleX(1); } }

/* 幕布揭示 */
.curtain {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 51%;
  background: var(--cream-3);
  z-index: 999;
  transition: transform 1s var(--ease-expo);
  pointer-events: none;
}
.curtain-l { left: 0; }
.curtain-r { right: 0; }
body.revealed .curtain-l { transform: translateX(-102%); }
body.revealed .curtain-r { transform: translateX(102%); }
body:not(.revealed) .curtain { transition: none; }

/* ═══════════ 导航 ═══════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  transition: box-shadow .45s;
}
.nav.scrolled { box-shadow: 0 10px 34px -18px rgba(42, 33, 25, .38); }

/* 第一层：标题行（米黄偏金底）；首页（未滚动）时隐藏，滚动后展开 */
.nav-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: linear-gradient(180deg, #F8F0D8 0%, #EFDFB2 100%);
  border-bottom: 1px solid rgba(140, 106, 47, .28);
  padding: 0 var(--gutter);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-out), opacity .5s, padding .5s;
}
.nav.scrolled .nav-top {
  max-height: 92px;
  opacity: 1;
  padding: 16px var(--gutter);
}
.nav-brand { display: flex; align-items: center; justify-self: start; }
/* logo 徽章：红底白字，与公司名标牌同风格 */
.nav-logo-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-deep) 100%);
  box-shadow: 0 6px 18px -6px rgba(156, 39, 43, .55);
}
.nav-logo { width: 150px; height: 38px; object-fit: contain; display: block; }
.nav-company {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .05em;
  text-indent: .05em;
  color: #fff;
  justify-self: center;
  white-space: nowrap;
  padding: 8px 26px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-deep) 100%);
  box-shadow: 0 6px 18px -6px rgba(156, 39, 43, .55);
}
.nav-tools { display: flex; align-items: center; gap: 12px; justify-self: end; }

/* 分割线：鎏金线（随顶层一起收起/展开） */
.nav-divider {
  height: 0;
  flex: 0 0 auto;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 22%, var(--gold-soft) 50%, var(--gold) 78%, var(--gold-deep) 100%);
  transition: height .5s var(--ease-out);
}
.nav.scrolled .nav-divider { height: 2px; }

/* 第二层：导航行（朱红底） */
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  justify-content: center;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  padding: 6px var(--gutter);
}
.nav-links a {
  position: relative;
  font-size: 15px;
  letter-spacing: .14em;
  color: rgba(253, 248, 236, .92);
  padding: 4px 2px;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-soft);
  transition: left .35s var(--ease-out), right .35s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { left: 0; right: 0; }
.nav-links a.active { color: #fff; }

.lang-toggle {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--gold-deep);
  border: 1px solid var(--hairline-strong);
  border-radius: 100px;
  padding: 6px 14px;
  transition: all .3s;
}
.lang-toggle:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.lang-toggle-drawer { margin-top: 24px; align-self: flex-start; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}
.nav-burger i {
  display: block;
  width: 24px;
  height: 1.8px;
  background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .3s;
}
body.menu-open .nav-burger i:first-child { transform: translateY(3.9px) rotate(45deg); }
body.menu-open .nav-burger i:last-child { transform: translateY(-3.9px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--cream-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 clamp(32px, 10vw, 80px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease-out), visibility .45s;
}
.nav-drawer a {
  font-family: var(--serif);
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 700;
  letter-spacing: .18em;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .55s var(--ease-out), opacity .55s, color .3s;
  transition-delay: calc(var(--i) * 50ms);
}
.nav-drawer a:hover { color: var(--red); }
body.menu-open .nav-drawer { opacity: 1; visibility: visible; }
body.menu-open .nav-drawer a { transform: none; opacity: 1; }

/* ═══════════ 01 · Hero ═══════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding: calc(var(--nav-links-h) + 5vh) var(--gutter) 12vh;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(35, 28, 20, .82) 0%, rgba(35, 28, 20, .55) 46%, rgba(35, 28, 20, .28) 100%),
              linear-gradient(0deg, rgba(35, 28, 20, .55) 0%, transparent 30%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(760px, 94vw);
  margin-left: max(var(--gutter), calc((100vw - 1280px) / 2.6));
}

/* 品牌层（标题层） */
.hero-brand { position: relative; }
.hero-logo { width: min(340px, 72vw); height: auto; filter: drop-shadow(0 6px 26px rgba(0, 0, 0, .45)); }
.hero-brand-sub {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .4em;
  text-indent: .4em;
  color: rgba(247, 241, 229, .92);
}

/* 动态像素分割层 */
.hero-pixel-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0;
  height: 14px;
}
.hero-pixel-divider .px-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
  opacity: .6;
}
.hero-pixel-divider .px-cell {
  width: 14px;
  height: 14px;
  background: var(--gold-soft);
  box-shadow: 0 0 0 1px var(--gold);
  animation: pxCell 2.4s var(--ease-out) infinite;
}
@keyframes pxCell {
  0%, 100% { transform: rotate(0deg) scale(1); background: var(--gold-soft); }
  50% { transform: rotate(45deg) scale(1.18); background: var(--red); }
}

/* 内容层 */
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 50px);
  line-height: 1.3;
  letter-spacing: .06em;
  color: #F7F1E5;
  max-width: 620px;
}
.hero-sub {
  margin-top: 18px;
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 300;
  letter-spacing: .08em;
  color: rgba(247, 241, 229, .82);
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

/* 入场编排 */
.hero-brand, .hero-pixel-divider, .hero-title, .hero-sub, .hero-actions {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
body.revealed .hero-brand { opacity: 1; transform: none; transition-delay: .1s; }
body.revealed .hero-pixel-divider { opacity: 1; transform: none; transition-delay: .28s; }
body.revealed .hero-title { opacity: 1; transform: none; transition-delay: .42s; }
body.revealed .hero-sub { opacity: 1; transform: none; transition-delay: .54s; }
body.revealed .hero-actions { opacity: 1; transform: none; transition-delay: .66s; }

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  letter-spacing: .36em;
  text-indent: .36em;
  color: rgba(247, 241, 229, .6);
  writing-mode: vertical-rl;
}
.hero-scroll i {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold-soft), transparent);
  overflow: hidden;
  position: relative;
}
.hero-scroll i::after {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 1px;
  height: 16px;
  background: var(--red-bright);
  animation: scrollHint 2.2s 1.6s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0% { top: -16px; }
  70%, 100% { top: 48px; }
}

/* ═══════════ 02 · 公司简介 ═══════════ */

.about {
  background: var(--paper);
  padding: var(--sec-pad) var(--gutter);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  max-width: var(--width);
  margin: 0 auto;
}
.about-media {
  position: relative;
  background: #fff;
  padding: 12px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.4deg);
}
.about-media img { aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.about-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 20px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}
.about-body p { color: var(--ink-2); font-size: 15px; letter-spacing: .04em; }
.about-body p + p { margin-top: 14px; }
.about-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.about-points li {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--red-deep);
  border: 1px solid rgba(156, 39, 43, .35);
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(156, 39, 43, .04);
}

/* ═══════════ 03 · 客户案例 ═══════════ */

.cases {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding: var(--sec-pad) var(--gutter);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  max-width: var(--width);
  margin: 0 auto;
}
.case-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 12px 12px 22px;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.case-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.case-card figure { overflow: hidden; }
.case-card img {
  width: 100%;
  aspect-ratio: 3/3.5;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.case-card:hover img { transform: scale(1.05); }
.case-card h3 { font-family: var(--serif); font-size: 18px; letter-spacing: .1em; margin-top: 16px; text-align: center; }
.case-card p { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; text-align: center; }

/* ═══════════ 04 · 公司图库 ═══════════ */

.gallery {
  background: var(--paper);
  padding: var(--sec-pad) var(--gutter);
}
.gallery-layout {
  display: grid;
  grid-template-columns: clamp(200px, 19vw, 260px) 1fr;
  gap: clamp(20px, 3vw, 44px);
  max-width: var(--width);
  margin: 0 auto;
  align-items: start;
}
.gallery-side {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--hairline);
  background: var(--cream-3);
  padding: 20px;
  border-radius: 8px;
}
.gs-group + .gs-group { margin-top: 22px; }
.gs-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gs-title::before { content: ''; width: 4px; height: 14px; background: var(--red); }
.gs-list li { margin: 5px 0; }
.gs-list button {
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink-2);
  padding: 10px 14px;
  border: 1px solid rgba(181, 137, 60, .28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(42, 33, 25, .06);
  transition: all .25s;
}
.gs-list button:hover { background: rgba(181, 137, 60, .16); color: var(--ink); border-color: var(--gold); box-shadow: 0 3px 10px -2px rgba(181, 137, 60, .35); transform: translateY(-1px); }
.gs-list button.active { background: linear-gradient(135deg, var(--red-deep), var(--red)); color: #fff; border-color: var(--red-deep); box-shadow: 0 4px 12px -3px rgba(156, 39, 43, .5); }

.gallery-main { min-width: 0; }
.gallery-crumb {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid figure {
  background: #fff;
  border: 1px solid rgba(181, 137, 60, .22);
  padding: 8px;
  cursor: pointer;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.gallery-grid figure:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.gallery-grid img { width: 100%; aspect-ratio: 3/3.5; object-fit: cover; }
.gallery-grid figcaption {
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .06em;
  padding: 8px 2px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  letter-spacing: .1em;
  padding: 50px 0;
  border: 1px dashed var(--hairline);
  border-radius: 8px;
}

/* 手机/竖屏：分类行视图（桌面隐藏） */
.gallery-rows { display: none; }
.grow + .grow { margin-top: 20px; }
.grow-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.grow-title::before { content: ''; width: 4px; height: 14px; background: var(--red); }
.grow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.grow-strip figure {
  background: #fff;
  border: 1px solid rgba(181, 137, 60, .22);
  padding: 4px;
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.grow-strip figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.grow-strip img { width: 100%; aspect-ratio: 3/3.5; object-fit: cover; }
.grow-strip figcaption {
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: .04em;
  padding: 6px 2px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════ 05 · 收藏展馆 ═══════════ */

.collect {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream-2) 100%);
  padding: var(--sec-pad) var(--gutter);
}
.collect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  max-width: var(--width);
  margin: 0 auto;
}
.collect-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 12px 12px 22px;
  text-align: center;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.collect-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.collect-card figure { overflow: hidden; }
.collect-card img { width: 100%; aspect-ratio: 3/3.5; object-fit: cover; transition: transform .9s var(--ease-out); }
.collect-card:hover img { transform: scale(1.05); }
.collect-card h3 { font-family: var(--serif); font-size: 19px; letter-spacing: .1em; margin-top: 16px; }
.collect-card p { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

/* ═══════════ 06 · 公司动态 ═══════════ */

.news {
  background: var(--paper);
  padding: var(--sec-pad) var(--gutter);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  max-width: var(--width);
  margin: 0 auto;
}
.news-card {
  border-top: 2px solid var(--gold);
  padding: 26px 22px 28px;
  background: linear-gradient(160deg, var(--cream-3), var(--cream));
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.news-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .24em;
  color: #fff;
  background: var(--red);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.news-card h3 { font-family: var(--serif); font-size: 21px; letter-spacing: .08em; }
.news-card p { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }

/* ═══════════ 07 · 滚动图片栏目 ═══════════ */

.strip {
  background: var(--cream);
  padding: var(--sec-pad) 0;
  overflow: hidden;
}
/* 发展历程滚动分隔线（第二/三页之间，窄条纯展示） */
.showcase {
  background: var(--cream-2);
  padding: 14px 0;
  overflow: hidden;
  margin-top: calc(-1 * var(--sec-pad) + 18px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.showcase .strip-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  cursor: grab;
}
.showcase .strip-track::-webkit-scrollbar { display: none; }
.showcase .strip-track.dragging { cursor: grabbing; }
.showcase .strip-item {
  flex: 0 0 auto;
  width: auto;
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 3px;
  box-shadow: none;
  cursor: default;
}
.showcase .strip-item:hover { transform: none; box-shadow: none; }
.showcase .strip-item img { display: block; height: 92px; width: auto; aspect-ratio: auto; max-width: none; object-fit: contain; background: #f4ead2; }
.showcase .strip-item figcaption { display: none; }
.strip-wrap { position: relative; }
.strip-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px max(var(--gutter), calc(50vw - 620px)) 26px;
  cursor: grab;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-track.no-snap { scroll-snap-type: none; }
.strip-item {
  scroll-snap-align: center;
  flex: 0 0 min(56vw, 420px);
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.strip-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.strip-item img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; pointer-events: none; }
.strip-item figcaption {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .08em;
  padding: 10px 4px 2px;
  color: var(--ink);
}
.strip-item .strip-meta { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }

.strip-ui {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 22px 0 clamp(20px, 3vw, 40px);
}
.ring-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s var(--ease-out);
}
.ring-btn svg { width: 16px; height: 16px; }
.ring-btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.06); }

/* ═══════════ 08 · 联系 CTA ═══════════ */

.contact {
  position: relative;
  padding: clamp(90px, 12vw, 150px) var(--gutter);
  background: var(--dark);
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: saturate(.85); }
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 28, 20, .85), rgba(35, 28, 20, .62) 40%, rgba(35, 28, 20, .94));
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.25;
  letter-spacing: .1em;
  color: #F7F1E5;
}
.cta-sub { margin-top: 20px; color: rgba(247, 241, 229, .7); letter-spacing: .12em; font-size: 15px; font-weight: 300; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.cta-note {
  margin-top: 26px;
  color: rgba(247, 241, 229, .45);
  font-size: 12px;
  letter-spacing: .06em;
}

/* ═══════════ Footer ═══════════ */

.footer { background: #1B1510; color: rgba(247, 241, 229, .78); padding: clamp(52px, 6vw, 80px) var(--gutter) 30px; }
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr .7fr .9fr 1fr;
  gap: clamp(26px, 4vw, 56px);
  max-width: var(--width);
  margin: 0 auto;
}
.foot-logo { width: 132px; height: 34px; object-fit: contain; }
.foot-brand p { margin-top: 14px; font-size: 13px; color: rgba(247, 241, 229, .5); letter-spacing: .08em; }
.foot-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.foot-col a, .foot-col span {
  display: block;
  font-size: 13.5px;
  color: rgba(247, 241, 229, .6);
  padding: 6px 0;
  letter-spacing: .06em;
  transition: color .3s;
}
.foot-col a:hover { color: var(--gold-soft); }
.foot-bottom {
  max-width: var(--width);
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 184, 120, .18);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: rgba(247, 241, 229, .4);
}

/* ═══════════ 微信浮窗 ═══════════ */

.wechat-fab {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2FA34F, #1F7A3D);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(31, 122, 61, .55);
  transition: transform .35s var(--ease-out);
}
.wechat-fab svg { width: 26px; height: 26px; }
.wechat-fab-label { font-size: 10px; letter-spacing: .1em; margin-top: 2px; }
.wechat-fab:hover { transform: translateY(-4px) scale(1.04); }
.wechat-fab::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(47, 163, 79, .5);
  animation: fabPulse 2.4s var(--ease-out) infinite;
}
@keyframes fabPulse {
  0% { transform: scale(.9); opacity: .8; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* ═══════════ 模态 ═══════════ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease-out), visibility .4s;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 21, 16, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(181, 137, 60, .55);
  color: var(--ink-2);
  font-size: 15px;
  background: transparent;
  transition: all .35s;
}
.modal-close:hover { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(90deg); }

.wechat-card {
  position: relative;
  width: min(340px, 90vw);
  background: var(--cream-3);
  border-radius: 14px;
  padding: 34px 28px;
  text-align: center;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  transform: translateY(16px);
  transition: transform .4s var(--ease-out);
}
.modal.settled .wechat-card { transform: none; }
.wechat-card h3 { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; }
.wechat-hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.wechat-qr {
  margin: 22px auto;
  width: 200px;
  height: 200px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wechat-qr img { width: 100%; height: 100%; object-fit: contain; }
.wechat-qr .qr-empty { padding: 20px; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.wechat-id { font-size: 12.5px; color: var(--gold-deep); letter-spacing: .08em; }

.art-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  width: min(980px, 92vw);
  max-height: 86vh;
  background: var(--cream-3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 50px 130px -30px rgba(0, 0, 0, .55);
  transform: translateY(16px);
  transition: transform .4s var(--ease-out);
}
.modal.settled .art-card { transform: none; }
.art-media { min-height: 0; background: var(--dark); display: flex; }
.art-media img { width: 100%; height: 100%; max-height: 86vh; object-fit: cover; }
.art-info {
  padding: clamp(26px, 3.6vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.art-info h3 { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: .06em; margin: 4px 0 14px; }
.art-note { font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.art-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ═══════════ Toast ═══════════ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 600;
  transform: translate(-50%, 20px);
  background: rgba(27, 21, 16, .94);
  color: #F7F1E5;
  border: 1px solid rgba(212, 184, 120, .5);
  border-radius: 100px;
  padding: 13px 28px;
  font-size: 13.5px;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  transition: all .45s var(--ease-out);
  pointer-events: none;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ═══════════ 响应式 ═══════════ */

@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { gap: clamp(12px, 2.6vw, 26px); }
  .nav-company { font-size: 20px; letter-spacing: .04em; font-weight: 700; }
  .nav-logo { width: 118px; height: 30px; }
  .nav-logo-badge { padding: 7px 11px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .hero { padding-top: calc(var(--nav-h) + 10vh); }
  .hero-inner { margin: 0 auto; text-align: center; }
  .hero-logo { margin: 0 auto; }
  .hero-title, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-scroll { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .cases-grid, .collect-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  /* 图库：左侧分类导航保留在左边，右侧为分类行（每行一种分类 · 五幅） */
  .gallery-layout {
    display: grid;
    grid-template-columns: clamp(84px, 22vw, 132px) 1fr;
    gap: 12px;
    align-items: start;
  }
  .gallery-main { display: none; }
  .gallery-rows { display: block; min-width: 0; }
  .gallery-side { position: sticky; top: calc(var(--nav-h) + 12px); padding: 10px 8px; }
  .gs-title { font-size: 15px; letter-spacing: .06em; padding-bottom: 6px; margin-bottom: 8px; }
  .gs-list button { font-size: 14px; padding: 8px 8px; letter-spacing: .02em; border-radius: 6px; }
  .gallery { padding: var(--sec-pad) 14px; }
  .art-card { grid-template-columns: 1fr; overflow-y: auto; }
  .art-media img { max-height: 42vh; }
}

@media (max-width: 560px) {
  /* 小屏仍保持两层导航，做紧凑处理（padding 沿用桌面收起/展开逻辑，不覆盖） */
  .nav-top { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav-logo { width: 88px; height: 23px; }
  .nav-logo-badge { padding: 5px 8px; }
  .nav-company { font-size: 16px; letter-spacing: .03em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-tools .btn { padding: 8px 14px; font-size: 11px; }
  .nav-tools { gap: 8px; }
  .lang-toggle { padding: 5px 10px; font-size: 11px; }
  .nav-links { gap: 0; padding: 4px 8px; }
  .nav-links a { font-size: 12px; letter-spacing: .06em; padding: 6px 6px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item { flex-basis: 78vw; }
  .cases-grid, .collect-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero-logo { width: min(270px, 76vw); }
}

/* ═══════════ 降级 ═══════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-brand, .hero-pixel-divider, .hero-title, .hero-sub, .hero-actions,
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #preloader { display: none; }
  .curtain { display: none; }
}
