/* =========================================================
   LucianaiB 个人主页
   版式：简历式双栏（左侧固定个人档案卡 + 右侧作品与经历）
   视觉母题：路线图 —— 把模型、Skill、App 串成一条走得通的路
   颜色：钴蓝（Skill / 链接 / 信息） + 路线橙（App / 行动 / 唯一强调）
   ========================================================= */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #131726;
  --ink-2: #454b62;
  --ink-3: #6a7088;
  --line: #e0e4ef;
  --cobalt: #2d48d8;
  --cobalt-soft: #e8ecff;
  --route: #e85d17;
  --route-soft: #fff0e6;
  --model: #7a8199;
  --grid: rgba(45, 72, 216, 0.07);
  --shadow: 0 1px 2px rgba(19, 23, 38, 0.04), 0 16px 36px -24px rgba(45, 72, 216, 0.35);
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 20px;
  --maxw: 1240px;
  --header-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-num: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1120; --surface: #151a2d; --surface-2: #1b2138; --ink: #e9ecf6; --ink-2: #b3b9cf; --ink-3: #8a91aa;
    --line: #262d47; --cobalt: #8fa2ff; --cobalt-soft: #1d2550; --route: #ff8b4d; --route-soft: #35241b; --model: #8f96ad;
    --grid: rgba(143, 162, 255, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -26px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1120; --surface: #151a2d; --surface-2: #1b2138; --ink: #e9ecf6; --ink-2: #b3b9cf; --ink-3: #8a91aa;
  --line: #262d47; --cobalt: #8fa2ff; --cobalt-soft: #1d2550; --route: #ff8b4d; --route-soft: #35241b; --model: #8f96ad;
  --grid: rgba(143, 162, 255, 0.07);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -26px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.topnav { margin-left: auto; }
.topnav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.topnav a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; border-radius: var(--r-s); }
.topnav a .icon { width: 16px; height: 16px; opacity: .7; }
.topnav a:hover, .topnav a[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
.topnav a[aria-current="true"] .icon { color: var(--route); opacity: 1; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; cursor: pointer; padding: 0; }
.icon-btn .icon { width: 18px; height: 18px; }
.nav-toggle { display: none; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .topnav { position: absolute; left: 0; right: 0; top: var(--header-h); margin: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .topnav.open { display: block; }
  .topnav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 10px 16px 16px; }
  .topnav a { padding: 10px; font-size: 15.5px; }
}
@media (max-width: 600px) { .topbar-in { padding: 0 16px; } }

/* ---------- 双栏骨架 ---------- */
.layout { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 1080px) { .layout { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) { .layout { padding: 16px 16px 0; } }

/* ---------- 左侧档案卡 ---------- */
.profile { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 1080px) { .profile { position: static; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.profile-card { padding: 26px 24px 22px; position: relative; overflow: hidden; }
.profile-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 92px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(135deg, var(--cobalt-soft), var(--route-soft));
  border-bottom: 1px solid var(--line);
}
.profile-head { position: relative; display: flex; flex-direction: column; gap: 4px; }
.avatar { width: 92px; height: 92px; border-radius: 26px; border: 4px solid var(--surface); box-shadow: 0 10px 24px -14px rgba(19, 23, 38, .55); margin: 18px 0 10px; background: var(--surface); }
.profile h1 { margin: 0; font-family: var(--font-num); font-size: 32px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 850; }
.profile .role { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.profile .motto { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 4px 12px 4px 10px; width: fit-content; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 3px color-mix(in srgb, #22a06b 25%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.5; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid transparent; }
.chip.cobalt { background: var(--cobalt-soft); color: var(--cobalt); font-weight: 600; }
.chip.route { background: var(--route-soft); color: var(--route); font-weight: 600; }
.chip .icon { width: 14px; height: 14px; }
.profile .chips { margin-top: 16px; }
.p-block { border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 16px; }
.p-label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .02em; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.creds li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.creds .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); flex: none; }
.creds .ic .icon { width: 17px; height: 17px; }
.creds small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; }
.wx { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 10px 10px 10px 14px; }
.wx-id { font-family: var(--font-num); font-weight: 700; font-size: 15px; letter-spacing: .01em; user-select: all; min-width: 0; overflow-wrap: anywhere; }
.copy-mini { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--surface); color: var(--ink); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(19,23,38,.08); flex: none; }
.copy-mini .icon { width: 15px; height: 15px; }
.copy-mini.done { color: #1a8a5a; }
.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px; }
.socials a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.socials a:hover { color: var(--ink); border-color: var(--ink-3); }
.socials .icon { width: 15px; height: 15px; }
@media (max-width: 1080px) {
  .profile-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; }
  .profile-head, .profile .chips { grid-column: 1; }
  .profile .p-block { grid-column: 2; }
  .profile .p-block:first-of-type { margin-top: 110px; border-top: 0; padding-top: 0; }
  .profile .chips { align-self: start; }
}
@media (max-width: 720px) {
  .profile-card { display: block; }
  .profile .p-block:first-of-type { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; }
}

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; font: inherit; font-weight: 700; font-size: 15px; border-radius: 12px; cursor: pointer; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--route); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--route) 88%, #000); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }

/* ---------- 右侧内容 ---------- */
.content { min-width: 0; display: grid; gap: 22px; padding-bottom: 40px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 32px; scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 600px) { .panel { padding: 22px 18px; border-radius: 16px; } }
.sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.sec-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--cobalt); flex: none; }
.sec-ic .icon { width: 22px; height: 22px; }
.sec-head h2 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 800; }
.sec-head p { color: var(--ink-3); font-size: 14.5px; line-height: 1.6; margin-top: 2px; max-width: 60ch; }

/* ---------- 开场 ---------- */
.intro { padding: 36px 32px 28px; position: relative; overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--route); background: var(--route-soft); padding: 4px 12px 4px 8px; border-radius: 999px; }
.kicker .icon { width: 16px; height: 16px; }
.intro h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 850; margin: 16px 0 14px; }
.intro .lede { color: var(--ink-2); font-size: 16.5px; max-width: 34em; }
.intro .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .intro { padding: 26px 20px 22px; } }

.map-card { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden; }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.map-bar b { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; }
.map-bar b .icon { width: 16px; height: 16px; color: var(--cobalt); }
.legend { display: flex; gap: 10px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend .m { border: 2px solid var(--model); }
.legend .s { background: var(--cobalt); }
.legend .a { background: var(--route); }
.route-map { display: block; width: 100%; height: auto;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px; }
.route-map .road { fill: none; stroke: var(--surface-2); stroke-width: 16; stroke-linecap: round; }
.route-map .road-edge { fill: none; stroke: var(--line); stroke-width: 18; stroke-linecap: round; }
.route-map .path { fill: none; stroke: var(--route); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 8 7; }
.route-map .n-model { fill: var(--surface); stroke: var(--model); stroke-width: 3; }
.route-map .n-skill { fill: var(--cobalt); stroke: var(--surface); stroke-width: 3; }
.route-map .n-app { fill: var(--route); stroke: var(--surface); stroke-width: 3; }
.route-map .lbl { fill: var(--ink); font: 700 14px var(--font); }
.route-map .sub { fill: var(--ink-3); font: 500 11.5px var(--font); }
.route-map .flag { fill: var(--route); }
.route-map .scale { stroke: var(--ink-3); stroke-width: 1.5; fill: none; }
.route-map .scale-t { fill: var(--ink-3); font: 500 10.5px var(--font); }
@media (prefers-reduced-motion: no-preference) {
  .route-map .path { animation: march 1.6s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -30; } }
}

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); display: grid; gap: 2px; }
.kpi .icon { width: 18px; height: 18px; color: var(--cobalt); margin-bottom: 4px; }
.kpi b { font-family: var(--font-num); font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 核心优势 ---------- */
.strengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.strength { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.strength .badge { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.strength .badge .icon { width: 22px; height: 22px; }
.strength:nth-child(odd) .badge { background: var(--cobalt-soft); color: var(--cobalt); }
.strength:nth-child(even) .badge { background: var(--route-soft); color: var(--route); }
.strength h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.4; }
.strength p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.strength .proof { margin-top: 8px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.strength .proof .icon { width: 14px; height: 14px; color: var(--route); }
@media (max-width: 720px) { .strengths { grid-template-columns: 1fr; } }

/* ---------- 方向 ---------- */
.dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dir { border-radius: 16px; padding: 20px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.dir-top { display: flex; align-items: center; gap: 10px; }
.dir-top .icon { width: 22px; height: 22px; color: var(--cobalt); }
.dir h3 { margin: 0; font-size: 17px; }
.dir p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.dir ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.dir li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.dir li .icon { width: 16px; height: 16px; color: var(--route); margin-top: 3px; }
@media (max-width: 860px) { .dirs { grid-template-columns: 1fr; } }

/* ---------- 项目 ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.proj { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.proj:hover { border-color: color-mix(in srgb, var(--cobalt) 35%, var(--line)); box-shadow: var(--shadow); }
.proj-media { aspect-ratio: 16 / 9; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; max-width: 100%; }
.proj-media img, .proj-media svg { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.proj-type { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(19,23,38,.12); }
.proj-type .icon { width: 14px; height: 14px; }
.proj-type.app { color: var(--route); }
.proj-type.skill { color: var(--cobalt); }
.proj-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj h3 { margin: 0; font-size: 18.5px; line-height: 1.4; }
.proj .one { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.proj .stack-chips .chip { font-size: 12.5px; padding: 2px 9px; }
.metrics { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-3); }
.metrics span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.metrics .icon { width: 15px; height: 15px; }
.proj details { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.proj summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.proj summary::-webkit-details-marker { display: none; }
.proj summary .icon { width: 16px; height: 16px; transition: transform .2s ease; color: var(--ink-3); }
.proj details[open] summary .icon { transform: rotate(90deg); }
.case-dl { margin: 12px 0 0; display: grid; gap: 10px; }
.case-dl div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.7; }
.case-dl dt { font-weight: 700; color: var(--ink); }
.case-dl dd { margin: 0; color: var(--ink-2); }
.proj-links { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 6px 11px; border-radius: 9px; background: var(--surface-2); color: var(--ink); }
.proj-links a:hover { background: var(--cobalt-soft); color: var(--cobalt); }
.proj-links .icon { width: 15px; height: 15px; }
.proj.more { background: var(--surface-2); border-style: dashed; }
.more-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.more-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.more-list .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--cobalt); }
.more-list .ic .icon { width: 17px; height: 17px; }
.more-list a { font-weight: 700; color: var(--ink); text-decoration: none; }
.more-list a:hover { color: var(--cobalt); text-decoration: underline; }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .case-dl div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 技术栈 ---------- */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.skill-g { border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.skill-g h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; }
.skill-g h3 .icon { width: 20px; height: 20px; color: var(--cobalt); }
@media (max-width: 720px) { .skills { grid-template-columns: 1fr; } }

/* ---------- 文章 ---------- */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.topic { border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 8px; }
.topic h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 16px; }
.topic h3 .icon { width: 20px; height: 20px; color: var(--route); }
.topic ol { list-style: none; margin: 0; padding: 0; }
.topic li { border-top: 1px solid var(--line); padding: 11px 0; display: grid; gap: 3px; }
.topic li:first-child { border-top: 0; }
.topic a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.55; }
.topic a:hover { color: var(--cobalt); text-decoration: underline; }
.topic .meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.topic .meta .icon { width: 14px; height: 14px; }
@media (max-width: 860px) { .topics { grid-template-columns: 1fr; } }

/* ---------- 荣誉 ---------- */
.honors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.honor { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.medal { width: 52px; height: 52px; }
.honor h3 { margin: 0; font-size: 16px; line-height: 1.45; }
.honor p { color: var(--ink-3); font-size: 13.5px; line-height: 1.6; margin-top: 2px; }
.reach { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.reach div { padding: 16px 18px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.reach div:last-child { border-right: 0; }
.reach .plat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.reach .plat .icon { width: 15px; height: 15px; }
.reach b { font-family: var(--font-num); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.reach small { color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 720px) { .honors { grid-template-columns: 1fr; } .reach { grid-template-columns: 1fr; } .reach div { border-right: 0; border-bottom: 1px solid var(--line); } .reach div:last-child { border-bottom: 0; } }

/* ---------- 近期动态 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 4px; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--route), var(--cobalt)); border-radius: 2px; opacity: .55; }
.timeline li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 8px 0; }
.t-dot { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--cobalt); position: relative; z-index: 1; }
.t-dot .icon { width: 19px; height: 19px; }
.timeline li:first-child .t-dot { background: var(--route); border-color: var(--route); color: #fff; }
.timeline time { font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0; font-size: 16px; line-height: 1.45; }
.timeline p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }

/* ---------- 合作 ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.service .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); }
.service .badge .icon { width: 20px; height: 20px; }
.service.hot .badge { background: var(--route-soft); color: var(--route); }
.service h3 { margin: 4px 0 0; font-size: 16px; }
.service p { color: var(--ink-2); font-size: 14px; line-height: 1.7; }
@media (max-width: 860px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; background: var(--surface); }
.faq details[open] { background: var(--surface-2); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 16px; flex: 1; }
.faq summary .q { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); flex: none; }
.faq summary .q .icon { width: 16px; height: 16px; }
.faq summary .chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s ease; }
.faq details[open] .chev { transform: rotate(90deg); }
.faq .ans { padding: 0 0 18px 40px; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
@media (max-width: 480px) { .faq .ans { padding-left: 0; } }

/* ---------- 联系 ---------- */
.contact { background: var(--ink); color: var(--bg); border: 0; position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid color-mix(in srgb, var(--route) 30%, transparent); pointer-events: none; }
.contact .sec-ic { background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--route); }
.contact .sec-head p { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; position: relative; z-index: 1; }
.wx-big { border-radius: 16px; padding: 22px; background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); display: grid; gap: 12px; align-content: start; }
.wx-big .lab { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: .8; }
.wx-big .lab .icon { width: 18px; height: 18px; }
.wx-big .id { font-family: var(--font-num); font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; user-select: all; overflow-wrap: anywhere; line-height: 1.2; }
.wx-big .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy-status { font-size: 13.5px; color: var(--route); min-height: 1.2em; }
.wx-big .mail { font-size: 14px; opacity: .75; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wx-big .mail .icon { width: 16px; height: 16px; }
.wx-big .mail span { user-select: all; }
.plat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plat-list a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; color: var(--bg); text-decoration: none; background: color-mix(in srgb, var(--bg) 6%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
.plat-list a:hover { border-color: var(--route); }
.plat-list .icon { width: 18px; height: 18px; color: var(--route); }
.plat-list b { display: block; font-size: 14px; }
.plat-list small { display: block; font-size: 12px; opacity: .65; line-height: 1.3; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .plat-list { grid-template-columns: 1fr; } }

/* ---------- 页脚 ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 8px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-3); }
.footer a { color: var(--ink-2); }
@media (max-width: 600px) { .footer { padding: 4px 16px 32px; } }

@media print {
  .topbar, .theme-toggle, .nav-toggle, .cta, .p-actions, .copy-mini, .contact::after { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  .profile { position: static; }
  .card, .panel { box-shadow: none; }
  .proj details { display: block; }
}

/* 细节修正 */
.intro h2 { font-size: clamp(27px, 2.7vw, 36px); }
.intro h2 .ln { display: block; }
@media (min-width: 400px) { .intro h2 .ln { white-space: nowrap; } }
.contact::after { right: -90px; top: -110px; bottom: auto; width: 300px; height: 300px; border-width: 36px; border-color: color-mix(in srgb, var(--route) 18%, transparent); }

.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi b { font-size: 30px; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .kpi { padding: 12px; } .kpi b { font-size: 22px; } }
.kpi b { white-space: nowrap; }
@media (max-width: 560px) { .kpi b { font-size: clamp(18px, 5.4vw, 22px); } .kpi span { font-size: 12px; } }

/* 高光数据：5 项 */
.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi b { font-size: clamp(20px, 1.9vw, 27px); white-space: nowrap; }
.kpi.lead { background: var(--route-soft); border-color: transparent; }
.kpi.lead .icon, .kpi.lead b { color: var(--route); }
.kpi-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 1240px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kpi { grid-column: span 2; } .kpi:nth-child(4), .kpi:nth-child(5) { grid-column: span 3; } .kpi b { font-size: 26px; } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi, .kpi:nth-child(4), .kpi:nth-child(5) { grid-column: auto; } .kpi.lead { grid-column: 1 / -1; } .kpi b { font-size: 24px; } .kpi.lead b { font-size: 30px; } .kpi span { font-size: 12.5px; } }

/* ===== 第三轮：头像、路线图与整体质感 ===== */
.brand img { border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--route); }
.avatar { width: 104px; height: 104px; border-radius: 30px; object-fit: cover; padding: 0; border: 0;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--route) 70%, transparent), 0 18px 32px -16px rgba(19, 23, 38, .55); margin: 14px 0 14px 4px; }
.profile-card::before {
  height: 100px;
  background:
    radial-gradient(120px 60px at 85% 30%, color-mix(in srgb, var(--route) 22%, transparent), transparent 70%),
    radial-gradient(160px 80px at 20% 0%, color-mix(in srgb, var(--cobalt) 22%, transparent), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--surface-2);
}
.sec-ic { background: linear-gradient(140deg, var(--cobalt-soft), color-mix(in srgb, var(--route-soft) 60%, var(--cobalt-soft))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cobalt) 12%, transparent); }
.panel { box-shadow: 0 1px 2px rgba(19, 23, 38, 0.03); }
.intro { background:
    radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--route-soft) 70%, transparent), transparent 70%),
    var(--surface); }

/* 路线图卡片 */
.map-card { margin: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.map-bar { padding: 12px 14px; background: var(--surface); }
.map-bar b { gap: 10px; font-size: 14px; }
.map-bar b small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.mb-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--route-soft); color: var(--route); }
.mb-ic .icon { width: 16px !important; height: 16px !important; color: var(--route) !important; }
.legend { font-size: 12px; }
.legend i { width: 10px; height: 10px; }
.route-map { background-color: var(--bg); background-size: 22px 22px; }
.route-map .contour path { fill: none; stroke: var(--ink-3); stroke-opacity: .16; stroke-width: 1.2; }
.route-map .road-edge { stroke: color-mix(in srgb, var(--line) 80%, var(--ink-3)); stroke-opacity: .5; stroke-width: 20; }
.route-map .road { stroke: var(--surface); stroke-width: 16; }
.route-map .path { stroke-width: 3; stroke-dasharray: 10 8; }
.route-map .runner { fill: var(--route); stroke: var(--surface); stroke-width: 2.5; }
.route-map .stop .halo { fill: var(--surface); opacity: .9; }
.route-map .stop use { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.route-map .stop.model .badge { fill: var(--surface); stroke: var(--model); stroke-width: 2.5; }
.route-map .stop.model use { color: var(--model); }
.route-map .stop.skill .badge { fill: var(--cobalt); }
.route-map .stop.skill .halo { fill: var(--cobalt-soft); }
.route-map .stop.skill use { color: #fff; }
.route-map .stop.app .badge { fill: var(--route); }
.route-map .stop.app .halo { fill: var(--route-soft); }
.route-map .stop.app use { color: #fff; }
.route-map .flag { fill: var(--route); stroke: var(--route); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.route-map .pill rect { fill: var(--surface); stroke: var(--line); filter: drop-shadow(0 4px 8px rgba(19, 23, 38, .08)); }
.route-map .pill.app rect { stroke: color-mix(in srgb, var(--route) 45%, var(--line)); }
.route-map .pill .t { fill: var(--ink); font: 700 12.5px var(--font); }
.route-map .pill .s { fill: var(--ink-3); font: 500 10px var(--font); }
.route-map .compass circle { fill: var(--surface); stroke: var(--line); }
.route-map .compass .n { fill: var(--route); }
.route-map .compass .s2 { fill: var(--ink-3); opacity: .5; }
.route-map .compass text { fill: var(--ink-3); font: 700 9px var(--font); }
@media (prefers-reduced-motion: no-preference) {
  .route-map .halo.pulse { animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .route-map .runner { display: none; } }
.map-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); background: var(--surface); }
.map-foot span { display: inline-flex; align-items: center; gap: 6px; }
.map-foot .icon { width: 15px; height: 15px; color: var(--cobalt); }
@media (min-width: 861px) { .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.route-map .pill rect { height: 38px; }
.route-map .pill .t { font-size: 13.5px; }
.route-map .pill .s { font-size: 10.8px; }
.route-map .pill .s { transform: translateY(2px); }
