/* ZERORC 官网样式 —— 迁移到 WordPress 时整份放进主题的 style.css 或单独 enqueue */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* ---------- 色彩与尺寸 ---------- */
:root {
  color-scheme: light;
  --render: #f4f4f4;   /* 页面底色，和 GP00 渲染图背景一致 */
  --paper: #ffffff;
  --line: #cfcfd2;     /* 线稿灰：分隔线、表格线 */
  --ink: #1a1a1d;
  --graphite: #5e5e66; /* 次要文字 */
  --anodize: #9b2fa3;  /* 阳极紫：链接、按钮、强调 */
  --anodize-deep: #7d2284;
  --glint: #ee7ae6;    /* 高光粉：只用在深色底上 */
  --studio: #0f0e13;   /* 影棚黑：和产品实拍背景一致 */
  --studio-text: #c9c7cf;
  /* 实拍图的背景色。图片边缘已经羽化成这个颜色，区块底色必须一致，否则会看到图片的方框 */
  --stage-slate: #2a2e38;  /* 首页主视觉：取自 hero底图 背景布边缘的平均色 */
  --stage-black: #0a0a0c;  /* GP00 页：两张车架实拍的黑色背景 */

  /* 以下几个变量在暗色主题里会换值 */
  --accent: var(--anodize);            /* 强调文字和链接 */
  --accent-hover: var(--anodize-deep);
  --on-ink: #fff;                      /* 压在 --ink 色块上的文字 */
  --prose: #2e2e33;
  --tint: rgba(26, 26, 29, .06);       /* 悬停时的浅色衬底 */
  --header-bg: rgba(244, 244, 244, .92);
  --notice-bg: #1a1a1d;

  --font: "Archivo", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  /* 字号阶梯 */
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: 1.75rem;
  --t-2xl: clamp(2rem, 3.4vw, 2.75rem);
  --t-3xl: clamp(2.5rem, 5vw, 4rem);

  --wrap: 1320px;
  --gutter: clamp(24px, 5vw, 72px);
  --header-h: 72px;

  /* 间距：整站留白都从这里调 */
  --space-section: clamp(72px, 11vw, 176px);  /* 区块上下 */
  --space-head: clamp(48px, 6vw, 96px);       /* 区块标题到内容 */
  --space-col: clamp(40px, 6vw, 96px);        /* 并排的两栏之间 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--render);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-m);
  line-height: 1.65;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
/* ---------- 暗色主题：<html data-theme="dark">，由页头按钮切换 ----------
 * 渲染图背景是浅灰的，暗色下换成 *-dark.jpg（img 上写 data-src-dark，site.js 负责换） */
:root[data-theme="dark"] {
  color-scheme: dark;
  --render: #131218;
  --paper: #1c1b22;
  --studio: #0a090d;
  --line: #34333b;
  --ink: #f0eff2;
  --graphite: #a3a1ab;
  --accent: #d26ad9;
  --accent-hover: var(--glint);
  --on-ink: #131218;
  --prose: #d9d7de;
  --tint: rgba(255, 255, 255, .07);
  --header-bg: rgba(19, 18, 24, .9);
  --notice-bg: #26252d;
}

/* 中文正文行距放宽。只设在 body 上靠继承生效，不要写成 :lang(zh-CN)——那会命中每个元素，把标题行距也撑开 */
html[data-lang="zh"] body { line-height: 1.85; }
/* 日文：先用日文字体，避免汉字显示成中文字形 */
html[data-lang="ja"] { --font: "Archivo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif; }
html[data-lang="ja"] body { line-height: 1.85; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }


[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  font: inherit; font-weight: 650; font-size: var(--t-s);
  text-decoration: none; border-radius: 2px; cursor: pointer;
  border: 1.5px solid currentColor; color: var(--ink); background: transparent;
}
.btn:hover { color: var(--ink); background: var(--tint); }
.btn--solid { background: var(--anodize); border-color: var(--anodize); color: #fff; }
.btn--solid:hover { background: var(--anodize-deep); border-color: var(--anodize-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.on-dark .btn { color: #fff; }
.on-dark .btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- 顶部通知条（不随页头吸顶，滚动后就让出位置） ---------- */
.notice { background: var(--notice-bg); color: #fff; font-size: var(--t-xs); }
.notice .wrap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 36px; padding-top: 6px; padding-bottom: 6px; padding-right: calc(var(--gutter) + 36px); padding-left: calc(var(--gutter) + 36px); text-align: center; }
.notice__close {
  position: absolute; right: calc(var(--gutter) - 8px); top: 50%; margin-top: -16px;
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  background: none; border: 0; color: rgba(255, 255, 255, .7); cursor: pointer;
}
.notice__close:hover { color: #fff; }
.notice a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.notice a:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
/* 页面在顶部时页头和底色连成一片，滚动后才出现分隔线（.is-scrolled 由 site.js 加） */
.js .site-header:not(.is-scrolled) { border-bottom-color: transparent; }
.site-header__inner { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 17px; width: auto; }
.nav { display: flex; gap: 8px; margin-left: auto; }
.nav a {
  padding: 8px 14px; color: var(--ink); text-decoration: none; font-size: var(--t-s); font-weight: 550;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--anodize); }
/* 页头右侧：明暗、语言是两个安静的图标/文字按钮，不加边框；一道细竖线隔开「在哪买」 */
.header-tools { display: flex; align-items: center; gap: 4px; }
.theme-toggle, .lang-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 10px; border: 0; border-radius: 2px; background: none; cursor: pointer;
  font: inherit; font-size: var(--t-xs); font-weight: 650; letter-spacing: .04em; color: var(--graphite);
  text-decoration: none; white-space: nowrap;
}
.theme-toggle { width: 36px; padding: 0; }
.theme-toggle:hover, .lang-toggle:hover, .lang-menu[open] > .lang-toggle { color: var(--ink); background: var(--tint); }
.lang-toggle__chev { transition: transform .2s ease; }
.lang-menu[open] .lang-toggle__chev { transform: rotate(180deg); }
.header-tools__sep { width: 1px; height: 18px; margin: 0 10px 0 8px; background: var(--line); }
/* 图标：亮色时显示月亮（点了变暗），暗色时显示太阳 */
.theme-toggle .i-sun, :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
/* 语言菜单：左边是语言本身的名字，右边是代码；当前语言左侧一道紫色竖线 */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.lang-menu a {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 9px 12px; color: var(--ink); text-decoration: none; font-size: var(--t-s); font-weight: 550; border-radius: 2px;
}
.lang-menu a:hover { background: var(--tint); }
.lang-menu__code { font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em; color: var(--graphite); }
.lang-menu a[aria-current="true"] { color: var(--accent); }
.lang-menu a[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--anodize); }
.header-tools .btn { min-height: 36px; padding: 0 14px; font-size: var(--t-xs); }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--render); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-m); }
  .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 40px; height: 40px; background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .header-tools .btn, .header-tools__sep { display: none; }
}

/* ---------- 首页主视觉：GP00 ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 128px) 0 clamp(88px, 10vw, 168px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
.hero__copy { position: relative; z-index: 2; }
.hero__model {
  display: block;
  font-size: clamp(5.5rem, 15vw, 12.5rem);
  font-weight: 900; font-stretch: 118%;
  line-height: .82; letter-spacing: -0.035em;
  margin: 0 0 32px -0.05em;
}
.hero__model b { font-weight: inherit; color: var(--accent); }
.hero__name { font-size: var(--t-l); font-weight: 700; font-stretch: 112%; margin-bottom: 24px; }
.hero__title { font-size: var(--t-3xl); font-weight: 850; max-width: 12em; margin-bottom: 28px; }
html[data-lang="en"] .hero__title { font-stretch: 104%; }
.hero__lede { font-size: var(--t-l); color: var(--graphite); max-width: 26em; margin-bottom: 44px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__media { position: relative; margin-right: calc(var(--gutter) * -1 - 6vw); }
.hero__media img { position: relative; z-index: 1; width: 100%; }
.hero__note { margin-top: 40px; font-size: var(--t-xs); color: var(--graphite); }

/* 滑行轨迹：GP00 的卖点是「长距离贴地飞行」，主视觉用一道后轮胎痕表达 */
/* overflow: visible：线条超出 SVG 自己的框也继续画，一直到被 .hero 的边裁掉（也就是出屏幕） */
.glide-trace { position: absolute; z-index: 0; left: -5%; bottom: -2%; width: 110%; height: 70%; pointer-events: none; overflow: visible; }
.glide-trace path { fill: none; stroke: var(--ink); stroke-linecap: round; opacity: .09; }

/* 实拍版主视觉：深色底，明暗主题下都一样 */
.hero--photo { background: var(--stage-slate); color: #fff; }
.hero--photo .hero__model b { color: var(--glint); }
.hero--photo .hero__lede, .hero--photo .hero__note { color: rgba(255, 255, 255, .74); }
.hero--photo .glide-trace path { stroke: #fff; opacity: .08; }
.hero--photo :focus-visible { outline-color: var(--glint); }
/* 实拍原图：车身和阴影不做任何修改，只在四周补了一圈渐变到底色的背景（图片因此比原图大一圈）。
 * 再用椭圆遮罩淡出，淡出的地方能看到底下的胎痕。车身和车下阴影都落在不透明区域里，换图后要重新检查 */
/* 第二层是右侧的横向渐变：图片右边伸出屏幕，只靠椭圆淡不完，右边的胎痕会被挡住。
 * 车身右缘在图片宽度的 80% 左右，渐变从 81% 才开始，不会碰到车 */
.hero--photo .hero__media img {
  -webkit-mask-image:
    radial-gradient(ellipse 74% 60% at 54% 48%, #000 55%, rgba(0, 0, 0, .55) 75%, transparent 100%),
    linear-gradient(90deg, #000 81%, rgba(0, 0, 0, .3) 88%, transparent 95%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 74% 60% at 54% 48%, #000 55%, rgba(0, 0, 0, .55) 75%, transparent 100%),
    linear-gradient(90deg, #000 81%, rgba(0, 0, 0, .3) 88%, transparent 95%);
  mask-composite: intersect;
}
/* 补边让车在画面里变小了，桌面端把图放大一些、多出来的部分用负边距吃掉，版面高度不变 */
@media (min-width: 901px) {
  .hero--photo .hero__media img { width: 122%; max-width: none; margin: -8% -11%; }
}
/* 手机：图片四周补边多，原样显示车太小。放大到 155%、居中，上下多余的底色用负边距吃掉；
 * 车身约占屏宽 88%，仍在遮罩的不透明区域里。不裁切，超出的部分靠遮罩淡掉，左右由 .hero 的 overflow 裁到屏幕边 */
@media (max-width: 900px) {
  .hero--photo .hero__media img { width: 155%; max-width: none; margin: -11% 0 -18% -27.5%; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .glide-trace path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.5s cubic-bezier(.22, .61, .36, 1) .15s forwards; }
  .js .hero__media img { opacity: 0; transform: translate(-48px, 22px); animation: glide-in 1.2s cubic-bezier(.22, .61, .36, 1) .55s forwards; }
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes glide-in { to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { margin: 8px calc(var(--gutter) * -1) 0; }
  .glide-trace { height: 45%; }
}

/* ---------- 通用区块 ---------- */
.section { padding: var(--space-section) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--studio); color: #fff; }
.section--dark p { color: var(--studio-text); }
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px var(--space-col); align-items: end; margin-bottom: var(--space-head); }
.section-head h2 { font-size: var(--t-2xl); }
.section-head p { color: var(--graphite); max-width: 32em; }
.section--dark .section-head p { color: var(--studio-text); }
.section--dark p a { color: #fff; }
.section--dark p a:hover { color: var(--glint); }
.section--dark :focus-visible { outline-color: var(--glint); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- 三个特点（官方文案） ---------- */
.traits { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-col); align-items: stretch; }
.traits__photo { background: var(--studio); }
.traits__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.traits__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.trait { padding: 40px 0; border-top: 1px solid var(--line); }
.trait:last-child { border-bottom: 1px solid var(--line); }
.trait h3 { font-size: var(--t-xl); font-weight: 800; margin-bottom: 14px; }
.trait h3 small { display: block; font-size: var(--t-s); font-weight: 600; color: var(--graphite); font-stretch: 108%; margin-top: 4px; }
.trait p { color: var(--graphite); max-width: 32em; }
.trait__figure { font-weight: 900; font-stretch: 118%; color: var(--accent); }
.traits__list--row { flex-direction: row; border-top: 1px solid var(--line); }
.traits__list--row .trait { flex: 1; border: 0; padding: 40px 48px 0 0; }
.traits__list--row .trait + .trait { padding-left: 48px; border-left: 1px solid var(--line); }
@media (max-width: 900px) {
  .traits { grid-template-columns: 1fr; }
  .traits__list--row { flex-direction: column; border-top: 0; }
  .traits__list--row .trait, .traits__list--row .trait + .trait { padding: 36px 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- 上手步骤（真实的先后顺序，所以编号） ---------- */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
/* 顶上一道进度线，从 1 走到 3 */
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink); transform-origin: left center; }
.step { position: relative; padding: 48px 48px 0 0; counter-increment: step; }
.step + .step { padding-left: 48px; border-left: 1px solid var(--line); }
.step::before {
  content: counter(step);
  display: block; font-size: 4.5rem; line-height: 1; font-weight: 900; font-stretch: 118%;
  color: var(--ink); margin-bottom: 32px;
}
.step h3 { font-size: var(--t-l); margin-bottom: 12px; }
.step p { color: var(--graphite); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 0; border-top: 0; }
  .steps::after { display: none; }
  .step, .step + .step { padding: 36px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step::before { font-size: 3rem; margin-bottom: 12px; }
}

/* ---------- 拆开看 GP00：渲染图上的圆点与右侧部件名联动 ---------- */
.explore { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-col); align-items: center; }
.explore__fig { position: relative; margin: 0; }
.explore__fig img { width: 100%; height: auto; }
.pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper);
}
.pin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--anodize); }
.pin:hover { border-color: var(--accent); }
.pin[aria-pressed="true"] { background: var(--anodize); border-color: var(--anodize); }
.pin[aria-pressed="true"]::before { background: #fff; }
.parts { list-style: none; margin: 0; padding: 0; }
.parts li { border-top: 1px solid var(--line); }
.parts li:last-child { border-bottom: 1px solid var(--line); }
.parts button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 22px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; font-size: var(--t-l); font-weight: 750; color: var(--ink);
}
.parts button::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.parts button:hover { color: var(--accent); }
.parts p { display: none; color: var(--graphite); padding: 0 0 28px; max-width: 30em; }
.parts .is-active button { color: var(--accent); }
.parts .is-active button::after { background: var(--anodize); border-color: var(--anodize); }
.parts .is-active p { display: block; }
html:not(.js) .parts p { display: block; }
@media (max-width: 900px) {
  .explore { grid-template-columns: 1fr; }
  .pin { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
}

/* ---------- 视频带：先放封面，点开去 B 站 ---------- */
.film { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.film img { width: 100%; height: 100%; object-fit: cover; }
.film__play {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px;
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: #1a1a1d;
}
.film__play svg { margin-left: 4px; }
.film:hover .film__play { background: var(--anodize); color: #fff; }
@media (max-width: 600px) { .film__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } }

/* ---------- 版本对比表 ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-s); background: var(--paper); }
.compare caption { text-align: left; color: var(--graphite); font-size: var(--t-xs); padding-bottom: 12px; caption-side: bottom; padding-top: 20px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: var(--t-l); font-weight: 800; border-bottom: 2px solid var(--ink); padding-top: 32px; }
.compare thead th small { display: block; font-size: var(--t-xs); font-weight: 500; color: var(--graphite); margin-top: 4px; }
.compare thead th.is-recommended { border-bottom-color: var(--anodize); }
.compare tbody th { width: 22%; color: var(--graphite); font-weight: 550; }
.compare td { width: 39%; }
.compare .price { font-size: var(--t-xl); font-weight: 850; font-stretch: 112%; }
.compare-wrap { overflow-x: auto; }
@media (max-width: 640px) { .compare th, .compare td { padding: 14px 12px; } .compare tbody th { width: 28%; } }

/* ---------- 型号梯子：越往右越专业，底边逐级抬高 ---------- */
.ladder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; --rung-gap: clamp(40px, 6vw, 88px); gap: 0 var(--rung-gap); border-bottom: 2px solid var(--ink); }
.rung { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
/* 分隔线画在间距正中，三列内容宽度保持一致 */
.rung + .rung::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--rung-gap) / -2); border-left: 1px solid var(--line); }
.rung__img { background: var(--render); aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 28px; }
.rung__img img { width: 100%; height: 100%; object-fit: cover; }
.rung__level { font-size: var(--t-xs); color: var(--graphite); font-weight: 600; }
.rung h3 { font-size: var(--t-2xl); font-weight: 900; font-stretch: 116%; letter-spacing: -0.02em; margin: 6px 0 12px; }
.rung p { color: var(--graphite); font-size: var(--t-s); }
.rung__step { display: block; background: var(--anodize); margin-top: auto; }
.rung p { margin-bottom: 36px; }
.rung:nth-child(1) .rung__step { height: 8px; }
.rung:nth-child(2) .rung__step { height: 40px; }
.rung:first-child .rung__level { color: var(--accent); }
a.rung:hover h3 { color: var(--accent); }
@media (max-width: 760px) {
  .ladder { grid-template-columns: 1fr; border-bottom: 0; }
  .rung { padding-bottom: 48px; }
  .rung + .rung::before { display: none; }
  .rung__step { display: none; }
}

/* ---------- 停产车型：全部车型页最后，和在售型号分开 ---------- */
.retired { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-col); align-items: center; }
.retired + .retired { margin-top: clamp(40px, 5vw, 72px); }
.retired__img { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--studio); }
.retired__img img { width: 100%; height: 100%; object-fit: cover; }
.retired h3 { font-size: var(--t-2xl); font-weight: 900; font-stretch: 116%; letter-spacing: -0.02em; margin: 6px 0 14px; }
.retired p { color: var(--graphite); max-width: 34em; }
.retired p + p { margin-top: 16px; }
.retired a { font-weight: 600; }
@media (max-width: 760px) { .retired { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 赛事（首页）：现场照片拼图，参考 MOZA 首页的活动拼图 ----------
 * 4 列网格：合影占左上 2×2，奖杯两张竖图各占 1×2，其余横图各占 2×1 */
.race-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 240px); gap: clamp(8px, 1vw, 14px); }
.race-photo { margin: 0; overflow: hidden; background: var(--studio); }
.race-photo img { width: 100%; height: 100%; object-fit: cover; }
.race-photo--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.race-photo--2 { grid-column: 3 / 5; grid-row: 1; }
.race-photo--3 { grid-column: 3; grid-row: 2 / 4; }
.race-photo--4 { grid-column: 4; grid-row: 2 / 4; }
.race-photo--5 { grid-column: 1 / 3; grid-row: 3; }
.race-photo--6 { grid-column: 1 / 3; grid-row: 4; }
.race-photo--7 { grid-column: 3 / 5; grid-row: 4; }
@media (max-width: 760px) {
  .race-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; }
  .race-photo--1, .race-photo--2, .race-photo--5, .race-photo--6, .race-photo--7 { grid-column: 1 / 3; grid-row: auto; }
  .race-photo--3, .race-photo--4 { grid-column: auto; grid-row: span 2; }
}

/* 关于页左栏的 logo：用 SVG（从 PNG 描出来的矢量），放多大都清楚 */
.about-logo { width: clamp(150px, 15vw, 210px); height: auto; }
@media (max-width: 900px) { .about-logo { width: 160px; } }

/* ---------- 升级件（全部车型页）：两张大图 + 零件小图墙 ---------- */
.op-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 20px); margin-bottom: clamp(12px, 1.5vw, 20px); }
.op-feature figure { margin: 0; }
.op-feature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--render); }
.op-feature figcaption { margin-top: 10px; font-size: var(--t-xs); color: var(--graphite); }
.op-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(10px, 1.2vw, 16px); }
.op-card { margin: 0; }
.op-card__img { aspect-ratio: 1; overflow: hidden; background: #aab4cc; }
.op-card__img img { width: 100%; height: 100%; object-fit: cover; }
.op-card figcaption { margin-top: 10px; line-height: 1.4; }
.op-card__fit { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.op-card__name { display: block; margin-top: 2px; font-size: var(--t-s); font-weight: 600; color: var(--ink); }
@media (max-width: 1080px) { .op-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.op-cta { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 560px) { .op-feature { grid-template-columns: 1fr; } }

/* ---------- 新闻 = WP 文章 ---------- */
/* 标题下划线：鼠标移到整条新闻上时从左边划出来 */
.draw { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; }
a:hover .draw { background-size: 100% 1px; }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--t-xs); color: var(--graphite); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.news-meta .cat { color: var(--accent); font-weight: 650; }

.news-empty { color: var(--graphite); }
.docs__note { display: block; margin-top: 2px; font-size: var(--t-xs); font-weight: 500; color: var(--graphite); }
/* 首页：左边一篇大图，右边三篇列表 */
.news { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-col); align-items: start; }
.news a { color: var(--ink); text-decoration: none; }
.news a:hover h3 { color: var(--accent); }
.news-feature { display: block; }
.news-feature__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--studio); margin-bottom: 28px; }
.news-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.news-feature h3 { font-size: var(--t-2xl); margin-bottom: 14px; }
.news-feature p { color: var(--graphite); max-width: 34em; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: block; padding: 32px 0; }
.news-list h3 { font-size: var(--t-l); font-weight: 750; line-height: 1.35; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }

/* 新闻列表页：有图的左图右文，没图的文字照样落在右栏，左右对齐 */
.news-filter { display: flex; flex-wrap: wrap; gap: 0 32px; border-bottom: 1px solid var(--line); margin-bottom: clamp(16px, 2vw, 32px); }
.news-filter a { padding: 16px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--graphite); text-decoration: none; font-size: var(--t-s); font-weight: 600; }
.news-filter a:hover { color: var(--ink); }
.news-filter a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--anodize); }
.news-index { list-style: none; margin: 0; padding: 0; }
.news-index li + li { border-top: 1px solid var(--line); }
.news-index a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-col); align-items: center; padding: 40px 0; color: var(--ink); text-decoration: none; }
.news-index a:hover h2 { color: var(--accent); }
.news-index .thumb { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--render); }
.news-index .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-index .thumb--contain img { object-fit: contain; padding: 6%; }
.news-index .is-text .body { grid-column: 2; }
.news-index h2 { font-size: var(--t-xl); line-height: 1.3; margin-bottom: 12px; }
.news-index p { color: var(--graphite); max-width: 36em; }
@media (max-width: 760px) {
  .news-index a { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .news-index .is-text .body { grid-column: auto; }
}
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 5vw, 72px); }
.pager a { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); text-decoration: none; font-size: var(--t-s); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--ink); }
.pager a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* 单篇文章 */
.article-head { border-bottom: 0; }
.article-head .news-meta { margin-bottom: 20px; font-size: var(--t-s); }
.article-head h1 { max-width: 18em; }
.article-img { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--studio); }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-section { padding-top: var(--space-head); }
.post-nav { border-top: 1px solid var(--line); }
.post-nav .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-col); }
.post-nav a { display: block; padding: 40px 0 56px; color: var(--ink); text-decoration: none; font-size: var(--t-l); font-weight: 750; }
.post-nav a:hover { color: var(--accent); }
.post-nav small { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--graphite); margin-bottom: 8px; }
.post-nav__next { text-align: right; }

/* ---------- 子页通用：页面标题 ---------- */
.page-head { padding: clamp(72px, 10vw, 152px) 0 clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--t-3xl); font-weight: 900; max-width: 14em; }
.page-head p { margin-top: 24px; font-size: var(--t-l); color: var(--graphite); max-width: 34em; }

/* GP00 产品页主视觉 */
.product-hero { padding: clamp(56px, 7vw, 112px) 0 clamp(24px, 3vw, 48px); }
.product-hero__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.product-hero h1 { font-size: clamp(4.5rem, 12vw, 10rem); font-weight: 900; font-stretch: 118%; line-height: .85; letter-spacing: -0.035em; }
.product-hero h1 b { color: var(--accent); font-weight: inherit; }
.product-hero__sub { font-size: var(--t-l); font-weight: 500; color: var(--graphite); margin-top: 24px; }
.product-hero__name { display: block; font-weight: 700; font-stretch: 112%; color: var(--ink); }
.product-hero__img { margin-top: clamp(32px, 4vw, 64px); }
.product-hero__img img { max-height: 72vh; width: auto; margin: 0 auto; }
/* GP00 页实拍版：黑色影棚底 */
.product-hero--photo { background: var(--stage-black); color: #fff; padding-bottom: 0; }
.product-hero--photo h1 b { color: var(--glint); }
.product-hero--photo .product-hero__sub { color: rgba(255, 255, 255, .74); }
.product-hero--photo .product-hero__name { color: #fff; }
.product-hero--photo .scale-switch { border-color: rgba(255, 255, 255, .6); }
.product-hero--photo .scale-switch button { color: #fff; }
.product-hero--photo .scale-switch button[aria-pressed="true"] { background: #fff; color: var(--stage-black); }
.product-hero--photo :focus-visible { outline-color: var(--glint); }
.product-hero--photo .product-hero__img img { width: 100%; max-height: none; max-width: 1400px; }
.scale-switch { display: inline-flex; border: 1px solid var(--ink); border-radius: 2px; }
.scale-switch button { font: inherit; font-size: var(--t-s); font-weight: 650; background: none; border: 0; padding: 10px 18px; cursor: pointer; color: var(--ink); }
.scale-switch button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* 细节图：实拍 */
.details { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(260px, 32vw, 480px); gap: 16px; }
.details figure { margin: 0; background: var(--studio); position: relative; overflow: hidden; }
.details img { width: 100%; height: 100%; object-fit: cover; }
.details figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; font-size: var(--t-s); background: linear-gradient(transparent, rgba(15, 14, 19, .85)); }
.details .d-a, .details .d-d { grid-column: span 7; }
.details .d-b, .details .d-c { grid-column: span 5; }
@media (max-width: 760px) { .details { grid-auto-rows: auto; } .details > figure { grid-column: 1 / -1; aspect-ratio: 4 / 3; } }

/* 规格表 */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-col); margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--graphite); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } }

/* 文档 / 下载 */
.docs { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.docs th, .docs td { text-align: left; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.docs thead th { color: var(--graphite); font-weight: 550; font-size: var(--t-xs); border-bottom: 1px solid var(--ink); }
.docs td:first-child { font-weight: 800; font-stretch: 112%; font-size: var(--t-m); white-space: nowrap; }
.docs .mirrors__row { display: inline-grid; grid-template-columns: repeat(var(--slots), max-content); column-gap: 18px; }
.docs .mirrors__row > * { white-space: nowrap; }
/* 没有这个渠道时占位：放一份看不见的名字，让后面的列和其他行对齐 */
.docs .mirrors__empty { visibility: hidden; }
@media (max-width: 640px) { .docs .mirrors__row { display: flex; flex-wrap: wrap; gap: 4px 14px; } .docs .mirrors__empty { display: none; } }
.docs-note { margin-top: 20px; font-size: var(--t-s); color: var(--graphite); }
.docs-note code { font: inherit; font-weight: 700; color: var(--ink); padding: 1px 6px; border: 1px solid var(--line); border-radius: 2px; cursor: copy; }
/* 复制成功的小提示 */
.copy-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 100; transform: translate(-50%, 8px);
  padding: 10px 16px; border-radius: 2px; background: var(--ink); color: var(--on-ink);
  font-size: var(--t-s); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.copy-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 文字长文（新手指南、关于） */
.prose { max-width: 40em; }
.prose h2 { font-size: var(--t-xl); margin: 72px 0 20px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 20px; color: var(--prose); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }

.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 8vw, 128px); }
.two-col aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.two-col aside nav a { display: block; padding: 12px 0; color: var(--graphite); text-decoration: none; border-bottom: 1px solid var(--line); font-size: var(--t-s); }
.two-col aside nav a:hover { color: var(--accent); }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col aside { position: static; } }

/* 事实表（公司信息、经销商） */
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--graphite); font-size: var(--t-s); }
.facts dd { margin: 0; }

.dealers { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; }
.dealers li { padding: 28px 0; border-top: 1px solid var(--line); }
.dealers strong { display: block; font-size: var(--t-l); }
.dealers li > span { color: var(--graphite); font-size: var(--t-s); }
@media (max-width: 760px) { .dealers { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--studio); color: var(--studio-text); padding: clamp(80px, 9vw, 128px) 0 48px; font-size: var(--t-s); }
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--glint); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 56px 40px; }
.footer-brand img { width: 120px; margin-bottom: 28px; }
.footer-brand p { max-width: 26em; }
.footer-col h4 { color: #fff; font-size: var(--t-s); font-weight: 700; margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-legal { margin-top: clamp(64px, 7vw, 96px); padding-top: 28px; border-top: 1px solid #2a2930; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--t-xs); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 待确认内容标记：网址后加 ?todo 才显示 ---------- */
html.show-todo [data-todo] { outline: 1.5px dashed #e0a400; outline-offset: 2px; position: relative; }
html.show-todo [data-todo]::after {
  content: attr(data-todo); position: absolute; left: 0; top: 100%; z-index: 5; margin-top: 4px;
  background: #fff4cc; color: #5a4500; font-size: 12px; font-weight: 500; line-height: 1.4; padding: 4px 8px; white-space: normal; width: max-content; max-width: 280px;
}

/* ---------- 首页动效 ----------
 * 只在 site.js 给 <html> 加上 .motion 时生效（系统没开「减少动态效果」、浏览器支持 IntersectionObserver）。
 * 元素写 data-motion，滚到视口里由 site.js 加 .is-in。只动 transform 和 opacity。
 * 每个动效都对应内容本身：圆点按顺序亮、步骤按顺序走、梯子一级级升起。主视觉和视频封面刻意不加。 */
@media (prefers-reduced-motion: no-preference) {
  /* 拆开看：圆点按从车头到车尾的顺序出现，然后自动把五个部件过一遍 */
  .motion [data-motion~="tour"] .pin { opacity: 0; transform: scale(.4); }
  .motion [data-motion~="tour"].is-in .pin { animation: pin-in .45s cubic-bezier(.22, .61, .36, 1) forwards; }
  .motion [data-motion~="tour"].is-in .pin:nth-of-type(2) { animation-delay: .09s; }
  .motion [data-motion~="tour"].is-in .pin:nth-of-type(3) { animation-delay: .18s; }
  .motion [data-motion~="tour"].is-in .pin:nth-of-type(4) { animation-delay: .27s; }
  .motion [data-motion~="tour"].is-in .pin:nth-of-type(5) { animation-delay: .36s; }
  .pin[aria-pressed="true"]::before { animation: dot-in .3s cubic-bezier(.22, .61, .36, 1); }
  .parts .is-active p { animation: part-in .35s cubic-bezier(.22, .61, .36, 1); }

  /* 上手步骤：进度线从左走到右，走到哪个数字哪个数字亮 */
  .motion .steps[data-motion]::after { transform: scaleX(0); }
  .motion .steps[data-motion] .step::before { opacity: .18; transform: translateY(12px); }
  .motion .steps.is-in::after { transform: none; transition: transform 1.5s cubic-bezier(.4, .2, .6, .9); }
  .motion .steps.is-in .step::before { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s cubic-bezier(.22, .61, .36, 1); }
  .motion .steps.is-in .step:nth-child(2)::before { transition-delay: .5s; }
  .motion .steps.is-in .step:nth-child(3)::before { transition-delay: 1s; }

  /* 型号梯子：三级台阶依次升起 */
  .motion .ladder[data-motion] .rung__step { transform: scaleY(0); transform-origin: center bottom; }
  .motion .ladder.is-in .rung__step { transform: none; transition: transform .7s cubic-bezier(.22, .61, .36, 1); }
  .motion .ladder.is-in .rung:nth-child(2) .rung__step { transition-delay: .18s; }
  /* 鼠标移上去，车往侧面滑一点 */
  .rung__img img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
  a.rung:hover .rung__img img { transform: translateX(1.5%) rotate(-1deg) scale(1.06); }
  /* 新闻：鼠标移上去，图片轻微放大 */
  .draw { transition: background-size .3s cubic-bezier(.22, .61, .36, 1); }
  .op-card__img img { transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
  .op-card:hover .op-card__img img { transform: scale(1.05); }
  .news-feature__img img, .news-index .thumb img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
  .news-feature:hover .news-feature__img img, .news-index a:hover .thumb img { transform: scale(1.03); }
  /* 特点三条：分隔线从左往右画出来，文字跟着出现 */
  .motion .traits__list[data-motion] .trait { position: relative; border-top-color: transparent; }
  .motion .traits__list[data-motion] .trait::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; border-top: 1px solid var(--line); transform: scaleX(0); transform-origin: left center; }
  .motion .traits__list[data-motion] .trait > * { opacity: 0; }
  .motion .traits__list.is-in .trait::before { transform: none; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
  .motion .traits__list.is-in .trait > * { opacity: 1; transition: opacity .6s ease-out .25s; }
  .motion .traits__list.is-in .trait:nth-child(2)::before { transition-delay: .15s; }
  .motion .traits__list.is-in .trait:nth-child(2) > * { transition-delay: .4s; }
  .motion .traits__list.is-in .trait:nth-child(3)::before { transition-delay: .3s; }
  .motion .traits__list.is-in .trait:nth-child(3) > * { transition-delay: .55s; }

  /* 对比表：推荐那一列的紫色底线画出来 */
  .motion .compare[data-motion] thead th.is-recommended { position: relative; border-bottom-color: var(--ink); }
  .motion .compare[data-motion] thead th.is-recommended::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--anodize); transform: scaleX(0); transform-origin: left center; }
  .motion .compare.is-in thead th.is-recommended::after { transform: none; transition: transform .8s cubic-bezier(.65, 0, .35, 1) .2s; }

  /* ---- 跟着操作走的小反馈：不自己动，只回应鼠标和点击 ---- */
  a, .btn, .nav a, .lang-toggle, .theme-toggle, .notice__close, .parts button, .pin, .film__play, .news h3, .news-index h2, .pager a {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, background-size .3s cubic-bezier(.22, .61, .36, 1), transform .15s ease;
  }
  .btn:active, .lang-toggle:active, .theme-toggle:active { transform: translateY(1px); }
  .pin::before, .parts button::after { transition: transform .25s cubic-bezier(.22, .61, .36, 1), background-color .2s ease, border-color .2s ease; }
  .pin:hover::before { transform: scale(1.5); }
  .parts button:hover::after { border-color: var(--accent); transform: scale(1.25); }

  /* 导航：鼠标移上去，底线从左边划出来 */
  @media (min-width: 1081px) {
    .nav a { position: relative; }
    .nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .25s cubic-bezier(.22, .61, .36, 1); }
    .nav a:hover::after { transform: none; }
  }
  /* 手机菜单展开 */
  .nav.is-open { animation: menu-in .25s cubic-bezier(.22, .61, .36, 1); }
  /* 明暗切换：图标转进来（data-anim 由点击加上，首次加载不转） */
  .theme-toggle[data-anim] svg { animation: icon-in .45s cubic-bezier(.22, .61, .36, 1); }
  /* 关通知：高度收起再移除 */
  .notice.is-closing { overflow: hidden; transition: height .3s cubic-bezier(.65, 0, .35, 1), opacity .2s ease; opacity: 0; }
  /* 切换明暗 / 中英时整页淡入淡出（支持 View Transitions 的浏览器） */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes icon-in { from { opacity: 0; transform: rotate(-90deg) scale(.5); } }
@keyframes pin-in { to { opacity: 1; transform: none; } }
@keyframes dot-in { from { transform: scale(0); } }
@keyframes part-in { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
