/* ==========================================================================
   方子昂 · 个人网站样式
   纯手写 CSS，无框架、无外部字体依赖
   ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg: #080b16;
  --bg-soft: #0c1122;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e9edfa;
  --muted: #98a2bf;
  --cyan: #3ae5ff;
  --violet: #8b5cf6;
  --pink: #ff5db1;
  --grad: linear-gradient(120deg, #3ae5ff 0%, #8b5cf6 55%, #ff5db1 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(3, 7, 18, 0.55);
  --container: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 12% -8%, rgba(139, 92, 246, 0.22), transparent 65%),
    radial-gradient(760px 520px at 92% 6%, rgba(58, 229, 255, 0.16), transparent 62%),
    radial-gradient(700px 700px at 50% 108%, rgba(255, 93, 177, 0.12), transparent 65%);
  background-attachment: fixed;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC",
    "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(139, 92, 246, 0.5);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--cyan);
  color: #04121a;
  font-weight: 700;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

/* ---------- 阅读进度条 ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(58, 229, 255, 0.7);
  transition: width 0.1s linear;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 11, 22, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(3, 7, 18, 0.45);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad);
  color: #05070f;
  font-weight: 800;
  font-family: "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}

.brand-text {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  width: 22px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--grad);
  color: #05070f;
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(58, 229, 255, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 229, 255, 0.55);
  background: rgba(58, 229, 255, 0.08);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: -1;
  pointer-events: none;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-glow::before {
  width: 46vw;
  height: 46vw;
  top: 4%;
  left: 6%;
  background: rgba(139, 92, 246, 0.32);
  animation: float-glow 16s ease-in-out infinite;
}

.hero-glow::after {
  width: 38vw;
  height: 38vw;
  right: 4%;
  bottom: 8%;
  background: rgba(58, 229, 255, 0.22);
  animation: float-glow 20s ease-in-out infinite reverse;
}

@keyframes float-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, -6%, 0) scale(1.12); }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(58, 229, 255, 0.35);
  border-radius: 999px;
  background: rgba(58, 229, 255, 0.08);
  color: var(--cyan);
  font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
}

.hero-title {
  margin: 22px 0 12px;
  font-size: clamp(2.6rem, 7.4vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-roles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 2em;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  font-weight: 500;
}

.typewriter {
  color: var(--text);
  font-weight: 600;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.06rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 54px;
}

.stat {
  padding: 18px 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.stat:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 229, 255, 0.4);
}

.stat dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat dd {
  margin-top: 6px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
}

.stat dd span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 通用区块 ---------- */
.section {
  position: relative;
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 55%, rgba(255, 255, 255, 0.022));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-tag {
  color: var(--cyan);
  font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  font-weight: 800;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
}

.section-subtitle {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.45);
  background: var(--card-strong);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.16rem;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 26px;
  margin-top: 46px;
  align-items: start;
}

.profile-card {
  text-align: center;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 180px;
  background: var(--grad);
  opacity: 0.16;
  filter: blur(40px);
  pointer-events: none;
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 4px auto 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(58, 229, 255, 0.22), rgba(139, 92, 246, 0.35));
  border: 1px solid rgba(58, 229, 255, 0.4);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px rgba(58, 229, 255, 0.06), 0 16px 40px rgba(139, 92, 246, 0.35);
}

.profile-name {
  font-size: 1.45rem;
}

.profile-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.info-list {
  margin-top: 22px;
  border-top: 1px solid var(--card-border);
  text-align: left;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.84rem;
}

.info-list strong {
  font-weight: 600;
  text-align: right;
}

.about-text {
  padding: 8px 4px;
}

.about-text h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 700;
}

.about-text p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.95;
}

.about-text p:first-of-type {
  margin-top: 20px;
  color: #cfd6ec;
}

/* ---------- 关键词标签 ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chip-row--center {
  justify-content: center;
  margin-top: 40px;
}

.chip {
  padding: 6px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cfd6ec;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  transition: border-color 0.28s var(--ease), color 0.28s var(--ease),
    background 0.28s var(--ease);
}

.chip:hover {
  border-color: rgba(58, 229, 255, 0.5);
  background: rgba(58, 229, 255, 0.1);
  color: #fff;
}

/* ---------- 游戏爱好 ---------- */
.game-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(58, 229, 255, 0.16), rgba(139, 92, 246, 0.24));
  border: 1px solid rgba(139, 92, 246, 0.28);
  font-size: 1.55rem;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.game-card:hover .game-icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.05);
}

.game-tag {
  margin-top: 16px;
  color: var(--cyan);
  font-family: "Consolas", "SFMono-Regular", ui-monospace, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote {
  margin: 48px 0 0;
  padding: 28px 30px;
  border-left: 3px solid transparent;
  border-image: var(--grad) 1;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.12), transparent 70%);
}

.quote p {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.8;
}

.quote footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

/* ---------- 校园生活时间线 ---------- */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 9px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(58, 229, 255, 0.7), rgba(139, 92, 246, 0.5), rgba(255, 93, 177, 0.25));
}

.timeline-item {
  position: relative;
  padding: 0 0 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 9px;
  left: -34px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(58, 229, 255, 0.75);
  box-shadow: 0 0 0 5px rgba(58, 229, 255, 0.08);
}

.timeline-item:last-child .timeline-dot {
  border-color: rgba(255, 93, 177, 0.8);
  box-shadow: 0 0 0 5px rgba(255, 93, 177, 0.1);
}

.timeline-body {
  padding: 20px 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease),
    background 0.32s var(--ease);
}

.timeline-body:hover {
  transform: translateX(4px);
  border-color: rgba(58, 229, 255, 0.4);
  background: var(--card-strong);
}

.timeline-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.timeline-body p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 技能标签 ---------- */
.skill-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.06rem;
}

.skill-card h3 span {
  font-size: 1.2rem;
  line-height: 1;
}

/* ---------- 联系我 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.contact-card {
  display: block;
  text-align: center;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(58, 229, 255, 0.1);
  border: 1px solid rgba(58, 229, 255, 0.25);
  font-size: 1.4rem;
}

.contact-card h3 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.contact-card p {
  margin-top: 8px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  word-break: break-all;
}

.contact-hint {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

a.contact-card:hover .contact-hint {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(6, 9, 18, 0.6);
  padding: 34px 0 42px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
}

.footer-text {
  color: var(--muted);
  font-size: 0.84rem;
}

.to-top {
  padding: 8px 18px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.to-top:hover {
  color: var(--text);
  border-color: rgba(58, 229, 255, 0.5);
  transform: translateY(-2px);
}

/* ---------- 滚动渐显 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-card {
    max-width: 420px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 22px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 11, 22, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
      visibility 0.28s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero-stats {
    margin-top: 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats .stat:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 18px;
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stats .stat:last-child {
    grid-column: auto;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .card {
    padding: 22px;
  }

  .timeline {
    padding-left: 26px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline-dot {
    left: -26px;
    width: 16px;
    height: 16px;
    top: 11px;
  }

  .timeline-body {
    padding: 18px;
  }

  .quote {
    padding: 22px;
  }
}

/* ---------- 尊重「减少动态效果」设置 ---------- */
@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
