/* ===================================================================
   墨之屿全案设计 · 官方网站
   风格：国际极简 · 编辑级留白 · 象牙白 / 墨黑 / 品牌红点缀
   =================================================================== */

:root {
  --ivory: #f6f3ee;
  --ivory-2: #efeae2;
  --ink: #1a1a1a;
  --ink-soft: #4a4844;
  --muted: #8b8781;
  --line: #e0dad0;
  --red: #9c1c17;
  --red-soft: #b63b32;
  --gold: #b08a4f;
  --white: #ffffff;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--sans); /* 全站统一使用黑体（Noto Sans SC） */
  --nav-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: min(1200px, 90vw); margin: 0 auto; }

.kicker {
  font-size: 12px;
  letter-spacing: .32em;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: .02em;
  line-height: 1.25;
  color: var(--ink);
}

.sec-sub {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .04em;
}

.sec-head { max-width: 720px; margin-bottom: 40px; }

.section { padding: clamp(72px, 11vh, 140px) 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 14px;
  letter-spacing: .12em;
  font-weight: 400;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all .4s var(--ease);
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--red); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.full { width: 100%; }

/* =============== 顶栏 =============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav-inner {
  width: min(1200px, 90vw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 30px; transition: opacity .3s; }
.nav-logo .logo-dark { display: none; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px;
  letter-spacing: .1em;
  color: #fff;
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.6);
  padding: 9px 22px !important;
  transition: all .35s var(--ease);
}
.nav-cta:hover { background: #fff; color: var(--ink) !important; }

/* 语言切换按钮（小地球） */
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: #fff;
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .1em; line-height: 1;
  padding: 7px 12px; cursor: pointer;
  transition: all .35s var(--ease);
}
.lang-btn .globe { display: block; }
.lang-btn:hover { background: #fff; color: var(--ink); }
.nav.scrolled .lang-btn { border-color: var(--ink); color: var(--ink); }
.nav.scrolled .lang-btn:hover { background: var(--ink); color: #fff; }

/* 滚动后：白底 */
.nav.scrolled { background: rgba(246,243,238,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.scrolled .nav-logo .logo-light { display: none; }
.nav.scrolled .nav-logo .logo-dark { display: block; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav.scrolled .nav-cta { border-color: var(--ink); }
.nav.scrolled .nav-cta:hover { background: var(--ink); color: #fff !important; }
.nav.scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle {
  display: none;
  width: 30px; height: 22px;
  background: none; border: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; transition: all .3s var(--ease); }

/* =============== Hero =============== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-slide.is-on { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.6) 100%);
}
.hero-content { position: relative; width: min(1200px, 90vw); margin: 0 auto; }
.hero-kicker { color: rgba(255,255,255,.85); letter-spacing: .3em; font-size: 12px; margin-bottom: 26px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.18;
  letter-spacing: .03em;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
.hero-sub {
  margin-top: 26px;
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 19px);
  letter-spacing: .06em;
  color: rgba(255,255,255,.9);
}
.hero-actions { margin-top: 46px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 11px; letter-spacing: .3em;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll span { width: 1px; height: 46px; background: rgba(255,255,255,.6); animation: scrolldown 2s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =============== 关于 =============== */
.about-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 28px;
}
.about-desc { color: var(--ink-soft); font-weight: 300; font-size: 16px; max-width: 560px; }
.about-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.about-tags span {
  font-size: 13px; letter-spacing: .08em; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 8px 18px;
}
.about-founder { position: relative; }
.about-founder img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.15); }
.about-founder figcaption { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.about-founder b { font-size: 18px; font-weight: 500; }
.about-founder span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.about-founder em { font-family: var(--serif); font-style: italic; color: var(--red); margin-top: 8px; font-size: 15px; }

/* =============== 数据 =============== */
.numbers { background: var(--ink); color: #fff; padding: clamp(56px, 8vh, 90px) 0; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.num-item b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5vw, 64px); line-height: 1; color: #fff; }
.num-item span { display: block; margin-top: 14px; font-size: 14px; letter-spacing: .12em; color: rgba(255,255,255,.65); }

/* =============== 作品 =============== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 3/2.1; display: block; background: var(--ivory-2); }
.work-card.wide { grid-column: span 2; aspect-ratio: 21/8; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.62)); opacity: .9; transition: opacity .5s; }
.work-card:hover img { transform: scale(1.06); }
.work-info { position: absolute; left: 30px; bottom: 26px; z-index: 2; color: #fff; transition: transform .5s var(--ease); }
.work-tag { font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.85); text-transform: uppercase; }
.work-info h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); margin-top: 6px; }
.work-card:hover .work-info { transform: translateY(-6px); }
/* 悬停查看提示 */
.work-view {
  position: absolute; top: 26px; right: 28px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; font-size: 13px; letter-spacing: .12em;
  padding: 8px 16px; border: 1px solid rgba(255,255,255,.7);
  opacity: 0; transform: translateY(-10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), background .35s, color .35s;
}
.work-view::after { content: "\2192"; transition: transform .4s var(--ease); }
.work-card:hover .work-view { opacity: 1; transform: translateY(0); }
.work-card:hover .work-view::after { transform: translateX(6px); }
.work-card { transition: box-shadow .5s var(--ease); }
.work-card:hover { box-shadow: 0 30px 60px -34px rgba(0,0,0,.6); }

/* =============== 对比滑块 =============== */
.compare { background: var(--ivory-2); }
/* 案例切换标签 */
.cmp-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.cmp-tab {
  font-family: var(--sans); font-size: 14px; letter-spacing: .06em;
  color: var(--ink-soft); background: transparent;
  border: 1px solid var(--line); padding: 10px 20px; cursor: pointer;
  transition: all .35s var(--ease);
}
.cmp-tab:hover { border-color: var(--ink); color: var(--ink); }
.cmp-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.compare-box { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; user-select: none; box-shadow: 0 30px 70px -40px rgba(0,0,0,.5); }
.cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-clip { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; will-change: width; }
.cmp-clip .cmp-render { max-width: none; height: 100%; }
.cmp-label {
  position: absolute; top: 20px; z-index: 4;
  font-size: 12px; letter-spacing: .12em;
  background: rgba(0,0,0,.55); color: #fff; padding: 7px 14px;
}
.cmp-l-render { left: 20px; }
.cmp-l-real { right: 20px; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: #fff; z-index: 5;
  transform: translateX(-50%); pointer-events: none;
}
.cmp-handle i {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 4px 18px rgba(0,0,0,.3);
  display: flex;
}
.cmp-handle i::before, .cmp-handle i::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.cmp-handle i::before { left: 12px; border-right: 8px solid var(--ink); transform: translateY(-50%); }
.cmp-handle i::after { right: 12px; border-left: 8px solid var(--ink); transform: translateY(-50%); }
.cmp-range {
  position: absolute; inset: 0; z-index: 6;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}

/* =============== 为什么全案 =============== */
.appr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.appr-col { padding: clamp(30px, 4vw, 48px); border: 1px solid var(--line); background: var(--white); }
.appr-h { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.appr-bad { color: var(--muted); }
.appr-good { color: var(--red); }
.appr-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.appr-list li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-soft); font-weight: 300; }
.appr-list li::before { position: absolute; left: 0; top: 0; font-size: 16px; }
.appr-list.bad li::before { content: "×"; color: var(--muted); }
.appr-list.good li::before { content: "✓"; color: var(--red); }
.appr-col:has(.appr-good) { border-color: var(--red); box-shadow: 0 24px 60px -44px rgba(156,28,23,.55); }

/* =============== 流程 =============== */
.proc-line { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.proc-line li { background: var(--ivory); padding: 40px 34px; position: relative; transition: background .4s; }
.proc-line li:hover { background: var(--white); }
.proc-no { font-family: var(--serif); font-size: 34px; color: var(--gold); font-weight: 300; }
.proc-line h4 { font-size: 18px; font-weight: 500; margin: 14px 0 8px; }
.proc-line p { font-size: 14px; color: var(--muted); font-weight: 300; }

/* =============== 服务足迹 & 地址 =============== */
.footprint { background: var(--ivory-2); }
.fp-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.fp-info { display: flex; flex-direction: column; }
.fp-cities { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.fp-cities li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.fp-cities b { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); color: var(--ink); }
.fp-cities small { font-size: 12px; letter-spacing: .16em; color: var(--red); text-transform: uppercase; }
.fp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; position: relative; top: -3px; }
.fp-dot.hq { background: var(--red); box-shadow: 0 0 0 5px rgba(156,28,23,.14); }
.fp-address { border-left: 2px solid var(--gold); padding-left: clamp(24px, 3vw, 40px); margin-top: 32px; }
.fp-k { font-size: 12px; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.fp-v { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.4vw, 28px); color: var(--ink); line-height: 1.5; }
.fp-note { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 300; }

/* 服务足迹地图 */
.fp-map { width: 100%; }
.geo-map { width: 100%; height: auto; display: block; overflow: visible; }
.geo-map .land { fill: rgba(216,212,204,.5); stroke: var(--gold); stroke-width: 1.2; opacity: .8; }
.geo-map .route { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: .8; }
.geo-map .route.flow {
  stroke: var(--red); stroke-width: 2.2; opacity: .9;
  stroke-dasharray: 6 10; stroke-linecap: round;
  animation: mapFlow 1.6s linear infinite; animation-delay: var(--d, 0s);
}
.geo-map .pin { fill: var(--gold); stroke: #fff; stroke-width: 1.5; }
.geo-map .pin.hq { fill: var(--red); animation: hqBlink 1.6s ease-in-out infinite; }
.geo-map .pin.city { transform-box: fill-box; transform-origin: center; animation: cityPop .6s ease-out both; animation-delay: var(--d, 0s); }
.geo-map .hq-pulse, .geo-map .city-pulse { transform-box: fill-box; transform-origin: center; pointer-events: none; }
.geo-map .hq-pulse { fill: var(--red); animation: mapPing 2.4s ease-out infinite; animation-delay: var(--d, 0s); }
.geo-map .city-pulse { fill: var(--gold); animation: mapPing 2.6s ease-out infinite; animation-delay: var(--d, 0s); }
.geo-map .lbl { font-family: var(--sans); font-size: 14px; fill: var(--ink); text-anchor: middle; font-weight: 500; }
.geo-map .hq-lbl { fill: var(--red); font-weight: 700; font-size: 13px; }
@keyframes mapPing { 0% { transform: scale(.5); opacity: .55; } 70% { transform: scale(3); opacity: 0; } 100% { transform: scale(3); opacity: 0; } }
@keyframes mapFlow { to { stroke-dashoffset: -32; } }
@keyframes hqBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes cityPop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* =============== 联系 =============== */
.contact { background: var(--ink); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.sec-title.light { color: #fff; }
.contact .kicker { color: var(--gold); }
.contact-promise { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.contact-promise li { position: relative; padding-left: 24px; font-size: 15px; color: rgba(255,255,255,.9); font-weight: 300; }
.contact-promise li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.contact-qr { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.contact-qr img { width: min(280px, 70vw); height: auto; object-fit: contain; background: #fff; padding: 12px; }
.contact-qr span { font-size: 14px; letter-spacing: .06em; color: rgba(255,255,255,.7); }

/* =============== 页脚 =============== */
.footer { background: #111; color: rgba(255,255,255,.7); padding: 56px 0 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.footer-brand img { height: 30px; margin: 0 auto 12px; }
.footer-brand p { font-size: 12px; letter-spacing: .28em; color: rgba(255,255,255,.5); }
.footer-nav { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 14px; letter-spacing: .06em; transition: color .3s; }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .04em; }

/* =============== 滚动渐入 =============== */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =============== 响应式 =============== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(246,243,238,.98); backdrop-filter: blur(12px);
    padding: 10px 5vw 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .45s var(--ease);
    max-height: calc(100vh - var(--nav-h)); overflow: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--ink) !important; width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta { border: none !important; color: var(--red) !important; }
  .lang-btn { margin-top: 14px; align-self: flex-start; border-color: var(--ink); color: var(--ink); }

  .about-grid { grid-template-columns: 1fr; }
  .about-founder { max-width: 340px; }
  .num-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-card.wide { grid-column: span 1; aspect-ratio: 3/2; }
  .work-view { opacity: 1; transform: none; }
  .proc-line { grid-template-columns: 1fr; }
  .fp-grid { grid-template-columns: 1fr; gap: 36px; }
  .fp-map { order: -1; max-width: 460px; margin: 0 auto; }
  .fp-address { border-left: none; border-top: 2px solid var(--gold); padding-left: 0; padding-top: 24px; }
  .contact-inner { grid-template-columns: 1fr; text-align: center; }
  .contact-promise { align-items: center; }
  .contact-head .sec-head, .contact-head { text-align: center; }
}

@media (max-width: 520px) {
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
