/* ============================================================
   范子俊 · 个人主页
   配色与圆角、阴影等设计变量集中在 :root（浅色）与 [data-theme="dark"]（深色）
   想换主色调：只改 --accent / --accent-strong / --accent-soft 三个变量即可
   ============================================================ */

:root {
  /* 浅色主题 */
  --bg: #f8f5f1;
  --bg-alt: #f1ece5;
  --surface: #ffffff;
  --surface-soft: #fdfaf6;
  --text: #17130f;
  --text-muted: #6b6259;
  --border: rgba(23, 19, 15, 0.1);
  --border-strong: rgba(23, 19, 15, 0.2);
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-glow: rgba(249, 115, 22, 0.28);
  --teal: #0d9488;
  --teal-soft: rgba(13, 148, 136, 0.12);
  --shadow-sm: 0 2px 10px rgba(28, 22, 15, 0.05);
  --shadow-lg: 0 26px 60px -32px rgba(28, 22, 15, 0.35);
  --header-bg: rgba(248, 245, 241, 0.82);
  --gradient-text: linear-gradient(100deg, #ea580c 0%, #f97316 45%, #f59e0b 100%);
  --gradient-btn: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color-scheme: light;
}

[data-theme="dark"] {
  /* 深色主题 */
  --bg: #0a0e18;
  --bg-alt: #0d1220;
  --surface: #141b2b;
  --surface-soft: #111827;
  --text: #f6f3ee;
  --text-muted: #a2abbf;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #fb923c;
  --accent-strong: #f97316;
  --accent-soft: rgba(251, 146, 60, 0.14);
  --accent-glow: rgba(249, 115, 22, 0.4);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 70px -35px rgba(0, 0, 0, 0.9);
  --header-bg: rgba(10, 14, 24, 0.78);
  --gradient-text: linear-gradient(100deg, #fdba74 0%, #fb923c 45%, #fbbf24 100%);
  --gradient-btn: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color-scheme: dark;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
    system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  color: var(--text);
  font-weight: 700;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1140px, calc(100% - 2 * clamp(1.1rem, 4vw, 2.5rem)));
  margin-inline: auto;
}

/* ---------- 通用图标 ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 12px 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 0;
}

/* ---------- 顶部滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gradient-btn);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.1s linear;
}

/* ---------- 页头与导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.6);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px -10px var(--accent-glow);
}

.brand-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-link[aria-current="true"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 600;
}

[data-theme="dark"] .nav-link[aria-current="true"] {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
}

.icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 14px 30px -16px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px var(--accent-glow);
}

.btn-outline {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline:hover {
  color: var(--accent);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}

.blob-1 {
  top: -9rem;
  right: -7rem;
  width: 30rem;
  height: 30rem;
  background: rgba(249, 115, 22, 0.32);
}

.blob-2 {
  bottom: -12rem;
  left: -9rem;
  width: 26rem;
  height: 26rem;
  background: rgba(13, 148, 136, 0.22);
  animation-delay: -5s;
}

.blob-3 {
  top: 30%;
  left: 38%;
  width: 18rem;
  height: 18rem;
  background: rgba(251, 191, 36, 0.2);
  animation-delay: -9s;
}

[data-theme="dark"] .blob {
  opacity: 0.4;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -26px, 0) scale(1.06);
  }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.hero h1 {
  margin-top: 1.15rem;
  font-size: clamp(2.5rem, 6.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-role {
  margin-top: 1rem;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 600;
  color: var(--text);
}

.hero-desc {
  max-width: 44ch;
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--border-strong);
}

.hero-facts dt {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.hero-facts dd {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.25rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
}

.hero-facts dd small {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- 首屏名片 ---------- */
.hero-card {
  position: relative;
  padding: 1.6rem 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(165deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-lg);
  text-align: center;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.4s ease;
}

.hero-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.45);
}

.hero-card-glow {
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.hero-card-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.ball-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ball-btn:hover {
  transform: scale(1.1) rotate(-8deg);
}

.ball-btn .basketball {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 8px 14px rgba(249, 115, 22, 0.35));
}

.ball-btn.is-spinning .basketball {
  animation: spin 0.9s cubic-bezier(0.35, 0.1, 0.25, 1);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.avatar {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 1rem auto 1.05rem;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  box-shadow: 0 16px 32px -16px var(--accent-glow), inset 0 0 0 4px rgba(255, 255, 255, 0.22);
}

.card-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-school {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.card-major {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
}

[data-theme="dark"] .card-major {
  color: var(--accent);
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.card-chips li {
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
}

.card-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.8rem 0.95rem;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: var(--surface-soft);
  text-align: left;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ---------- 通用区块 ---------- */
.section {
  position: relative;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(1.8rem, 4vw, 2.75rem);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

[data-theme="dark"] .section-kicker {
  color: var(--accent);
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.section-note {
  margin-top: 1.5rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-text p {
  margin-bottom: 1.05rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.95;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.about-tags li {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.about-tags li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.info-card {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row dt {
  flex: none;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.info-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

/* ---------- 学习与专业 ---------- */
.school-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.15rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.school-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-btn);
}

.school-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

[data-theme="dark"] .school-icon {
  color: var(--accent);
}

.school-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.school-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.school-card h3 {
  margin-top: 0.15rem;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 700;
}

.school-major {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.school-badge {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

[data-theme="dark"] .school-badge {
  color: #4ade80;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.learn-card {
  padding: 1.45rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.learn-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: var(--shadow-sm);
}

.learn-index {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
}

[data-theme="dark"] .learn-index {
  color: var(--accent);
}

.learn-card h3 {
  margin: 0.65rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}

.learn-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

/* ---------- 篮球 ---------- */
.hobby {
  overflow: hidden;
}

.hobby::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -12rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  pointer-events: none;
}

.hobby-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1rem;
}

.hobby-card {
  padding: 1.6rem 1.45rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hobby-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: var(--shadow-sm);
}

.hobby-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

[data-theme="dark"] .hobby-icon {
  color: var(--accent);
}

.hobby-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hobby-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.hobby-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.hobby-quote {
  position: relative;
  margin-top: 2.2rem;
  padding: 1.9rem clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(251, 191, 36, 0.05));
  overflow: hidden;
}

.hobby-quote::after {
  content: "🏀";
  position: absolute;
  right: 1.2rem;
  bottom: 0.4rem;
  font-size: 3rem;
  opacity: 0.18;
  pointer-events: none;
}

.hobby-quote p {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.7;
}

.hobby-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hobby-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.hobby-strip span {
  padding: 0.45rem 0.95rem;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- 联系我 ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.7rem, 4vw, 2.9rem);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: radial-gradient(120% 150% at 0% 0%, var(--accent-soft), transparent 62%), var(--surface);
  box-shadow: var(--shadow-lg);
}

.contact-copy h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.contact-desc {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.contact-actions .btn {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-tip {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding: 1.8rem 0 2.2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-meta {
  font-size: 0.78rem;
}

.back-top {
  font-weight: 600;
  color: var(--accent-strong);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.back-top:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

[data-theme="dark"] .back-top {
  color: var(--accent);
}

/* ---------- 提示条 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.8rem;
  z-index: 80;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 滚动进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: min(420px, 100%);
    margin-inline: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-actions {
    max-width: 420px;
  }
}

@media (max-width: 880px) {
  html {
    scroll-padding-top: 84px;
  }

  .menu-btn {
    display: inline-grid;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 62px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .hero-facts {
    gap: 0.6rem;
  }

  .hero-facts dd {
    font-size: 1.1rem;
  }

  .school-card {
    grid-template-columns: auto 1fr;
    padding: 1.3rem 1.35rem;
    gap: 0.9rem;
  }

  .school-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .info-row {
    flex-wrap: wrap;
    gap: 0.1rem 1rem;
  }

  .info-row dd {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .brand-text em {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-card {
    padding: 1.35rem 1.2rem 1.3rem;
  }
}

/* ---------- 打印 ---------- */
@media print {
  .site-header,
  .scroll-progress,
  .hero-bg,
  .hero-actions,
  .ball-btn,
  .contact-actions .btn,
  .back-top,
  .toast,
  .skip-link {
    display: none !important;
  }

  :root,
  [data-theme="dark"] {
    --bg: #fff;
    --bg-alt: #fff;
    --surface: #fff;
    --surface-soft: #fff;
    --text: #111;
    --text-muted: #444;
    --border: #ddd;
    --border-strong: #bbb;
    --shadow-sm: none;
    --shadow-lg: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .hero,
  .section {
    padding: 0.8cm 0;
  }

  .hero-inner,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- 尊重「减少动态效果」设置 ---------- */
@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;
  }
}
