/* ═══════════════════════════════════════════════════════════════
   GTC · 个人软件作品页
   画布色取自科学计算器的浓墨青；品牌三色只用于 </> 记号本身；
   每件作品的强调色来自它自己代码里的真实变量。
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 墨 */
  --ink-0: #060E11;
  --ink-1: #081114;
  --ink-2: #0D1D22;
  --ink-3: #12262B;
  --rule: rgba(190, 225, 230, 0.11);
  --rule-strong: rgba(190, 225, 230, 0.22);

  /* 纸 */
  --paper: #E9F1F2;
  --paper-2: #9DB3B7;
  --paper-3: #6A8085;

  /* 品牌三笔（仅记号使用） */
  --mark-a: #F05020;
  --mark-b: #80B800;
  --mark-c: #00A0F0;

  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-1);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  /* 极淡的方格纸底纹：计算器那本作业本的延伸 */
  background-image:
    linear-gradient(rgba(160, 210, 215, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 210, 215, 0.028) 1px, transparent 1px);
  background-size: 28px 28px;
}

h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--paper);
  background: rgba(160, 210, 215, 0.09);
  padding: 0.08em 0.38em;
  border-radius: 3px;
  white-space: nowrap;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--mark-b); color: var(--ink-0); }

:focus-visible {
  outline: 2px solid var(--mark-c);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--paper); color: var(--ink-0);
  font-family: var(--font-mono); font-size: 13px;
  padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── 页眉 ─────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 17, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-head.is-stuck { border-bottom-color: var(--rule); }

.head-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { flex: none; }
/* 词标 688:138 ≈ 5:1，宽高都写死：只给 height 而 width:auto 时，
   窄屏会按固有宽度参与 flex 布局，图被 preserveAspectRatio 居中推出视口 */
.brand-mark {
  display: block; height: 26px; width: 130px;
}

/* ── 动态词标：三笔 </> 描出 → 逐字浮现（带笔尖）→ 下划线收尾 ──
   ★ 只播一遍，且不会因动画没跑而空白：所有动画共用 2.5s、都从 0 秒起跑，
     先后顺序写进关键帧的百分比里，而不是用 animation-delay —— 带延迟的
     fill:both 在动画被冻结、被禁用或渲染器不支持时，会把词标永久藏起来。
     元素基础属性一律是「画完」的终态，那种场合下就退化成一张完整静态词标。 */
.gtc-lockup .gl-stroke {
  fill: none; stroke-width: 17; stroke-linecap: butt; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.gtc-lockup .gl-a { stroke: #F05020; }
.gtc-lockup .gl-b { stroke: #80B800; }
.gtc-lockup .gl-c { stroke: #00A0F0; }
.gl-text {
  font-family: "Arial Black", "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 82px; font-weight: 900; letter-spacing: -1px;
}
.gtc-lockup .gl-rule { stroke: #F05020; stroke-width: 7; stroke-linecap: round; }
.gtc-lockup .gl-nib { opacity: 0; }          /* 笔尖是过程件，播完就该不在 */

@keyframes gl-a { 0%, 4% { stroke-dashoffset: 1 } 22%, 100% { stroke-dashoffset: 0 } }
@keyframes gl-b { 0%, 12% { stroke-dashoffset: 1 } 30%, 100% { stroke-dashoffset: 0 } }
@keyframes gl-c { 0%, 20% { stroke-dashoffset: 1 } 38%, 100% { stroke-dashoffset: 0 } }
@keyframes gl-rule { 0%, 80% { stroke-dashoffset: 1 } 100% { stroke-dashoffset: 0 } }

@keyframes gl-i1 { 0%, 40% { fill-opacity: 0 } 52%, 100% { fill-opacity: 1 } }
@keyframes gl-i2 { 0%, 45.6% { fill-opacity: 0 } 57.6%, 100% { fill-opacity: 1 } }
@keyframes gl-i3 { 0%, 51.2% { fill-opacity: 0 } 63.2%, 100% { fill-opacity: 1 } }
@keyframes gl-i4 { 0%, 56.8% { fill-opacity: 0 } 68.8%, 100% { fill-opacity: 1 } }
@keyframes gl-i5 { 0%, 62.4% { fill-opacity: 0 } 74.4%, 100% { fill-opacity: 1 } }
@keyframes gl-i6 { 0%, 68% { fill-opacity: 0 } 80%, 100% { fill-opacity: 1 } }

@keyframes gl-nib {
  0%, 40% { opacity: 0; transform: translateX(240px) }
  42%     { opacity: 1 }
  78%     { opacity: 1; transform: translateX(712px) }
  82%, 100% { opacity: 0; transform: translateX(712px) }
}

.gtc-lockup .gl-a, .gtc-lockup .gl-b, .gtc-lockup .gl-c,
.gtc-lockup .gl-rule, .gtc-lockup .gl-text tspan, .gtc-lockup .gl-nib {
  animation-duration: 2.5s; animation-fill-mode: both;
  animation-timing-function: linear; animation-iteration-count: 1;
}
.gtc-lockup .gl-a { animation-name: gl-a; }
.gtc-lockup .gl-b { animation-name: gl-b; }
.gtc-lockup .gl-c { animation-name: gl-c; }
.gtc-lockup .gl-rule { animation-name: gl-rule; }
.gtc-lockup .gl-g1 { animation-name: gl-i1; }
.gtc-lockup .gl-g2 { animation-name: gl-i2; }
.gtc-lockup .gl-g3 { animation-name: gl-i3; }
.gtc-lockup .gl-g4 { animation-name: gl-i4; }
.gtc-lockup .gl-g5 { animation-name: gl-i5; }
.gtc-lockup .gl-g6 { animation-name: gl-i6; }
.gtc-lockup .gl-nib { animation-name: gl-nib; }

.head-nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.head-nav a {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em;
  color: var(--paper-2);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
}
.head-nav a:hover { color: var(--paper); border-bottom-color: var(--mark-c); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { position: relative; }

.hero-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(52px, 9vw, 104px) var(--gutter) clamp(44px, 7vw, 86px);
  display: grid;
  grid-template-columns: minmax(150px, 0.62fr) minmax(0, 2.38fr);
  align-items: start;
  gap: clamp(28px, 5vw, 68px);
}

/* 站点铭牌：记号 + 四行档案，顶端与正文对齐 */
.hero-plate { position: relative; }

.mark { display: block; width: 100%; height: auto; overflow: visible; }
.hero-bracket { max-width: 190px; margin-bottom: 26px; }

.plate-meta { border-top: 1px solid var(--rule-strong); }
.plate-meta > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--rule);
}
.plate-meta dt {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--paper-3);
}
.plate-meta dd {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--paper);
}

.mark--hero path {
  fill: none;
  stroke-width: 17;
  stroke-linecap: butt;
  stroke-linejoin: miter;
}
.mark-stroke--a { stroke: var(--mark-a); }
.mark-stroke--b { stroke: var(--mark-b); }
.mark-stroke--c { stroke: var(--mark-c); }

.js .mark--hero path {
  stroke-dasharray: 1;
  animation: draw 0.85s cubic-bezier(0.6, 0.02, 0.2, 1) both;
}
.js .mark-stroke--a { animation-delay: 0.12s; }
.js .mark-stroke--b { animation-delay: 0.30s; }
.js .mark-stroke--c { animation-delay: 0.48s; }

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--paper-3);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.15rem, 5.6vw, 4.35rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: normal;
  position: relative;
  color: var(--paper);
}
/* 「麻烦」下面一道橙色的手写式下划线 */
.hero-title em::after {
  content: "";
  position: absolute; left: -2%; right: -2%; bottom: 0.07em;
  height: 0.11em;
  background: var(--mark-a);
  transform: skewX(-14deg) scaleX(1);
  transform-origin: left center;
  opacity: 0.85;
}
.js .hero-title em::after { animation: swipe 0.5s 1.05s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes swipe { from { transform: skewX(-14deg) scaleX(0); } to { transform: skewX(-14deg) scaleX(1); } }

.hero-body {
  max-width: 54ch;
  color: var(--paper-2);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(38px, 6vw, 60px); }

/* 管理器主推：hero 里的一条横幅，颜色跟它自己代码里的强调色 */
.promo {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px;
  margin-bottom: clamp(30px, 4.5vw, 46px);
  border: 1px solid var(--rule-strong);
  border-left: 2px solid var(--c);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(5, 166, 240, 0.10), transparent 62%);
  color: inherit; text-decoration: none;
  transition: border-color 0.24s ease, background-color 0.24s ease;
}
.promo:hover, .promo:focus-visible {
  border-color: rgba(5, 166, 240, 0.46);
  border-left-color: var(--c);
  background-color: rgba(5, 166, 240, 0.06);
}
.promo-tag {
  flex: none;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--c);
  border: 1px solid rgba(5, 166, 240, 0.34);
  border-radius: 2px;
  padding: 3px 8px;
}
.promo-say { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.promo-say b {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1rem, 1.9vw, 1.15rem); letter-spacing: 0.01em;
}
.promo-say i {
  font-style: normal; font-size: 13px; line-height: 1.6;
  color: var(--paper-3);
}
.promo-go {
  margin-left: auto; flex: none;
  font-family: var(--font-mono); font-size: 18px; line-height: 1;
  color: var(--c);
  transition: transform 0.25s ease;
}
.promo:hover .promo-go, .promo:focus-visible .promo-go { transform: translateX(4px); }

/* 通用按钮：先定义基座，再定义变体，避免相互覆盖 */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.06em;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, transform 0.22s ease;
}
.btn--solid { background: var(--paper); color: var(--ink-0); }
.btn--solid:hover { background: var(--mark-b); }

/* 作品一览：两列紧凑索引 */
.hero-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.hi-item { background: var(--ink-1); padding: 13px 16px; position: relative; transition: background-color 0.22s ease; }
.hi-item:hover { background: var(--ink-2); }
.hi-item dt a { color: inherit; text-decoration: none; }
/* 名称是链接，命中区铺满整格 */
.hi-item dt a::after { content: ""; position: absolute; inset: 0; }
.hi-item dt a:hover, .hi-item dt a:focus-visible {
  text-decoration: underline; text-underline-offset: 0.18em;
}
.hi-item dt {
  font-family: var(--font-display); font-weight: 700;
  font-size: 15px; letter-spacing: 0.01em;
}
.hi-item dd {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--paper-3); letter-spacing: 0.04em; margin-top: 3px;
}
/* 管理器横跨首行点题，末项横跨整行收尾，中间 6 项正好三行 */
.hi-item--wide {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 2px 18px;
}
.hi-item--wide dd { margin-top: 0; }
.hero-rule {
  height: 1px;
  background: linear-gradient(90deg,
    var(--mark-a) 0 33.3%, var(--mark-b) 33.3% 66.6%, var(--mark-c) 66.6% 100%);
  opacity: 0.55;
}

/* ── 作品账目 ─────────────────────────────────────────────── */
.works {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(30px, 5vw, 60px);
}

.sec-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.02em;
}
.sec-title--inline { margin-bottom: 26px; }
/* 作品标题自带一条底线，账目从它下面开始 */
.works > .sec-title {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-strong);
}

.ledger { border-top: 0; }

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(20px, 4vw, 52px);
  align-items: start;
  padding: clamp(30px, 4.5vw, 52px) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
/* 左侧色条：hover / 聚焦时展开 */
.work::before {
  content: "";
  position: absolute; left: calc(var(--gutter) * -0.5); top: 0; bottom: 0;
  width: 2px; background: var(--c);
  transform: scaleY(0); transform-origin: top center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.work:is(:hover, :focus-within)::before { transform: scaleY(1); }

.work-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mini-mark {
  width: 15px; height: 12px; color: var(--c); flex: none;
  /* use 的内容继承以下属性（文档选择器无法命中其 shadow 树） */
  fill: none; stroke: currentColor; stroke-width: 22; stroke-linejoin: miter;
}
.how {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c);
  opacity: 0.82;
}

.work-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 14px;
  transition: color 0.25s ease;
}
.work-name a { color: inherit; text-decoration: none; }
.work-name a:hover, .work-name a:focus-visible {
  text-decoration: underline; text-underline-offset: 0.16em;
  text-decoration-thickness: 2px;
}
.work:is(:hover, :focus-within) .work-name { color: var(--c); }

.work-desc {
  max-width: 56ch; color: var(--paper-2);
  font-size: 15.5px; line-height: 1.85;
  margin-bottom: 18px;
}

.work-facts { max-width: 60ch; margin-bottom: 24px; }
.work-facts li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--paper-3); line-height: 1.72;
}
.work-facts li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 1px; background: var(--c); opacity: 0.6;
}

.work-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.btn--go {
  border-color: var(--c); color: var(--c);
  background: transparent;
}
.btn--go:hover { background: var(--c); color: var(--ink-0); }
.btn--go .arrow { display: inline-block; transition: transform 0.25s ease; }
.btn--go:hover .arrow { transform: translateX(4px); }
.btn--line {
  border: 1px solid var(--rule-strong); color: var(--paper-2);
}
.btn--line:hover { border-color: var(--c); color: var(--c); }

/* ── 手绘小屏幕（纯 CSS，无外部图） ───────────────────────── */
.work-art { position: relative; }

/* 启动规格：与铭牌同一套等宽语言 */
.run { border-top: 1px solid var(--rule-strong); margin-top: 14px; }
.run > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.run dt {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c); opacity: 0.8; flex: none;
}
.run dd { font-size: 12.5px; text-align: right; color: var(--paper-2); overflow-wrap: anywhere; }
.run code { font-size: 11.5px; background: none; padding: 0; color: var(--paper); }

.art {
  width: 100%; aspect-ratio: 16 / 10;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  position: relative; overflow: hidden;
  background: var(--ink-2);
}

/* 验证：证书 + 激活码 + 盖章 */
.art--seal { background: #0B1620; padding: 18px 16px; }
.seal-doc { display: flex; flex-direction: column; gap: 8px; }
.seal-line { height: 5px; width: 78%; background: rgba(201, 169, 78, 0.22); border-radius: 1px; }
.seal-line--short { width: 46%; }
.seal-code {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em;
  color: #C9A94E; margin-top: 14px;
}
.seal-ring {
  position: absolute; right: 14px; bottom: 12px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid #C9A94E;
  display: grid; place-items: center;
  color: #C9A94E; font-size: 20px;
  opacity: 0.42;
  transform: rotate(-13deg) scale(1.25);
  transition: transform 0.42s cubic-bezier(0.34, 1.4, 0.5, 1), opacity 0.3s ease;
}
.work:is(:hover, :focus-within) .seal-ring { opacity: 1; transform: rotate(-13deg) scale(1); }

/* 计算器：方格纸 + 红笔答案 */
.art--paper {
  background: #F5F7F6;
  background-image:
    linear-gradient(rgba(11, 74, 94, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 74, 94, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
  padding: 20px 18px 18px 30px;
}
.paper-margin {
  position: absolute; left: 20px; top: 0; bottom: 0; width: 1px;
  background: rgba(196, 61, 38, 0.28);
}
.paper-q {
  font-family: var(--font-mono); font-size: 14px; color: #16323C;
}
.paper-a {
  font-family: var(--font-mono); font-size: 13px; color: #C43D26;
  margin-top: 12px;
  opacity: 0.3; transform: translateY(6px);
  transition: opacity 0.35s ease 0.12s, transform 0.35s ease 0.12s;
  border-bottom: 2px solid rgba(196, 61, 38, 0.5);
  display: inline-block; padding-bottom: 1px;
}
.work:is(:hover, :focus-within) .paper-a { opacity: 1; transform: translateY(0); }

/* GTC 记账：账页（虚线分隔、金额右对齐、记一笔结余跟着变） */
.art--ledger { background: #EDF0E9; padding: 14px 16px; }
.lg-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lg-month {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; color: #5C6870;
}
.lg-sum { position: relative; display: inline-block; height: 18px; }
.lg-sum i {
  font-style: normal; display: block; text-align: right;
  font-family: var(--font-mono); font-size: 15px; color: #5F9E2A;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.lg-sum i + i { position: absolute; right: 0; top: 0; opacity: 0; transform: translateY(7px); }
.work:is(:hover, :focus-within) .lg-sum i:first-child { opacity: 0; transform: translateY(-7px); }
.work:is(:hover, :focus-within) .lg-sum i + i { opacity: 1; transform: none; }
.lg-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; border-top: 1px dashed #C9D2C4;
  font-size: 12px; color: #1A2229;
}
.lg-row b { font-weight: 400; font-size: 10.5px; color: #8C979D; width: 13px; flex: none; }
.lg-row em { font-style: normal; font-family: var(--font-mono); margin-left: auto; }
.lg-row .out { color: #D8552A; }
.lg-row .in { color: #1479B8; }
.lg-row--new { opacity: 0; transform: translateY(5px); transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s; }
.work:is(:hover, :focus-within) .lg-row--new { opacity: 1; transform: none; }

/* 蹭饭地图：奶白底 + 引线姓名标注（复现标注自转） */
.art--map {
  background: #F5F3EF;
  background-image:
    linear-gradient(rgba(44, 36, 22, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 36, 22, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
}
.mf { position: absolute; width: 0; height: 0; }
.mf::before {
  content: ""; position: absolute; left: -4.5px; top: -4.5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #D4623A; border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px rgba(212, 98, 58, 0.35);
}
.mf-arm {
  position: absolute; left: 0; top: 0; width: 44px; height: 0;
  border-top: 1px dashed rgba(44, 36, 22, 0.32);
  transform: rotate(var(--a)); transform-origin: 0 0;
  transition: transform 0.7s cubic-bezier(0.33, 0.66, 0.4, 1);
}
.mf-arm em {
  position: absolute; right: -3px; top: -8px;
  font-family: var(--font-mono); font-style: normal;
  font-size: 10px; letter-spacing: 0.02em; color: #2C2416;
  white-space: nowrap; background: #FFFFFF;
  border: 1px solid #E8E0D5; border-radius: 4px; padding: 1px 5px;
  transform: rotate(calc(-1 * var(--a))); transform-origin: right center;
  transition: transform 0.7s cubic-bezier(0.33, 0.66, 0.4, 1);
}
.work:is(:hover, :focus-within) .mf-arm { transform: rotate(calc(var(--a) + 24deg)); }
.work:is(:hover, :focus-within) .mf-arm em { transform: rotate(calc(-1 * (var(--a) + 24deg))); }

/* GTC C盘清理：容量条，释放后可用区间变长 */
.art--disk { background: #0E151C; padding: 18px 16px; display: flex; flex-direction: column; }
.dk-name {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: #8A949E; margin-bottom: 12px;
}
.dk-bar {
  display: flex; height: 12px; border-radius: 3px; overflow: hidden;
  background: #22303C; border: 1px solid #22303C;
}
.dk-used {
  width: 78%; background: #05A6F0;
  transition: width 0.55s cubic-bezier(0.33, 0.66, 0.4, 1);
}
.dk-rel {
  width: 10.5%; background: #F35325;
  transition: width 0.55s cubic-bezier(0.33, 0.66, 0.4, 1);
}
.work:is(:hover, :focus-within) .dk-used { width: 67.5%; }
.work:is(:hover, :focus-within) .dk-rel { width: 0; }
.dk-key {
  display: flex; gap: 14px; margin-top: 12px;
  font-size: 10.5px; color: #8A949E;
}
.dk-key b { font-weight: 400; display: inline-flex; align-items: center; gap: 5px; }
.dk-key i { width: 7px; height: 7px; border-radius: 2px; }
.kb-used { background: #05A6F0; }
.kb-rel { background: #F35325; }
.kb-free { background: #22303C; }
.dk-cap {
  position: relative; height: 15px; margin-top: auto;
  font-family: var(--font-mono); font-size: 11px; color: #81BC06;
}
.dk-cap i {
  font-style: normal; position: absolute; left: 0; top: 0; white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.dk-cap i + i { opacity: 0; transform: translateY(5px); }
.work:is(:hover, :focus-within) .dk-cap i:first-child { opacity: 0; transform: translateY(-5px); }
.work:is(:hover, :focus-within) .dk-cap i + i { opacity: 1; transform: none; }

/* 管理器：软件清单 + 下载任务条
   行的个头跟着画框高度长：`.art` 是固定 16/10 的，窄断点下画框只有 240px 宽，
   写死行高会把底下那条任务栏挤出画框（overflow:hidden 直接切掉）。 */
.art--manager {
  background: #0A1017; padding: 12px;
  display: flex; flex-direction: column;
}
.mg-list { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mg-row {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  padding: 0 10px;
  border: 1px solid rgba(5, 166, 240, 0.16);
  background: rgba(5, 166, 240, 0.05);
  border-radius: 3px;
  font-size: 11.5px; line-height: 1.35; color: #D8E4F0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.work:is(:hover, :focus-within) .mg-row {
  border-color: rgba(5, 166, 240, 0.34);
  background: rgba(5, 166, 240, 0.1);
}
.mg-led { width: 6px; height: 6px; border-radius: 50%; background: #05A6F0; flex: none; }
.mg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-ver {
  font-style: normal; font-family: var(--font-mono);
  font-size: 10.5px; color: #5C7A8C; margin-left: auto; flex: none;
}
.mg-task {
  display: flex; align-items: center; gap: 9px;
  flex: none; padding: 10px 2px 0;
  line-height: 1;
}
.mg-task-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; color: #5C7A8C; flex: none;
}
.mg-track {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(5, 166, 240, 0.16); overflow: hidden;
}
.mg-fill {
  display: block; height: 100%; width: 34%;
  background: #05A6F0; border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.work:is(:hover, :focus-within) .mg-fill { width: 94%; }
.mg-pct {
  font-family: var(--font-mono); font-size: 10px;
  color: #05A6F0; flex: none;
}

/* GTC 内存优化：终端窗口，hover 时进度条跑满、可用量跟着变 */
.art--mem { background: #0C0C0C; padding: 14px 16px; display: flex; flex-direction: column; }
.mm-cmd { font-family: var(--font-mono); font-size: 11px; color: #CCCCCC; margin-bottom: 11px; }
.mm-cmd b { font-weight: 400; color: #61D6D6; }
.mm-bar { height: 9px; background: #2A2A2A; border-radius: 2px; overflow: hidden; }
.mm-fill {
  display: block; height: 100%; width: 26%; background: #B4009E;
  transition: width 0.6s cubic-bezier(0.33, 0.66, 0.4, 1);
}
.work:is(:hover, :focus-within) .mm-fill { width: 100%; }
.mm-rows { margin-top: 11px; font-family: var(--font-mono); font-size: 11px; color: #8A8A8A; }
.mm-rows span { color: #16C60C; }
.mm-rows b { font-weight: 400; color: #F9F1A5; }
.mm-sum { position: relative; height: 17px; margin-top: auto; }
.mm-sum i {
  font-style: normal; position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 13px; color: #8A8A8A;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mm-sum i + i { opacity: 0; transform: translateY(5px); color: #16C60C; }
.work:is(:hover, :focus-within) .mm-sum i:first-child { opacity: 0; transform: translateY(-5px); }
.work:is(:hover, :focus-within) .mm-sum i + i { opacity: 1; transform: none; }

/* GTC 桌面 OCR：左边一张拖进来的书页，右边逐行认出文字 */
.art--ocr {
  background: #0E2028; display: flex; align-items: center; gap: 11px;
  padding: 14px 16px;
}
.oc-src {
  width: 72px; height: 92px; flex: none; background: #F5F7F6; border-radius: 3px;
  padding: 13px 10px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .38);
}
.oc-src b { display: block; height: 4px; background: #C7D6DA; border-radius: 1px; }
.oc-src-tail { width: 62%; }
.oc-arrow {
  font-family: var(--font-mono); font-size: 15px; color: #0B7EA8; flex: none;
  transition: transform 0.35s ease;
}
.work:is(:hover, :focus-within) .oc-arrow { transform: translateX(3px); }
.oc-out { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.oc-out i {
  font-style: normal; font-size: 11.5px; color: #E9F1F2; white-space: nowrap;
  opacity: 0.26; transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work:is(:hover, :focus-within) .oc-out i { opacity: 1; transform: none; }
.work:is(:hover, :focus-within) .oc-l2 { transition-delay: 0.12s; }
.oc-conf {
  font-family: var(--font-mono); font-size: 10.5px;
  background: #4C8A22; color: #FFFFFF; padding: 2px 7px; border-radius: 2px;
}
.work:is(:hover, :focus-within) .oc-conf { transition-delay: 0.26s; }

/* 启动器：热键搜索条 */
.art--flash { background: #0A0E1A; padding: 20px 16px; }
.flash-bar {
  display: flex; align-items: center;
  border: 1px solid rgba(62, 207, 176, 0.4);
  background: #141A2E;
  padding: 9px 11px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 13px; color: #E9EDF7;
}
.flash-caret {
  width: 1px; height: 15px; background: #3ECFB0; margin-left: 2px;
  opacity: 0;
}
.work:is(:hover, :focus-within) .flash-caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.flash-hit {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 7px 11px;
  font-size: 12.5px; color: #E9EDF7;
  background: rgba(62, 207, 176, 0.12);
  border-left: 2px solid #3ECFB0;
  border-radius: 2px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.flash-hit em {
  margin-left: auto; font-style: normal;
  font-family: var(--font-mono); font-size: 10.5px; color: #3ECFB0;
}
.flash-hit--dim { color: #98A2B8; background: rgba(255,255,255,0.03); border-left-color: transparent; opacity: 0.34; }
.work:is(:hover, :focus-within) .flash-hit { opacity: 1; }
.work:is(:hover, :focus-within) .flash-hit--dim { opacity: 0.7; transition-delay: 0.08s; }

/* 小游戏：2×2 格子 */
.art--arcade {
  background: #0F0F23;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px;
}
.tile {
  display: grid; place-items: center;
  background: #1E1E38; border-radius: 6px;
  font-size: 22px;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.5, 1), background-color 0.3s ease;
}
.work:is(:hover, :focus-within) .tile { background: #252547; }
.work:is(:hover, :focus-within) .tile:nth-child(1) { transform: translateY(-4px); }
.work:is(:hover, :focus-within) .tile:nth-child(4) { transform: translateY(4px); }
.tile--on { outline: 1px solid #A29BFE; outline-offset: -1px; }
.work:is(:hover, :focus-within) .tile--on { transform: scale(1.06); background: #2C2C55; }

/* ── 原则 ─────────────────────────────────────────────────── */
.rules {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) var(--gutter);
  border-top: 1px solid var(--rule);
}
.rules-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 46px);
}
.rule-glyph {
  width: 26px; height: 21px; display: block; margin-bottom: 16px;
}
.rule:nth-child(1) .rule-glyph path { stroke: var(--mark-a); }
.rule:nth-child(2) .rule-glyph path { stroke: var(--mark-b); }
.rule:nth-child(3) .rule-glyph path { stroke: var(--mark-c); }
.rule-glyph path { fill: none; stroke-width: 20; stroke-linecap: butt; }

.rule h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; margin-bottom: 10px; letter-spacing: 0.01em;
}
.rule p { font-size: 14.5px; color: var(--paper-2); line-height: 1.85; max-width: 34ch; }

/* ── 关于 ───────────────────────────────────────────────── */
.about {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
}
.about-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) var(--gutter);
}
.about-lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(17px, 2.2vw, 21px); line-height: 1.75;
  max-width: 46ch; margin-bottom: 18px;
}
.about-para { font-size: 15px; color: var(--paper-2); max-width: 52ch; }

/* ── 页脚 ─────────────────────────────────────────────────── */
.site-foot {
  max-width: var(--maxw); margin: 0 auto;
  border-top: 1px solid var(--rule);
  padding: 30px var(--gutter) 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 26px;
}
.foot-mark { height: 20px; width: auto; opacity: 0.75; filter: brightness(1.1); }
.foot-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px;
}
.foot-note {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--paper-3);
}
.foot-icp a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.foot-icp a:hover { color: var(--paper-2); border-bottom-color: currentColor; }

/* ── 进场揭示 ─────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .hero-say > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.js .hero-say .eyebrow   { animation-delay: 0.35s; }
.js .hero-say .hero-title { animation-delay: 0.45s; }
.js .hero-say .hero-body  { animation-delay: 0.6s; }
.js .hero-say .hero-actions { animation-delay: 0.72s; }
.js .hero-say .promo { animation-delay: 0.78s; }
.js .hero-say .hero-index { animation-delay: 0.88s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── 响应式 ───────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .work { grid-template-columns: minmax(0, 1fr) 240px; }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-top: clamp(38px, 9vw, 60px);
  }
  .hero-plate {
    display: grid; grid-template-columns: 128px minmax(0, 1fr);
    align-items: center; gap: 22px;
  }
  .hero-bracket { max-width: 128px; margin-bottom: 0; }
  .rules-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .work-art { max-width: 320px; }
  .work::before { left: calc(var(--gutter) * -0.4); }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .head-nav a { font-size: 11px; letter-spacing: 0.1em; }
  .brand-mark { height: 21px; width: 105px; }
  .hero-index { grid-template-columns: minmax(0, 1fr); }
  .hero-plate { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .btn { padding: 10px 16px; font-size: 12.5px; }
  .work-art { max-width: 100%; }
  /* 主推横幅竖排：标签一行，说两行，箭头跟着文字走 */
  .promo { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; }
  .promo-tag { order: 1; }
  .promo-go { order: 2; margin-left: auto; }
  .promo-say { order: 3; flex: 1 0 100%; }
}

/* ── 减少动效 ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .mark--hero path { stroke-dashoffset: 0; }
  .js .hero-say > *, .js .reveal { opacity: 1; transform: none; }
  .hero-title em::after { transform: skewX(-14deg) scaleX(1); }
  .paper-a, .flash-hit { opacity: 1; transform: none; }
}
