/* ============================================================
   三木设计 SANMU · 官网全站样式
   设计基准：doc/官网设计.md —— 深色沉浸 + 编辑排版
   动效规范：统一缓动 cubic-bezier(.22,1,.36,1)，无弹跳
   ============================================================ */

:root {
  --bg: #0c0c0c;
  --bg-soft: #141210;
  --ink: #f5f0e8;          /* 文字主：暖白 */
  --ink-2: #b3ada2;        /* 文字次 */
  --ink-3: #857a6c;        /* 辅助 / 注释 */
  --line: #2c2620;         /* 分隔线 */
  --gold: #e8c96a;         /* 点缀：kicker / 线条 / hover */
  --clay: #c96f4a;         /* 点缀：标题重点字 / 案例角标 */
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-wipe: cubic-bezier(.77, 0, .18, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-2);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--bg); }

/* ============ 顶部导航（透明浮层）============ */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 7vw;
}
.nav .logo {
  font-family: var(--serif); font-size: 22px; letter-spacing: .3em;
  color: var(--ink); text-decoration: none;
}
.nav .logo-en {
  font-family: var(--sans); font-size: 11px; letter-spacing: .35em;
  color: var(--ink-3); margin-left: 12px; font-weight: 400;
}
.nav-links a {
  color: #d8d2c6; text-decoration: none; font-size: 14px;
  margin-left: 36px; letter-spacing: .2em; opacity: .8;
  transition: opacity .3s, color .3s;
}
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; color: var(--gold); }

/* ============ 滚动揭示（JS 加 .in 触发）============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .15s; }
.reveal[data-delay="2"] { transition-delay: .3s; }
.reveal[data-delay="3"] { transition-delay: .45s; }

/* 遮罩擦除揭示（图片）*/
.wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-wipe); }
.wipe.in { clip-path: inset(0); }

/* 首屏文字逐行升起 */
.rise-line { display: block; overflow: hidden; }
.rise-line > span {
  display: block; transform: translateY(110%);
  transition: transform 1.2s var(--ease);
}
.in .rise-line > span, .rise-line.in > span { transform: none; }
.rise-line:nth-child(2) > span { transition-delay: .15s; }

/* ============ 首屏 ============ */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.1) 40%, rgba(12,12,12,.95) 100%);
}
.hero-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 7vw 14vh;
}
.kicker {
  font-size: 13px; letter-spacing: .5em; color: var(--gold);
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6.5vw, 100px); line-height: 1.12;
  color: var(--ink); margin-top: 22px;
}
.hero .sub {
  margin-top: 26px; font-size: 16px; color: var(--ink-2);
  max-width: 520px; letter-spacing: .1em; line-height: 2;
}
.scrollhint {
  position: absolute; bottom: 5vh; right: 7vw; writing-mode: vertical-rl;
  font-size: 11px; letter-spacing: .4em; color: var(--ink-3);
}

/* ============ CTA 细线按钮 ============ */
.cta {
  margin-top: 44px; display: inline-flex; align-items: center; gap: 16px;
  font-size: 14px; letter-spacing: .35em; color: var(--ink);
  width: fit-content; text-decoration: none;
}
.cta::after {
  content: ''; width: 60px; height: 1px; background: var(--gold);
  transition: width .6s var(--ease);
}
.cta:hover::after { width: 100px; }

/* ============ 案例编辑区 ============ */
.editorial { padding: 14vh 5vw 10vh; }
.ed-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line); padding-bottom: 3vh;
}
.ed-head h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(44px, 8vw, 120px); color: var(--ink); line-height: 1;
}
.ed-head h2 em { font-style: normal; color: var(--clay); }
.ed-head .label { font-size: 12px; letter-spacing: .4em; color: var(--ink-3); }

.ed-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px;
  padding-top: 7vh; align-items: start;
}
.ph { position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ph:hover img { transform: scale(1.06); }
.ph.tall img { height: 60vh; min-height: 420px; }
.ph.short { margin-top: 14vh; }
.ph.short img { height: 42vh; min-height: 300px; }
.ph .cap {
  position: absolute; left: 0; bottom: 0; padding: 14px 22px;
  background: var(--clay); color: #fff; font-size: 12px; letter-spacing: .3em;
}
.ph .meta {
  position: absolute; right: 0; top: 0; padding: 12px 18px;
  background: rgba(12,12,12,.72); backdrop-filter: blur(6px);
  color: var(--ink-2); font-size: 11px; letter-spacing: .25em;
}

/* ============ 数据条 ============ */
.stats { display: flex; gap: 70px; flex-wrap: wrap; padding: 12vh 7vw 6vh; }
.stats .n {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); color: var(--ink);
}
.stats .n b { color: var(--gold); font-weight: 500; }
.stats .t { margin-top: 8px; font-size: 12px; letter-spacing: .3em; color: var(--ink-3); }

/* ============ 页脚 ============ */
.foot { border-top: 1px solid var(--line); margin: 6vh 7vw 0; padding: 5vh 0 6vh; }
.foot-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.foot-cta .line {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); color: var(--ink);
}
.foot-cta .line b { color: var(--gold); font-weight: 500; }
.btn-pill {
  padding: 16px 44px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold); text-decoration: none; font-size: 14px; letter-spacing: .3em;
  transition: background .5s var(--ease), color .5s var(--ease);
}
.btn-pill:hover { background: var(--gold); color: var(--bg); }

.foot-bottom {
  margin-top: 5vh; padding-top: 3vh; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .15em; color: var(--ink-3);
}
.foot-bottom a { text-decoration: none; transition: color .3s; }
.foot-bottom a:hover { color: var(--gold); }

/* ============ 内页通用 ============ */
.page-head { padding: 22vh 7vw 8vh; }
.page-head h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 5.5vw, 84px); color: var(--ink); line-height: 1.2; margin-top: 20px;
}
.page-body { padding: 0 7vw 12vh; max-width: 1100px; }
.page-body h2 {
  font-family: var(--serif); font-weight: 500; font-size: 28px;
  color: var(--ink); margin: 8vh 0 3vh;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p { font-size: 15px; line-height: 2.2; letter-spacing: .06em; max-width: 720px; }
.page-body p + p { margin-top: 1.4em; }

/* 服务范围三列 */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 5vh; }
.services .item { background: var(--bg); padding: 44px 36px; }
.services .num { font-size: 12px; letter-spacing: .4em; color: var(--gold); }
.services h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); margin: 18px 0 14px; }
.services p { font-size: 13px; line-height: 2; }

/* 设计理念引言 */
.quote {
  margin: 6vh 0;
  padding: 4vh 0 4vh 40px;
  border-left: 1px solid var(--gold);
  max-width: 760px;
}
.quote p {
  font-family: var(--serif); font-size: clamp(18px, 2vw, 24px);
  line-height: 2; color: var(--ink); letter-spacing: .04em; max-width: none;
}

/* 主理人 */
.founder {
  display: grid; grid-template-columns: 260px 1fr; gap: 5vw;
  margin-top: 5vh; align-items: start;
}
.founder-photo { overflow: hidden; }
.founder-photo img { width: 100%; height: 480px; object-fit: cover; object-position: center 18%; }
.founder-name {
  font-family: var(--serif); font-size: 34px; color: var(--ink); letter-spacing: .15em;
}
.founder-role { margin-top: 12px; font-size: 13px; letter-spacing: .2em; color: var(--gold); }
.founder-desc { margin-top: 22px; font-size: 14px; line-height: 2.1; }
.honors { list-style: none; margin-top: 28px; }
.honors li {
  padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 13px; letter-spacing: .08em; color: var(--ink-2);
}
.honors li::before { content: '—'; color: var(--gold); margin-right: 12px; }

/* 联系方式 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; margin-top: 6vh; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.contact-list .label { font-size: 12px; letter-spacing: .4em; color: var(--ink-3); }
.contact-list .value {
  margin-top: 10px; font-family: var(--serif); font-size: 24px; color: var(--ink);
  text-decoration: none; transition: color .3s;
}
a.value:hover { color: var(--gold); }
.qr {
  background: var(--bg-soft); padding: 40px; text-align: center; border: 1px solid var(--line);
}
.qr img {
  width: 240px; height: 240px; margin: 0 auto; object-fit: contain;
  border-radius: 6px; background: #fff; padding: 8px;
}
.qr .tip { margin-top: 20px; font-size: 13px; letter-spacing: .2em; color: var(--ink-3); }

/* ============ 移动端 ============ */
@media (max-width: 820px) {
  .nav { padding: 22px 6vw; }
  .nav-links a { margin-left: 20px; font-size: 13px; }
  .hero-inner { padding: 0 6vw 16vh; }
  .scrollhint { display: none; }
  .ed-grid { grid-template-columns: 1fr; }
  .ph.short { margin-top: 0; }
  .ph.tall img, .ph.short img { height: 46vh; min-height: 260px; }
  .stats { gap: 40px; padding: 10vh 6vw 6vh; }
  .foot { margin: 4vh 6vw 0; }
  .services { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo img { height: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-head { padding: 18vh 6vw 6vh; }
  .page-body { padding: 0 6vw 10vh; }

  /* 移动端底部常驻拨号条 */
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; background: rgba(12,12,12,.92); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    flex: 1; text-align: center; padding: 16px 0; text-decoration: none;
    font-size: 14px; letter-spacing: .25em; color: var(--gold);
  }
  .mobile-bar a + a { border-left: 1px solid var(--line); }
  body { padding-bottom: 53px; }
}
@media (min-width: 821px) { .mobile-bar { display: none; } }

/* ============ 无障碍 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .wipe, .rise-line > span { opacity: 1; transform: none; clip-path: none; }
}
