/* ============================================================
   李其淳 · 个人主页 样式表
   设计语言：浅色清爽 · 蓝紫渐变 · 柔和圆角 · 无 Emoji · 无发光字体
   Hero 背景：WebGL Silk 丝滑动态（见 assets/js/silk.js）
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --c-bg: #f4f7fd;
  --c-bg-alt: #eef3fc;
  --c-card: #ffffff;
  --c-ink: #1e293b;
  --c-ink-soft: #475569;
  --c-ink-mute: #64748b;
  --c-line: #e2e8f0;
  --c-blue: #4f7cf0;
  --c-violet: #8b7cf6;
  --c-mint: #5fb3a0;
  --grad-brand: linear-gradient(120deg, #4f7cf0 0%, #7c6cf2 55%, #8b7cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(79, 124, 240, 0.10), rgba(139, 124, 246, 0.10));
  --shadow-card: 0 10px 30px rgba(30, 41, 59, 0.06);
  --shadow-card-hover: 0 18px 40px rgba(30, 41, 59, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 任何带 hidden 属性的元素必须真正隐藏（防止被 display:flex 等作者样式覆盖） */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* 锚点跳转时预留吸顶导航高度，避免标题被遮挡 */
  scroll-padding-top: 76px;
}

body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(79, 124, 240, 0.18); }

/* ---------- 自定义滚动条（滑动栏）· 浅色主题 · 蓝紫渐变 · 圆角细条 ---------- */
html {
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #9aa8e8 #eef1f8;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #eef1f8;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4f7cf0, #8b7cf6);
  border-radius: 99px;
  border: 2px solid #eef1f8;
  transition: background 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #3d6ce0, #7c6cf2);
}

::-webkit-scrollbar-corner {
  background: #eef1f8;
}


/* ---------- Silk 背景（WebGL canvas + 柔和叠加） ---------- */
#silk-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(248, 251, 255, 0.62) 0%,
    rgba(244, 247, 253, 0.78) 45%,
    rgba(239, 244, 253, 0.86) 100%
  );
}

/* 无 WebGL 时的纯渐变兜底 */
.no-webgl .bg-fallback {
  background: linear-gradient(135deg, #eef3fc 0%, #f7f5fd 55%, #eaf6f4 100%);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-line), 0 8px 24px rgba(30, 41, 59, 0.05);
  padding: 10px 24px;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.brand-mark { display: block; }

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-size: 15px;
  color: var(--c-ink-soft);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transition: width 0.28s ease;
}

.nav-links a:hover { color: var(--c-blue); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--c-ink-soft);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 96px;
  text-align: center;
}

.hero-inner { max-width: 860px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--c-ink-mute);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--c-line);
  padding: 7px 16px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(40px, 6.4vw, 66px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.18;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-slide 9s ease-in-out infinite alternate;
  background-size: 200% auto;
}

@keyframes gradient-slide {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.hero-rotate-wrap {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(19px, 3vw, 25px);
  color: var(--c-ink-soft);
  min-height: 40px;
}

.hero-rotate {
  display: inline-flex;
  color: var(--c-blue);
  font-weight: 600;
}

.hero-rotate .rt-char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.hero-rotate .rt-char.in { transform: translateY(0); opacity: 1; }
.hero-rotate .rt-char.out { transform: translateY(-110%); opacity: 0; }

.hero-desc {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 16.5px;
  color: var(--c-ink-mute);
}

.hero-desc strong {
  color: var(--c-violet);
  font-weight: 700;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: var(--grad-brand);
  box-shadow: 0 8px 20px rgba(79, 124, 240, 0.30);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 124, 240, 0.36); }

.btn-ghost {
  color: var(--c-ink-soft);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--c-line);
}

.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(79, 124, 240, 0.45); color: var(--c-blue); }

.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- Hero 数据条 ---------- */
.hero-stats {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--c-ink-mute);
}

/* ---------- 向下滚动提示 ---------- */
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--c-ink-mute);
  font-size: 12.5px;
  letter-spacing: 2px;
}

.scroll-arrow {
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ---------- 通用分区 ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 96px 24px;
}

.section-alt { background: rgba(238, 243, 252, 0.72); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-blue);
}

.section-title {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
}

.section-sub {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--c-ink-mute);
}

/* ---------- 滚动出现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 高光卡片（Spotlight 风格，柔和光照） ---------- */
.spotlight {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  background: var(--c-card);
  padding: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --mx: 50%;
  --my: 50%;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    340px circle at var(--mx) var(--my),
    rgba(79, 124, 240, 0.09),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.spotlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.spotlight:hover::before { opacity: 1; }

.spotlight h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.spotlight p { color: var(--c-ink-soft); font-size: 15px; }

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

.tag {
  font-size: 12.5px;
  color: #3f5bd8;
  background: rgba(79, 124, 240, 0.09);
  border: 1px solid rgba(79, 124, 240, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
}

.about-card p + p { margin-top: 12px; }

.about-meta h3 { margin-bottom: 18px; }

.meta-list {
  list-style: none;
  display: grid;
  gap: 2px;
}

.meta-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--c-line);
}

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

.meta-list svg { color: var(--c-blue); flex-shrink: 0; }

.meta-key {
  width: 52px;
  font-size: 13.5px;
  color: var(--c-ink-mute);
  flex-shrink: 0;
}

.meta-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-ink);
  word-break: break-all;
}

.meta-cta { margin-top: 18px; }

/* ---------- 教育背景（时间线） ---------- */
.timeline { max-width: 780px; margin: 0 auto; }

.timeline-item { position: relative; padding-left: 34px; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, var(--c-blue), var(--c-violet), transparent);
  border-radius: 2px;
}

.timeline-dot {
  position: absolute;
  left: 1px; top: 12px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 5px rgba(79, 124, 240, 0.14);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-badge {
  font-size: 12.5px;
  color: #3f5bd8;
  background: rgba(79, 124, 240, 0.09);
  border: 1px solid rgba(79, 124, 240, 0.18);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.timeline-major {
  margin: 6px 0 10px;
  font-size: 13.5px;
  color: var(--c-violet);
  font-weight: 600;
}

.timeline-desc { font-size: 15px; color: var(--c-ink-soft); }

/* ---------- 专业技能 ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.skill-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon, var(--c-blue));
  background: color-mix(in srgb, var(--icon, var(--c-blue)) 12%, white);
  margin-bottom: 14px;
}

.skill-list {
  list-style: none;
  display: grid;
  gap: 13px;
  margin-top: 6px;
}

.skill-list li { display: flex; align-items: center; gap: 12px; }

.skill-bar {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: #eef1f8;
  overflow: hidden;
}

.skill-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad-brand);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-list.in-view .skill-bar i { width: var(--w, 60%); }

.skill-name {
  width: 128px;
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--c-ink-soft);
  text-align: right;
}

/* ---------- 项目方向 ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card { display: flex; flex-direction: column; }

.project-num {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  background: var(--grad-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.project-card h3 { font-size: 18.5px; margin-bottom: 4px; }

.project-status {
  font-size: 12.5px;
  color: var(--c-mint);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.project-card p:not(.project-status) { font-size: 14.5px; }

/* ---------- 联系我 ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 34px;
  max-width: 940px;
  margin: 0 auto;
}

.contact-intro h3 { font-size: 22px; margin-bottom: 12px; }
.contact-intro p { font-size: 15px; color: var(--c-ink-mute); }

.contact-list { display: grid; gap: 12px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: #fbfcff;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-item:hover { border-color: rgba(79, 124, 240, 0.4); background: #f7f9ff; }

.contact-label {
  width: 92px;
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--c-ink-mute);
}

.contact-value {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--c-line);
  background: #ffffff;
  color: var(--c-blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.copy-btn:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

.copy-btn.done { background: var(--c-mint); color: #fff; border-color: var(--c-mint); }

.contact-item .btn-sm { margin-left: auto; }

/* ---------- 求职意向条（Hero） ---------- */
.intent-bar {
  margin: 26px auto 0;
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  padding: 15px 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.intent-item { display: flex; align-items: baseline; gap: 8px; }

.intent-key { font-size: 12.5px; color: var(--c-ink-mute); flex-shrink: 0; }

.intent-val { font-size: 14px; font-weight: 700; color: var(--c-ink); }

/* ---------- 证书与荣誉 ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
}

.cert-card svg { color: var(--c-blue); flex-shrink: 0; }

.cert-card span { font-size: 14.5px; font-weight: 600; color: var(--c-ink); }

/* ---------- 实践经历 ---------- */
.practice-list {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.practice-item { padding: 26px 30px; }

.practice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.practice-head h3 { font-size: 18px; margin-bottom: 0; }

.practice-time {
  margin: 8px 0 10px;
  font-size: 13px;
  color: var(--c-violet);
  font-weight: 600;
}

.practice-desc { font-size: 14.5px; color: var(--c-ink-soft); }

/* ---------- 自我评价 ---------- */
.summary-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 42px 46px;
}

.summary-card p { font-size: 16px; color: var(--c-ink-soft); }

.summary-card p + p { margin-top: 14px; }

.summary-card .tag-row { justify-content: center; margin-top: 26px; }

/* ---------- 快速留言表单 ---------- */
.message-form {
  margin-top: 26px;
  padding: 34px 38px;
}

.message-form-head h3 { font-size: 20px; margin-bottom: 8px; }

.message-form-head p { font-size: 14px; color: var(--c-ink-mute); }

.form-notice {
  margin-top: 16px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.form-notice.success {
  color: #1d7a5f;
  background: rgba(95, 179, 160, 0.12);
  border: 1px solid rgba(95, 179, 160, 0.35);
}

.form-notice.error {
  color: #b3423a;
  background: rgba(230, 120, 110, 0.10);
  border: 1px solid rgba(230, 120, 110, 0.35);
}

.msg-form {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink-soft);
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--c-ink);
  background: #fbfcff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(79, 124, 240, 0.55);
  box-shadow: 0 0 0 3px rgba(79, 124, 240, 0.12);
}

.form-hint {
  font-size: 11.5px;
  color: var(--c-ink-mute);
}

.msg-form .btn { justify-content: center; }

/* ---------- 快速留言弹窗（Modal） ---------- */
body.modal-open { overflow: hidden; }

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.40);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;      /* 初始不可见 */
  pointer-events: none;    /* 初始不拦截任何点击 */
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.modal-mask.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s;
}

.modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  padding: 30px 32px;
  transform: translateY(20px) scale(0.94);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.modal-mask.show .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-mask.closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.modal-mask.closing .modal-panel {
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.modal-head-text h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }

.modal-head-text p { font-size: 13.5px; color: var(--c-ink-mute); }

.modal-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #f8fafc;
  color: var(--c-ink-mute);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.modal-close:hover { background: #eef2fb; color: var(--c-ink); transform: rotate(90deg); }

.modal-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  animation: alert-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-alert.success {
  color: #1d7a5f;
  background: rgba(95, 179, 160, 0.12);
  border: 1px solid rgba(95, 179, 160, 0.35);
}

.modal-alert.error {
  color: #b3423a;
  background: rgba(230, 120, 110, 0.10);
  border: 1px solid rgba(230, 120, 110, 0.35);
}

@keyframes alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.check-mark { flex-shrink: 0; }

.check-mark path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw-check 0.5s ease forwards 0.08s;
}

@keyframes draw-check { to { stroke-dashoffset: 0; } }

.btn-block { width: 100%; justify-content: center; }

.msg-form .btn:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 26px 24px;
  text-align: center;
}

.footer-inner p {
  font-size: 13.5px;
  color: var(--c-ink-mute);
}

.footer-inner p + p { margin-top: 4px; font-size: 12.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 68px 18px; }

  .nav-links {
    position: fixed;
    top: 64px; left: 16px; right: 16px;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

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

  .nav-links a { padding: 10px 14px; border-radius: 8px; }
  .nav-links a:hover { background: #f2f6ff; }
  .nav-links a::after { display: none; }

  .nav-toggle { display: flex; }

  .hero { padding-top: 110px; }
  .hero-stats { gap: 30px; }
  .stat-num { font-size: 28px; }

  .skill-name { width: 108px; }
  .contact-card { padding: 22px; }
  .contact-label { width: 74px; }
  .intent-bar { padding: 12px 16px; gap: 8px 18px; }
  .intent-val { font-size: 13px; }
  .summary-card { padding: 26px 22px; }
  .message-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-panel { padding: 24px 20px; }
  .modal-head-text h3 { font-size: 19px; }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
