/* ==========================================================================
   美呀美 · 优站网 — 「暗室展厅」设计系统 v1
   令牌 → 基础 → 布局 → 组件 → 页面 → 动效 → 响应式
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("/static/fonts/instrument-serif-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/static/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- 1. 令牌 ---------- */
:root {
  /* 十六进制回退(旧版内核不支持 oklch 时使用) */
  --bg: #151211;
  --s1: #1c1917;
  --s2: #272320;
  --line: #3a3531;
  --text: #f1ede8;
  --text-2: #b3aca4;
  --text-3: #8d867e;
  --accent: #ff5a00;
  --accent-hi: #ff7a2e;
  --accent-ink: #1d0d03;
  --paper: #f4f0e9;
  --paper-ink: #1d1916;
  --paper-ink-2: #5d554c;
  --paper-line: #d9d2c7;

  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Songti SC", "Noto Serif CJK SC", serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.25, 1, .5, 1);

  --gutter: clamp(1rem, 3.2vw, 3rem);
  --max: 1440px;
  --hh: 4.25rem;           /* 顶栏高度 */
  --r: 6px;

  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.75rem, 3.2vw, 2.75rem);
  --t-hero: clamp(2.75rem, 6.4vw, 5.75rem);

  --sec: clamp(4rem, 8vw, 8rem);
}
@supports (color: oklch(0 0 0)) {
  :root {
    --bg: oklch(14% .008 50);
    --s1: oklch(18% .010 50);
    --s2: oklch(23% .012 50);
    --line: oklch(30% .012 50);
    --text: oklch(94% .008 70);
    --text-2: oklch(76% .010 60);
    --text-3: oklch(64% .010 60);
    --accent: oklch(66% .21 41);
    --accent-hi: oklch(72% .19 45);
    --accent-ink: oklch(17% .03 45);
    --paper: oklch(96% .008 80);
    --paper-ink: oklch(20% .01 60);
    --paper-ink-2: oklch(45% .012 60);
    --paper-line: oklch(86% .01 80);
  }
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 1rem); }
body.u-body {
  margin: 0;
  background-color: var(--bg);
  /* 极淡的纸纹噪点,让深色底有质感而非死黑 */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--text);
  font-family: var(--font-cn);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.7;                 /* 深底浅字,行高比常规多 .1 */
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.u-lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
.u-body :focus { outline: none; }
.u-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.u-body ::selection { background: var(--accent); color: var(--accent-ink); }
.u-num { font-variant-numeric: tabular-nums; }

.u-skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; border-radius: var(--r);
  transition: top .2s var(--ease);
}
.u-skip:focus { top: 1rem; }

.u-wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

/* ---------- 3. 按钮 / 小件 ---------- */
.u-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 2.75rem; padding: 0 1.4rem; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid var(--line); color: var(--text);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.u-btn:hover { border-color: var(--text-2); }
.u-btn:active { transform: translateY(1px); }
.u-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.u-btn--accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.u-btn--lg { min-height: 3.5rem; padding: 0 2rem; font-size: var(--t-base); }
.u-btn svg { width: 1em; height: 1em; transition: transform .4s var(--ease-out); }
.u-btn:hover svg { transform: translate(2px, -2px); }

.u-eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: var(--t-xs); letter-spacing: .14em; color: var(--text-2);
}
.u-eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--accent); }
.u-eyebrow b { color: var(--text); font-weight: 600; letter-spacing: .3em; }
.u-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---------- 4. 顶栏 ---------- */
.u-header {
  position: sticky; top: 0; z-index: 100; height: var(--hh);
  background: var(--bg); border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.u-header.is-scrolled { border-bottom-color: var(--line); }
.u-header__in { height: 100%; display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }

.u-brand { display: flex; align-items: baseline; gap: .6rem; flex: none; }
.u-brand__cn { font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; line-height: 1; }
.u-brand__en { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--text-2); line-height: 1; }
.u-brand__en i { font-style: normal; color: var(--accent); }

.u-nav { flex: 1; min-width: 0; }
.u-nav > ul { display: flex; align-items: center; gap: .25rem; }
.u-nav a { display: block; padding: .5rem .85rem; font-size: var(--t-sm); color: var(--text-2); border-radius: 999px; transition: color .3s var(--ease); white-space: nowrap; }
.u-nav a:hover, .u-nav .has-sub:focus-within > a { color: var(--text); }
.u-nav .has-sub { position: relative; }
.u-nav .has-sub > a::after { content: ""; display: inline-block; width: .35em; height: .35em; margin-left: .5em; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-.2em) rotate(45deg); }
.u-sub {
  position: absolute; left: 0; top: 100%; min-width: 11rem; padding: .5rem;
  background: var(--s2); border: 1px solid var(--line); border-radius: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility 0s .3s;
}
.u-nav .has-sub:hover .u-sub, .u-nav .has-sub:focus-within .u-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.u-sub a { border-radius: 6px; }
.u-sub a:hover { background: var(--s1); }

.u-header__act { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.u-burger { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.u-burger span, .u-burger::before, .u-burger::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 1.5px; background: var(--text); margin: -1px 0 0 -.5rem; transition: transform .4s var(--ease-out), opacity .2s; }
.u-burger::before { transform: translateY(-5px); }
.u-burger::after { transform: translateY(5px); }
.u-nav-open .u-burger span { opacity: 0; }
.u-nav-open .u-burger::before { transform: rotate(45deg); }
.u-nav-open .u-burger::after { transform: rotate(-45deg); }

/* ---------- 5. 「找案例」全屏面板 ---------- */
.u-sheet {
  position: fixed; inset: 0; z-index: 150; overflow-y: auto;
  background: var(--bg); padding: calc(var(--hh) + 1rem) 0 4rem;
  opacity: 0; visibility: hidden; transform: translateY(1.5rem);
  transition: opacity .4s var(--ease), transform .6s var(--ease-out), visibility 0s .4s;
}
.u-sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.u-sheet__close { position: fixed; top: calc(var(--hh) / 2 - 1.375rem); right: var(--gutter); z-index: 2; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; }
.u-sheet__close::before, .u-sheet__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 1.5px; background: var(--text); margin: -1px 0 0 -.5rem; transform: rotate(45deg); }
.u-sheet__close::after { transform: rotate(-45deg); }
.u-sheet__title { font-size: var(--t-xl); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; margin: 1rem 0 2rem; }
.u-search {
  display: flex; align-items: center; max-width: 44rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--s1);
  padding: .35rem .35rem .35rem 1.5rem; transition: border-color .3s var(--ease);
}
.u-search:focus-within { border-color: var(--accent); }
.u-search input { flex: 1; min-width: 0; background: none; border: 0; height: 3rem; font-size: var(--t-base); }
.u-search input::placeholder { color: var(--text-3); }
.u-search input:focus-visible { outline: none; }
.u-industry { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 2rem; margin-top: 3rem; border-top: 1px solid var(--line); counter-reset: ind; }
.u-industry > a {
  display: flex; align-items: baseline; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line);
  counter-increment: ind; transition: color .3s var(--ease), padding-left .5s var(--ease-out);
}
.u-industry > a::before { content: counter(ind, decimal-leading-zero); font-family: var(--font-serif); font-style: italic; color: var(--text-3); font-size: 1.05rem; min-width: 1.6rem; }
.u-industry > a:hover { color: var(--accent); padding-left: .5rem; }
.u-industry > a em { margin-left: auto; font-style: normal; font-size: var(--t-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- 6. 联系 dock ---------- */
.u-dock { position: fixed; right: 1.25rem; bottom: 6.5rem; z-index: 120; }
.u-dock__btn {
  display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .5s var(--ease-out), background-color .3s var(--ease);
}
.u-dock__btn:hover { transform: translateY(-3px); background: var(--accent-hi); }
.u-dock__btn svg { width: 1.5rem; height: 1.5rem; }
.u-dock__panel {
  position: absolute; right: 0; bottom: 4.5rem; width: min(22rem, calc(100vw - 2.5rem));
  background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: right bottom;
  transition: opacity .3s var(--ease), transform .5s var(--ease-out), visibility 0s .3s;
}
.u-dock.is-open .u-dock__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.u-dock__h { font-weight: 700; font-size: var(--t-lg); line-height: 1.3; }
.u-dock__p { font-size: var(--t-xs); color: var(--text-2); margin: .25rem 0 1rem; }
.u-qrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.u-qrs figure { margin: 0; }
.u-qrs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--paper); }
.u-qrs figcaption { font-size: .6875rem; color: var(--text-3); text-align: center; margin-top: .25rem; }
.u-tels { display: grid; gap: .25rem; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.u-tels a { display: flex; justify-content: space-between; padding: .4rem 0; font-variant-numeric: tabular-nums; font-size: var(--t-sm); transition: color .3s var(--ease); }
.u-tels a:hover { color: var(--accent); }
.u-tels span { color: var(--text-3); font-size: var(--t-xs); }

/* ---------- 7. 区块 / 标题 ---------- */
.u-main { display: block; }
.u-sec { padding-block: var(--sec); }
.u-sec--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.u-sec__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.u-sec__idx { font-size: var(--t-xs); letter-spacing: .14em; color: var(--text-2); margin-bottom: .6rem; }
.u-sec__idx b { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.1rem; color: var(--accent); letter-spacing: 0; margin-right: .5rem; }
.u-sec__title { font-size: var(--t-xl); font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.u-more { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); color: var(--text-2); padding-bottom: .15rem; border-bottom: 1px solid var(--line); transition: color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.u-more:hover { color: var(--accent); border-color: var(--accent); }

/* 工具类 */
.u-sec--flush-top { padding-top: 0; }
.u-sec__links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.u-eyebrow + .u-cta__title { margin-top: 1.25rem; }
.u-search--block { margin-top: 1.75rem; }
.u-body main > .u-wrap.u-pad-b { padding-bottom: var(--sec); }

/* ---------- 8. 案例卡片:浏览器窗口 ---------- */
.u-win {
  position: relative; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); overflow: hidden;
  transition: transform .7s var(--ease-out), border-color .4s var(--ease);
}
.u-win__bar { display: flex; align-items: center; gap: .35rem; height: 1.5rem; padding: 0 .65rem; border-bottom: 1px solid var(--line); background: var(--s2); }
.u-win__bar i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--line); }
.u-win__shot { position: relative; display: block; overflow: hidden; height: var(--h, 15rem); background: var(--s1); }
.u-win__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--ease-out); }
/* 聚光灯:跟随鼠标 */
.u-win__shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 60%);
  transition: opacity .5s var(--ease);
}
.u-win__tag {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .4rem; min-height: 2rem; padding: 0 .9rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: var(--t-xs); font-weight: 700;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
@media (hover: hover) {
  .u-card:hover .u-win { transform: translateY(-6px); border-color: var(--text-3); }
  .u-card:hover .u-win__shot img { transform: scale(1.04); }
  .u-card:hover .u-win__shot::after { opacity: 1; }
  .u-card:hover .u-win__tag { opacity: 1; transform: none; }
}
.u-win__shot:focus-visible .u-win__tag { opacity: 1; transform: none; }

.u-card { counter-increment: card; min-width: 0; }
.u-card__cap { display: flex; align-items: baseline; gap: .9rem; padding: 1rem .15rem 0; }
.u-card__no { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--text-3); min-width: 1.6rem; }
.u-card__no::before { content: counter(card, decimal-leading-zero); }
.u-card__main { min-width: 0; flex: 1; }
.u-card__title { font-size: var(--t-base); font-weight: 600; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-card__title a { transition: color .3s var(--ease); }
.u-card__title a:hover { color: var(--accent); }
.u-card__meta { margin-top: .15rem; font-size: var(--t-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.u-card__meta span + span::before { content: "·"; margin: 0 .5em; }
.u-card__go { align-self: center; flex: none; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text-2); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.u-card__go svg { width: .95rem; height: .95rem; }
.u-card__go:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 非对称网格(首页精选):7+5 / 4+4+4 */
.u-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2vw, 2rem); counter-reset: card; }
.u-feature .u-card { grid-column: span 4; --h: clamp(11rem, 17vw, 16.5rem); }
.u-feature .u-card:nth-child(5n + 1) { grid-column: span 7; --h: clamp(15rem, 25vw, 23rem); }
.u-feature .u-card:nth-child(5n + 2) { grid-column: span 5; --h: clamp(15rem, 25vw, 23rem); }

/* 等宽网格(列表页 / 搜索) */
.u-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.75rem); counter-reset: card; }
.u-grid .u-card { --h: clamp(11rem, 15vw, 14.5rem); }

/* ---------- 9. 首页 Hero ---------- */
.u-hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6.5rem); overflow: clip; }
.u-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.u-hero__title { font-size: var(--t-hero); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; margin: 1.5rem 0 1.5rem; }
.u-hero__title .l { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.u-hero__title .l > span { display: block; }
.u-hero__title em { font-style: normal; color: var(--accent); }
.u-hero__sub { max-width: 34rem; font-size: var(--t-lg); line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.u-hero__sub b { color: var(--text); font-weight: 600; }
.u-hero__search { margin-top: 2.25rem; max-width: 36rem; }
.u-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: var(--t-xs); color: var(--text-3); }
.u-chip { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-xs); color: var(--text-2); white-space: nowrap; transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease); }
.u-chip:hover { color: var(--text); border-color: var(--text-2); }
.u-chip.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.u-hero__stack { position: relative; aspect-ratio: 1 / 1.02; }
.u-hero__stack .u-win { position: absolute; width: 74%; --h: auto; will-change: transform; }
.u-hero__stack .u-win__shot { height: auto; aspect-ratio: 16 / 9.4; }
.u-hero__stack .u-win:nth-child(1) { left: 0; top: 0; z-index: 1; }
.u-hero__stack .u-win:nth-child(2) { right: 0; top: 30%; z-index: 2; }
.u-hero__stack .u-win:nth-child(3) { left: 8%; bottom: 0; z-index: 3; }
.u-hero__stack .u-win { box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, .55); }

/* ---------- 10. 行业索引条 ---------- */
.u-stage { position: relative; }
.u-index { position: sticky; top: var(--hh); z-index: 40; background: var(--bg); border-block: 1px solid var(--line); }
.u-index__in { display: flex; align-items: center; gap: 1rem; padding-block: .75rem; }
.u-index__all { flex: none; }
.u-index__scroll { flex: 1; min-width: 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 2.5rem), transparent); padding-inline: 1rem; }
.u-index__scroll::-webkit-scrollbar { display: none; }
.u-chip em { font-style: normal; margin-left: .4em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.u-chip.is-current em { color: inherit; opacity: .7; }
.u-stage__body { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: var(--sec); }

/* ---------- 11. 手机端 / 小程序 ---------- */
.u-phones { display: flex; gap: clamp(1rem, 2vw, 2rem); overflow-x: auto; scroll-snap-type: x proximity; padding: .5rem var(--gutter) 1.5rem; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.u-phone { flex: none; width: clamp(12.5rem, 17vw, 15.5rem); scroll-snap-align: start; }
.u-phone__frame { position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); overflow: hidden; aspect-ratio: 330 / 622; transition: transform .7s var(--ease-out), border-color .4s var(--ease); }
.u-phone__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--ease-out); }
@media (hover: hover) {
  .u-phone:hover .u-phone__frame { transform: translateY(-6px); border-color: var(--text-3); }
  .u-phone:hover .u-phone__frame img { transform: scale(1.04); }
}
.u-phone__title { margin-top: .9rem; font-size: var(--t-sm); font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* 手机端列表页:竖版手机框网格 */
.u-phone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.75rem); counter-reset: card; }
.u-phone-grid .u-phone { width: auto; max-width: 17rem; margin-inline: auto; }
.u-phone-grid .u-phone__frame { aspect-ratio: 330 / 622; }

/* 小程序列表页:方形二维码卡 */
.u-qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: clamp(2rem, 3.5vw, 3rem) clamp(1rem, 2vw, 1.75rem); counter-reset: card; }
.u-qrcard__box { display: block; position: relative; padding: 1rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); transition: transform .7s var(--ease-out); }
.u-qrcard__box img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.u-qrcard .u-win__tag { right: 50%; transform: translate(50%, 6px); }
@media (hover: hover) {
  .u-qrcard:hover .u-qrcard__box { transform: translateY(-6px); }
  .u-qrcard:hover .u-win__tag { opacity: 1; transform: translate(50%, 0); }
}
.u-qrcard .u-card__cap { padding-top: .9rem; }

/* ---------- 12. 纸面区(教程与灵感) ---------- */
.u-paper { background: var(--paper); color: var(--paper-ink); }
.u-paper .u-sec__idx { color: var(--paper-ink-2); }
.u-paper .u-more { color: var(--paper-ink-2); border-color: var(--paper-line); }
.u-paper .u-more:hover { color: var(--accent); border-color: var(--accent); }
.u-paper :focus-visible { outline-color: var(--paper-ink); }
.u-tuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.u-tut__h { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 1rem; border-bottom: 2px solid var(--paper-ink); }
.u-tut__h h3 { font-size: var(--t-lg); font-weight: 800; }
.u-tut__h a { font-size: var(--t-xs); color: var(--paper-ink-2); }
.u-tut__h a:hover { color: var(--accent); }
.u-tut ol { counter-reset: tut; }
.u-tut li { counter-increment: tut; display: grid; grid-template-columns: 2rem 1fr; gap: .25rem .5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--paper-line); }
.u-tut li::before { content: counter(tut, decimal-leading-zero); grid-row: span 2; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--paper-ink-2); padding-top: .1rem; }
.u-tut li a { font-weight: 600; line-height: 1.5; transition: color .3s var(--ease); }
.u-tut li a:hover { color: var(--accent); }
.u-tut li small { font-size: var(--t-xs); color: var(--paper-ink-2); font-variant-numeric: tabular-nums; }

/* ---------- 13. CTA 条 ---------- */
.u-cta { border-top: 1px solid var(--line); }
.u-cta__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.u-cta__title { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.u-cta__title em { font-style: normal; color: var(--accent); }
.u-cta__p { margin-top: 1.25rem; color: var(--text-2); font-size: var(--t-lg); max-width: 30rem; }
.u-cta__act { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.u-cta__qr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 24rem; justify-self: end; width: 100%; }
.u-cta__qr figure { margin: 0; }
.u-cta__qr img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--paper); }
.u-cta__qr figcaption { margin-top: .5rem; font-size: var(--t-xs); color: var(--text-3); text-align: center; }

/* ---------- 14. 页脚 ---------- */
.u-foot { position: relative; border-top: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.u-foot__grid { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.u-foot h4 { font-size: var(--t-xs); letter-spacing: .14em; color: var(--text-3); font-weight: 600; margin-bottom: 1.1rem; }
.u-foot__brand p { margin-top: 1rem; color: var(--text-2); font-size: var(--t-sm); max-width: 22rem; text-wrap: balance; }
.u-foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: var(--t-sm); color: var(--text-2); }
.u-foot__links a { transition: color .3s var(--ease); }
.u-foot__links a:hover { color: var(--accent); }
.u-foot__links + h4 { margin-top: 2rem; }
.u-foot__contact { font-size: var(--t-sm); color: var(--text-2); display: grid; gap: .4rem; font-variant-numeric: tabular-nums; }
.u-foot__contact a:hover { color: var(--accent); }
.u-foot__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--text-3); position: relative; z-index: 1; }
.u-foot__legal a:hover { color: var(--text); }
.u-foot__legal img { display: inline-block; height: 1.5rem; width: auto; vertical-align: middle; margin-right: .5rem; }
.u-foot__mark { font-size: clamp(6rem, 24vw, 22rem); font-weight: 800; letter-spacing: .04em; line-height: .78; color: var(--s1); text-align: center; white-space: nowrap; user-select: none; margin-top: 1rem; padding-bottom: .04em; pointer-events: none; }

/* ---------- 15. 列表页 ---------- */
.u-page-head { padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.u-crumb { font-size: var(--t-xs); color: var(--text-3); margin-bottom: 1.25rem; }
.u-crumb a { color: var(--text-2); transition: color .3s var(--ease); }
.u-crumb a:hover { color: var(--accent); }
.u-page-title { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.u-page-sub { margin-top: .9rem; color: var(--text-2); max-width: 40rem; }
.u-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; font-size: var(--t-xs); color: var(--text-3); }

.u-list { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding-bottom: var(--sec); align-items: start; }
.u-side { position: sticky; top: calc(var(--hh) + 1.5rem); max-height: calc(100vh - var(--hh) - 3rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.u-side h2 { font-size: var(--t-xs); letter-spacing: .14em; color: var(--text-3); font-weight: 600; margin-bottom: .5rem; }
.u-side a { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .6rem 0 .6rem .9rem; border-left: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-2); transition: color .3s var(--ease), border-color .3s var(--ease), padding-left .5s var(--ease-out); }
.u-side a:hover { color: var(--text); padding-left: 1.2rem; }
.u-side a.is-current { color: var(--text); border-left: 2px solid var(--accent); font-weight: 600; }
.u-side em { font-style: normal; font-size: var(--t-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.u-side .u-side__sub a { padding-left: 1.9rem; font-size: var(--t-xs); }
.u-empty { display: none; padding: 4rem 0; color: var(--text-2); }
.u-grid:not(:has(.u-card)) + .u-empty { display: block; }

.u-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.u-pager__list { display: contents; }
.u-pager a { display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-sm); color: var(--text-2); font-variant-numeric: tabular-nums; transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease); }
.u-pager a:hover { color: var(--text); border-color: var(--text-2); }
.u-pager a.page-num-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.u-pager__step { padding: 0 1.1rem !important; }

/* ---------- 16. 详情页 ---------- */
.u-detail { max-width: 62rem; margin-inline: auto; }
.u-detail__head { padding-block: clamp(2rem, 5vw, 4rem) 2rem; }
.u-detail__title { font-size: clamp(2rem, 4.5vw, 3.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.u-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-top: 1.25rem; font-size: var(--t-sm); color: var(--text-2); font-variant-numeric: tabular-nums; }
.u-detail__meta .u-chip { color: var(--accent); border-color: var(--accent); }
.u-detail__act { margin-top: 1.75rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.u-detail .u-win__shot { height: auto; }
.u-detail .u-win__shot img { height: auto; max-height: 80vh; object-fit: contain; }
.u-prose { margin-top: 3rem; font-size: 1.0625rem; line-height: 1.9; color: var(--text-2); }
.u-prose > * + * { margin-top: 1.25em; }
.u-prose h2, .u-prose h3 { color: var(--text); font-weight: 700; line-height: 1.35; margin-top: 2em; }
.u-prose img { border-radius: var(--r); margin-inline: auto; }
.u-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.u-prose strong { color: var(--text); }
.u-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.u-related { padding-block: var(--sec); }

/* ---------- 17. 进场动效(仅 JS 可用时隐藏初始态) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms); }
.js .u-hero__title .l > span { transform: translateY(105%); }
.js .u-hero__title.is-in .l > span { transform: none; transition: transform 1s var(--ease-out) calc(var(--i, 0) * 110ms + 100ms); }
/* 卡片自身 transform 已用于悬浮,进场用外层容器,避免冲突 */
.js .u-card[data-reveal].is-in { transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms); }

/* ---------- 18. 快速预览(JS 注入) ---------- */
.u-pv { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.u-pv.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.u-pv__bar { display: flex; align-items: center; gap: 1rem; padding: .75rem var(--gutter); border-bottom: 1px solid var(--line); }
.u-pv__count { font-family: var(--font-serif); font-style: italic; color: var(--text-3); font-variant-numeric: tabular-nums; }
.u-pv__title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-pv__nav { display: flex; gap: .5rem; }
.u-pv__nav button, .u-pv__x { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.u-pv__nav button:hover, .u-pv__x:hover { border-color: var(--text-2); background: var(--s1); }
.u-pv__nav svg, .u-pv__x svg { width: 1.1rem; height: 1.1rem; }
.u-pv__stage { overflow: auto; padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) 4rem; display: flex; justify-content: center; align-items: flex-start; }
.u-pv__img { width: min(100%, 1280px); border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); transform: scale(.985); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s var(--ease); }
.u-pv__img.is-ready { transform: none; opacity: 1; }
.u-pv__img.is-portrait { width: auto; max-width: min(100%, 26rem); }

/* ---------- 19. 响应式 ---------- */
@media (max-width: 1100px) {
  .u-hero__grid { grid-template-columns: 1fr; }
  .u-hero__stack { max-width: 40rem; width: 100%; }
  .u-cta__in { grid-template-columns: 1fr; }
  .u-cta__qr { justify-self: start; }
  .u-foot__grid { grid-template-columns: 1fr 1fr; }
  .u-foot__brand { grid-column: span 2; }
}
@media (max-width: 960px) {
  :root { --hh: 3.75rem; }
  .u-burger { display: block; }
  .u-nav {
    position: fixed; inset: var(--hh) 0 0 0; z-index: 90; background: var(--bg); padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(1rem);
    transition: opacity .35s var(--ease), transform .5s var(--ease-out), visibility 0s .35s;
  }
  .u-nav-open .u-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .u-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .u-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-lg); color: var(--text); border-radius: 0; }
  .u-nav .has-sub > a::after { display: none; }
  .u-sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .u-sub a { font-size: var(--t-base); color: var(--text-2); border-bottom: 1px solid var(--line); }
  .u-header__act .u-btn--ghost { display: none; }
  .u-list { grid-template-columns: minmax(0, 1fr); }
  .u-side { position: static; max-height: none; overflow: visible; }
  .u-side h2 { display: none; }
  .u-side__list { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
  .u-side__list::-webkit-scrollbar { display: none; }
  .u-side a, .u-side a:hover, .u-side a.is-current { flex: none; padding: 0 .9rem; min-height: 2.25rem; align-items: center; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
  .u-side a.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .u-side a.is-current em { color: inherit; }
  .u-side .u-side__sub { display: contents; }
  .u-side .u-side__sub a { padding: 0 .9rem; }
  .u-tuts { grid-template-columns: 1fr; }
  .u-feature .u-card, .u-feature .u-card:nth-child(5n + 1), .u-feature .u-card:nth-child(5n + 2) { grid-column: span 6; --h: clamp(9rem, 28vw, 15rem); }
  .u-feature .u-card:nth-child(5n + 1) { grid-column: span 12; --h: clamp(12rem, 42vw, 20rem); }
  .u-sec__head { align-items: start; flex-direction: column; gap: 1rem; }
}
@media (max-width: 600px) {
  .u-phone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .75rem; }
  .u-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .75rem; }
  .u-qrcard__box { padding: .6rem; }
  .u-brand__en { display: none; }
  .u-header__act .u-btn--accent { min-height: 2.5rem; padding: 0 1.1rem; }
  .u-feature .u-card, .u-feature .u-card:nth-child(5n + 1), .u-feature .u-card:nth-child(5n + 2) { grid-column: span 12; --h: clamp(11rem, 50vw, 17rem); }
  .u-foot__grid { grid-template-columns: 1fr; }
  .u-foot__brand { grid-column: auto; }
  .u-dock { right: .9rem; bottom: 5.75rem; }
  .u-hero__stack { aspect-ratio: 1 / 1.1; }
  .u-index__all { display: none; }
  .u-pv__title { font-size: var(--t-sm); }
}

/* ---------- 20. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .u-hero__title .l > span { opacity: 1 !important; transform: none !important; }
}
