/* 520.ningch.top — 前端样式 */

* { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
a, button, .btn, .nav-link, .social-btn { -webkit-tap-highlight-color: transparent; outline: none; }
a:focus, button:focus, .btn:focus, .nav-link:focus { outline: none; }

:root {
  --accent: #e6a35c;
  --accent-soft: rgba(230, 163, 92, 0.12);
  --accent-glow: rgba(230, 163, 92, 0.26);
  --bg: #0c0e13;
  --bg-2: #10141b;
  --surface: #161a23;
  --surface-2: #1c2230;
  --text: #e7ebf2;
  --text-2: #9aa4b4;
  --text-3: #67707f;
  --border: #222936;
  --border-2: #2f3849;
  --success: #2fbf71;
  --danger: #e05656;
  --warning: #e6a35c;
  --font: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 10px 28px rgba(230, 163, 92, 0.22);
  --container: 1120px;
  --nav-h: 68px;
  --transition: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --text: #1a1d24;
  --text-2: #57606f;
  --text-3: #8a92a3;
  --border: #e2e5ec;
  --border-2: #cdd2dd;
  --shadow-sm: 0 2px 8px rgba(26, 29, 36, 0.05);
  --shadow: 0 12px 34px rgba(26, 29, 36, 0.10);
  --shadow-lg: 0 24px 60px rgba(26, 29, 36, 0.14);
  --shadow-accent: 0 10px 28px rgba(176, 122, 47, 0.20);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; color: inherit; }
::selection { background-color: var(--accent); color: #10141b; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* 背景方案 */
body.bg-particles #particles { display: block; }
body.bg-grid::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.18;
}
body.bg-grid::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--bg);
}
body.bg-aurora::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(230, 163, 92, 0.14), transparent 60%),
    radial-gradient(45% 55% at 80% 30%, rgba(63, 148, 138, 0.12), transparent 60%),
    radial-gradient(40% 45% at 60% 80%, rgba(150, 130, 210, 0.10), transparent 60%);
  animation: aurora 16s ease-in-out infinite alternate;
}
body.bg-gradient::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 15% 10%, rgba(230, 163, 92, 0.10), transparent 60%),
    radial-gradient(55% 45% at 85% 20%, rgba(63, 148, 138, 0.08), transparent 60%),
    radial-gradient(50% 40% at 50% 90%, rgba(120, 130, 190, 0.08), transparent 60%);
}
body.bg-minimal::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--bg); }
body.bg-custom::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--bg); }
#particles { position: fixed; inset: 0; z-index: -1; opacity: 0.55; pointer-events: none; }

/* 加载 */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__logo { width: clamp(54px, 17vw, 80px); height: clamp(54px, 17vw, 80px); border-radius: 50%; object-fit: cover; animation: pulse 1.4s ease-in-out infinite; }
.loader__bar { width: clamp(120px, 42vw, 168px); height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 40%; border-radius: 3px; background-color: var(--accent); animation: loadbar 1.1s ease-in-out infinite; }
@keyframes loadbar { 0% { transform: translateX(-120%); } 100% { transform: translateX(300%); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }
@keyframes aurora { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(4%, -3%) rotate(3deg); } }

/* 导航 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(12, 14, 19, 0.55);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="light"] .navbar { background: rgba(244, 245, 247, 0.6); }
.navbar.scrolled { background: var(--surface); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.navbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
}
.brand__mark-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__text { font-weight: 600; font-size: 17px; letter-spacing: 0.1px; white-space: nowrap; }
.navbar__links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: translateX(-50%);
}
.navbar__tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: all var(--transition);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
body[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
body[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.navbar__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.navbar__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 48px; }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero__name { font-size: clamp(44px, 6.5vw, 72px); font-weight: 800; letter-spacing: -2px; line-height: 1.08; margin-bottom: 6px; }
.hero__role { font-size: clamp(19px, 2.8vw, 27px); font-weight: 600; color: var(--text-2); margin-bottom: 14px; min-height: 1.6em; }
.typed-caret { display: inline-block; width: 2px; margin-left: 3px; color: var(--accent); animation: blink 0.85s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__tagline { font-size: 17px; color: var(--text-2); max-width: 520px; margin-bottom: 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary { background-color: var(--accent); color: #10141b; box-shadow: var(--shadow-accent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--accent-glow); }
.btn--ghost { border: 1.5px solid var(--border-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero__socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  transition: all var(--transition);
}
.social-btn:hover { color: #10141b; background-color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }

.hero__right { display: flex; justify-content: center; }
.avatar-wrap { position: relative; }
.avatar__ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  animation: spin var(--avatar-speed, 22s) linear infinite;
  pointer-events: none;
  z-index: 1;
}
.avatar__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-soft);
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-2);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar__status {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  border: 3px solid var(--bg);
  z-index: 3;
}
.hero__scroll { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; }
.mouse { width: 22px; height: 36px; border: 2px solid var(--text-3); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 7px; border-radius: 3px; background-color: var(--accent); animation: wheel 1.6s ease infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* 区块 */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-soft);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }
.section-intro { color: var(--text-2); font-size: 16px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* 关于 */
.about__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.about__paragraphs p { color: var(--text-2); font-size: 16px; margin-bottom: 14px; }
.about__info { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.info-row { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.info-label { min-width: 62px; font-size: 13px; color: var(--text-3); }
.info-value { font-weight: 500; font-size: 14.5px; }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-card__num { font-size: 36px; font-weight: 800; color: var(--accent); }
.stat-card__label { color: var(--text-3); font-size: 13px; margin-top: 4px; }

/* 技能 */
.skills__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.skill-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.skill-card__name { font-weight: 600; font-size: 15px; }
.skill-card__pct { font-weight: 700; color: var(--accent); font-size: 14px; }
.skill-bar { height: 7px; border-radius: 7px; background: var(--surface-2); overflow: hidden; }
.skill-bar__fill { height: 100%; border-radius: 7px; width: 0; transition: width 1.1s cubic-bezier(0.2, 0.6, 0.2, 1); }

/* 作品 */
.projects__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.project-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.project-card__tag { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(12, 14, 19, 0.7); color: #e7ebf2; }
.project-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.project-card__title { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.project-card__desc { color: var(--text-2); font-size: 14px; flex: 1; margin-bottom: 14px; }
.project-card__links { display: flex; gap: 8px; }
.project-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); padding: 6px 13px; border-radius: 8px; background-color: var(--accent-soft); transition: background var(--transition), color var(--transition); }
.project-card__link:hover { background-color: var(--accent); color: #10141b; }

/* 时间线 */
.timeline__wrap { position: relative; max-width: 680px; margin: 0 auto; padding-left: 30px; }
.timeline__wrap::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--border-2); }
.timeline-item { position: relative; padding: 0 0 30px 24px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.timeline-item__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.timeline-item:hover .timeline-item__card { transform: translateX(4px); box-shadow: var(--shadow); }
.timeline-item__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.timeline-item__date { font-weight: 700; font-size: 13.5px; color: var(--accent); }
.timeline-item__type { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.timeline-item__title { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.timeline-item__desc { color: var(--text-2); font-size: 14px; }

/* 相册 */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item__cap { position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; font-size: 13px; font-weight: 500; color: #e7ebf2; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); opacity: 0; transition: opacity var(--transition); }
.gallery__item:hover .gallery__item__cap { opacity: 1; }
.gallery__empty { text-align: center; color: var(--text-3); padding: 36px; }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(8, 10, 14, 0.92); padding: 24px; }
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__body { max-width: min(1000px, 90vw); text-align: center; }
.lightbox__body img { max-width: 100%; max-height: 78vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__body figcaption { color: #e7ebf2; margin-top: 14px; font-size: 15px; }
.lightbox__close { position: fixed; top: 22px; right: 30px; width: 44px; height: 44px; border-radius: 50%; color: #e7ebf2; background: rgba(255, 255, 255, 0.1); transition: background var(--transition); display: grid; place-items: center; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__close:hover { background: var(--danger); }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; color: #e7ebf2; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; transition: background var(--transition); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav:hover { background-color: var(--accent); color: #10141b; }
.lightbox__prev { left: 22px; }
.lightbox__next { right: 22px; }
@media (max-width: 640px) { .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; } }

/* 联系 */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact__card { position: relative; padding: 28px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.contact__card-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 22px; }
.contact__card-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background-color: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.contact__card-ico svg { width: 19px; height: 19px; }
.contact__mail-addr { font-size: 19px; font-weight: 700; letter-spacing: .2px; margin-bottom: 20px; padding-right: 34px; word-break: break-all; }
.contact__mail-btn { align-self: flex-start; }
.msg-form { display: flex; flex-direction: column; gap: 14px; }
.msg-input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--text-1); transition: border-color var(--transition); }
.msg-input:focus { outline: none; border-color: var(--accent); }
.msg-textarea { resize: vertical; min-height: 96px; }
.msg-captcha { display: flex; gap: 10px; align-items: center; }
.msg-captcha-q { flex: 0 0 auto; min-width: 96px; padding: 12px 14px; background: var(--bg); border: 1px dashed var(--border); border-radius: var(--radius); font-weight: 700; color: var(--accent); text-align: center; }
.msg-captcha-a { max-width: 110px; }
.msg-submit { align-self: flex-start; }
.msg-hint { font-size: 12.5px; color: var(--text-3); }
.msg-hint.ok { color: var(--success, #2fbf71); }
.msg-hint.err { color: var(--danger, #e5484d); }

/* 页脚 */
.footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__text { color: var(--text-2); font-size: 14px; }
.footer__meta { color: var(--text-3); font-size: 13px; }
.footer__link { color: var(--accent); font-weight: 600; }
.footer__visits { color: var(--accent); font-weight: 700; }
.footer__sep { margin: 0 6px; }

/* 回到顶部 */
.backtop { position: fixed; right: 24px; bottom: 26px; width: 44px; height: 44px; border-radius: 12px; background-color: var(--accent); color: #10141b; box-shadow: var(--shadow-accent); opacity: 0; visibility: hidden; transform: translateY(14px); transition: all var(--transition); z-index: 90; display: grid; place-items: center; }
.backtop svg { width: 22px; height: 22px; }
.backtop.show { opacity: 1; visibility: visible; transform: none; }
.backtop:hover { transform: translateY(-3px); }

/* 响应式 */
@media (max-width: 960px) {
  html, body { overflow-x: hidden; }
  .section { overflow-x: clip; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__tagline { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__socials { justify-content: center; }
  .hero__right { order: -1; margin-top: 14px; }
  .hero__scroll { display: none; }
  .avatar { width: 200px; height: 200px; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .skills__grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  * { transition-duration: 0.12s !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 { transition-delay: 0s !important; }
  .anim-rise, .anim-zoom, .anim-fade, .anim-bounce, .anim-left, .anim-right, .anim-rise-left, .anim-rise-right, .anim-rise-in { opacity: 1 !important; transform: none !important; animation: none !important; }
  #particles { display: none !important; }
  .avatar__ring { animation-duration: var(--avatar-speed, 22s) !important; }
}
@media (max-width: 720px) {
  .navbar__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    gap: 2px;
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
  }
  .navbar__links.open { transform: none; opacity: 1; visibility: visible; }
  .navbar__toggle { display: flex; }
  .nav-link { width: 100%; text-align: center; padding: 10px; }
  .stat-card__num { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

.reading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: transparent; }
.reading-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-glow)); box-shadow: 0 0 10px var(--accent-glow); }

.contact__card { position: relative; }
.copy-btn {
  margin-left: auto;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-3);
  transition: all var(--transition);
}
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { border-color: var(--success); color: var(--success); background: rgba(47, 191, 113, 0.1); }

body.reduce-motion #particles { display: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media print {
  body { background: #fff !important; color: #111 !important; }
  .navbar, .backtop, .hero__socials, .reading-bar, .gallery, .contact, .footer { display: none !important; }
  .section { padding: 20px 0 !important; page-break-inside: avoid; }
  .project-card, .timeline-item__card { box-shadow: none !important; border: 1px solid #ccc !important; }
}
