
/* =========================================================
   个人主页 · 多主题版 —— 静态单文件（零外部依赖，双击即可打开）
   ---------------------------------------------------------
   · 主题系统：6 套主题（default / industrial / light / sunset / mint / crimson）
   · 布局分区：①导航 ②Hero ③方向 ④作品 ⑤技能 ⑥经历 ⑦荣誉 ⑧博客 ⑨联系 ⑩页脚
   · 数据驱动：内容全部来自 SITE_DATA（内联回退）/ data.json（优先），
     结构与未来 PHP API（api/site.php）返回值完全同构
   ========================================================= */

/* ---------- 主题 1：default · 深空科技（紫青渐变 · 深色） ---------- */
:root,
body[data-theme="default"] {
  --bg: #0b0e1a;
  --bg-soft: #12162b;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eaf6;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --primary: #7c5cff;
  --primary-2: #4dd0e1;
  --accent: #ffb86c;
  --grad: linear-gradient(135deg, #7c5cff 0%, #4dd0e1 100%);
  --glow-1: color-mix(in srgb, var(--primary) 16%, transparent);
  --glow-2: color-mix(in srgb, var(--primary-2) 12%, transparent);
  --glow-3: rgba(255, 184, 108, 0.07);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --bar-bg: rgba(255, 255, 255, 0.08);
  --nav-h: 64px;
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --grid-line: rgba(120, 170, 255, 0);
}

/* ---------- 主题 2：industrial · 工科蓝（深蓝底 + 坐标网格） ---------- */
body[data-theme="industrial"] {
  --bg: #0a0e15;
  --bg-soft: #0f151e;
  --card: rgba(125, 165, 220, 0.05);
  --card-hover: rgba(125, 165, 220, 0.09);
  --border: rgba(140, 185, 230, 0.13);
  --text: #dde7f2;
  --text-2: #95a9c0;
  --text-3: #5e7389;
  --primary: #3d8bff;
  --primary-2: #3fd6c8;
  --accent: #ffb347;
  --grad: linear-gradient(135deg, #3d8bff 0%, #3fd6c8 100%);
  --glow-1: rgba(61, 139, 255, 0.13);
  --glow-2: rgba(63, 214, 200, 0.09);
  --glow-3: rgba(255, 179, 71, 0.05);
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --bar-bg: rgba(140, 185, 230, 0.10);
  --grid-line: rgba(125, 175, 235, 0.05);
}

/* ---------- 主题 3：light · 晨曦浅色（浅底 · 明亮简约） ---------- */
body[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-soft: #ffffff;
  --card: rgba(255, 255, 255, 0.72);
  --card-hover: #ffffff;
  --border: rgba(15, 23, 42, 0.10);
  --text: #1e293b;
  --text-2: #5b6b7f;
  --text-3: #8a99ab;
  --primary: #6366f1;
  --primary-2: #0ea5e9;
  --accent: #d97706;
  --grad: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  --glow-1: rgba(99, 102, 241, 0.10);
  --glow-2: rgba(14, 165, 233, 0.08);
  --glow-3: rgba(217, 119, 6, 0.05);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(30, 41, 59, 0.10);
  --bar-bg: rgba(15, 23, 42, 0.08);
  --grid-line: rgba(120, 170, 255, 0);
}

/* ---------- 主题 4：sunset · 暖阳暮色（暖深底 · 橙红渐变） ---------- */
body[data-theme="sunset"] {
  --bg: #180f14;
  --bg-soft: #241419;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 190, 160, 0.12);
  --text: #f6ece6;
  --text-2: #c2a396;
  --text-3: #8f7065;
  --primary: #ff6b6b;
  --primary-2: #ffa94d;
  --accent: #ffd43b;
  --grad: linear-gradient(135deg, #ff6b6b 0%, #ffa94d 100%);
  --glow-1: rgba(255, 107, 107, 0.14);
  --glow-2: rgba(255, 169, 77, 0.10);
  --glow-3: rgba(255, 212, 59, 0.05);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --bar-bg: rgba(255, 255, 255, 0.08);
  --grid-line: rgba(120, 170, 255, 0);
}

/* ---------- 主题 5：mint · 薄荷森林（深绿底 · 青绿渐变） ---------- */
body[data-theme="mint"] {
  --bg: #081511;
  --bg-soft: #0e201a;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(160, 255, 220, 0.10);
  --text: #e6f4ee;
  --text-2: #9ab8ac;
  --text-3: #638074;
  --primary: #2dd4bf;
  --primary-2: #a3e635;
  --accent: #fbbf24;
  --grad: linear-gradient(135deg, #2dd4bf 0%, #a3e635 100%);
  --glow-1: rgba(45, 212, 191, 0.13);
  --glow-2: rgba(163, 230, 53, 0.08);
  --glow-3: rgba(251, 191, 36, 0.05);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --bar-bg: rgba(255, 255, 255, 0.08);
  --grid-line: rgba(120, 170, 255, 0);
}

/* ---------- 主题 6：crimson · 赤焰绯红（深红底 · 红粉渐变） ---------- */
body[data-theme="crimson"] {
  --bg: #160b0f;
  --bg-soft: #221016;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 155, 155, 0.12);
  --text: #f8ebe9;
  --text-2: #c49a98;
  --text-3: #8f6668;
  --primary: #ef4444;
  --primary-2: #fb7185;
  --accent: #fbbf24;
  --grad: linear-gradient(135deg, #dc2626 0%, #fb7185 100%);
  --glow-1: rgba(239, 68, 68, 0.14);
  --glow-2: rgba(251, 113, 133, 0.09);
  --glow-3: rgba(251, 191, 36, 0.05);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --bar-bg: rgba(255, 255, 255, 0.08);
  --grid-line: rgba(120, 170, 255, 0);
}

/* ---------- 浅色主题专属微调（对比度修正） ---------- */
body[data-theme="light"] .nav .links a:hover,
body[data-theme="light"] .nav .links a.active { color: var(--primary); }
body[data-theme="light"] .theme-toggle:hover { color: var(--primary); }
body[data-theme="light"] .btn-ghost:hover { color: var(--primary); }
body[data-theme="light"] ::selection { color: var(--text); background: color-mix(in srgb, var(--primary) 22%, transparent); }
body[data-theme="light"] .skill-card:hover,
body[data-theme="light"] .timeline-card:hover,
body[data-theme="light"] .contact-card:hover { box-shadow: var(--shadow); }

/* =========================================================
   基础与全局
   ========================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 10%, var(--glow-1), transparent 60%),
    radial-gradient(700px 500px at 85% 25%, var(--glow-2), transparent 60%),
    radial-gradient(500px 500px at 50% 90%, var(--glow-3), transparent 60%),
    var(--bg);
  transition: background 0.4s ease;
}
body[data-theme="industrial"]::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
}
::selection { background: color-mix(in srgb, var(--primary) 40%, transparent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 52px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head .tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font-size: 13px; letter-spacing: 2px; color: var(--primary-2);
  background: color-mix(in srgb, var(--primary-2) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-2) 25%, transparent);
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: 1px; }
.section-head h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p { color: var(--text-2); margin-top: 10px; font-size: 15px; }

.fade-in.pending { opacity: 0; transform: translateY(28px); }
.fade-in { transition: opacity 0.7s ease, transform 0.7s ease; }

/* =========================================================
   分区① 导航栏
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .logo { font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.nav .logo .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--grad); margin-right: 8px; vertical-align: 2px;
}
.nav .links { display: flex; gap: 8px; align-items: center; }
.nav .links a {
  padding: 8px 16px; border-radius: 999px; font-size: 14px;
  color: var(--text-2); transition: all 0.25s ease;
}
.nav .links a:hover, .nav .links a.active {
  color: #fff; background: color-mix(in srgb, var(--primary) 18%, transparent);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* =========================================================
   分区② Hero 首屏
   ========================================================= */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 40px) 24px 60px; position: relative;
}
/* 内容区撑满可用宽度，统计卡片才能随窗口自适应列数；上限 900px 居中（最多 4 个一排） */
.hero-inner { width: 100%; max-width: 900px; margin: 0 auto; }
.hero .avatar-wrap {
  width: 148px; height: 148px; margin: 0 auto 28px; border-radius: 50%;
  padding: 5px; background: var(--grad); position: relative;
  animation: float 5s ease-in-out infinite;
}
.hero .avatar-wrap::before {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  background: var(--grad); opacity: 0.18; filter: blur(28px); z-index: -1;
}
.hero .avatar-wrap img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  background: var(--bg-soft); border: 3px solid var(--bg);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 900; letter-spacing: 2px; }
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .subtitle { margin-top: 14px; font-size: clamp(16px, 2.4vw, 20px); color: var(--text-2); letter-spacing: 3px; }
.hero .bio { max-width: 620px; margin: 22px auto 0; color: var(--text-2); font-size: 15px; }
.hero .cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 999px; font-size: 15px;
  font-weight: 600; border: none; cursor: pointer; transition: all 0.3s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px color-mix(in srgb, var(--primary) 50%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: #fff; background: color-mix(in srgb, var(--primary) 8%, transparent); }
.btn:focus-visible, .theme-toggle:focus-visible, .theme-opt:focus-visible, .nav .links a:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 999px;
}
.hero .scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-3); font-size: 13px; animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* 统计数字（Hero 内） */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 56px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 18px; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover { transform: translateY(-4px); background: var(--card-hover); }
.stat-card:hover::after { opacity: 1; }
.stat-card .num {
  font-size: 40px; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .label { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* =========================================================
   分区⑤ 技能
   ========================================================= */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.skill-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all 0.3s ease; }
.skill-card:hover {
  transform: translateY(-4px); background: var(--card-hover);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.skill-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.skill-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); flex-shrink: 0;
}
.skill-card h3 { font-size: 17px; font-weight: 700; }
.skill-card .cat {
  font-size: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); padding: 2px 10px;
  border-radius: 999px; display: inline-block; margin-top: 3px;
}
.skill-card .desc { color: var(--text-2); font-size: 13.5px; min-height: 42px; }
.skill-bar { height: 7px; border-radius: 999px; background: var(--bar-bg); overflow: hidden; margin-top: 14px; }
.skill-bar .fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1); }
.skill-card .level-tip { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* =========================================================
   分区⑥ 项目经历（时间轴）
   ========================================================= */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary), var(--primary-2), transparent);
  opacity: 0.3;
}
.timeline-item { position: relative; width: 100%; padding: 0 0 26px 58px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 13px; top: 32px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); z-index: 1;
}
.timeline-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; transition: all 0.3s ease; }
.timeline-card:hover {
  transform: translateY(-4px); background: var(--card-hover);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.timeline-card .t-time {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.timeline-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; line-height: 1.5; }
.timeline-card .t-role { font-size: 14px; color: var(--primary-2); margin-bottom: 6px; font-weight: 600; }
.timeline-card .t-loc { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
.timeline-card .t-desc { font-size: 14px; color: var(--text-2); margin-bottom: 14px; line-height: 1.8; }
.timeline-card .t-tech { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.timeline-card .t-tech span {
  font-size: 12px; padding: 3px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); color: var(--text);
}
.timeline-card .t-achv { list-style: none; }
.timeline-card .t-achv li { font-size: 13.5px; color: var(--text-2); margin: 5px 0; display: flex; gap: 8px; align-items: flex-start; }
.timeline-card .t-achv li::before { content: "▸"; color: var(--primary-2); flex-shrink: 0; }

/* 时间线分区下方的小卡牌（style=card 条目，如实习项目） */
.tl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 28px; }
.tl-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; transition: all 0.3s ease; text-decoration: none;
}
.tl-card:hover {
  transform: translateY(-3px); background: var(--card-hover);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.tl-card .tc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tl-card .tc-ico {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; background: color-mix(in srgb, var(--primary-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-2) 25%, transparent); flex-shrink: 0;
}
.tl-card h4 { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--text); }
.tl-card .tc-sub { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.tl-card .tc-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; white-space: pre-line; }
.tl-card .tc-tech { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tl-card .tc-tech span {
  font-size: 11px; padding: 2px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); color: var(--text);
}

/* =========================================================
   分区⑨ 联系方式
   ========================================================= */
.contact-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-3px) scale(1.01); background: var(--card-hover);
  border-color: color-mix(in srgb, var(--primary-2) 40%, transparent);
}
.contact-card .c-icon {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: color-mix(in srgb, var(--primary-2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-2) 25%, transparent); flex-shrink: 0;
}
.contact-card .c-label { color: var(--text-3); font-size: 12px; }
.contact-card .c-value { font-size: 15px; font-weight: 600; word-break: break-all; color: var(--text); }

/* =========================================================
   分区⑩ 页脚
   ========================================================= */
.footer { border-top: 1px solid var(--border); padding: 34px 0; text-align: center; color: var(--text-3); font-size: 13.5px; }

/* 页脚寄语（域名故事等长文，profile.footerNote 驱动，空=不渲染）
   全宽铺开、无卡片框，配色随主题走（正文灰、行距宽松） */
.foot-note {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 2.1;
  text-align: justify;
}
.foot-note p { margin: 0 0 10px; }
.foot-note p:last-child { margin-bottom: 0; }
.foot-note:empty { display: none; }

.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty .empty-icon { font-size: 46px; margin-bottom: 12px; }

/* =========================================================
   分区③ 研究方向（机械 × AI Agent）
   ========================================================= */
.vision-flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 52px; }
.flow-step {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  font-size: 13.5px; color: var(--text-2); transition: all 0.3s ease; white-space: nowrap;
}
.flow-step .fs-ico { font-size: 17px; }
.flow-step:hover {
  color: var(--text); border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  background: var(--card-hover); transform: translateY(-2px);
}
.flow-arrow { color: var(--text-3); font-size: 15px; user-select: none; }
.vision-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.vision-card {
  position: relative; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all 0.3s ease;
}
.vision-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); opacity: 0; transition: opacity 0.3s;
}
.vision-card:hover::before { opacity: 1; }
.vision-card:hover {
  transform: translateY(-4px); background: var(--card-hover);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.vision-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vision-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: color-mix(in srgb, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); flex-shrink: 0;
}
.vision-card h3 { font-size: 17px; font-weight: 700; }
.vision-card .en { font-size: 11.5px; color: var(--text-3); letter-spacing: 0.5px; margin-top: 2px; }
.vision-card .desc { color: var(--text-2); font-size: 13.5px; line-height: 1.8; }

/* =========================================================
   分区④ 精选作品
   ========================================================= */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.project-card {
  display: flex; flex-direction: column; gap: 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: all 0.3s ease;
}
.project-card:hover {
  transform: translateY(-4px); background: var(--card-hover);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.project-card .p-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-card h3 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.project-card .p-cat {
  font-size: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.project-card .p-status {
  font-size: 12px; color: var(--primary-2); background: color-mix(in srgb, var(--primary-2) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-2) 25%, transparent);
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.project-card .p-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.8; flex: 1; }
.project-card .p-metrics {
  display: flex; gap: 30px; flex-wrap: wrap; padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.p-metric .m-val {
  font-size: 22px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.p-metric .m-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.project-card .p-tech { display: flex; gap: 8px; flex-wrap: wrap; }
.project-card .p-tech span {
  font-size: 12px; padding: 3px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); color: var(--text);
}
.project-card .p-link {
  font-size: 13px; color: var(--primary-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.project-card .p-link:hover { text-decoration: underline; }

/* =========================================================
   分区⑦ 荣誉证书
   ========================================================= */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.award-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.3s ease;
}
.award-item:hover { transform: translateY(-3px); background: var(--card-hover); }
.award-item .a-ico {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 19px; background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); flex-shrink: 0;
}
.award-item .a-title { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.award-item .a-meta { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* =========================================================
   分区⑧ 博客精选
   ========================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.blog-card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px); background: var(--card-hover);
  border-color: color-mix(in srgb, var(--primary-2) 40%, transparent);
}
.blog-card .b-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); }
.blog-card .b-tag {
  color: var(--primary-2); background: color-mix(in srgb, var(--primary-2) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-2) 22%, transparent);
  padding: 2px 10px; border-radius: 999px;
}
.blog-card h3 { font-size: 16px; font-weight: 700; line-height: 1.6; }
.blog-card .b-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.8; flex: 1; }
.blog-card .b-more { font-size: 13px; color: var(--primary-2); font-weight: 600; }

/* 简历下载（联系区内） */
.resume-cta { margin-top: 44px; text-align: center; }
.resume-tip { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }

/* =========================================================
   主题切换按钮 + 面板
   ========================================================= */
.theme-wrap { position: relative; display: inline-flex; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--border); background: transparent;
  color: var(--text-2); font-size: 13px; cursor: pointer; transition: all 0.25s ease;
  font-family: var(--font); white-space: nowrap;
}
.theme-toggle:hover { color: #fff; border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.theme-pop {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 152px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px; display: none; z-index: 130;
}
.theme-pop.open { display: block; animation: popIn 0.18s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.theme-opt {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap;
}
.theme-opt:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--text); }
.theme-opt.active { color: var(--primary); font-weight: 700; }
.theme-opt .swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; }
.swatch[data-s="default"] { background: linear-gradient(135deg, #7c5cff, #4dd0e1); }
.swatch[data-s="industrial"] { background: linear-gradient(135deg, #3d8bff, #3fd6c8); }
.swatch[data-s="light"] { background: linear-gradient(135deg, #ffffff, #93c5fd); }
.swatch[data-s="sunset"] { background: linear-gradient(135deg, #ff6b6b, #ffa94d); }
.swatch[data-s="mint"] { background: linear-gradient(135deg, #2dd4bf, #a3e635); }
.swatch[data-s="crimson"] { background: linear-gradient(135deg, #dc2626, #fb7185); }
/* 站点默认主题标识（区别于访客自己选的） */
.theme-opt .theme-def {
  margin-left: auto; padding: 0 6px; border: 1px solid currentColor; border-radius: 999px;
  font-size: 10.5px; font-weight: 400; line-height: 15px; opacity: 0.7; flex-shrink: 0;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .nav-toggle { display: flex; }
  .nav .links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(16px);
    padding: 16px 20px 22px; gap: 6px; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform 0.3s ease;
    align-items: stretch;
  }
  .nav .links.open { transform: translateY(0); }
  .nav .links a { width: 100%; text-align: center; }
  .theme-wrap { justify-content: center; }
  .timeline { max-width: 100%; }

  /* 流程步骤条（方向流程 / 自定义 flow 分区）：手机改竖向排列，
     步骤占满整行、箭头旋转向下指，避免横排换行时箭头悬在行尾的断裂感 */
  .vision-flow { flex-direction: column; gap: 6px; margin-bottom: 32px; }
  .flow-step { width: 100%; justify-content: center; padding: 12px 16px; }
  .flow-arrow { transform: rotate(90deg); font-size: 13px; }
  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 44px; }
  .timeline-item::before { left: 9px; }
  .timeline-card { padding: 24px 22px; }
  .tl-cards { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .foot-note { font-size: 12.5px; line-height: 1.95; margin-bottom: 14px; }

  /* 首屏统计数字：移动端紧凑化（2 列小卡，数字与标签同排不堆高） */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 28px; }
  .stat-card { padding: 10px 6px; border-radius: 12px; }
  .stat-card::after { height: 2px; }
  .stat-card .num { font-size: 22px; line-height: 1.2; }
  .stat-card .label { font-size: 11.5px; margin-top: 2px; }
}

/* =========================================================
   自定义分区（后台新增：cards / text / links 通用渲染）
   ========================================================= */
.custom-text { max-width: 760px; margin: 0 auto; color: var(--text-2); font-size: 15px; line-height: 2; }
.custom-text p { margin-bottom: 14px; }
