/* ============================================================
   彭PER钛 · 个人网站设计系统
   深色终端科技风 · 移动优先
   ============================================================ */

/* ---------- 设计变量 ---------- */
/* 自托管字体（Cloudflare CDN 分发，可变字体，无需外部字体服务） */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300 700;font-display:swap;src:url('fonts/SpaceGrotesk.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 800;font-display:swap;src:url('fonts/JetBrainsMono.woff2') format('woff2');}

:root {
  /* 颜色 */
  --bg: #0a0e16;
  --bg-soft: #0d1320;
  --surface: #131b2a;
  --surface-2: #182234;
  --border: #243044;
  --border-soft: #1b2536;
  --text: #e8eef7;
  --text-soft: #aab7ca;
  --text-dim: #6f7e95;

  --cyan: #2dd4bf;
  --cyan-bright: #5eead4;
  --cyan-deep: #0f9486;
  --blue: #5b9dff;
  --amber: #fbbf24;
  --rose: #fb7185;

  /* 字体 */
  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  /* 尺寸 */
  --container: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --nav-h: 64px;

  /* 阴影 */
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-cyan: 0 14px 40px -16px rgba(45, 212, 191, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  /* 全局淡网格 + 顶部光晕 */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 212, 191, 0.12), transparent 60%),
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--cyan-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--cyan);
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: rgba(45, 212, 191, 0.3);
  color: #fff;
}

/* 焦点可见（无障碍） */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section {
  padding-block: 64px;
}

.section-tight {
  padding-block: 44px;
}

/* 区块标题 */
.section-head {
  margin-bottom: 36px;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 0.35em;
}

.section-head p {
  color: var(--text-soft);
  margin: 0;
}

/* 代码风格的小眉标 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "$";
  color: var(--amber);
  font-weight: 700;
}

/* ============================================================
   导航栏
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 14, 22, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: 0.01em;
  min-width: 0;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
  border-radius: 9px;
  box-shadow: 0 4px 14px -4px rgba(45, 212, 191, 0.6);
}

.logo .ti {
  color: var(--cyan);
}

/* 桌面导航链接 */
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  min-height: 44px;
  font-size: 0.95rem;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--cyan-bright);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端菜单面板 */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 14, 22, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 12px 22px 20px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 1.02rem;
  border-bottom: 1px solid var(--border-soft);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a.active {
  color: var(--cyan-bright);
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #06231f;
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
  box-shadow: 0 10px 26px -10px rgba(45, 212, 191, 0.7);
}

.btn-primary:hover {
  color: #06231f;
  box-shadow: 0 14px 32px -10px rgba(45, 212, 191, 0.85);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--cyan-deep);
}

.btn-amber {
  color: #2a1d02;
  background: linear-gradient(135deg, #fcd34d, var(--amber));
}

.btn-amber:hover {
  color: #2a1d02;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* ============================================================
   终端窗口（签名组件）
   ============================================================ */
.terminal {
  background: #0c1320;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--text-soft);
}

.terminal-body .line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-body .prompt {
  color: var(--cyan);
}

.terminal-body .cmd {
  color: var(--text);
}

.terminal-body .out {
  color: var(--text-soft);
}

.terminal-body .ok {
  color: var(--cyan-bright);
}

.terminal-body .warn {
  color: var(--amber);
}

/* 打字光标 */
.cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   Hero 首页
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-status .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  margin-bottom: 0.3em;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--cyan-bright), var(--blue) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 数据统计条 */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cyan-bright);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ============================================================
   卡片
   ============================================================ */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.22s var(--ease), border-color 0.2s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-deep);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--cyan);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4em;
}

.card p {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 0;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cyan);
}

.card-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* 标签 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.tag.cyan {
  color: var(--cyan-bright);
  border-color: var(--cyan-deep);
  background: rgba(45, 212, 191, 0.08);
}

.tag.amber {
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}

/* ============================================================
   页面内页头（Page Hero）
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 44px);
  padding-bottom: 30px;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin-bottom: 0.3em;
}

.page-hero p {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

/* ============================================================
   关于页
   ============================================================ */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.about-text p {
  color: var(--text-soft);
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

/* 信息清单 */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list .k {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.info-list .v {
  color: var(--text);
  text-align: right;
}

/* ---------- 时间轴 ---------- */
.timeline {
  position: relative;
  margin-top: 8px;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-bottom: 30px;
  padding-left: 34px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

/* 贯穿的真实轴线（真实元素，与圆点用相同的渲染测量，保证精确对齐） */
.tl-rail {
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}

/* 圆点 */
.tl-dot {
  position: absolute;
  left: 2px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--cyan);
  z-index: 1;
}

.tl-item.now .tl-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.18);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--amber);
  font-weight: 600;
}

.tl-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.tl-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
}

.tl-content p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- 技能条 ---------- */
.skill {
  margin-bottom: 20px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.skill-head .name {
  font-weight: 600;
}

.skill-head .pct {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.skill-bar {
  height: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan-bright));
  width: 0;
  transition: width 1s var(--ease);
}

/* ============================================================
   作品页
   ============================================================ */
/* 重点项目大卡 */
.feature-project {
  position: relative;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--cyan-deep);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-cyan);
}

.feature-project::after {
  content: "</>";
  position: absolute;
  right: -10px;
  bottom: -28px;
  font-family: var(--font-mono);
  font-size: 7rem;
  font-weight: 700;
  color: rgba(45, 212, 191, 0.06);
  pointer-events: none;
}

.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.feature-project h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4em;
}

.feature-project > p {
  color: var(--text-soft);
  max-width: 620px;
}

.fp-features {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.fp-feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fp-feat .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.15);
  color: var(--cyan);
}

.fp-feat .check svg {
  width: 13px;
  height: 13px;
}

.fp-feat div {
  min-width: 0;
}

.fp-feat strong {
  display: block;
  font-size: 0.97rem;
}

.fp-feat span {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.fp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* 视频作品卡 */
.video-card {
  padding: 0;
  overflow: hidden;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-soft));
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.video-thumb svg {
  width: 42px;
  height: 42px;
  color: var(--text-dim);
  opacity: 0.7;
  transition: transform 0.25s var(--ease), opacity 0.2s, color 0.2s;
}

.video-card:hover .video-thumb svg {
  transform: scale(1.12);
  color: var(--cyan);
  opacity: 1;
}

.video-thumb .dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 8px;
  border-radius: 6px;
}

/* 分类配色缩略图 */
.video-thumb.thumb-green { background: linear-gradient(135deg, #0f9486, #134e4a); }
.video-thumb.thumb-blue { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.video-thumb.thumb-rose { background: linear-gradient(135deg, #e11d48, #881337); }
.video-thumb.thumb-amber { background: linear-gradient(135deg, #d97706, #78350f); }
.video-thumb.thumb-purple { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.video-thumb.thumb-slate { background: linear-gradient(135deg, #475569, #1e293b); }
.video-thumb.thumb-cyan { background: linear-gradient(135deg, #0891b2, #164e63); }

.video-body {
  padding: 18px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.4em;
}

.video-body p {
  font-size: 0.9rem;
  color: var(--text-soft);
  flex-grow: 1;
}

/* 下载表 */
.download-list {
  display: grid;
  gap: 14px;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex-wrap: wrap;
}

.download-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--cyan);
}

.download-icon svg {
  width: 22px;
  height: 22px;
}

.download-info {
  flex: 1;
  min-width: 160px;
}

.download-info strong {
  display: block;
  font-size: 0.98rem;
}

.download-info span {
  font-size: 0.84rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* 提示框 */
.callout {
  display: flex;
  gap: 14px;
  background: rgba(91, 157, 255, 0.08);
  border: 1px solid rgba(91, 157, 255, 0.3);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 24px;
}

.callout .ci {
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 2px;
}

.callout .ci svg {
  width: 22px;
  height: 22px;
}

.callout p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-soft);
}

/* ============================================================
   联系页
   ============================================================ */
.contact-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.contact-card:hover {
  border-color: var(--cyan-deep);
  transform: translateX(4px);
}

.contact-card .cc-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.12);
  color: var(--cyan);
}

.contact-card .cc-icon svg {
  width: 23px;
  height: 23px;
}

.contact-card .cc-info {
  min-width: 0;
  flex: 1;
}

.contact-card .cc-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.contact-card .cc-value {
  display: block;
  font-size: 0.98rem;
  color: var(--text);
  word-break: break-all;
}

.contact-card .cc-go {
  flex-shrink: 0;
  color: var(--text-dim);
}

.contact-card .cc-go svg {
  width: 18px;
  height: 18px;
}

/* 表单 */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.form-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3em;
}

.form-card .form-sub {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* Toast 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--surface-2);
  border: 1px solid var(--cyan-deep);
  color: var(--text);
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  z-index: 200;
  max-width: 90vw;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ============================================================
   404 页
   ============================================================ */
.error-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 22px;
  text-align: center;
}

.error-code {
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 18vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(120deg, var(--cyan-bright), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 10px;
}

.error-wrap h1 {
  font-size: 1.4rem;
  margin-bottom: 0.4em;
}

.error-wrap p {
  color: var(--text-soft);
  max-width: 440px;
  margin: 0 auto 28px;
}

/* ============================================================
   CTA 区块
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(91, 157, 255, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  margin-bottom: 0.4em;
}

.cta-band p {
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto 26px;
}

/* ============================================================
   页脚
   ============================================================ */
.footer {
  margin-top: 70px;
  border-top: 1px solid var(--border-soft);
  background: rgba(8, 11, 18, 0.6);
}

.footer-inner {
  padding: 48px 0 30px;
  display: grid;
  gap: 32px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 0.93rem;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  background: var(--surface);
}

.footer-social a:hover {
  color: var(--cyan);
  border-color: var(--cyan-deep);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.footer-bottom .mono {
  font-family: var(--font-mono);
}

/* ============================================================
   滚动揭示动效
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   筛选器（视频 / 作品页）
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  padding: 8px 16px;
  min-height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--cyan-deep);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
  color: #06231f;
  border-color: transparent;
  font-weight: 600;
}

/* 视频卡元信息 */
.video-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.video-meta .cat-tag {
  color: var(--cyan);
}

.video-body .v-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  flex-grow: 1;
  margin: 0;
}

/* ============================================================
   视频播放弹窗
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 7, 12, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.open {
  display: grid;
}

.modal-inner {
  width: 100%;
  max-width: 920px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
}

.modal-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
  min-width: 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.modal-close,
.modal-ext {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}

.modal-ext {
  width: auto;
  padding: 0 14px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--cyan-bright);
  text-decoration: none;
}

.modal-close:hover,
.modal-ext:hover {
  border-color: var(--cyan-deep);
}

.modal-close svg,
.modal-ext svg {
  width: 18px;
  height: 18px;
}

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
}

/* ============================================================
   响应式（桌面增强）
   ============================================================ */
@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .fp-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .feature-project {
    padding: 44px 44px;
  }

  /* 时间轴改为左日期 + 中轴 + 右内容的三列布局 */
  .tl-item {
    grid-template-columns: 150px 24px 1fr;
    gap: 0;
    padding-left: 0;
    padding-bottom: 26px;
  }
  .tl-item::before {
    left: 161px; /* 150 + 24/2 - 1 */
    top: 8px;
  }
  .tl-dot {
    left: 153px; /* 150 + 24/2 - 8 */
    top: 3px;
  }
  .tl-date {
    text-align: right;
    padding-right: 22px;
    padding-top: 2px;
  }
  .tl-content {
    grid-column: 3;
  }
}

/* ============================================================
   降低动效偏好（无障碍）
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .skill-fill {
    transition: none;
  }
}
