:root {
  --bg: #05080f; --bg2: #0a1020; --panel: rgba(14, 22, 40, .62); --line: rgba(120, 160, 220, .14); --line2: rgba(34, 211, 238, .35);
  --text: #e6edf7; --muted: #8b98ae; --dim: #5d6a80; --cyan: #22d3ee; --violet: #8b5cf6; --ok: #34d399;
  --nov: "Novecento sans wide", "Bahnschrift", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans", "Yu Gothic UI", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
html[lang="ja"] { --body: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1200px 700px at 80% -10%, #0d1a35 0%, transparent 60%), radial-gradient(900px 600px at -10% 30%, #120d2a 0%, transparent 55%), var(--bg);
  color: var(--text); font: 16px/1.7 var(--body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, header, footer { position: relative; z-index: 2; }

/* 顶栏 */
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 18px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(5, 8, 15, .85), rgba(5, 8, 15, 0)); backdrop-filter: blur(6px); z-index: 10; }
.logo { font: 600 22px/1 var(--nov); letter-spacing: .14em; display: flex; align-items: center; gap: 6px; }
.logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.links { display: flex; gap: 22px; margin-left: auto; font: 500 12px/1 var(--nov); letter-spacing: .12em; text-transform: uppercase; }
.links a { color: var(--muted); transition: color .4s var(--ease); }
.links a:hover { color: var(--text); }
.lang { position: relative; display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(10, 16, 32, .6); }
.lang button { position: relative; z-index: 1; background: none; border: 0; color: var(--muted); font: 600 12px/1 var(--nov); letter-spacing: .08em;
  padding: 8px 12px; cursor: pointer; transition: color .45s var(--ease); min-width: 40px; }
.lang button.on { color: #04121a; }
.lang .pill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 40px; border-radius: 999px; background: linear-gradient(120deg, var(--cyan), #7dd3fc);
  box-shadow: 0 0 18px rgba(34, 211, 238, .45); transition: transform .6s var(--ease), width .6s var(--ease); }

/* 首屏 */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(16px, 6vw, 96px) 60px; max-width: 1280px; margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--nov); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin: 0 0 18px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: live 2.6s var(--ease) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
h1 { margin: 0; line-height: .9; }
.big { font: 700 clamp(88px, 19vw, 260px)/.9 var(--nov); letter-spacing: .06em; background: linear-gradient(100deg, #f1f6ff 10%, #9be7f5 45%, #a78bfa 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(34, 211, 238, .18)); display: inline-block; }
.role { font: 600 clamp(15px, 2.1vw, 22px)/1.4 var(--nov); letter-spacing: .14em; text-transform: uppercase; margin: 22px 0 12px; color: #c9d6ea; }
.lede { max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); margin: 0 0 34px; }
.stats { display: flex; gap: clamp(22px, 5vw, 64px); margin-bottom: 40px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats b { font: 600 34px/1 var(--nov); color: var(--text); }
.stats span { font-size: 13px; color: var(--muted); }
.cta { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line2);
  font: 600 13px/1 var(--nov); letter-spacing: .12em; text-transform: uppercase; background: rgba(34, 211, 238, .07);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.cta:hover { background: rgba(34, 211, 238, .16); box-shadow: 0 0 28px rgba(34, 211, 238, .25); transform: translateY(-2px); }
.cta svg { animation: nudge 2.8s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(4px); } }

/* 区块 */
section.work, section.more, section.contact { max-width: 1280px; margin: 0 auto; padding: 80px clamp(16px, 6vw, 96px); }
.sec { display: flex; align-items: baseline; gap: 18px; font: 600 clamp(26px, 3.6vw, 44px)/1.1 var(--nov); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 48px; }
.sec .idx { font-size: 14px; color: var(--cyan); letter-spacing: .2em; }

/* 项目 */
.proj { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 110px; }
.proj:nth-child(even) .media { order: 2; }
.media { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #070b14; aspect-ratio: 16 / 10;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .9s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease); }
.media:hover { border-color: var(--line2); box-shadow: 0 30px 90px -30px rgba(34, 211, 238, .35); }
.media video, .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media video { opacity: 0; transition: opacity .9s var(--ease); }
.media video.ready { opacity: 1; }
.media .scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 0%, rgba(34, 211, 238, .06) 50%, transparent 100%);
  background-size: 100% 220%; animation: scan 7s cubic-bezier(.45, 0, .55, 1) infinite; mix-blend-mode: screen; }
@keyframes scan { 0% { background-position: 0 -120%; } 100% { background-position: 0 220%; } }
.media .bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: linear-gradient(to top, rgba(3, 6, 12, .9), transparent); font: 600 11px/1 var(--nov); letter-spacing: .14em; color: #cfe7ef; }
.media .bar .tag { padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 8, 15, .55); }
.media .full { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 8, 15, .6); color: #e6f7fb; cursor: pointer; font: inherit; letter-spacing: inherit; transition: background .4s var(--ease); }
.media .full:hover { background: rgba(34, 211, 238, .25); }
.media .full svg { width: 14px; height: 14px; }
.media .prog { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); width: 0; }
.pnum { font: 600 12px/1 var(--nov); letter-spacing: .22em; color: var(--cyan); }
.proj h3 { font: 600 clamp(22px, 2.6vw, 32px)/1.2 var(--nov); letter-spacing: .03em; margin: 12px 0 14px; }
html[lang="zh-CN"] .proj h3, html[lang="ja"] .proj h3 { font-family: var(--body); font-weight: 700; letter-spacing: .01em; }
.proj p.desc { color: var(--muted); margin: 0 0 20px; }
.metrics { display: grid; gap: 10px; margin: 0 0 20px; }
.metric { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.metric b { font: 600 22px/1 var(--nov); color: var(--text); white-space: nowrap; }
.metric b em { font-style: normal; color: var(--cyan); }
.metric span { color: #a9b6ca; font-size: 14px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips span { font: 500 11px/1 var(--nov); letter-spacing: .1em; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: #b8c6da; }
.note { font-size: 13px; color: var(--dim); display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
.note svg { width: 15px; height: 15px; margin-top: 3px; color: var(--muted); }
.plink { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--nov); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  padding: 10px 0; border-bottom: 1px solid transparent; transition: border-color .5s var(--ease), gap .5s var(--ease); }
.plink:hover { border-color: var(--cyan); gap: 12px; }
.plink.off { color: var(--dim); pointer-events: none; }

/* 更多 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { position: relative; padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  transition: transform .7s var(--ease), border-color .6s var(--ease); }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .6s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card h4 { font: 600 17px/1.3 var(--nov); letter-spacing: .05em; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.card .k { font: 600 13px/1.4 var(--nov); color: var(--cyan); letter-spacing: .04em; }

/* 联系 */
.cbtns { display: flex; gap: 14px; flex-wrap: wrap; }
.cbtn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  font-size: 15px; transition: border-color .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); max-width: 100%; }
.cbtn span { overflow-wrap: anywhere; }
.cbtn:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 0 26px rgba(34, 211, 238, .18); }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1280px; margin: 40px auto 0; padding: 28px clamp(16px, 6vw, 96px) 40px;
  color: var(--dim); font-size: 12px; border-top: 1px solid var(--line); }

/* 全屏播放 */
#viewer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2, 4, 9, .82); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; padding: 16px; }
#viewer.on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.vbox { position: relative; width: min(1280px, 100%); transform: scale(.96) translateY(10px); transition: transform .6s var(--ease); }
#viewer.on .vbox { transform: none; }
#vfull { width: 100%; max-height: 86vh; border-radius: 14px; border: 1px solid var(--line2); background: #000; display: block; }
.vclose { position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 16, 32, .8);
  color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }

/* 进场：淡入 + 去模糊 + 上移（缓动），交错 */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
/* 换语言：文字淡出淡入 */
[data-i], .proj .txt { transition: opacity .32s var(--ease), filter .32s var(--ease); }
body.swap [data-i], body.swap .proj .txt { opacity: 0; filter: blur(3px); }

@media (max-width: 860px) {
  .proj { grid-template-columns: 1fr; margin-bottom: 80px; }
  .proj:nth-child(even) .media { order: 0; }
  .links { display: none; }
  .lang { margin-left: auto; }
  .media { transform: none !important; }
}
@media (max-width: 420px) {
  .metric { grid-template-columns: 1fr; gap: 6px; }
  .media .bar .tag:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* AIGC: preserve the whole artwork, with its actual generation prompt alongside. */
#aigc { scroll-margin-top: 100px; }
.aigc-item { display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;margin:0 0 64px;align-items:start; }
.aigc-art { border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--panel); }
.aigc-art img { display:block;width:100%;height:auto;max-height:700px;object-fit:contain; }
.aigc-copy { min-width:0; }.aigc-copy h3 { font-size:25px;line-height:1.4;margin:12px 0; }.aigc-copy p { color:var(--muted); }.aigc-params { font-size:12px;overflow-wrap:anywhere; }
.aigc-prompt-head,.aigc-download { display:flex;align-items:center;justify-content:space-between;gap:16px; }
.aigc-copy pre { margin:12px 0;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;color:#bac9dd;font:12px/1.8 Consolas,monospace; }
.aigc-copy button { color:var(--cyan);background:var(--panel);border:1px solid var(--line2);border-radius:8px;padding:8px 14px;cursor:pointer; }
.aigc-copy summary,.aigc-experiments>summary { cursor:pointer;color:var(--muted);padding:12px 0; }.aigc-download { justify-content:flex-start;margin-top:16px;font-size:13px;color:var(--cyan); }
.aigc-en,.aigc-ja { display:none; }html[lang="en"] .aigc-zh,html[lang="ja"] .aigc-zh { display:none; }html[lang="en"] .aigc-en,html[lang="ja"] .aigc-ja { display:inline; }
:focus-visible { outline:2px solid var(--cyan);outline-offset:4px; }
@media(max-width:860px) { .aigc-item { grid-template-columns:1fr;gap:20px; }.aigc-art img { max-height:580px; } }

/* AIGC 收纳：缩略图卡片 + 点开弹窗 */
.aigc-hint { color: var(--dim); font-size: 13px; margin: -8px 0 18px; }

.aigc-dlg { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line2); border-radius: 18px;
  background: rgba(8, 13, 25, .97); color: var(--text); overflow: hidden; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .38s var(--ease), transform .5s var(--ease); }
.aigc-dlg:not([open]) { display: none; }
.aigc-dlg.on { opacity: 1; transform: none; }
.aigc-dlg::backdrop { background: rgba(2, 4, 9, .78); backdrop-filter: blur(8px); opacity: 0; transition: opacity .38s var(--ease); }
.aigc-dlg.on::backdrop { opacity: 1; }
.aigc-dlg .bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.aigc-dlg .count { margin-right: auto; font: 600 12px/1 var(--nov); letter-spacing: .16em; color: var(--muted); }
.aigc-dlg .bar button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; transition: border-color .4s var(--ease), background .4s var(--ease); }
.aigc-dlg .bar button:hover { border-color: var(--line2); background: rgba(34, 211, 238, .12); }
.aigc-dlg .body { overflow: auto; padding: 22px; transition: opacity .22s var(--ease), filter .22s var(--ease); }
.aigc-dlg .body.fade { opacity: 0; filter: blur(4px); }
.aigc-dlg .aigc-item { margin: 0; }
.aigc-dlg .aigc-art img { max-height: calc(100dvh - 150px); }
@media (max-width: 860px) { .aigc-dlg .body { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .aigc-dlg, .aigc-dlg::backdrop { transition: none; } }

/* 顶栏：常驻联系按钮 + 当前区块高亮 */
.top { transition: background .6s var(--ease), box-shadow .6s var(--ease); }
.top.scrolled { background: rgba(5, 8, 15, .82); box-shadow: 0 1px 0 var(--line); }
.links a { position: relative; padding: 6px 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); transform: scaleX(0); transform-origin: left; opacity: 0; transition: transform .6s var(--ease), opacity .5s var(--ease); }
.links a.on { color: var(--text); }
.links a.on::after { transform: scaleX(1); opacity: 1; }
.navcta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(34, 211, 238, .08);
  font: 600 12px/1 var(--nov); letter-spacing: .1em; color: var(--text); white-space: nowrap; transition: background .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.navcta svg { width: 15px; height: 15px; color: var(--cyan); }
.navcta:hover { background: rgba(34, 211, 238, .18); box-shadow: 0 0 22px rgba(34, 211, 238, .25); transform: translateY(-1px); }

/* 首屏轮换关键词 */
.slogan { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; margin: 26px 0 0; font-size: clamp(22px, 3.4vw, 40px); font-weight: 700; line-height: 1.25; color: #dfe8f5; }
.slogan.nopre .pre { display: none; }
.slogan .rot { position: relative; display: inline-block; white-space: nowrap; transition: width .65s var(--ease); }
.slogan .w { display: inline-block; background: linear-gradient(100deg, #7ee8fa, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .38s var(--ease), transform .5s var(--ease), filter .38s var(--ease); }
.slogan .w.out { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }
.slogan .w.pre-in { opacity: 0; transform: translateY(.5em); filter: blur(6px); transition: none; }
.slogan + .role { margin-top: 14px; font-size: clamp(13px, 1.5vw, 16px); color: var(--muted); }

/* 项目总览 */
.pindex { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: -14px 0 90px; }
.pi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden;
  transition: transform .6s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); }
.pi .th { display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #070b14; margin-bottom: 6px; }
.pi .th img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) brightness(.85); transition: transform 1s var(--ease), filter .7s var(--ease); }
.pi .pn { font: 600 11px/1 var(--nov); letter-spacing: .2em; color: var(--cyan); }
.pi b { font-size: 15px; line-height: 1.35; }
.pi .pk { font: 600 18px/1.1 var(--nov); color: var(--text); margin-top: 4px; }
.pi .pk em { font-style: normal; color: var(--cyan); }
.pi .pv { font-size: 12.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.pi .go { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--nov); letter-spacing: .12em; color: var(--cyan); opacity: .7; transition: opacity .5s var(--ease), gap .5s var(--ease); }
.pi .go svg { width: 13px; height: 13px; }
.pi:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 18px 40px -22px rgba(34, 211, 238, .45); }
.pi:hover .th img { transform: scale(1.05); filter: none; }
.pi:hover .go { opacity: 1; gap: 8px; }
.proj { scroll-margin-top: 96px; }
#work, #aigc, #more, #contact { scroll-margin-top: 70px; }

@media (max-width: 860px) {
  .navcta span { display: none; } .navcta { padding: 9px; }
  .pindex { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 64px; }
  .pi .pv { display: none; }
}
@media (max-width: 420px) { .pi b { font-size: 13.5px; } .pi .pk { font-size: 15px; } }

/* 技能区 */
section.skills { max-width: 1280px; margin: 0 auto; padding: 80px clamp(16px, 6vw, 96px); }
#skills { scroll-margin-top: 70px; }
.skillcats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skcat { padding: 20px 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .6s var(--ease), opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.skcat:hover { border-color: rgba(34, 211, 238, .25); }
.skcat h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 15px; font-weight: 700; color: #dfe8f5; }
.skcat h4 svg { width: 18px; height: 18px; color: var(--cyan); }
.skcat h4 span { margin-left: auto; font: 600 11px/1 var(--nov); color: var(--dim); letter-spacing: .1em; }
.sklist { display: flex; flex-wrap: wrap; gap: 8px; }

/* 技能标签（技能区与项目里共用） */
.sk { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 16, 32, .6);
  color: #c4d2e6; font: 500 12.5px/1.2 var(--body); cursor: help; transition: color .4s var(--ease), border-color .45s var(--ease), background .45s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.sk:hover, .sk:focus-visible, .sk.act { color: #fff; border-color: var(--line2); background: rgba(34, 211, 238, .12); box-shadow: 0 0 16px rgba(34, 211, 238, .18); transform: translateY(-1px); }
.sk i { display: inline-flex; gap: 3px; }
.sk i b { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); opacity: .55; }
.chips .sk { font-size: 12px; padding: 6px 10px; }
.chips .chl { width: 100%; font: 600 11px/1 var(--nov); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 2px; }
html[lang="zh-CN"] .chips .chl, html[lang="ja"] .chips .chl { font-family: var(--body); letter-spacing: .08em; }

/* 项目总览卡片：悬停技能时高亮用到它的项目 */
.pi.hl { border-color: var(--line2); box-shadow: 0 0 0 1px rgba(34, 211, 238, .35), 0 18px 40px -22px rgba(34, 211, 238, .5); transform: translateY(-3px); }

/* 悬浮说明框 */
#tip { position: fixed; z-index: 60; display: none; width: min(340px, calc(100vw - 24px)); padding: 14px 16px 13px; border-radius: 14px; pointer-events: none;
  background: rgba(9, 15, 30, .96); border: 1px solid var(--line2); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .9), 0 0 30px rgba(34, 211, 238, .12);
  backdrop-filter: blur(10px); opacity: 0; transform: translateY(6px) scale(.97); filter: blur(3px); transform-origin: var(--ax, 50%) 100%;
  transition: opacity .3s var(--ease), transform .45s var(--ease), filter .3s var(--ease); }
#tip.below { transform: translateY(-6px) scale(.97); transform-origin: var(--ax, 50%) 0; }
#tip.on { opacity: 1; transform: none; filter: none; }
#tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg);
  background: rgba(9, 15, 30, .96); border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
#tip.below::after { bottom: auto; top: -6px; border: 0; border-left: 1px solid var(--line2); border-top: 1px solid var(--line2); }
#tip small { display: block; font: 600 10.5px/1 var(--nov); letter-spacing: .16em; color: var(--cyan); margin-bottom: 6px; }
html[lang="zh-CN"] #tip small, html[lang="ja"] #tip small { font-family: var(--body); letter-spacing: .1em; }
#tip b { display: block; font-size: 15px; color: #fff; margin-bottom: 6px; }
#tip p { margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: #b4c3d8; }
#tip .tu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 9px; border-top: 1px solid var(--line); }
#tip .tu em { font-style: normal; font-size: 11.5px; color: var(--dim); margin-right: 2px; }
#tip .tu span { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: rgba(34, 211, 238, .1); color: #bfeefa; }

@media (max-width: 1000px) { .skillcats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .skillcats { grid-template-columns: 1fr; } .skcat { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { #tip { transition: none; } }
.chips .chl { border: 0; padding: 0; border-radius: 0; }

/* AIGC：左文右牌 */
.aigc-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.aigc-side .sec { margin-bottom: 26px; }
.aigc-side .lede { margin-bottom: 26px; }
.ainfo { padding: 22px 22px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ainfo > :not(.actions):not(.adots):not(.aigc-hint) { transition: opacity .22s var(--ease), filter .22s var(--ease), transform .3s var(--ease); }
.ainfo.swap > :not(.actions):not(.adots):not(.aigc-hint) { opacity: 0; filter: blur(3px); transform: translateY(4px); }
.ahead { display: flex; align-items: center; gap: 10px; }
.anum { font: 600 12px/1 var(--nov); letter-spacing: .2em; color: var(--cyan); }
.aexp { display: none; font-size: 11px; color: #f0b46a; border: 1px solid rgba(240, 180, 106, .4); border-radius: 999px; padding: 2px 8px; }
.ainfo.isexp .aexp { display: inline-block; }
.atitle { margin: 10px 0 8px; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; }
.aparams { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.anote { margin: 8px 0 0; font-size: 13px; color: #c9a77a; }
.anote:empty { display: none; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.aopen { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(34, 211, 238, .1);
  color: var(--text); font: 600 13px/1 var(--body); cursor: pointer; transition: background .45s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.aopen svg { width: 15px; height: 15px; color: var(--cyan); }
.aopen:hover { background: rgba(34, 211, 238, .2); box-shadow: 0 0 22px rgba(34, 211, 238, .25); transform: translateY(-1px); }
.anav { display: inline-flex; gap: 8px; margin-left: auto; }
.anav button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); background: rgba(8, 13, 25, .85);
  color: var(--text); cursor: pointer; transition: background .4s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.anav button:hover { background: rgba(34, 211, 238, .18); box-shadow: 0 0 20px rgba(34, 211, 238, .3); transform: scale(1.06); }
.adots { display: flex; gap: 7px; margin-top: 16px; }
.adots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(150, 175, 210, .3); cursor: pointer; transition: width .6s var(--ease), background .5s var(--ease); }
.adots i.on { width: 22px; background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, .6); }
.ainfo .aigc-hint { margin: 14px 0 0; font-size: 12px; }

.deckwrap { display: grid; place-items: center; padding: 50px 70px 30px 20px; }
.deck { position: relative; width: clamp(230px, 24vw, 330px); aspect-ratio: 5 / 7; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.dcard { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: #0a1020; border: 1px solid rgba(160, 200, 240, .22);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .85), 0 2px 0 rgba(255, 255, 255, .05) inset; cursor: pointer; transform-origin: 50% 90%;
  transition: transform .75s var(--ease), opacity .55s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease); will-change: transform; }
.dcard.flying, .dcard.drag { transition: none; }
.dcard.drag { cursor: grabbing; }
.dcard.top { border-color: var(--line2); box-shadow: 0 30px 70px -22px rgba(0, 0, 0, .9), 0 0 40px -10px rgba(34, 211, 238, .35); cursor: grab; }
.dcard.exp.top { border-color: rgba(240, 180, 106, .55); }
.dcard img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dcard .bg { object-fit: cover; filter: blur(18px) brightness(.55) saturate(1.2); transform: scale(1.2); }
.dcard .fg { object-fit: contain; }
.dcard .corner { position: absolute; z-index: 1; font: 600 11px/1 var(--nov); letter-spacing: .12em; color: #e8f6fb; padding: 5px 7px; border-radius: 7px;
  background: rgba(5, 8, 15, .55); border: 1px solid rgba(255, 255, 255, .14); }
.dcard .corner.tl { top: 10px; left: 10px; }
.dcard .corner.br { bottom: 10px; right: 10px; transform: rotate(180deg); }
.dcard:not(.top) .corner { opacity: .6; }

@media (max-width: 860px) {
  .aigc-stage { grid-template-columns: 1fr; }
  .deckwrap { padding: 30px 56px 10px 16px; }
  .deck { width: min(64vw, 280px); }
}
@media (max-width: 420px) { .ainfo { padding: 18px 16px 16px; } .actions { gap: 10px; } }
@media (max-width: 860px) { #aigc { overflow-x: clip; } }

/* 无视频项目：实测结果图（单系列条形图） */
.media.chartbox { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 64px;
  background: radial-gradient(600px 260px at 0% 0%, rgba(34, 211, 238, .07), transparent 70%), #0a1222; }
.chead b { display: block; font-size: 15px; line-height: 1.4; color: #e6edf7; }
.chead small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.crows { display: flex; flex-direction: column; gap: 12px; }
.crow { position: relative; display: grid; grid-template-columns: minmax(110px, 34%) 1fr 46px; align-items: center; gap: 12px; padding: 6px 8px; margin: 0 -8px;
  border-radius: 10px; outline: none; transition: background .4s var(--ease); }
.crow:hover, .crow:focus-visible { background: rgba(255, 255, 255, .04); }
.crow .cl { font-size: 13px; color: #b9c6d9; line-height: 1.3; }
.crow.hi .cl { color: #fff; font-weight: 600; }
.ctrack { position: relative; height: 14px; border-radius: 0 4px 4px 0; background: rgba(120, 160, 220, .07); }
.cfill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 0 4px 4px 0; background: #62739a;
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) var(--dl, .2s), filter .4s var(--ease); }
.crow.hi .cfill { background: var(--cyan); box-shadow: 0 0 18px rgba(34, 211, 238, .35); }
.chartbox.in .cfill { transform: scaleX(1); }
.crow:hover .cfill { filter: brightness(1.15); }
.crow .cv { font: 600 14px/1 var(--nov); color: #cfd9e8; text-align: right; }
.crow.hi .cv { color: #fff; }
.ctip { position: absolute; right: 8px; bottom: calc(100% + 6px); z-index: 3; padding: 7px 10px; border-radius: 9px; white-space: nowrap; pointer-events: none;
  font-size: 12px; color: #dfe8f5; background: rgba(9, 15, 30, .96); border: 1px solid var(--line2); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.crow:hover .ctip, .crow:focus-visible .ctip { opacity: 1; transform: none; }
.cscale { display: grid; grid-template-columns: minmax(110px, 34%) 1fr 46px; gap: 12px; font: 500 10.5px/1 var(--nov); color: var(--dim); letter-spacing: .08em; }
.cscale span:nth-child(1) { grid-column: 2; justify-self: start; }
.cscale span:nth-child(2) { grid-column: 2; justify-self: center; grid-row: 1; }
.cscale span:nth-child(3) { grid-column: 2; justify-self: end; grid-row: 1; }
.chartbox .bar { background: none; }

/* 项目总览：5 张卡；无视频项目用迷你条形图代替封面 */
.pindex { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pi .thchart { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 12px 14px;
  background: radial-gradient(240px 120px at 0% 0%, rgba(34, 211, 238, .1), transparent 70%), #0a1222; }
.pi .thchart i { display: block; height: 7px; width: var(--w); border-radius: 0 3px 3px 0; background: #62739a; }
.pi .thchart i.hi { background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, .45); }
@media (max-width: 1100px) { .pindex { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pindex { grid-template-columns: repeat(2, minmax(0, 1fr)); } .media.chartbox { padding: 20px 18px 60px; } }
@media (prefers-reduced-motion: reduce) { .cfill { transform: none; transition: none; } }
.cscale span { grid-row: 1; grid-column: 2; }
.cscale span:nth-child(1) { justify-self: start; } .cscale span:nth-child(2) { justify-self: center; } .cscale span:nth-child(3) { justify-self: end; }
