/* ============================================================
   YYRMM 的软件库 — 赛博朋克 / 未来感主题
   深色背景 · 霓虹渐变 · 玻璃态 · 轻量动效
   说明：主要动画用 transform / opacity，重排少；粒子数量受控。
   ============================================================ */

:root {
  /* 底色 */
  --bg: #05060d;
  --bg-2: #0b0d1c;

  /* 玻璃表面 */
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);

  /* 文字 */
  --text: #e9edf6;
  --text-muted: #9aa3bd;

  /* 霓虹色板 */
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --accent: #7c3aed;

  --grad: linear-gradient(135deg, #7c3aed 0%, #22d3ee 50%, #f472b6 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.55), rgba(34,211,238,.45), rgba(244,114,182,.5));

  --radius: 16px;
  --max-width: 1080px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed, #22d3ee);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

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

/* 内容置于背景层之上 */
.page, .hero, .profile, main, .site-footer { position: relative; z-index: 1; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   背景层：极光 · 网格 · 粒子画布 · 暗角
   ============================================================ */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(120% 90% at 10% 110%, rgba(124, 58, 237, 0.16), transparent 55%),
    linear-gradient(180deg, #06070f 0%, #070815 55%, #05060d 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  will-change: transform;
}
.aurora-1 {
  width: 62vmax; height: 62vmax;
  left: -18vmax; top: -24vmax;
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.55), transparent 64%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora-2 {
  width: 54vmax; height: 54vmax;
  right: -20vmax; top: -8vmax;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.4), transparent 62%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora-3 {
  width: 50vmax; height: 50vmax;
  left: 24vmax; bottom: -26vmax;
  background: radial-gradient(circle at center, rgba(244, 114, 182, 0.34), transparent 62%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1.08); } to { transform: translate3d(-8vmax, 6vmax, 0) scale(1); } }
@keyframes drift3 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-7vmax, -8vmax, 0) scale(1.14); } }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.55) 100%);
}

/* 鼠标跟随光晕 */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 460px; height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.07) 42%, transparent 66%);
  transform: translate3d(-100vw, -100vh, 0);
}

/* ============================================================
   顶部导航栏
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(5, 6, 13, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 56px;
}

.topbar .brand { font-size: 16px; }

.top-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.top-link {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s ease, background 0.25s ease;
}
.top-link:hover { color: var(--text); background: var(--surface-strong); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid transparent; /* 预占边框，hover 不产生位移 */
  color: var(--text-muted);
  transition: color 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.social-link:hover {
  color: #fff;
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
  transform: translateY(-1px);
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.lang-toggle:hover {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.4));
}

/* 内容区 */
.page { min-height: 100vh; }

/* ============================================================
   标题区
   ============================================================ */
.hero {
  padding: 72px 0 36px;
  text-align: center;
}

.hero-title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.12;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.35));
}

.hero-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-muted);
}

/* ============================================================
   个人介绍
   ============================================================ */
.profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto 12px;
  max-width: 720px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
}

.profile-bio {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 15px;
  white-space: pre-line;
}

/* ============================================================
   内容区
   ============================================================ */
.section { padding: 36px 0 72px; }

.section-title {
  display: inline-block;
  position: relative;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}

.section-desc {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ============================================================
   卡片网格
   ============================================================ */
.grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  --card-accent: #8b5cf6;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, scale 0.18s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 20px 46px rgba(0, 0, 0, 0.5),
    0 0 34px color-mix(in srgb, var(--card-accent) 32%, transparent);
}

/* 缩略图 */
.card-thumb {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  overflow: hidden;
  background:
    radial-gradient(130% 170% at 50% 0%, color-mix(in srgb, var(--card-accent) 30%, transparent), transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--card-accent) 20%, transparent), rgba(255, 255, 255, 0.02));
}
.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.card-icon {
  display: inline-block;
  line-height: 1;
  filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--card-accent) 60%, transparent));
  animation: floaty 5.5s ease-in-out infinite;
  transition: scale 0.35s var(--ease);
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.card:hover .card-icon { scale: 1.1; }

/* 点击涟漪 + 按压反馈 */
.card.pressed { scale: 0.985; }
.card-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, color-mix(in srgb, var(--card-accent) 45%, transparent) 0%, transparent 70%);
  border: 1px solid color-mix(in srgb, var(--card-accent) 60%, transparent);
  transform: scale(0);
  opacity: 0.9;
  animation: rip 0.65s ease-out forwards;
}
@keyframes rip {
  to { transform: scale(1); opacity: 0; }
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title { font-size: 17px; font-weight: 700; }

.card-desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

.card-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-accent) 15%, transparent);
  color: color-mix(in srgb, var(--card-accent) 82%, #fff);
  border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
}

.card-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

/* 网盘按钮 + 密码小字 */
.netdisk-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.netdisk-pwd { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.5), 0 0 18px rgba(34, 211, 238, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

/* 功能展示按钮 */
.btn-show {
  background: transparent;
  color: var(--cyan);
  border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent);
}
.btn-show:hover {
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  color: #fff;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
}

/* 开场动画重播按钮 */
.intro-replay { margin-top: 20px; }

/* ============================================================
   空状态 / 页脚
   ============================================================ */
.empty-state {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 13, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 22px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   滚动进场（reveal）
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ============================================================
   开场动画 & 功能展示弹窗（showcase.js）
   ============================================================ */

body.modal-open { overflow: hidden; }

/* ---------- 开场动画 ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(110% 90% at 80% 0%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(110% 90% at 10% 110%, rgba(244, 114, 182, 0.16), transparent 55%),
    linear-gradient(135deg, #0b0718 0%, #141030 45%, #1c0f2e 100%);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.intro-overlay.show { opacity: 1; visibility: visible; }

/* 开场背景网格纹理 */
.intro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 78%);
  pointer-events: none;
}

.intro-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
}
.intro-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
  transition: width 0.1s linear;
}

.intro-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 72px;
}
.intro-scenes { position: relative; width: 100%; max-width: 880px; min-height: 430px; }

.intro-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.intro-scene.active { opacity: 1; visibility: visible; }

.intro-head {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease 0.05s, transform 0.55s ease 0.05s;
}
.intro-scene.active .intro-head { opacity: 1; transform: none; }

.intro-icon {
  position: relative;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  border-radius: 14px;
  border: 1px solid transparent;
  flex-shrink: 0;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.14);
}
.intro-icon::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0.5;
  animation: ring-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes ring-pulse {
  0% { transform: scale(0.92); opacity: 0.6; }
  70%, 100% { transform: scale(1.2); opacity: 0; }
}
.intro-name {
  font-size: 26px; font-weight: 800; letter-spacing: 0.5px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}
.intro-tagline { margin-top: 3px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }

.intro-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.intro-shot-wrap {
  position: relative;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.intro-scene.active .intro-shot-wrap { opacity: 1; transform: none; }
/* 截图流光扫描 */
.intro-shot-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.16) 46%, rgba(34, 211, 238, 0.22) 50%, rgba(255, 255, 255, 0.16) 54%, transparent 68%);
  background-size: 240% 100%;
  background-position: 120% 0;
  animation: shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.intro-shot {
  width: clamp(280px, 56vw, 440px);
  border-radius: 12px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(139, 92, 246, 0.35);
  display: block;
}

.intro-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: min(360px, 88vw);
}
.intro-features li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.intro-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.9);
}
.intro-scene.active .intro-features li:nth-child(1) { transition-delay: 0.35s; }
.intro-scene.active .intro-features li:nth-child(2) { transition-delay: 0.55s; }
.intro-scene.active .intro-features li:nth-child(3) { transition-delay: 0.75s; }
.intro-scene.active .intro-features li:nth-child(4) { transition-delay: 0.95s; }
.intro-scene.active .intro-features li { opacity: 1; transform: none; }

/* 结尾欢迎场景 */
.intro-scene-end { gap: 14px; }
.intro-end-title {
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 900;
  letter-spacing: 4px;
  background: var(--grad);
  background-size: 220% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.5));
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: grad-shift 5s linear infinite;
}
@keyframes grad-shift {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}
.intro-end-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  transition: opacity 0.6s ease 0.25s;
}
.intro-end-sub::after {
  content: "_";
  color: var(--cyan);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.intro-scene-end.active .intro-end-title,
.intro-scene-end.active .intro-end-sub { opacity: 1; transform: none; }

.intro-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 18px;
  z-index: 2;
}
.intro-dots { display: flex; gap: 7px; }
.intro-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s ease, background 0.3s ease;
}
.intro-dot.active { width: 22px; background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.8); }

.intro-skip {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.intro-skip:hover { background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 14px rgba(255, 255, 255, 0.25); }

/* ---------- 功能展示弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.open { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 13, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  background: rgba(15, 17, 32, 0.88);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 28px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(139, 92, 246, 0.2);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s ease;
}
.modal.open .modal-card { transform: none; }

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.modal-close:hover { color: var(--pink); border-color: var(--pink); box-shadow: 0 0 14px rgba(244, 114, 182, 0.5); }

.modal-content { display: flex; flex-direction: column; }
.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 34px;
}
.modal-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}
.modal-name { font-size: 21px; font-weight: 800; }
.modal-tagline { margin-top: 3px; font-size: 14px; color: var(--text-muted); }

.modal-accent {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  margin-bottom: 16px;
}

.modal-desc-title {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan);
}

.modal-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.modal-shot-wrap {
  position: relative;
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
}
.modal-shot {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  background: #0b0d1c;
}
.modal-shot-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.14) 46%, rgba(34, 211, 238, 0.2) 50%, rgba(255, 255, 255, 0.14) 54%, transparent 68%);
  background-size: 240% 100%;
  animation: shimmer 3.2s ease-in-out infinite;
  pointer-events: none;
}

.modal-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-features {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.modal-feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  animation: mf-in 0.45s ease forwards;
}
.mf-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
@keyframes mf-in {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   响应式
   ============================================================ */
.hero, .profile, main { scroll-margin-top: 72px; }

@media (max-width: 640px) {
  .topbar .brand { display: none; }
  .topbar-inner { height: auto; min-height: 56px; flex-wrap: wrap; padding: 4px 0; row-gap: 2px; }
  .top-link { font-size: 13px; padding: 5px 8px; }
  .social-link { width: 30px; height: 30px; }
  .lang-toggle { font-size: 12px; padding: 5px 10px; }
  .top-actions { gap: 6px; margin-left: auto; }
  .hero { padding: 52px 0 28px; }
  .profile { flex-direction: column; text-align: center; }
  .section { padding: 28px 0 52px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .intro-stage { padding: 48px 16px 84px; }
  .intro-body { flex-direction: column; gap: 18px; }
  .intro-features { width: 100%; }
  .modal { padding: 10px; }
  .modal-card { padding: 18px 16px 20px; }
}

/* ============================================================
   动效减弱：关闭 / 简化所有动画
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .aurora-1, .aurora-2, .aurora-3, .card-icon,
  .intro-icon::after, .intro-shot-wrap::after, .intro-end-sub::after,
  .modal-shot-wrap::after,
  .card-ripple {
    animation: none !important;
  }

  .intro-overlay, .intro-scene, .modal, .modal-card,
  .intro-head, .intro-shot-wrap, .intro-features li,
  .intro-end-title, .intro-end-sub, .modal-feature,
  .reveal, .btn, .lang-toggle, .card, .card-icon {
    transition: none !important;
    animation: none !important;
  }

  .card.pressed { scale: none; }

  .intro-head, .intro-shot-wrap, .intro-features li,
  .intro-end-title, .intro-end-sub, .modal-feature,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
