/* ==========================================================================
   罗文涵 · 个人网站样式
   设计变量集中在 :root，改主色调只需改 --primary / --primary-2。
   断点：≥1024 桌面 · 768–1023 平板 · <768 手机 · <360 极窄屏
   ========================================================================== */

:root {
  --primary: #4f7cff;
  --primary-2: #8b5cf6;
  --primary-soft: rgba(79, 124, 255, 0.12);

  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --card: #ffffff;
  --text: #131722;
  --text-2: #5b6478;
  --text-3: #8a93a8;
  --line: #e8eaf0;

  --ok: #12864b;
  --danger: #d32f2f;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --gap: 24px;
  --section-py: clamp(56px, 8vw, 100px);
  --container: 1120px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.14);
  --t: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-2); }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.grad {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(79, 124, 255, 0.32);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 124, 255, 0.42); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost { color: var(--text); background: #fff; border-color: var(--line); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

.btn-mini { padding: 8px 14px; font-size: 13.5px; background: var(--primary-soft); color: var(--primary); }
.btn-mini:hover { background: rgba(79, 124, 255, 0.2); }

.btn-block { width: 100%; }

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--primary); }

/* ===================== 导航 ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--t), box-shadow var(--t);
}
.navbar.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 14px rgba(79, 124, 255, 0.32);
}
.brand-name { font-size: 16.5px; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.is-active { color: var(--primary); background: var(--primary-soft); }
.nav-links a.nav-admin {
  margin-left: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 16px rgba(79, 124, 255, 0.28);
}
.nav-links a.nav-admin:hover { color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform var(--t), opacity var(--t); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== 首屏 ===================== */
.hero {
  padding: clamp(104px, 13vw, 148px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(79, 124, 255, 0.14), transparent 62%),
    radial-gradient(700px 380px at 92% 2%, rgba(139, 92, 246, 0.13), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
  background: rgba(18, 134, 75, 0.1);
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(18, 134, 75, 0.16);
}
.status-pill:empty { display: none; }

.hero h1 { font-size: clamp(27px, 4vw, 46px); font-weight: 800; }
.hero-tagline { margin-top: 18px; font-size: clamp(14.5px, 1.5vw, 16.5px); color: var(--text-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 28px;
  font-size: 14px;
}
.hero-facts li { display: inline-flex; align-items: baseline; gap: 8px; }
.fact-key { color: var(--text-3); font-size: 13px; }
.fact-val { color: var(--text); font-weight: 600; }

.hero-card {
  padding: 32px 26px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.avatar-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 10px 26px rgba(79, 124, 255, 0.28);
}
.avatar[hidden] { display: none; }
.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 26px rgba(79, 124, 255, 0.3);
}
.avatar-fallback[hidden] { display: none; }

.hero-card-name { font-size: 19px; font-weight: 700; }
.hero-card-tagline { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.hero-card-links { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.mini-link {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
}
.mini-link:hover { background: rgba(79, 124, 255, 0.2); }
.mini-link[hidden] { display: none; }

/* ===================== 通用区块 ===================== */
.section { padding: var(--section-py) 0; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin: 0 auto clamp(30px, 5vw, 48px); text-align: center; }
.section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-soft);
}
.section-head h2 { font-size: clamp(21px, 2.8vw, 32px); font-weight: 800; }

.empty-tip { text-align: center; color: var(--text-3); font-size: 14px; padding: 24px 0; }

/* ===================== 关于我 ===================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.about-bio {
  padding: 26px 28px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.about-facts {
  margin: 0;
  padding: 6px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 22px;
  border-bottom: 1px dashed var(--line);
}
.about-facts > div:last-child { border-bottom: none; }
.about-facts dt { font-size: 13.5px; color: var(--text-3); }
.about-facts dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }

/* ===================== 技能 ===================== */
.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-item { display: block; }
.skill-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 600;
}
.skill-level { color: var(--primary); font-variant-numeric: tabular-nums; }
.skill-track {
  height: 9px;
  border-radius: 999px;
  background: #e6e9f2;
  overflow: hidden;
}
.skill-bar {
  height: 100%;
  width: var(--level, 0%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===================== 项目 ===================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(79, 124, 255, 0.3); }

.project-name { font-size: 17px; font-weight: 700; }
.project-desc { margin-top: 10px; font-size: 14.5px; color: var(--text-2); flex: 1; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
}

.project-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.project-links a { display: inline-flex; align-items: center; gap: 5px; }
.project-links a::after { content: "↗"; font-size: 12px; }

/* ===================== 联系 ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 18px;
  color: var(--primary);
  background: var(--primary-soft);
}
.contact-body { min-width: 0; }
.contact-label { font-size: 12.5px; color: var(--text-3); }
.contact-value { font-size: 14.5px; font-weight: 600; word-break: break-all; }
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--primary); }

/* ===================== 页脚 ===================== */
.footer { background: #101528; color: #c7cddd; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 30px;
  font-size: 13px;
}
.footer-note { color: #8e97b0; }

/* ===================== 后台 ===================== */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.admin-overlay[hidden] { display: none; }

.admin-panel {
  width: 100%;
  max-width: 880px;
  height: fit-content;
  min-height: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}
.admin-head h2 { font-size: 19px; font-weight: 800; }

.admin-login { padding: 26px clamp(18px, 3vw, 30px) 30px; }
/* 登录表单与编辑表单靠 hidden 属性切换；display 必须让位，否则 hidden 会被覆盖 */
.admin-login[hidden] { display: none; }
.admin-hint { margin-bottom: 18px; font-size: 13.5px; color: var(--text-2); }

/* ===== 部署自检提示框 ===== */
.health-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.7;
  border: 1px solid;
}
.health-box strong { display: block; margin-bottom: 6px; font-size: 13.5px; }
.health-box ul { margin: 0; padding-left: 18px; }
.health-box li { margin: 4px 0; }
.health-box[hidden] { display: none; }
.health-box.is-warn {
  color: #7a4a00;
  background: #fff8e6;
  border-color: #ffe0a3;
}
.health-box.is-ok {
  color: #12864b;
  background: #f0fbf5;
  border-color: #b7e7cd;
}
.admin-editor .health-box { margin-bottom: 20px; }

.admin-login label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; }
.admin-login input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.admin-login input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.admin-editor { display: flex; flex-direction: column; }
.admin-editor[hidden] { display: none; }
.admin-body { padding: 22px clamp(18px, 3vw, 30px); max-height: min(62vh, 640px); overflow-y: auto; }

.editor-block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.editor-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.editor-block h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 16px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h3 { margin-bottom: 0; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; line-height: 1.7; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input.is-invalid,
.field textarea.is-invalid { border-color: var(--danger); }

.field-hint { margin-top: 5px; font-size: 12px; color: var(--text-3); text-align: right; }
.field-error { margin-top: 6px; font-size: 12.5px; color: var(--danger); }

.rows { display: grid; gap: 12px; }
.row-card {
  position: relative;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.row-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.row-index { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.row-remove {
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--danger);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.row-remove:hover { border-color: var(--danger); }

/* 技能行：名称占满剩余宽度，熟练度滑块固定，百分比与删除按钮各占一格 */
.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 52px 72px; gap: 12px; align-items: end; }
.skill-row .field { margin-bottom: 0; }
.skill-row output { font-size: 13.5px; font-weight: 700; color: var(--primary); text-align: right; padding-bottom: 10px; }
.del-wrap { display: flex; justify-content: flex-end; }
.del-wrap .row-remove { width: 100%; text-align: center; }

.admin-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.admin-foot-left,
.admin-foot-right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.save-state { font-size: 13px; color: var(--text-2); }
.save-state.is-ok { color: var(--ok); font-weight: 600; }
.save-state.is-err { color: var(--danger); font-weight: 600; }

.admin-note { padding: 0 clamp(18px, 3vw, 30px) 20px; font-size: 12.5px; color: var(--text-3); }

/* ===================== 轻提示 ===================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 300;
  transform: translateX(-50%);
  max-width: 92vw;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  background: rgba(31, 36, 48, 0.95);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.3);
}
.toast.is-ok { background: var(--ok); }
.toast.is-err { background: var(--danger); }
.toast[hidden] { display: none; }

/* ===================== 滚动淡入 ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== 平板 768–1023 ===================== */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; }
}

/* ===================== 手机 <768 ===================== */
@media (max-width: 767px) {
  body { font-size: 15px; }
  .navbar-inner { height: 62px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px clamp(16px, 4vw, 32px) 18px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .nav-links a.nav-admin { margin-left: 0; margin-top: 6px; text-align: center; }

  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { gap: 8px 18px; }
  .hero-card { padding: 26px 20px; }
  .avatar, .avatar-fallback { width: 90px; height: 90px; }
  .about-bio { padding: 20px; }

  .skill-list { grid-template-columns: 1fr; gap: 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .admin-overlay { padding: 0; }
  .admin-panel { border-radius: 0; min-height: 100vh; }
  .admin-body { max-height: none; }
  .skill-row { grid-template-columns: 1fr 1fr; }
  .skill-row output { display: none; }
  .admin-foot { flex-direction: column; align-items: stretch; }
  .admin-foot-left, .admin-foot-right { flex-direction: column; align-items: stretch; }
  .admin-foot .btn { width: 100%; }
}

/* ===================== 极窄屏 <360 ===================== */
@media (max-width: 359px) {
  .brand-name { font-size: 15px; }
  .hero h1 { font-size: 24px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .contact-card { padding: 16px; }
}

/* ===================== 打印 ===================== */
@media print {
  .navbar, .admin-overlay, .toast, .hero-actions, .nav-admin { display: none !important; }
  body { background: #fff; }
  .section { padding: 20px 0; }
  .project-card, .contact-card, .about-bio, .about-facts { box-shadow: none; }
}

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