/* ============================================================
   丰万里 · Portfolio — Design System
   风格基准：Vectis 式浅灰底 + Pastel 3D + 大字排版
   ============================================================ */

:root {
  --bg: #ECECEA;
  --bg-soft: #F5F5F3;
  --card: #FFFFFF;
  --ink: #1A1A1C;
  --ink-2: #54545A;
  --ink-3: #8E8E95;
  --line: rgba(26, 26, 28, 0.09);
  --pink: #F2A0C4;
  --purple: #B794E8;
  --blue: #93B8E8;
  --coral: #F0978B;
  --grad: linear-gradient(118deg, #B26BE0 0%, #E05FA9 55%, #F0869C 100%);
  --grad-soft: linear-gradient(118deg, rgba(178,107,224,.14), rgba(224,95,169,.14));
  --shadow-sm: 0 2px 10px rgba(26,26,28,.05);
  --shadow-md: 0 10px 34px rgba(26,26,28,.08);
  --shadow-lg: 0 24px 70px rgba(26,26,28,.12);
  --r-sm: 12px; --r-md: 18px; --r-lg: 26px; --r-xl: 36px;
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Instrument Serif", "Noto Serif SC", "Songti SC", Georgia, serif;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overscroll-behavior-y: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 细噪声纹理，还原参考站质感 */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(178,107,224,.28); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 2; }

/* ---------------- 字体工具 ---------------- */
.serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.serif-i.grad-text { font-style: normal; letter-spacing: 0; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* 渐变文字兜底：若浏览器不支持 background-clip:text，用品牌色 */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .grad-text { -webkit-text-fill-color: #E05FA9; color: #E05FA9; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--ink-3); }

/* ---------------- 悬浮胶囊导航 ---------------- */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: min(1060px, calc(100% - 32px));
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 22px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(26,26,28,.07);
  transition: box-shadow .35s ease, background .35s ease;
}
.nav.scrolled { background: rgba(255,255,255,.88); box-shadow: 0 12px 40px rgba(26,26,28,.12); }

.nav-logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.nav-logo svg { width: 26px; height: 26px; }
/* 四点符号 + 字标 */
.nav-mark { gap: 10px; }
.lm-dots {
  width: 20px; height: 20px; flex: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.lm-dots i { border-radius: 50%; background: var(--ink); transition: background .3s; }
.lm-dots i:nth-child(4) { background: linear-gradient(135deg, #B26BE0, #E05FA9); }
.nav-mark:hover .lm-dots { transform: rotate(180deg); }
.lm-word { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .03em; color: var(--ink); }
.lm-word i { font-style: normal; color: #B26BE0; }
.nav-logo small { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 2px; letter-spacing: .12em; }

.nav-links { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a {
  padding: 8px 16px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--ink); background: rgba(26,26,28,.05); }
.nav-links a.active { color: var(--ink); font-weight: 600; background: rgba(26,26,28,.06); }

.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  padding: 11px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s;
  box-shadow: 0 6px 18px rgba(26,26,28,.22);
}
.btn-pill:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 26px rgba(26,26,28,.3); }
.btn-pill:active { transform: translateY(0) scale(.98); }
.btn-pill.light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn-pill.gradient { background: var(--grad); box-shadow: 0 8px 22px rgba(200,90,170,.35); }

/* ---------------- HERO ---------------- */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 9vh;
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }

.hero-note {
  position: absolute; top: 16vh; right: 0;
  max-width: 280px; text-align: left;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1.65;
  color: var(--ink-2);
  animation: fadeUp 1.2s .5s cubic-bezier(.2,.7,.2,1) both;
  z-index: 4;
}
.hero-note b { color: var(--ink); font-weight: 600; }

.hero-eyebrow {
  font-size: 13px; letter-spacing: .38em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 500; margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
  animation: fadeUp 1s .25s cubic-bezier(.2,.7,.2,1) both;
}
.hero-eyebrow::before { content: ""; width: 42px; height: 1.5px; background: var(--ink); }

.hero h1 {
  font-size: clamp(52px, 8.4vw, 118px);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 700;
}
.hero h1 .l1 { display: block; animation: fadeUp 1s .4s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .l2 { display: block; animation: fadeUp 1s .55s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 .serif-i { font-size: 1.04em; letter-spacing: -.01em; padding-right: .06em; }

.hero-sub {
  margin-top: 26px; max-width: 560px;
  color: var(--ink-2); font-size: clamp(15px, 1.3vw, 17.5px);
  animation: fadeUp 1s .7s cubic-bezier(.2,.7,.2,1) both;
}

.hero-cta { margin-top: 38px; display: flex; gap: 14px; animation: fadeUp 1s .82s cubic-bezier(.2,.7,.2,1) both; }

.hero-explore {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 3; text-align: center;
  font-size: 11px; letter-spacing: .42em; color: var(--ink-3);
  text-transform: uppercase; font-weight: 500;
  animation: fadeUp 1s 1s both;
}
.hero-explore svg { display: block; margin: 8px auto 0; animation: bob 2.2s ease-in-out infinite; }

@keyframes bob { 0%,100% { transform: translateY(0); opacity:.9 } 50% { transform: translateY(6px); opacity:.4 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }

/* 漂浮粒子小方块（CSS 层，补充 three.js） */
.float-cube {
  position: absolute; z-index: 2;
  width: 10px; height: 10px; border-radius: 2.5px;
  background: #3c3c40; opacity: .55;
  animation: floatCube var(--d, 9s) ease-in-out infinite;
}
@keyframes floatCube {
  0%,100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-26px) rotate(40deg); }
}

/* ---------------- 通用 Section ---------------- */
.section { padding: 110px 0; position: relative; z-index: 2; }
.section-head { margin-bottom: 56px; }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.08; letter-spacing: -.025em; font-weight: 700;
}
.section-head p { margin-top: 16px; color: var(--ink-2); max-width: 620px; font-size: 16.5px; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s } .reveal[data-delay="2"] { transition-delay: .2s }
.reveal[data-delay="3"] { transition-delay: .3s } .reveal[data-delay="4"] { transition-delay: .4s }

/* ---------------- 关于我 ---------------- */
.about-statement {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.5; letter-spacing: -.01em; font-weight: 500;
  max-width: 980px;
}
.about-statement .hl { position: relative; white-space: nowrap; }
.about-statement .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 4px; height: .42em;
  background: var(--grad-soft); border-radius: 4px; z-index: -1;
}

.stats-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px;
}
.stat-card {
  background: var(--card); border-radius: var(--r-md);
  padding: 24px 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,.7);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--c, var(--purple)); opacity: .85;
}
.stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat-num { font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .5em; font-weight: 600; margin-left: 2px; }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* ---------------- 工作经历时间轴 ---------------- */
.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px;
  width: 2px; background: linear-gradient(var(--purple), var(--pink), transparent);
  border-radius: 2px; opacity: .5;
}
.t-item { position: relative; padding-left: 64px; padding-bottom: 56px; }
.t-item:last-child { padding-bottom: 0; }
.t-dot {
  position: absolute; left: 8px; top: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.t-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--purple)); }

.t-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.t-date { font-size: 13px; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; }
.t-company { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.t-role {
  font-size: 13.5px; padding: 5px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500;
}

.t-projects { margin-top: 22px; display: grid; gap: 14px; }
.t-project {
  background: var(--card); border-radius: var(--r-md);
  padding: 26px 28px;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s;
}
.t-project:hover { transform: translateX(8px); box-shadow: var(--shadow-md); }
.t-project h4 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.t-project h4 .idx {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 15px; color: var(--ink-3);
}
.t-project p { margin-top: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.t-metrics { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.metric-chip {
  font-size: 12.5px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.metric-chip b { color: var(--ink); }
.metric-chip.hot { background: var(--grad-soft); border-color: rgba(200,90,170,.25); color: #A348A0; }
.metric-chip.hot b { color: #8E2F8B; }

/* ---------------- 独立项目预览（首页） ---------------- */
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature-card {
  position: relative; display: block;
  background: var(--card); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,.7);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-visual { height: 300px; position: relative; overflow: hidden; }
.feature-visual .art { position: absolute; inset: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.feature-card:hover .feature-visual .art { transform: scale(1.05); }
.feature-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.feature-card:hover .feature-shot { transform: scale(1.05); }
.feature-body { padding: 26px 28px 28px; }
.feature-body h3 { font-size: 23px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature-body h3 .arrow { transition: transform .35s; }
.feature-card:hover h3 .arrow { transform: translate(4px,-4px); }
.feature-body p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.feature-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }

/* ---------------- 技能（星图网络） ---------------- */
.skymap { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: stretch; }

.sky-stage {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 560px;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(183,148,232,.10), transparent 55%),
    radial-gradient(100% 100% at 85% 92%, rgba(147,184,232,.10), transparent 55%),
    #FCFBF8;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
#skyCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sky-legend { position: absolute; left: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 3; }
.sky-legend button {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink-2);
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  padding: 8px 13px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.sky-legend button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.sky-legend button:hover, .sky-legend button.on { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 10px 22px -12px var(--c); }
.sky-hint {
  position: absolute; right: 18px; bottom: 22px; z-index: 3;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}

/* 详情面板 */
.sky-panel {
  --c: #B794E8;
  position: relative; border-radius: 18px; padding: 30px; overflow: hidden;
  background: var(--card); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .4s;
}
.sky-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--c), transparent); }
.sky-panel:hover { box-shadow: 0 24px 60px -28px var(--c); }
.sp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sp-idx { font-family: var(--font-serif); font-style: italic; font-size: 44px; line-height: .9; color: var(--c); transition: color .4s; }
.sp-group { font-size: 11px; letter-spacing: .14em; color: var(--ink-3); text-align: right; }
.sky-panel h3 { margin-top: 18px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.sp-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }
.sp-prof { margin-top: 24px; display: flex; align-items: center; gap: 18px; }
.sp-ring { width: 84px; height: 84px; transform: rotate(-90deg); flex: none; }
.sp-ring circle { fill: none; stroke-width: 5.5; }
.sp-ring-bg { stroke: rgba(26,26,28,.08); }
.sp-ring-val {
  stroke: var(--c); stroke-linecap: round;
  stroke-dasharray: 194.8; stroke-dashoffset: 194.8;
  transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1), stroke .4s;
}
.sp-prof-txt b { display: block; font-size: 26px; letter-spacing: -0.02em; }
.sp-prof-txt span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; }
.sp-related { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.sp-related button {
  font-size: 12px; font-weight: 500; font-family: inherit;
  padding: 9px 13px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  transition: transform .25s, border-color .25s, color .25s, box-shadow .25s;
  animation: sp-chip-in .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 40ms);
}
.sp-related button:hover { transform: translateY(-3px); border-color: var(--c); color: var(--ink); box-shadow: 0 12px 22px -14px var(--c); }
@keyframes sp-chip-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sky-panel.swap h3, .sky-panel.swap .sp-desc, .sky-panel.swap .sp-prof { animation: sp-swap .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sp-swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 首页作品区：精选两件与列表同栏 */
.home-featured { margin-bottom: 40px; }

@media (max-width: 960px) {
  .skymap { grid-template-columns: 1fr; }
  .sky-stage { min-height: 420px; }
}

/* ---------------- 教育 + 页脚 ---------------- */
.edu-card {
  background: var(--card); border-radius: var(--r-lg); padding: 44px;
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center;
}
.edu-card .edu-year { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--ink-3); }
.edu-card h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.edu-card .edu-major { margin-top: 8px; display: inline-block; font-size: 14px; padding: 6px 16px; border-radius: 999px; background: var(--grad-soft); color: #A348A0; font-weight: 600; }
.edu-card p { color: var(--ink-2); font-size: 15px; line-height: 1.8; }

.footer {
  margin-top: 60px; position: relative; overflow: hidden;
  background: var(--ink); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.footer-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 96px 0 40px; position: relative; z-index: 2; }
.footer h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.footer .f-sub { margin-top: 18px; color: rgba(255,255,255,.6); font-size: 16.5px; max-width: 520px; }
.footer .f-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.footer .f-bottom {
  margin-top: 80px; padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.45);
}
.footer .glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(120px); opacity: .35; pointer-events: none;
}

/* ============================================================
   WORKS 作品集页
   ============================================================ */
.works-hero { padding: 190px 0 40px; }
.works-hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: 1.03; letter-spacing: -.03em; font-weight: 700; }
.works-hero p { margin-top: 20px; color: var(--ink-2); max-width: 560px; font-size: 16.5px; }

.works-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 44px 0 36px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  transition: all .3s;
}
.filter-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 40px; }
.work-card {
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s, opacity .4s;
  display: flex; flex-direction: column;
  cursor: pointer;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.work-card.hidden-card { display: none; }
.work-visual { height: 220px; position: relative; overflow: hidden; }
.work-visual .art { position: absolute; inset: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .work-visual .art { transform: scale(1.06); }

/* 售卖徽标 */
.sale-badges { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; gap: 7px; flex-wrap: wrap; }
.badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-sale { background: rgba(46, 160, 100, .92); color: #fff; }
.badge-sold { background: rgba(26,26,28,.85); color: #fff; }
.badge-free { background: rgba(255,255,255,.85); color: var(--ink-2); }
.badge-sub { background: var(--grad); color: #fff; }
.badge-once { background: rgba(147,184,232,.92); color: #fff; }
.badge-count { background: rgba(255,255,255,.9); color: var(--ink); }
.badge-dev { background: rgba(240,168,60,.94); color: #fff; }
.badge-dev .dot { animation: dev-pulse 1.6s ease-in-out infinite; }
.badge-done { background: rgba(147,184,232,.92); color: #fff; }
.badge-done .dot { background: #fff; }
@keyframes dev-pulse { 50% { opacity: .3; transform: scale(.75); } }

.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.work-body h3 .arrow { color: var(--ink-3); transition: transform .3s, color .3s; }
.work-card:hover h3 .arrow { transform: translate(3px,-3px); color: var(--ink); }
.work-body p { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.65; flex: 1; }
.work-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-sales { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.work-sales b { color: var(--ink); font-size: 14px; }

/* ============================================================
   PROJECT 详情页
   ============================================================ */
.pj-hero { padding: 170px 0 30px; }
.pj-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  padding: 9px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  transition: all .3s; margin-bottom: 34px;
}
.pj-back:hover { transform: translateX(-4px); box-shadow: var(--shadow-sm); color: var(--ink); }
.pj-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.pj-hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.pj-hero .pj-slogan { margin-top: 16px; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; }

/* 售卖信息卡 */
.sale-panel {
  min-width: 280px;
  background: var(--card); border-radius: var(--r-md); padding: 24px 26px;
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-md);
}
.sale-panel .sp-status { display: flex; gap: 7px; flex-wrap: wrap; }
.sale-panel .sp-price { margin-top: 16px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.sale-panel .sp-price small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.sale-panel .sp-row { margin-top: 12px; display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.sale-panel .sp-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sale-panel .btn-pill { margin-top: 18px; width: 100%; justify-content: center; }

/* 仿真电脑窗口 */
.stage { margin: 60px 0; }

/* 程序演示：直接铺满真实程序界面（无浏览器外框） */
.app-window {
  position: relative;
  width: 100%;
  height: min(84vh, 900px);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 50px 110px -50px rgba(26,26,28,.45), 0 0 0 1px rgba(26,26,28,.07);
}
.app-window iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.app-loader {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: #fff;
  transition: opacity .4s ease;
}
.app-loader span {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(26,26,28,.08);
  border-top-color: var(--purple, #B26BE0);
  animation: spin .8s linear infinite;
}
.app-loader em { font-style: normal; font-size: 13px; color: var(--ink-3); letter-spacing: .05em; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .app-window { height: 74vh; border-radius: 14px; }
}

.machine {
  background: #26262A; border-radius: 20px;
  padding: 12px 12px 14px;
  box-shadow: 0 40px 100px rgba(26,26,28,.28), 0 4px 16px rgba(26,26,28,.15);
  position: relative;
}
.machine-bar {
  height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 10px;
  color: rgba(255,255,255,.55);
}
.machine-bar .m-dot { width: 12px; height: 12px; border-radius: 50%; }
.machine-bar .m-dot:nth-child(1) { background: #FF5F57; }
.machine-bar .m-dot:nth-child(2) { background: #FEBC2E; }
.machine-bar .m-dot:nth-child(3) { background: #28C840; }
.machine-bar .m-url {
  margin-left: 14px; flex: 1; max-width: 460px;
  background: rgba(255,255,255,.08); border-radius: 8px;
  font-size: 12px; padding: 6px 14px;
  display: flex; align-items: center; gap: 8px;
  font-family: ui-monospace, monospace;
}
.machine-bar .m-live {
  margin-left: auto; font-size: 11.5px; letter-spacing: .14em; font-weight: 600;
  color: #7CE3A2; display: flex; align-items: center; gap: 7px;
}
.machine-bar .m-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6);} 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0);} }
.machine-screen {
  background: var(--bg); border-radius: 10px; overflow: hidden;
  aspect-ratio: 16 / 9; min-height: 420px; position: relative;
}
.machine-screen iframe { width: 100%; height: 100%; border: 0; display: block; position: absolute; inset: 0; }
.machine-stand {
  width: 180px; height: 14px; margin: 0 auto;
  background: linear-gradient(#3A3A3F, #2A2A2E);
  border-radius: 0 0 12px 12px;
}
.stage-caption { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--ink-3); letter-spacing: .06em; }
.stage-caption b { color: var(--ink-2); }

/* 详情内容区 */
.pj-content { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding-bottom: 110px; align-items: start; }
.pj-block { margin-bottom: 46px; }
.pj-block h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.pj-block h2::before { content: ""; width: 8px; height: 26px; border-radius: 4px; background: var(--grad); }
.pj-block p { color: var(--ink-2); font-size: 15.5px; line-height: 1.85; margin-bottom: 12px; }
.pj-block ul { list-style: none; }
.pj-block ul li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  color: var(--ink-2); font-size: 15px; line-height: 1.8;
}
.pj-block ul li::before {
  content: ""; position: absolute; left: 2px; top: .72em;
  width: 8px; height: 8px; border-radius: 2.5px; background: var(--purple); transform: rotate(45deg);
}

.pj-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.aside-card { background: var(--card); border-radius: var(--r-md); padding: 24px; border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm); }
.aside-card h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.aside-card .kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.aside-card .kv:last-child { border-bottom: 0; }
.aside-card .kv span { color: var(--ink-3); }
.aside-card .kv b { font-weight: 600; text-align: right; }

.pj-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 10px; }
.pj-metric { background: var(--card); border-radius: var(--r-sm); padding: 18px; text-align: center; border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm); }
.pj-metric .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pj-metric .k { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

/* 下一个项目导航 */
.pj-next {
  display: block; margin: 0 0 110px;
  background: var(--card); border-radius: var(--r-lg); padding: 44px;
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm);
  transition: transform .4s, box-shadow .4s;
}
.pj-next:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pj-next .n-label { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.pj-next .n-title { margin-top: 10px; font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .pj-content { grid-template-columns: 1fr; }
  .pj-aside { position: static; grid-template-columns: 1fr 1fr; }
  .edu-card { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  .nav { padding-left: 16px; }
  .nav-links { display: none; }
  .hero-note { position: static; margin-bottom: 30px; margin-top: 120px; }
  .hero-inner { justify-content: flex-end; }
  .hero h1 { font-size: clamp(30px, 9.4vw, 46px); line-height: 1.12; letter-spacing: -.02em; }
  .hero h1 .serif-i { display: inline-block; white-space: nowrap; }
  .hero-sub { margin-top: 20px; }
  .hero-cta { flex-wrap: wrap; margin-top: 28px; }
  .works-title { font-size: clamp(26px, 7vw, 38px); line-height: 1.2; }
  .works-title em { display: inline-block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .skills-grid, .works-grid, .pj-metrics { grid-template-columns: 1fr; }
  .pj-aside { grid-template-columns: 1fr; }
  .t-item { padding-left: 44px; }
  .section { padding: 76px 0; }
  .machine-screen { min-height: 300px; }
}
