/* ============================================================
   前端网页设计作品集
   两页站：介绍 + 作品集 · 中英切换 · 明暗双主题 · 零依赖
   ============================================================ */

/* ============================================================
   1. 设计变量
   ============================================================ */
:root {
  --bg-0: #06091a;
  --bg-1: #0b1130;

  --text: #edf1ff;
  --text-2: rgba(230, 237, 255, .72);
  --text-3: rgba(230, 237, 255, .45);

  --glass-bg: rgba(255, 255, 255, .055);
  --glass-bg-2: rgba(255, 255, 255, .085);
  --glass-brd: rgba(255, 255, 255, .14);
  --glass-brd-2: rgba(255, 255, 255, .26);
  --blur: 22px;

  --c1: #5eead4;
  --c2: #7dd3fc;
  --c3: #a78bfa;
  --c4: #fbbf24;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 13px;
  --max: 1140px;
  --nav-h: 66px;

  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .58), 0 2px 8px rgba(0, 0, 0, .18);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .16);

  --ease-out: cubic-bezier(.2, .7, .3, 1);
}

html[data-theme="light"] {
  --bg-0: #eaefff;
  --bg-1: #f6f8ff;

  --text: #0f1836;
  --text-2: rgba(19, 28, 62, .76);
  --text-3: rgba(19, 28, 62, .52);

  --glass-bg: rgba(255, 255, 255, .48);
  --glass-bg-2: rgba(255, 255, 255, .68);
  --glass-brd: rgba(255, 255, 255, .88);
  --glass-brd-2: rgba(255, 255, 255, .98);

  --c1: #0d9488;
  --c2: #0284c7;
  --c3: #7c3aed;
  --c4: #d97706;

  --shadow: 0 20px 50px -22px rgba(35, 50, 130, .38), 0 2px 8px rgba(35, 50, 130, .08);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .95);
}

/* ============================================================
   2. 基础
   ============================================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 28px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color .45s ease, background .45s ease;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

::selection { background: rgba(94, 234, 212, .32); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, .26); border-radius: 999px;
  border: 2px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(125, 211, 252, .48); background-clip: content-box; }

/* 语言切换时轻微淡出 */
[data-i18n] { transition: opacity .16s ease; }
body.lang-switching [data-i18n] { opacity: .35; }

/* ============================================================
   3. 背景
   ============================================================ */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(165deg, var(--bg-0), var(--bg-1));
  transition: background .45s ease;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(74px);
  opacity: .5; will-change: transform;
  animation: drift 24s ease-in-out infinite alternate;
}
.blob-a { width: 44vw; height: 44vw; min-width: 340px; min-height: 340px; left: -8vw; top: -8vw; background: radial-gradient(circle at 35% 35%, #0ea5c4, transparent 68%); }
.blob-b { width: 38vw; height: 38vw; min-width: 300px; min-height: 300px; right: -6vw; top: 2vw; background: radial-gradient(circle at 60% 40%, #7c3aed, transparent 66%); animation-delay: -7s; }
.blob-c { width: 40vw; height: 40vw; min-width: 300px; min-height: 300px; left: 20vw; top: 42vw; background: radial-gradient(circle at 50% 50%, #0d9488, transparent 64%); opacity: .32; animation-delay: -13s; }
.blob-d { width: 28vw; height: 28vw; min-width: 240px; min-height: 240px; right: 8vw; bottom: -8vw; background: radial-gradient(circle at 50% 50%, #f59e0b, transparent 68%); opacity: .22; animation-delay: -4s; }

html[data-theme="light"] .blob { opacity: .42; filter: blur(84px); }
html[data-theme="light"] .blob-c { opacity: .26; }
html[data-theme="light"] .blob-d { opacity: .18; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(4vw, 3vw, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 5vw, 0) scale(.96); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}
html[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(35, 55, 130, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 55, 130, .07) 1px, transparent 1px);
}

.noise {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   4. 玻璃 / 排版 / 按钮
   ============================================================ */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(var(--blur)) saturate(165%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(165%);
  box-shadow: var(--shadow), var(--inset);
  transition: background .45s ease, border-color .3s ease,
              transform .35s var(--ease-out), box-shadow .35s ease;
}

.grad-text {
  background: linear-gradient(100deg, #a5f3ec 0%, #bae6fd 30%, #c4b5fd 62%, #fde68a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shine 10s linear infinite;
}
@keyframes shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
html[data-theme="light"] .grad-text {
  background-image: linear-gradient(100deg, #0d9488 0%, #0284c7 32%, #7c3aed 64%, #d97706 100%);
}

.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .22em;
  color: var(--text-3); margin-bottom: 14px; text-transform: uppercase;
}
.muted { color: var(--text-2); }
.muted-3 { color: var(--text-3); }

.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .22s var(--ease-out), box-shadow .25s ease,
              background .25s ease, border-color .25s ease, filter .25s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { --btn-h: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { --btn-h: 52px; padding: 0 28px; font-size: 15.5px; }

.btn-primary {
  color: #062018;
  background: linear-gradient(135deg, #a7f3d0, #5eead4 45%, #7dd3fc);
  box-shadow: 0 10px 26px -10px rgba(94, 234, 212, .85), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.btn-primary:hover {
  transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 16px 34px -12px rgba(94, 234, 212, .95), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.btn-glass {
  color: var(--text);
  background: var(--glass-bg-2);
  border-color: var(--glass-brd);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--inset);
}
.btn-glass:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .16);
  border-color: var(--glass-brd-2);
}
html[data-theme="light"] .btn-glass:hover { background: rgba(255, 255, 255, .92); }

/* ============================================================
   5. 导航
   ============================================================ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  width: min(var(--max), calc(100% - 32px));
  height: var(--nav-h); padding: 0 10px 0 14px;
  display: flex; align-items: center; gap: 18px;
  border-radius: 999px;
}
.nav.scrolled {
  top: 10px; height: 58px;
  background: var(--glass-bg-2);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, .7), var(--inset);
}
html[data-theme="light"] .nav.scrolled {
  box-shadow: 0 22px 50px -26px rgba(35, 50, 130, .5), var(--inset);
}

/* 品牌标识：只保留图标 */
.logo { display: flex; align-items: center; flex: none; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; flex: none;
  color: #d8fff6;
  background: linear-gradient(140deg, rgba(94, 234, 212, .55), rgba(124, 58, 237, .5));
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 16px -6px rgba(94, 234, 212, .7);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.logo:hover .logo-mark {
  transform: translateY(-1px) rotate(-4deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 10px 22px -8px rgba(94, 234, 212, .95);
}
.logo-mark svg { width: 19px; height: 19px; }
html[data-theme="light"] .logo-mark { color: #04443a; }

.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a {
  position: relative; padding: 8px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .1); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c3));
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid; place-items: center; height: 38px; min-width: 38px;
  border-radius: 999px; cursor: pointer; color: var(--text-2);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--glass-brd);
  font-size: 12.5px; font-weight: 700;
  transition: color .25s, background .25s, transform .25s, border-color .25s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .14); }
.icon-btn svg { width: 18px; height: 18px; }

#langToggle { padding: 0 12px; gap: 5px; display: inline-flex; align-items: center; }
#langToggle:hover { border-color: var(--glass-brd-2); }
#langToggle .lang-current { font-size: 12.5px; font-weight: 800; color: var(--text); }
#langToggle .lang-sep { opacity: .3; font-size: 11px; }
#langToggle .lang-target { opacity: .5; font-size: 12.5px; font-weight: 700; }
#langToggle:hover .lang-target { opacity: .95; color: var(--c1); }

#themeToggle { width: 38px; padding: 0; display: grid; }
#themeToggle:hover { transform: rotate(-12deg); }
#themeToggle .icon-sun { display: none; }
html[data-theme="light"] #themeToggle .icon-sun { display: block; }
html[data-theme="light"] #themeToggle .icon-moon { display: none; }

.menu-btn { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px 28px 40px;
  background: rgba(6, 9, 26, .74);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
html[data-theme="light"] .mobile-menu { background: rgba(240, 244, 255, .8); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: 25px; font-weight: 700; letter-spacing: -.02em;
  padding: 14px 0; color: var(--text-2);
  border-bottom: 1px solid var(--glass-brd);
  display: flex; align-items: center; justify-content: space-between;
  transform: translateY(14px); opacity: 0;
  transition: transform .4s var(--ease-out) var(--d, 0s), opacity .4s ease var(--d, 0s), color .25s;
}
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--text); }
.mobile-menu a span { font-size: 12px; color: var(--text-3); font-family: ui-monospace, monospace; }
.mobile-menu .menu-cta { margin-top: 26px; border: 0; display: flex; gap: 10px; opacity: 1; transform: none; }
.mobile-menu .menu-cta .btn { flex: 1; --btn-h: 48px; font-size: 15px; }

/* ============================================================
   6. 布局
   ============================================================ */
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.section { padding: 96px 0 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 40px); letter-spacing: -.03em; }
.section-head p {
  margin-top: 14px; color: var(--text-2); font-size: 15px; line-height: 1.75;
  max-width: 620px; margin-inline: auto;
}

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--glass-brd), transparent); margin: 84px 0 0; }

.page-head { padding: 142px 0 18px; text-align: center; }
.page-head h1 { font-size: clamp(32px, 5.2vw, 56px); letter-spacing: -.035em; line-height: 1.1; }
.page-head p {
  margin: 18px auto 0; max-width: 600px;
  font-size: clamp(15px, 1.6vw, 16.5px); line-height: 1.75; color: var(--text-2);
}
.page-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
  font-size: 12.5px; color: var(--text-2); font-weight: 500;
}
.page-badge .dot,
.badge-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--c1);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, .7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94, 234, 212, .65); }
  70%  { box-shadow: 0 0 0 9px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

/* ============================================================
   7. 首页 Hero
   ============================================================ */
.hero { padding: 150px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  font-size: 12.5px; color: var(--text-2); font-weight: 500;
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800; letter-spacing: -.04em; line-height: 1.08;
}
.hero-sub {
  margin-top: 20px; max-width: 520px;
  font-size: clamp(15px, 1.55vw, 16.5px); line-height: 1.75; color: var(--text-2);
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 28px;
  font-size: 12.5px; color: var(--text-3); flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* 代码卡 */
.code-card { border-radius: var(--radius); overflow: hidden; }
.code-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, .04);
}
.tl { width: 9px; height: 9px; border-radius: 50%; }
.t1 { background: #ff6b6b; } .t2 { background: #ffcf5c; } .t3 { background: #4ade80; }
.code-bar .file {
  margin-left: 8px; font-size: 11px; color: var(--text-3);
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
}
.code-body {
  padding: 16px 16px 18px; margin: 0; overflow-x: auto;
  font-family: "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace;
  font-size: 12.2px; line-height: 1.9; color: var(--text-2);
}
.code-body .k { color: #c4b5fd; }
.code-body .s { color: #5eead4; }
.code-body .f { color: #7dd3fc; }
.code-body .c { color: var(--text-3); font-style: italic; }
html[data-theme="light"] .code-body .k { color: #7c3aed; }
html[data-theme="light"] .code-body .s { color: #0f766e; }
html[data-theme="light"] .code-body .f { color: #0369a1; }

/* 小卖点卡 */
.mini-feats { display: grid; gap: 10px; margin-top: 12px; }
.mini-feat {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
}
.mf-num {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #062018;
  background: linear-gradient(135deg, #a7f3d0, #5eead4);
}
.mf-txt { font-size: 12.8px; color: var(--text-2); }

/* ============================================================
   8. 服务卡
   ============================================================ */
.svc-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.svc {
  padding: 26px 22px; border-radius: var(--radius);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.svc:hover { transform: translateY(-5px); background: var(--glass-bg-2); border-color: var(--glass-brd-2); }
.svc-num {
  position: absolute; right: 18px; top: 14px;
  font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  color: rgba(255, 255, 255, .06);
  font-family: ui-monospace, Consolas, monospace;
}
html[data-theme="light"] .svc-num { color: rgba(35, 55, 130, .07); }

.svc-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  color: var(--ic, var(--c1));
  background: color-mix(in srgb, var(--ic, var(--c1)) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic, var(--c1)) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px -10px var(--ic, var(--c1));
  margin-bottom: 16px;
}
.svc-icon svg { width: 21px; height: 21px; }
.svc h3 { font-size: 16.5px; margin-bottom: 9px; }
.svc p { font-size: 13.5px; line-height: 1.72; color: var(--text-2); flex: 1; }

/* ============================================================
   9. 技术栈
   ============================================================ */
.tool-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tool {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 12px;
  font-size: 12.8px; font-weight: 600; color: var(--text-2);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--glass-brd);
  font-family: ui-monospace, Consolas, monospace;
  transition: all .25s ease;
}
.tool:hover {
  color: var(--text); transform: translateY(-2px);
  background: rgba(255, 255, 255, .13);
  border-color: var(--glass-brd-2);
}
.tool i { width: 6px; height: 6px; border-radius: 50%; background: var(--c1); flex: none; }

/* ============================================================
   10. 作品卡片
   ============================================================ */
.works-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }

.work {
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.work:hover { transform: translateY(-6px); border-color: var(--glass-brd-2); }

.work-thumb {
  position: relative; min-height: 186px; overflow: hidden;
  border-bottom: 1px solid var(--glass-brd);
  display: grid; place-items: center;
}
.work-thumb svg { width: 100%; height: 100%; }
.work-thumb.tint-a { background: linear-gradient(140deg, rgba(94, 234, 212, .2), rgba(125, 211, 252, .12)); }
.work-thumb.tint-b { background: linear-gradient(140deg, rgba(124, 58, 237, .22), rgba(94, 234, 212, .12)); }
.work-thumb.tint-c { background: linear-gradient(140deg, rgba(125, 211, 252, .2), rgba(251, 191, 36, .14)); }
.work-thumb.tint-d { background: linear-gradient(140deg, rgba(251, 191, 36, .16), rgba(124, 58, 237, .14)); }
.work-thumb.tint-e { background: linear-gradient(140deg, rgba(94, 234, 212, .16), rgba(124, 58, 237, .18)); }
.work-thumb.tint-f { background: linear-gradient(140deg, rgba(125, 211, 252, .22), rgba(94, 234, 212, .14)); }

.work-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.work-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 6px;
  color: var(--c2); background: rgba(125, 211, 252, .12);
  border: 1px solid rgba(125, 211, 252, .26);
  font-family: ui-monospace, Consolas, monospace;
}
html[data-theme="light"] .work-tag { color: #0369a1; }
.work-body h3 { font-size: 18px; margin-bottom: 9px; }
.work-body p { font-size: 13.6px; line-height: 1.72; color: var(--text-2); flex: 1; }

.work-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--glass-brd);
}
.work-stack {
  display: flex; gap: 5px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3);
  font-family: ui-monospace, Consolas, monospace;
}
.work-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--c1); white-space: nowrap;
}
.work-link svg { width: 14px; height: 14px; transition: transform .25s ease; }
.work:hover .work-link svg { transform: translateX(3px); }

/* 筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filter-btn {
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--glass-brd);
  transition: all .25s ease;
}
.filter-btn:hover { color: var(--text); background: rgba(255, 255, 255, .13); }
.filter-btn[aria-pressed="true"] {
  color: #062018;
  background: linear-gradient(135deg, #a7f3d0, #5eead4);
  border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(94, 234, 212, .9);
}
.work.hide { display: none; }

/* ============================================================
   10.5 真实网站（可点击访问）
   ============================================================ */
.live-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.live {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  position: relative; text-decoration: none; color: inherit;
  transition: transform .35s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
.live:hover { transform: translateY(-6px); border-color: var(--glass-brd-2); }
.live.is-wide { grid-column: 1 / -1; }
.live.is-wide .live-inner { display: grid; grid-template-columns: 1fr 1fr; }

.live-shot {
  position: relative; min-height: 190px; overflow: hidden;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--glass-brd);
}
.live.is-wide .live-shot {
  border-bottom: 0; border-right: 1px solid var(--glass-brd); min-height: 230px;
}
.live-shot svg { width: 100%; height: 100%; transition: transform .7s var(--ease-out); }
.live:hover .live-shot svg { transform: scale(1.04); }

/* 截图右上角的「可访问」角标 */
.live-open {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 650; letter-spacing: .02em;
  color: #062018;
  background: linear-gradient(135deg, #a7f3d0, #5eead4);
  box-shadow: 0 6px 16px -8px rgba(94, 234, 212, .9);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s ease;
}
.live:hover .live-open { opacity: 1; transform: none; }
.live-open svg { width: 12px; height: 12px; }

/* 未上线：灰色角标 + 不可点击 */
.live.soon { pointer-events: none; }
.live.soon .live-open {
  opacity: 1; transform: none;
  color: var(--text-2);
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--glass-brd);
  box-shadow: none;
}
.live.soon .live-shot svg { filter: grayscale(.5) brightness(.8); }

.live-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.live-style {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c1); margin-bottom: 10px;
  font-family: ui-monospace, Consolas, monospace;
}
.live-body h3 { font-size: 19px; margin-bottom: 10px; }
.live-body p { font-size: 13.6px; line-height: 1.72; color: var(--text-2); flex: 1; }
.live-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--glass-brd);
}
.live-pages {
  font-size: 11.5px; color: var(--text-3);
  font-family: ui-monospace, Consolas, monospace;
}
.live-url {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--c1);
  max-width: 58%; overflow: hidden; white-space: nowrap;
}
.live-url span { overflow: hidden; text-overflow: ellipsis; }
.live-url svg { width: 13px; height: 13px; flex: none; transition: transform .25s ease; }
.live:hover .live-url svg { transform: translate(2px, -2px); }
.live.soon .live-url { color: var(--text-3); }

/* ============================================================
   11. CTA
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); padding: 56px 32px 50px; text-align: center;
  background: linear-gradient(150deg, rgba(94, 234, 212, .14), rgba(124, 58, 237, .12) 55%, rgba(125, 211, 252, .1));
}
.cta-glow {
  position: absolute; left: 50%; top: -40%; transform: translateX(-50%);
  width: 600px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(94, 234, 212, .42), transparent 68%);
  filter: blur(50px);
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.12); }
}
.cta h2 { position: relative; font-size: clamp(25px, 3.4vw, 38px); letter-spacing: -.03em; }
.cta > p { position: relative; margin-top: 14px; color: var(--text-2); font-size: 14.5px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; position: relative; }
.cta-note { position: relative; margin-top: 18px; font-size: 12.3px; color: var(--text-3); }

/* ============================================================
   12. 页脚
   ============================================================ */
.footer { padding: 90px 0 34px; }
.footer-inner {
  border-radius: var(--radius); padding: 34px 30px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 240px; }
.footer-brand p { margin-top: 13px; font-size: 13px; color: var(--text-3); max-width: 320px; line-height: 1.75; }
.footer-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 12.5px; color: var(--text); margin-bottom: 14px; letter-spacing: .04em; }
.footer-cols a {
  display: block; font-size: 13px; color: var(--text-3); margin-bottom: 10px;
  transition: color .2s ease, transform .2s ease;
}
.footer-cols a:hover { color: var(--text); transform: translateX(3px); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 22px; font-size: 12.2px; color: var(--text-3);
}
.lang-switch-inline { display: inline-flex; gap: 8px; align-items: center; }
.lang-switch-inline button {
  background: none; border: 0; padding: 2px 4px; cursor: pointer;
  color: var(--text-3); font-size: 12.2px; font-family: inherit;
  transition: color .2s ease;
}
.lang-switch-inline button:hover { color: var(--text); }
.lang-switch-inline button.active { color: var(--c1); font-weight: 700; }
.lang-switch-inline .sep { opacity: .3; }

/* ============================================================
   13. 入场动画
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease-out) var(--d, 0s),
              transform .75s var(--ease-out) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   14. 响应式
   ============================================================ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-sub { max-width: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .works-grid { grid-template-columns: 1fr; }
  .live-grid { grid-template-columns: 1fr; }
  .live.is-wide .live-inner { grid-template-columns: 1fr; }
  .live.is-wide .live-shot { border-right: 0; border-bottom: 1px solid var(--glass-brd); min-height: 190px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 124px; }
  .page-head { padding-top: 118px; }
  .section { padding-top: 70px; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer-cols { gap: 30px; }
  .footer-inner { padding: 26px 20px; }
  .cta { padding: 42px 20px 38px; border-radius: 24px; }
  .divider { margin-top: 58px; }
  #langToggle { padding: 0 10px; }
  #langToggle .lang-target, #langToggle .lang-sep { display: none; }
  .nav-right .btn-sm { --btn-h: 34px; padding: 0 12px; font-size: 12.5px; }
}

/* ============================================================
   15. 无障碍 / 打印
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid rgba(94, 234, 212, .9);
  outline-offset: 3px;
  border-radius: 6px;
}

@media print {
  .bg, .nav, .mobile-menu, .code-card { display: none !important; }
  body { background: #fff; color: #111; }
  .glass { box-shadow: none; border: 1px solid #ddd; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
