/* LEO 黎叔官网 v2 — Editorial / Swiss Minimalism
   纯静态零依赖。按 ui-ux-pro-max 规范：语义 token、4/8 间距节奏、
   44px 触摸目标、可见焦点环、分级动效、reduced-motion、移动优先断点 700 / 960 / 1280。 */

:root {
  /* 品牌色板（沿用线上 liyong.love，不替换为规范示例色） */
  --ink: #17313b;
  --ink-soft: #3a565e;
  --muted: #5f7379;
  --accent: #147e79;
  --accent-dark: #0d6562;
  --studio-ink: #25211f;
  --paper: #f7faf8;
  --mist: #eaf3f0;
  --white: #ffffff;
  --line: #d8e5e1;
  --line-strong: #b9d0cb;
  --badge-ink: #8a6224;
  --badge-bg: #fbf3e6;
  --badge-line: #ead7b7;
  --danger: #a33a2f;
  --danger-bg: #fff5f5;
  --danger-line: #f0cccc;

  /* 语义别名：组件只用语义 token，不写死 hex */
  --color-text: var(--ink);
  --color-text-soft: var(--ink-soft);
  --color-text-muted: var(--muted);
  --color-surface: var(--white);
  --color-surface-alt: var(--paper);
  --color-border: var(--line);
  --color-primary: var(--accent-dark);
  --color-focus: var(--accent);

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 4/8 间距节奏 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --radius-card: 12px;
  --radius-btn: 6px;
  --container: 1280px;
  --nav-h: 72px;
  --tap: 44px;

  /* 分级动效 token：快速按压 / 常规 hover / 慢速入场 */
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 520ms;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* 一致的阴影层级 */
  --shadow-sm: 0 1px 2px rgba(23, 49, 59, .05), 0 2px 8px rgba(23, 49, 59, .04);
  --shadow-md: 0 10px 28px rgba(23, 49, 59, .10);
  --shadow-lg: 0 20px 52px rgba(23, 49, 59, .14);
  --measure: 62ch;

  /* 案例卡片：9:16 竖版、发光与扫光 */
  --case-aspect: 9 / 16;
  --case-glow: rgba(20, 126, 121, .55);
  --case-sheen: rgba(255, 255, 255, .20);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--dur-base); }
a:hover { color: var(--accent); }
a, button, summary, [role="button"] { cursor: pointer; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--mist); color: var(--ink); }

/* 可见焦点环：2px + 柔光，绝不 outline:none 了事 */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(20, 126, 121, .18);
}
.site-footer :focus-visible, .project :focus-visible, .hero-overlay :focus-visible {
  outline-color: #8fd0c2;
  box-shadow: 0 0 0 5px rgba(143, 208, 194, .25);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-btn);
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }

/* ---------- 排版基元 ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  color: var(--accent-dark); text-transform: uppercase; line-height: 1.6;
}
.eyebrow::before { content: ''; flex: none; width: 20px; height: 1px; background: currentColor; opacity: .65; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 8.6vw, 88px); line-height: 1.12; }
h2 { font-size: clamp(30px, 6.2vw, 54px); line-height: 1.22; }
h3 { font-size: 22px; line-height: 1.4; }
h4 { font-size: 17px; font-weight: 600; line-height: 1.5; }
em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: 0; color: var(--accent-dark);
}
.lead { font-size: 17px; line-height: 1.75; color: var(--color-text-muted); max-width: var(--measure); }
.arrow { display: inline-block; transition: transform var(--dur-base) var(--ease); }
a:hover .arrow, a:focus-visible .arrow { transform: translate(2px, -2px); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 11px 24px;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: 15px; font-weight: 600; line-height: 1.4; text-align: center;
  transition: background-color var(--dur-base), color var(--dur-base),
              border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-fast);
}
.btn-primary { background: var(--color-primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink); color: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--color-surface-alt); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .62; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; min-height: 52px; padding: 14px 24px; }
.btn.is-loading::before {
  content: ''; width: 15px; height: 15px; flex: none;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: var(--white);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-height: var(--tap); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 27px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 13px; font-weight: 600; }
.brand-text small { font-size: 12px; letter-spacing: .1em; color: var(--color-text-muted); }

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav-links {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-3) var(--space-3);
  flex-direction: column; gap: 4px; box-shadow: var(--shadow-md);
}
.nav-links.is-open { display: flex; }
.nav-links a {
  display: flex; align-items: center; min-height: var(--tap);
  padding: 8px 4px; color: var(--ink); font-size: 15px;
  border-bottom: 1px solid var(--color-border);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--accent-dark); }
.nav-links a.is-active { font-weight: 600; }
.nav-cta { display: none; }
.nav-toggle {
  width: var(--tap); height: var(--tap); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-btn);
  transition: border-color var(--dur-base), background-color var(--dur-base);
}
.nav-toggle:hover { border-color: var(--accent); background: var(--color-surface-alt); }
.nav-bar { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform var(--dur-base), opacity var(--dur-base); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--space-6) 0 var(--space-7); background: var(--color-surface-alt); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(23, 49, 59, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 49, 59, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 85%);
}
.hero-inner { position: relative; display: grid; gap: var(--space-5); align-items: center; }
.hero-copy .eyebrow { margin-bottom: var(--space-3); }
.hero-copy h1 { margin-bottom: var(--space-3); }
.hero-copy .lead { margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid var(--line-strong);
}
.hero-facts dt { font-size: 12px; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 2px; }
.hero-facts dd { font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-visual { position: relative; }
.hero-visual::before {
  content: ''; position: absolute; top: -12px; right: -12px; width: 56%; height: 56%;
  border: 1px solid var(--line-strong); border-radius: var(--radius-card); pointer-events: none;
}
.hero-visual > img {
  position: relative; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: linear-gradient(145deg, #e7f3ed, #c5e1df 58%, #b5d6de);
  border-radius: var(--radius-card); box-shadow: var(--shadow-lg);
}
.hero-overlay {
  position: absolute; left: 0; bottom: 0; right: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-3); color: var(--white);
  background: linear-gradient(transparent, rgba(23, 49, 59, .78));
  border-radius: 0 0 var(--radius-card) var(--radius-card); pointer-events: none;
}
.overlay-line { font-size: 20px; font-weight: 600; letter-spacing: .04em; line-height: 1.3; }
.overlay-meta { margin-top: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; opacity: .85; }
.hero-scroll {
  display: none; position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: var(--tap); height: var(--tap); align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  color: var(--accent-dark); background: rgba(255, 255, 255, .7);
  transition: border-color var(--dur-base), background-color var(--dur-base);
}
.hero-scroll:hover { border-color: var(--accent); background: var(--white); color: var(--accent-dark); }
.hero-scroll span { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }

/* ---------- 自有项目（深色带） ---------- */
.project { background: var(--studio-ink); color: #f3eee9; padding: var(--space-6) 0; }
.project .eyebrow { color: #a8d5cb; }
.project-head h2 { margin: var(--space-2) 0; max-width: none; font-size: 44px; }
.project-head h2 em { color: #8fd0c2; }
.project-head .lead { color: #cac3bd; margin-bottom: var(--space-4); }
.project-head .btn-primary { background: #8fd0c2; color: #17313b; }
.project-head .btn-primary:hover { background: #b5e2d8; color: #17313b; }
.project-keywords {
  font-size: 13px; letter-spacing: .04em; line-height: 1.8; color: #b8afa9;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: var(--space-3); margin-top: var(--space-5);
}
.project-traits { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.project-traits li {
  display: grid; grid-template-columns: 40px 1fr; gap: 0 var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, .18); padding-top: var(--space-2);
}
.trait-no { font-family: var(--font-mono); font-size: 12px; color: #a8d5cb; grid-row: span 2; }
.project-traits strong { font-size: 16px; font-weight: 600; }
.project-traits li > span:last-child { font-size: 14px; color: #cac3bd; }

/* ---------- 章节通用 ---------- */
.chapter { padding: var(--space-6) 0; border-top: 1px solid var(--color-border); }
.chapter--process { background: var(--mist); }
.chapter--contact { background: var(--color-surface-alt); }
.chapter-head { position: relative; margin-bottom: var(--space-5); }
.chapter-head .eyebrow { margin-bottom: var(--space-2); }
.chapter-head h2 { margin-bottom: var(--space-2); max-width: 24ch; }
.chapter-watermark {
  display: none; position: absolute; right: 0; top: -20px;
  font-family: var(--font-mono); font-size: 120px; font-weight: 600;
  line-height: 1; color: var(--accent); opacity: .09; pointer-events: none;
}

/* ---------- 01 服务 ---------- */
.services-grid { display: grid; gap: 12px; }
.service-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--color-border); border-radius: var(--radius-card);
  padding: var(--space-3); background: var(--color-surface); box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base);
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), #8fd0c2);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease);
}
.service-card:hover, .service-card:focus-within { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-3); }
.card-index { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.card-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--color-text-muted); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--color-text-muted); line-height: 1.75; margin-bottom: var(--space-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font-size: 12px; padding: 4px 9px; border: 1px solid var(--color-border);
  border-radius: 4px; color: var(--color-text-muted); background: var(--color-surface-alt);
}
.service-cta {
  display: grid; gap: var(--space-3); align-items: center;
  margin-top: var(--space-5); padding: var(--space-3);
  background: var(--mist); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-card) var(--radius-card) 0;
}
.service-cta strong { display: block; font-size: 18px; margin-bottom: 4px; }
.service-cta p { font-size: 14px; color: var(--color-text-muted); max-width: 52ch; }

/* ---------- 02 案例 ---------- */
.cases-track {
  display: flex; align-items: flex-start; gap: var(--space-3);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: 4px;
  -webkit-overflow-scrolling: touch;
  padding: 16px 4px 18px;
}
.case-card {
  position: relative; isolation: isolate;
  flex: 0 0 min(72vw, 300px);
  scroll-snap-align: start;
  aspect-ratio: var(--case-aspect);
  border-radius: var(--radius-card);
  cursor: pointer;
  translate: 0 0; scale: 1;
  /* 必须保留 opacity / transform 的慢速项，否则会覆盖 .reveal 的入场过渡 */
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease),
    translate var(--dur-base) var(--ease),
    scale var(--dur-base) var(--ease);
}
.case-card__frame {
  position: absolute; inset: 0; overflow: hidden;
  border: 1px solid var(--color-border); border-radius: inherit;
  background: var(--mist);
}
/* 外发光放在卡片自身，外层不裁切 */
.case-card::after {
  content: ''; position: absolute; inset: -1px; z-index: 5;
  border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 2px var(--accent), 0 12px 34px rgba(20, 126, 121, .26), 0 0 24px var(--case-glow);
  transition: opacity var(--dur-base) var(--ease);
}
.case-card__sheen {
  position: absolute; inset: 0; z-index: 3;
  overflow: hidden; border-radius: inherit; pointer-events: none;
}
.case-card__sheen::before {
  content: ''; position: absolute; top: -20%; left: 0;
  width: 45%; height: 140%;
  background: linear-gradient(100deg, transparent, var(--case-sheen), transparent);
  transform: translateX(-160%) skewX(-18deg);
  transition: transform var(--dur-slow) var(--ease);
}
.case-card__poster, .case-card__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: var(--mist);
  transition: opacity var(--dur-base) var(--ease);
}
.case-card__poster { z-index: 1; opacity: 1; }
.case-card__video { z-index: 2; opacity: 0; }
.case-card__title {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 26px var(--space-3) 12px;
  font-size: 16px; font-weight: 600; letter-spacing: .01em; color: var(--white);
  background: linear-gradient(transparent, rgba(17, 35, 42, .86));
  text-shadow: 0 1px 6px rgba(17, 35, 42, .7);
  pointer-events: none;
}
.case-card:hover, .case-card:focus-visible,
.case-card:focus-within, .case-card.is-playing {
  translate: 0 -8px; scale: 1.03;
}
.case-card:hover::after, .case-card:focus-visible::after,
.case-card:focus-within::after, .case-card.is-playing::after { opacity: 1; }
.case-card:hover .case-card__sheen::before,
.case-card:focus-within .case-card__sheen::before,
.case-card.is-playing .case-card__sheen::before { transform: translateX(320%) skewX(-18deg); }
.case-card.is-playing .case-card__poster { opacity: 0; }
.case-card.is-playing .case-card__video { opacity: 1; }

/* ---------- 03 流程 ---------- */
.process-list { display: grid; gap: var(--space-3); }
.process-list li {
  border-top: 1px solid var(--line-strong); padding-top: var(--space-3);
  transition: border-color var(--dur-base);
}
.process-list li:hover { border-top-color: var(--accent); }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 14px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--color-surface); font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-dark); transition: background-color var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.process-list li:hover .step-no { background: var(--accent-dark); color: var(--white); border-color: var(--accent-dark); }
.process-list h3 { margin-bottom: 8px; }
.process-list p { font-size: 15px; color: var(--color-text-muted); }
.chapter-head--split .btn { margin-top: var(--space-3); }

/* ---------- 04 关于 ---------- */
.about-grid { display: grid; gap: var(--space-5); align-items: start; }
.about-visual { position: relative; }
.about-visual img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius-card); border: 1px solid var(--color-border); box-shadow: var(--shadow-md);
}
.about-sign {
  /* 真人照片底色较深，签名收进画面内并改用白色+投影，避免压在格纹上糊成一团、手机上被裁 */
  position: absolute; right: 14px; bottom: 8px; margin: 0;
  font-family: var(--font-serif); font-style: italic; font-size: 36px; color: var(--white);
  text-shadow: 0 2px 10px rgba(23, 49, 59, .6), 0 0 2px rgba(23, 49, 59, .45);
  pointer-events: none;
}
.about-copy .eyebrow { margin-bottom: var(--space-2); }
.about-copy h2 { margin-bottom: var(--space-3); }
.about-credit { font-size: 13px; letter-spacing: .06em; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.about-copy blockquote {
  font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.6;
  color: var(--accent-dark); border-left: 2px solid var(--accent);
  padding-left: var(--space-3); margin-bottom: var(--space-4);
}
.about-copy > p:not(.eyebrow):not(.about-credit):not(.about-signature) { color: var(--color-text-muted); font-size: 15px; }
.about-checks { display: grid; gap: 10px; margin: var(--space-4) 0; }
.about-checks li { position: relative; padding-left: 26px; font-size: 15px; }
.about-checks li::before {
  content: ''; position: absolute; left: 2px; top: 9px; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.about-signature { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--accent-dark); }
.about-cta { margin-top: var(--space-3); }

/* ---------- 05 联系 ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
.contact-list > div {
  display: grid; grid-template-columns: 72px 1fr; gap: var(--space-2);
  padding: 14px 0; border-bottom: 1px solid var(--color-border);
}
.contact-list dt { font-size: 13px; letter-spacing: .08em; color: var(--color-text-muted); }
.contact-list dd { font-size: 16px; word-break: break-all; }
.contact-list a { text-underline-offset: 3px; }
.contact-list a:hover { text-decoration: underline; }
.qr-box { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.qr-box img {
  width: 116px; height: 116px; object-fit: contain; background: var(--white);
  border: 1px solid var(--color-border); border-radius: var(--radius-btn); padding: 5px;
}
.qr-box strong { display: block; font-size: 15px; margin-bottom: 4px; }
.qr-box small { display: block; font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

.contact-form-wrap {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-card); padding: var(--space-3); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: var(--space-3); }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--color-surface-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-btn); font-size: 16px; line-height: 1.5;
  transition: border-color var(--dur-base), background-color var(--dur-base), box-shadow var(--dur-base);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--white); }
.field textarea { resize: vertical; min-height: 124px; }
.field input::placeholder, .field textarea::placeholder { color: #5b6f74; opacity: 1; }
.field-hint { margin-top: 6px; font-size: 13px; color: var(--color-text-muted); }
.field-error { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--danger); }
.field-error::before { content: '!'; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-right: 6px; border-radius: 50%; background: var(--danger); color: var(--white); font-size: 11px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); background: var(--danger-bg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footnote { margin-top: 12px; font-size: 13px; color: var(--color-text-muted); text-align: center; }
.form-env-notice {
  font-size: 13px; line-height: 1.7; color: var(--badge-ink);
  background: var(--badge-bg); border: 1px solid var(--badge-line);
  padding: 12px 14px; border-radius: var(--radius-btn); margin-bottom: var(--space-3);
}
.form-env-notice strong { display: block; margin-bottom: 2px; }
.form-success, .form-error { padding: var(--space-4) var(--space-3); border-radius: var(--radius-btn); }
.form-success { background: var(--mist); border: 1px solid var(--color-border); text-align: center; }
.success-mark { display: block; width: 40px; height: 40px; margin: 0 auto var(--space-2); color: var(--accent-dark); }
.form-success h3 { margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--color-text-muted); }
.success-alt { margin-top: var(--space-3); font-size: 13px !important; }
.form-error {
  margin-bottom: var(--space-3); background: var(--danger-bg);
  border: 1px solid var(--danger-line); color: var(--danger); font-size: 14px; font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dce8e4; padding: var(--space-6) 0 var(--space-4); }
.footer-inner { display: grid; gap: var(--space-3); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 27px; object-fit: contain; }
.footer-brand strong { display: block; font-size: 14px; color: var(--white); }
.footer-brand small { display: block; font-size: 12px; letter-spacing: .12em; color: #b3c8c4; }
.footer-slogan { font-size: 18px; color: #e8f1ee; }
.footer-slogan em { color: #8fd0c2; }
.to-top {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  justify-self: start; min-height: var(--tap); padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-btn);
  color: #e8f1ee; font-size: 14px;
  transition: border-color var(--dur-base), background-color var(--dur-base), color var(--dur-base);
}
.to-top:hover { border-color: #8fd0c2; background: rgba(143, 208, 194, .12); color: var(--white); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, .2); padding-top: var(--space-3);
  font-size: 12px; color: #b3c8c4;
}

/* ---------- 入场动画（无 JS 时内容照常可见） ---------- */
.reveal { transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-pending { opacity: 0; transform: translateY(12px); }

/* ---------- 断点：700 ---------- */
@media (min-width: 700px) {
  .container { padding: 0 var(--space-4); }
  /* 自有项目标题：宽屏保持一行，字号随视口收缩避免溢出 */
  .project-head h2 { font-size: clamp(32px, 4.6vw, 44px); white-space: nowrap; }
  .brand-text strong { font-size: 14px; }
  .project-traits { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .chapter { padding: var(--space-7) 0; }
  .chapter-watermark { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cases-track { gap: var(--space-4); }
  .case-card { flex-basis: min(38vw, 300px); }
  .service-cta { grid-template-columns: 1fr auto; gap: var(--space-5); padding: var(--space-4); }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .chapter-head--split { display: flex; justify-content: space-between; gap: var(--space-5); }
  .chapter-head--split > div { max-width: 62%; }
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: var(--space-6); }
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: var(--space-6); }
  .contact-form-wrap { padding: var(--space-4); }
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .to-top { justify-self: end; }
  .footer-bottom { grid-column: span 2; }
}

/* ---------- 断点：960 ---------- */
@media (min-width: 960px) {
  .nav-cta { display: inline-flex; padding: 10px 20px; font-size: 14px; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex; position: static; flex-direction: row; gap: var(--space-4);
    background: none; border: 0; padding: 0; box-shadow: none; align-items: center;
  }
  .nav-links a { min-height: var(--tap); padding: 6px 2px; font-size: 14px; border: 0; white-space: nowrap; }
  .nav-links a.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
  .hero { padding: var(--space-7) 0; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: var(--space-5); }
  .overlay-line { font-size: 24px; }
  .hero-scroll { display: flex; }
  h1 { font-size: clamp(56px, 6.2vw, 88px); }
  h2 { font-size: clamp(36px, 3.6vw, 54px); }
  .lead { font-size: 19px; }
  .project { padding: var(--space-7) 0; }
  .chapter { padding: var(--space-8) 0; }
  .chapter-head { margin-bottom: var(--space-6); }
  .chapter-watermark { font-size: 160px; top: -40px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cases-track {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 20px; overflow: visible; scroll-snap-type: none;
    padding: 8px 0 0;
  }
  .case-card { flex: none; width: 100%; }
  .service-card { padding: var(--space-4); }
  .service-card p { min-height: 3.5em; }
  .process-list { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: .75fr 1.25fr; }
  .contact-grid { gap: var(--space-7); }
  .footer-slogan { justify-self: end; }
}

/* ---------- 断点：1280 ---------- */
@media (min-width: 1280px) {
  .container { padding: 0 var(--space-5); }
  .hero-inner { gap: var(--space-7); }
  .services-grid { gap: 24px; }
  .cases-track { gap: 24px; }
  .service-card { padding: var(--space-4) var(--space-4) var(--space-5); }
  .process-list { gap: var(--space-5); }
  .about-grid { gap: var(--space-7); }
}

/* ---------- 超窄屏微调 ---------- */
@media (max-width: 379px) {
  h1 { font-size: 34px; }
  .brand-text strong { font-size: 12px; }
  .brand-text small { font-size: 11px; }
  .hero-actions .btn { width: 100%; }
  .contact-list > div { grid-template-columns: 60px 1fr; }
  .case-card { flex-basis: 78vw; }
  .qr-box { flex-direction: column; align-items: flex-start; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .hero-scroll span, .btn.is-loading::before { animation: none; }
  .case-card { translate: none !important; scale: none !important; }
  .case-card__sheen::before { transform: none !important; }
  .case-card::after { opacity: 0 !important; }
}
