/* ============================================================
   墨研科技 · 个人主页
   高级感视差滚动 · Claude 暖白纸感配色
   ============================================================ */

:root {
  --bg: #faf9f5;
  --bg-2: #f5f4ed;
  --bg-3: #f0eee6;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-solid: #ffffff;
  --panel-border: #e8e6dc;
  --panel-border-2: #dedcd1;
  --text: #141413;
  --text-dim: #73726c;
  --text-faint: #9c9a92;
  --accent: #d97757;
  --accent-hover: #c6613f;
  --accent-dark: #c46849;
  --accent-soft: #ebcece;
  --olive: #788c5d;
  --olive-soft: #bcd1ca;
  --oat: #e3dacc;
  --sky: #6a9bcc;
  --ink-panel: #141413;
  --grad: linear-gradient(120deg, #d97757 0%, #c46849 60%, #b0522f 100%);
  --radius: 18px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Space Grotesk', 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-cn);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(217, 119, 87, 0.25); color: var(--text); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #d8d4c8;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #c4bfb1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 2000;
  box-shadow: 0 0 12px rgba(217, 119, 87, 0.5);
}

/* ---------- 加载遮罩 ---------- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  width: 84px; height: 84px;
  object-fit: contain;
  margin: 0 auto;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}
.loader-bar {
  width: 180px; height: 3px;
  background: #ece9e0;
  border-radius: 4px;
  margin: 20px auto 0;
  overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 4px;
  animation: load-slide 1.2s ease-in-out infinite;
}
@keyframes load-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(290%); }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 249, 245, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: var(--panel-solid);
  padding: 3px;
  box-shadow: 0 2px 10px rgba(20, 20, 19, 0.08);
}
.brand-text {
  font-weight: 700;
  font-size: 16px;
  display: flex; flex-direction: column;
  line-height: 1.2;
  color: var(--text);
}
.brand-sub { font-size: 10px; font-weight: 400; letter-spacing: 3px; color: var(--text-faint); font-family: var(--font-en); }
.nav-links { display: flex; gap: 36px; }
.nav-link {
  position: relative;
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.3s;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--text); }
.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--panel-border-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  background: var(--panel-solid);
  transition: all 0.35s var(--ease);
}
.nav-cta:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 20, 19, 0.18);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 6px;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.35s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 通用区块 ---------- */
.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 28px;
}
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; }
.section-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--text);
}
.section-sub { color: var(--text-dim); margin-top: 16px; font-size: 16px; }

.gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-1 {
  width: 620px; height: 620px;
  top: -8%; left: -6%;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.22), transparent 70%);
}
.orb-2 {
  width: 560px; height: 560px;
  bottom: -12%; right: -8%;
  background: radial-gradient(circle, rgba(188, 209, 202, 0.5), transparent 70%);
}
.orb-3 {
  width: 420px; height: 420px;
  top: 30%; right: 22%;
  background: radial-gradient(circle, rgba(227, 218, 204, 0.6), transparent 70%);
}
.grid-floor {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 20, 19, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 19, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 30%, transparent 75%);
  will-change: transform;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 28px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-en);
  width: 100%;
  font-size: clamp(9px, 2.4vw, 13px);
  letter-spacing: clamp(1px, 0.5vw, 6px);
  line-height: 1.4;
  white-space: nowrap;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 2px;
  color: var(--text);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .txt { display: inline-block; transform: translateY(110%); animation: rise 0.9s var(--ease) forwards; }
.hero-title .line:nth-child(1) .txt { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) .txt { animation-delay: 0.34s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-desc {
  margin: 28px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 17px;
  font-weight: 300;
}
.hero-actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease);
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.18);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 20, 19, 0.26);
}
.btn-ghost {
  border-color: var(--panel-border-2);
  color: var(--text);
  background: var(--panel-solid);
}
.btn-ghost:hover {
  background: var(--bg-3);
  border-color: var(--text-faint);
  transform: translateY(-3px);
}
.btn-sm { padding: 10px 26px; font-size: 14px; }

.hero-stats {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-en);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--text-faint); margin-top: 4px; letter-spacing: 1px; }

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 4px;
}
.mouse {
  width: 24px; height: 38px;
  border: 1.5px solid var(--text-faint);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 7px;
}
.wheel {
  width: 3px; height: 8px;
  background: var(--text-dim);
  border-radius: 3px;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-visual { position: relative; }
.visual-frame {
  position: relative;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 20px;
  overflow: hidden;
}
.visual-glow {
  position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 30% 30%, rgba(217, 119, 87, 0.14), transparent 55%);
  z-index: 0;
}
.visual-code {
  position: relative;
  z-index: 1;
  background: var(--ink-panel);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 20px 22px;
  font-family: var(--font-en);
  font-size: 14px;
  line-height: 1.9;
  color: #d7d3c8;
  box-shadow: 0 20px 50px rgba(20, 20, 19, 0.22);
}
.code-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot-r { background: #d97757; }
.dot-y { background: #e3b341; }
.dot-g { background: #788c5d; }
.visual-code pre { margin-top: 14px; white-space: pre-wrap; }
.c-k { color: #d7a6a0; }
.c-v { color: #e8b089; }
.c-s { color: #aec3a5; }
.c-f { color: #8fb5c9; }

.about-text h3 { font-size: 26px; font-weight: 700; margin-bottom: 20px; line-height: 1.4; color: var(--text); }
.about-text p { color: var(--text-dim); margin-bottom: 16px; font-weight: 300; }
.about-list { margin: 24px 0 32px; display: grid; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 15px; }
.tick {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(120, 140, 93, 0.16);
  color: var(--olive);
  font-size: 12px;
  flex-shrink: 0;
}

/* ---------- SERVICES ---------- */
.services {
  position: relative;
  overflow: hidden;
}
.bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-orbs::before, .bg-orbs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.bg-orbs::before {
  width: 480px; height: 480px;
  top: 10%; left: -12%;
  background: rgba(217, 119, 87, 0.16);
}
.bg-orbs::after {
  width: 420px; height: 420px;
  bottom: 0; right: -10%;
  background: rgba(188, 209, 202, 0.34);
}
.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  background: var(--panel-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
  will-change: transform;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(217, 119, 87, 0.06), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover {
  border-color: rgba(217, 119, 87, 0.45);
  transform: translateY(-8px);
  box-shadow: 0 18px 44px rgba(20, 20, 19, 0.1);
}
.card:hover::before { opacity: 1; }
.card-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; position: relative; z-index: 1; color: var(--text); }
.card p { font-size: 14px; color: var(--text-dim); font-weight: 300; margin-bottom: 20px; position: relative; z-index: 1; }
.card-tag {
  font-size: 12px;
  color: var(--olive);
  background: rgba(120, 140, 93, 0.1);
  border: 1px solid rgba(120, 140, 93, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-en);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* ---------- PORTFOLIO ---------- */
.work-list { display: grid; gap: 32px; }
.work {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--panel-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}
.work:hover {
  border-color: rgba(217, 119, 87, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20, 20, 19, 0.1);
}
.work-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; }
.work-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(217, 119, 87, 0.22), transparent 60%);
  z-index: 1;
}
.work-vis {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 10px;
  color: rgba(20, 20, 19, 0.75);
  transition: transform 0.6s var(--ease);
}
.work:hover .work-vis { transform: scale(1.06); }
.vis-1 { background: linear-gradient(135deg, #f4ede2 0%, #e3dacc 45%, #e0d3c2 100%); }
.vis-2 { background: linear-gradient(135deg, #f3e2da 0%, #ebcece 50%, #e8d5c8 100%); }
.vis-3 { background: linear-gradient(135deg, #e7eee4 0%, #d9e3d3 55%, #cbd9c9 100%); }
.work-vis span {
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.5);
}
.work-info .work-year {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--olive);
}
.work-info h3 { font-size: 22px; font-weight: 700; margin: 10px 0 14px; color: var(--text); }
.work-info p { color: var(--text-dim); font-size: 15px; font-weight: 300; margin-bottom: 20px; }
.work-stack { display: flex; gap: 10px; flex-wrap: wrap; }
.work-stack span {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  padding: 4px 14px;
  border-radius: 999px;
}

/* ---------- QUOTE ---------- */
.quote {
  position: relative;
  padding: 140px 28px;
  margin: 40px 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(245, 244, 237, 0.9) 30%, rgba(245, 244, 237, 0.9) 70%, transparent);
}
.quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 20, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 19, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
  will-change: transform;
}
.quote-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: -20px;
}
.quote-inner p {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
}
.quote-author {
  display: block;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 2px;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info { display: grid; gap: 8px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.contact-item > div { min-width: 0; }
.contact-item:hover {
  border-color: var(--panel-border);
  background: var(--panel-solid);
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.06);
}
.ci-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 20px;
  border-radius: 12px;
  background: rgba(217, 119, 87, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}
.ci-label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ci-value {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact-social { display: flex; gap: 12px; margin-top: 24px; }
.social {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-en);
  background: var(--panel-solid);
  transition: all 0.3s var(--ease);
}
.social:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.2);
}

.contact-form {
  background: var(--panel-solid);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--panel-border-2);
  border-radius: 12px;
  padding: 15px 18px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  background: var(--panel-solid);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.16);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-faint); }
.form-tip { font-size: 13px; color: var(--olive); min-height: 20px; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 40px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { font-size: 13px; color: var(--text-faint); line-height: 1.6; }
.copyright { font-size: 13px; color: var(--text-faint); font-family: var(--font-en); }

/* ---------- 滚动渐显 ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: transform, opacity;
}
[data-reveal="up"] { transform: translateY(46px); }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .work, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .work { grid-template-columns: 1fr; }
  .section { padding: 96px 24px; }
}

@media (max-width: 768px) {
  .hero {
    padding-top: var(--nav-h);
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    height: calc(100vh - var(--nav-h));
    width: min(320px, 80vw);
    background: rgba(250, 249, 245, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    display: none;
    opacity: 0;
    transform: none;
    transition: opacity 0.35s var(--ease);
    border-left: 1px solid var(--panel-border);
    visibility: hidden;
    pointer-events: none;
  }
  .nav-links.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(38px, 11vw, 58px); }
  .hero-eyebrow {
    font-size: clamp(8px, 2.5vw, 10px);
    letter-spacing: clamp(0.5px, 0.45vw, 1.75px);
    margin-bottom: 24px;
  }
  /* 移动端避免横向入场位移扩大页面宽度，同时保留渐显效果 */
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(46px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html { scroll-behavior: auto; }
}
