/* =============================================================
   四川数龙智创科技有限公司 · 官网样式
   纯静态 / 零外部依赖 / 无框架
   -------------------------------------------------------------
   设计语言：深墨蓝底 + 青绿 / 靛紫，顶部横向吸顶导航，非对称大排版
   与原站（白底 + 橙色 + Bootstrap 卡片网格）刻意保持视觉差异
   -------------------------------------------------------------
   修改配色：只需改下方 :root 中的变量
   ============================================================= */

:root {
  --bg: #0a1118;
  --bg-soft: #0e1a25;
  --bg-raise: #12212e;
  --line: rgba(168, 205, 220, .13);
  --line-strong: rgba(168, 205, 220, .26);
  --text: #e8f1f3;
  --muted: #8a9ea9;
  --dim: #5f7480;
  --accent: #43e6bd;
  --accent-2: #7b8cff;
  --accent-ink: #08201c;
  --header-h: 72px;
  --container: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.container { width: min(calc(100% - 112px), var(--container)); margin-inline: auto; }
section { scroll-margin-top: calc(var(--header-h) + 20px); }

/* -------------------------------------------------------------
   品牌 logo 插槽（当前未启用：公司 logo 待定稿，页面不显示任何 logo）
   定稿后在 HTML 三处品牌区放入对应 <img> 即可，尺寸已预留：
   .rail__mark → 顶部栏 / .mobilebar__logo → 移动端顶栏 / .footer__mark → 页脚
   ------------------------------------------------------------- */
.rail__mark, .mobilebar__logo, .footer__mark { display: block; object-fit: contain; }
.rail__mark { width: 30px; height: 30px; margin-bottom: 4px; }
.mobilebar__logo { width: 26px; height: 26px; }
.footer__mark { width: 44px; height: 44px; margin-bottom: 26px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font-size: 14px;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 130; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); pointer-events: none;
}

/* 顶部导航栏为 sticky，位于 .page 文档流内，页面无需额外留白 */

/* -------------------------------------------------------------
   顶部横向导航（桌面，sticky 吸顶）
   ------------------------------------------------------------- */
.rail {
  position: sticky; top: 0; z-index: 60;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 56px); width: 100%; height: var(--header-h);
  padding: 0 clamp(24px, 4vw, 56px);
  background: rgba(8, 15, 21, .94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.rail__brand {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 2px; flex: none; min-width: 190px;
}
.rail__brand-cn { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; color: var(--text); }
.rail__brand-text {
  font-family: var(--mono); font-size: 8.5px; line-height: 1.4;
  letter-spacing: .16em; color: var(--dim);
}
.rail__nav {
  flex: 1; display: flex; flex-direction: row; align-items: center;
  justify-content: flex-end; gap: clamp(18px, 2.6vw, 42px);
}
.rail__link {
  position: relative; display: flex; align-items: baseline; gap: 7px;
  padding: 10px 0; color: var(--muted); white-space: nowrap;
  transition: color .3s var(--ease);
}
.rail__link::before {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 2px; background: var(--accent);
  transform: translateX(-50%); transition: width .35s var(--ease);
}
.rail__link:hover, .rail__link.is-active { color: var(--accent); }
.rail__link.is-active::before { width: 100%; }
.rail__no { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--dim); }
.rail__link.is-active .rail__no { color: var(--accent); }
.rail__label { font-size: 14px; letter-spacing: .1em; }

/* 移动端顶栏与抽屉：默认隐藏 */
.mobilebar, .drawer, .drawer-mask { display: none; }

/* -------------------------------------------------------------
   01 首屏
   ------------------------------------------------------------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 620px at 78% 38%, rgba(67, 230, 189, .075), transparent 70%),
    radial-gradient(700px 520px at 8% 92%, rgba(123, 140, 255, .07), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 84px 84px; opacity: .4;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 60%, #000);
}
.hero__watermark {
  position: absolute; top: 6%; right: -2%; pointer-events: none;
  font-family: var(--mono); font-size: clamp(70px, 11vw, 180px);
  font-weight: 700; letter-spacing: -.05em; white-space: nowrap;
  color: rgba(232, 241, 243, .022);
}
.hero__grid {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(30px, 5vw, 70px); align-items: center;
  padding-top: 76px; padding-bottom: 58px;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 30px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--accent); text-transform: uppercase;
}
.eyebrow__line { width: 36px; height: 1px; background: var(--accent); flex: none; }
.eyebrow__sep { color: var(--dim); }
.hero__title {
  font-size: clamp(48px, 6.2vw, 100px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.045em;
}
.hero__title em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
@supports not (-webkit-text-stroke: 1px #000) {
  .hero__title em { color: var(--accent); }
}
.hero__dot { color: var(--accent); }
.hero__lead { margin-top: 30px; max-width: 610px; font-size: 15px; line-height: 2; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 13px 26px;
  border: 1px solid transparent; border-radius: 2px; font-size: 14px;
  font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn__arrow { font-size: 18px; line-height: 1; }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: #6ff2d0; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(67, 230, 189, .18); }
.btn--line { border-color: var(--line-strong); color: var(--text); }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

.hero__meta {
  display: flex; align-items: center; gap: 18px; margin-top: 52px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--dim);
}
.hero__meta b { color: var(--accent); font-weight: 600; }
.hero__meta-line { width: 54px; height: 1px; background: var(--line-strong); }

/* 几何核心图形 */
.hero__art { position: relative; justify-self: end; width: min(100%, 460px); }
.core { width: 100%; height: auto; overflow: visible; }
.core__ring { fill: none; stroke: rgba(168, 205, 220, .16); stroke-width: 1; transform-box: view-box; transform-origin: center; }
.core__ring--2 { stroke: rgba(67, 230, 189, .38); stroke-width: 2; stroke-dasharray: 1 11; animation: spin 44s linear infinite; }
.core__ring--3 { stroke: url(#coreStroke); stroke-width: 1.6; stroke-dasharray: 90 26 8 26; opacity: .75; animation: spin 24s linear infinite reverse; }
.core__ring--4 { stroke: rgba(123, 140, 255, .45); stroke-dasharray: 3 8; animation: spin 32s linear infinite; }
.core__cross path { fill: none; stroke: rgba(168, 205, 220, .14); stroke-width: 1; stroke-dasharray: 2 9; }
.core__orbit { transform-box: view-box; transform-origin: center; animation: spin 18s linear infinite; }
.core__orbit--b { animation-duration: 27s; animation-direction: reverse; }
.core__orbit circle { fill: var(--accent); }
.core__orbit--b circle { fill: var(--accent-2); }
.core__diamond { fill: rgba(10, 17, 24, .92); stroke: var(--accent); stroke-width: 1.5; }
.core__pin { fill: var(--accent); }
.hero__fig {
  position: absolute; right: 0; bottom: -14px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--dim);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 技术栈跑马灯 */
.hero__ticker {
  position: relative; z-index: 2; overflow: hidden;
  padding: 14px 0; border-top: 1px solid var(--line); background: rgba(8, 15, 21, .55);
}
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track > span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--dim); white-space: nowrap;
}
.ticker__track i { margin: 0 14px; font-style: normal; color: var(--accent); }
.hero__ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------
   通用区块标题
   ------------------------------------------------------------- */
.section { position: relative; padding: clamp(90px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  color: var(--accent); text-transform: uppercase;
}
.kicker span { color: var(--dim); }
.section__title { font-size: clamp(38px, 4.8vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.title-thin { font-weight: 300; color: var(--muted); }
.section__note { padding-bottom: 12px; font-size: 14px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }

/* -------------------------------------------------------------
   02 服务能力：清单式长行
   ------------------------------------------------------------- */
.cap-row {
  position: relative; display: grid;
  grid-template-columns: 72px 210px minmax(0, 1fr) 32px;
  gap: 24px; align-items: start; padding: 28px 12px;
  border-top: 1px solid var(--line);
  transition: background .35s var(--ease);
}
.cap-list .cap-row:last-child { border-bottom: 1px solid var(--line); }
.cap-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.cap-row:hover { background: linear-gradient(90deg, rgba(67, 230, 189, .065), transparent 72%); }
.cap-row:hover::before { transform: scaleY(1); }
.cap-row__no { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent); padding-top: 7px; }
.cap-row__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; transition: color .3s; }
.cap-row:hover .cap-row__title { color: var(--accent); }
.cap-row__desc { font-size: 14px; line-height: 1.95; color: var(--muted); padding-top: 3px; }
.cap-row__arrow { justify-self: end; font-size: 18px; color: var(--dim); transition: transform .3s var(--ease), color .3s; }
.cap-row:hover .cap-row__arrow { transform: translate(3px, -3px); color: var(--accent); }

/* -------------------------------------------------------------
   03 关于我们
   ------------------------------------------------------------- */
.about { background: linear-gradient(180deg, rgba(14, 26, 37, .4), transparent); }
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 7vw, 110px); align-items: start; }
.about__quote { position: relative; }
.about__mark {
  position: absolute; top: 44px; left: -18px; pointer-events: none;
  font-family: Georgia, "Songti SC", serif; font-size: 190px; line-height: 1;
  color: rgba(67, 230, 189, .085);
}
.about__title { position: relative; font-size: clamp(30px, 3.6vw, 54px); font-weight: 700; line-height: 1.45; letter-spacing: -.03em; }
.about__title em { font-style: normal; color: var(--accent); }
.about__sub { margin-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.about__detail { border-left: 1px solid var(--line); padding-left: clamp(28px, 4vw, 60px); }
.about__lead { font-size: 16px; line-height: 2.1; }
.about__label { margin: 44px 0 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.skills { display: grid; gap: 16px; }
.skill { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 20px; }
.skill__name { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.skill__track { position: relative; height: 3px; overflow: hidden; background: rgba(168, 205, 220, .12); }
.skill__track i {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.1s var(--ease);
}
.is-visible .skill__track i, html:not(.js) .skill__track i { width: var(--w); }

/* -------------------------------------------------------------
   04 案例：交错长卷（视觉全部由 CSS 绘制，无外部图片）
   ------------------------------------------------------------- */
.case-row {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 72px); align-items: center;
  padding: 40px 0; border-top: 1px solid var(--line);
}
.case-row:last-of-type { border-bottom: 1px solid var(--line); }
.case-row:nth-child(even) .case-row__info { order: 2; }
.case-row__info { display: flex; flex-direction: column; align-items: flex-start; }
.case-row__no { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--dim); }
.case-row__cat {
  margin: 22px 0 12px; padding: 4px 13px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 11px; letter-spacing: .12em; color: var(--accent);
}
.case-row__title { font-size: clamp(24px, 3vw, 42px); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; }
.case-row__link {
  display: flex; align-items: center; gap: 10px; margin-top: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--dim);
}
.case-row__link i { font-style: normal; font-size: 16px; color: var(--accent); }

.cv {
  --c1: #43e6bd; --c2: #7b8cff;
  position: relative; height: clamp(220px, 24vw, 320px); overflow: hidden;
  border: 1px solid var(--line); border-radius: 3px; background: var(--bg-soft);
  transition: border-color .4s var(--ease), filter .4s var(--ease);
}
.case-row:hover .cv { border-color: var(--line-strong); filter: brightness(1.12); }
.cv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(168, 205, 220, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 205, 220, .055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cv__top {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(8, 15, 21, .6);
}
.cv__top i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.cv__top i:first-child { background: var(--c1); opacity: .85; }
.cv__top span { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--dim); }
.cv__canvas { position: relative; height: calc(100% - 34px); overflow: hidden; }
.cv__shape {
  position: absolute; left: 12%; top: 18%; width: 52%; height: 58%;
  background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: .82;
  transform: skewX(-12deg); box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
}
.cv__orb {
  position: absolute; right: 14%; top: 22%; width: 38%; aspect-ratio: 1;
  border: 1px solid var(--c1); border-radius: 50%; opacity: .55;
}
.cv__lines { position: absolute; z-index: 2; left: 12%; bottom: 12%; display: grid; gap: 7px; width: 44%; }
.cv__lines i { display: block; height: 3px; background: rgba(232, 241, 243, .28); }
.cv__lines i:nth-child(1) { width: 90%; }
.cv__lines i:nth-child(2) { width: 64%; }
.cv__lines i:nth-child(3) { width: 78%; }
.cv__lines i:nth-child(4) { width: 40%; background: var(--c1); }
.cv__tag {
  position: absolute; z-index: 3; right: 14px; bottom: 10px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--muted);
}

/* 六个案例各不相同的抽象界面预览 */
.cv--2 { --c1: #7b8cff; --c2: #43e6bd; }
.cv--2 .cv__shape { left: 28%; top: 12%; width: 44%; height: 76%; border-radius: 50%; transform: none; }
.cv--2 .cv__orb { right: 8%; top: 30%; width: 24%; border-radius: 0; transform: rotate(45deg); }

.cv--3 { --c1: #43e6bd; --c2: #2f6f8f; }
.cv--3 .cv__shape {
  left: 36%; top: 10%; width: 26%; height: 80%; border-radius: 20px;
  transform: none; box-shadow: inset 0 0 0 4px rgba(8, 15, 21, .5), 0 22px 60px rgba(0, 0, 0, .4);
}
.cv--3 .cv__orb { right: 10%; top: 18%; width: 24%; border-style: dashed; }
.cv--3 .cv__lines { left: 8%; width: 24%; }

.cv--4 { --c1: #5fb8ff; --c2: #43e6bd; }
.cv--4 .cv__shape {
  left: 10%; top: 22%; width: 78%; height: 60%; transform: none;
  background: repeating-linear-gradient(90deg, var(--c1) 0 12px, transparent 12px 24px),
              linear-gradient(180deg, transparent, var(--c2));
  opacity: .5;
}
.cv--4 .cv__orb { right: 6%; top: 8%; width: 26%; border-radius: 0; }
.cv--4 .cv__lines { width: 60%; }

.cv--5 { --c1: #9d8cff; --c2: #43e6bd; }
.cv--5 .cv__shape {
  left: 20%; top: 24%; width: 46%; height: 52%; transform: none;
  box-shadow: 22px 22px 0 -2px rgba(67, 230, 189, .35);
}
.cv--5 .cv__orb { right: 12%; top: 14%; width: 30%; border-width: 3px; }
.cv--5 .cv__lines { left: 20%; }

.cv--6 { --c1: #43e6bd; --c2: #7b8cff; }
.cv--6 .cv__shape {
  left: 30%; top: 12%; width: 40%; height: 76%; border-radius: 50%; transform: none;
  background: radial-gradient(circle at 35% 30%, var(--c1), var(--c2) 62%, transparent 72%);
  opacity: .8; box-shadow: 0 0 70px rgba(67, 230, 189, .18);
}
.cv--6 .cv__orb { right: 8%; top: 30%; width: 22%; box-shadow: 0 0 0 16px rgba(67, 230, 189, .08), 0 0 0 34px rgba(123, 140, 255, .06); }

/* -------------------------------------------------------------
   数据带
   ------------------------------------------------------------- */
.stats { border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(67, 230, 189, .07), rgba(123, 140, 255, .055)); }
.stats__inner { display: grid; grid-template-columns: repeat(3, 1fr); padding: clamp(58px, 7vw, 92px) 0; }
.stats__item { padding: 0 clamp(20px, 4vw, 60px); border-left: 1px solid var(--line); }
.stats__item:first-child { padding-left: 0; border-left: 0; }
.stats__num {
  display: block; font-family: var(--mono); font-size: clamp(60px, 8.5vw, 132px);
  font-weight: 600; line-height: 1; letter-spacing: -.06em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stats__item p { margin-top: 14px; font-size: 14px; letter-spacing: .14em; color: var(--muted); }

/* -------------------------------------------------------------
   05 联系我们
   ------------------------------------------------------------- */
.contact__box {
  position: relative; display: grid; grid-template-columns: 1.2fr .8fr;
  gap: clamp(40px, 6vw, 90px); padding: clamp(40px, 5vw, 70px);
  border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(600px 320px at 0% 0%, rgba(67, 230, 189, .085), transparent), var(--bg-soft);
}
.contact__box::before { content: ""; position: absolute; top: 0; left: 0; width: 80px; height: 2px; background: var(--accent); }
.contact__title { font-size: clamp(44px, 6vw, 88px); font-weight: 800; line-height: 1.1; letter-spacing: -.05em; }
.contact__title span { color: var(--accent); }
.contact__sub { margin: 18px 0 32px; color: var(--muted); }
.contact__info { display: grid; align-content: center; }
.contact__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__item:first-child { border-top: 1px solid var(--line); }
.contact__item span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--dim); }
.contact__item p { margin-top: 4px; font-size: 15px; }

/* -------------------------------------------------------------
   页脚
   ------------------------------------------------------------- */
.footer { padding: clamp(70px, 8vw, 110px) 0 0; background: #070d13; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 50px; padding-bottom: 70px; }
.footer__name { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.footer__en { margin-top: 16px; font-family: var(--mono); font-size: 10px; line-height: 1.9; letter-spacing: .14em; color: var(--dim); }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h3 { margin-bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
.footer__col a { width: fit-content; font-size: 14px; color: var(--muted); transition: color .25s, transform .25s; }
.footer__col a:hover { color: var(--accent); transform: translateX(4px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 24px 0 32px;
  border-top: 1px solid var(--line); font-size: 12px; color: var(--dim);
}
.footer__bottom a { transition: color .25s; }
.footer__bottom a:hover { color: var(--accent); }

.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: rgba(8, 15, 21, .92); color: var(--accent); font-size: 18px; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s, color .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* -------------------------------------------------------------
   滚动淡入（无 JS 时内容始终可见）
   ------------------------------------------------------------- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------
   响应式
   ------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container { width: calc(100% - 72px); }
  .cap-row { grid-template-columns: 58px 170px minmax(0, 1fr) 26px; gap: 18px; }
  .rail { padding: 0 24px; gap: 18px; }
  .rail__brand { min-width: 150px; }
  .rail__nav { gap: 18px; }
  .rail__label { font-size: 13px; }
}

@media (max-width: 1023px) {
  section { scroll-margin-top: 80px; }
  .rail { display: none; }
  .container { width: calc(100% - 48px); }

  .mobilebar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 64px;
    display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
    background: rgba(8, 15, 21, .94); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .mobilebar__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 40px; height: 40px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  body.menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .drawer {
    position: fixed; top: 64px; right: 0; bottom: 0; z-index: 95;
    display: flex; flex-direction: column; width: min(78vw, 340px); padding: 34px 28px;
    background: #0b151e; border-left: 1px solid var(--line); overflow-y: auto;
    transform: translateX(100%); transition: transform .42s var(--ease);
  }
  body.menu-open .drawer { transform: none; }
  .drawer-mask { position: fixed; inset: 64px 0 0; z-index: 94; display: block; background: rgba(3, 8, 12, .62); }
  .drawer-mask[hidden] { display: none; }
  .drawer__title { margin-bottom: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--dim); }
  .drawer a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; }
  .drawer a span { font-family: var(--mono); font-size: 10px; color: var(--accent); }
  .drawer__foot { margin-top: auto; padding-top: 30px; font-family: var(--mono); font-size: 9px; line-height: 1.8; letter-spacing: .12em; color: var(--dim); }

  .hero { min-height: auto; padding-top: 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 48px; }
  .hero__title { font-size: clamp(44px, 9vw, 80px); }
  .hero__art { grid-row: 2; justify-self: center; width: min(70%, 360px); }
  .hero__watermark { top: 3%; right: -6%; }
  .hero__meta { margin-top: 36px; }

  .section__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section__note { padding-bottom: 0; white-space: normal; }
  .about__grid, .contact__box, .footer__top { grid-template-columns: 1fr; }
  .about__detail { border-left: 0; border-top: 1px solid var(--line); padding: 36px 0 0; }
  .case-row { grid-template-columns: 1fr; gap: 24px; }
  .case-row:nth-child(even) .case-row__info { order: 0; }
  .cv { height: 240px; }
  .stats__inner { grid-template-columns: 1fr; }
  .stats__item { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats__item:first-child { border-top: 0; }
  .footer__top { gap: 40px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .hero__title { font-size: clamp(40px, 11vw, 60px); }
  .hero__lead { font-size: 14px; }
  .hero__art { width: 78%; }
  .eyebrow { font-size: 9.5px; letter-spacing: .12em; gap: 8px; }
  .eyebrow__line { width: 22px; }
  .hero__meta { flex-wrap: wrap; gap: 10px; font-size: 9px; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 40px; }
  .cap-row { grid-template-columns: 42px minmax(0, 1fr) 22px; gap: 8px 14px; padding: 22px 4px; }
  .cap-row__no { grid-column: 1; grid-row: 1; padding-top: 5px; }
  .cap-row__title { grid-column: 2; grid-row: 1; }
  .cap-row__desc { grid-column: 2 / 4; grid-row: 2; }
  .cap-row__arrow { grid-column: 3; grid-row: 1; }
  .about__mark { font-size: 130px; left: -8px; }
  .skill { grid-template-columns: 90px 1fr; gap: 12px; }
  .cv { height: 210px; }
  .contact__box { padding: 30px 24px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .to-top { right: 16px; bottom: 16px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .skill__track i { width: var(--w); }
}
