/* ===== 变量与基础 ===== */
:root {
  --bg-deep: #0a0a1e;
  --bg-mid: #141030;
  --bg-soft: #1c1440;
  --accent: #a78bfa;
  --accent-light: #c4b5fd;
  --accent-sky: #67e8f9;
  --gold: #fbbf24;
  --text: #e9e6ff;
  --text-dim: #9a92c8;
  --line: rgba(167, 139, 250, 0.25);
  --card: rgba(255, 255, 255, 0.04);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(80, 40, 160, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 55%, var(--bg-soft) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

/* ===== 飘落花瓣画布 ===== */
#petal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ===== 导航 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6vw;
  background: rgba(10, 10, 30, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}

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

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-sky), var(--accent));
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.8);
  animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.brand-name {
  font-weight: 700;
  letter-spacing: 0.22em;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; gap: 26px; }

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-sky));
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ===== 主视觉 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 6vw 80px;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(167, 139, 250, 0.22), transparent 46%),
    radial-gradient(circle at 82% 70%, rgba(103, 232, 249, 0.10), transparent 40%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.hero-ornament { position: relative; width: 220px; height: 220px; margin: 0 auto 30px; }

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 26s linear infinite;
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.5));
}

.butterflies { position: absolute; inset: 0; }

.btf {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, var(--accent-light), var(--accent-sky));
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 0 10px var(--accent-sky);
  opacity: 0.9;
  animation: flutter 3.4s ease-in-out infinite;
}

.btf-1 { top: 18px; left: 60px; animation-delay: 0s; }
.btf-2 { top: 70px; right: 26px; animation-delay: 0.8s; }
.btf-3 { bottom: 30px; left: 44px; animation-delay: 1.6s; }
.btf-4 { bottom: 64px; right: 60px; animation-delay: 2.4s; }

@keyframes flutter {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-16px) rotate(-14deg); }
}

.hero-eyebrow {
  letter-spacing: 0.5em;
  font-size: 0.82rem;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.hero-title { margin-bottom: 18px; }

.hero-title .cn {
  display: block;
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  background: linear-gradient(120deg, #fff 20%, var(--accent-light) 50%, var(--accent-sky) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 30px rgba(167, 139, 250, 0.45));
}

.hero-title .en {
  display: block;
  margin-top: 6px;
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: 0.7em;
  text-indent: 0.7em;
  color: var(--text-dim);
}

.hero-sub {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--text);
  margin-bottom: 24px;
}

.hero-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }

.hero-tags span {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--accent-light);
  background: rgba(167, 139, 250, 0.08);
  backdrop-filter: blur(6px);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-sky));
  color: #0a0a1e;
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.4);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(103, 232, 249, 0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); transform: translateY(-3px); }

.btn-lg { padding: 15px 48px; font-size: 1.1rem; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--line);
  border-radius: 999px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--accent-light);
  animation: bounce 1.6s infinite;
}

@keyframes bounce { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.4; } }

/* ===== 通用区块 ===== */
.section {
  position: relative;
  z-index: 2;
  padding: 96px 6vw;
  max-width: 1080px;
  margin: 0 auto;
}

.section-alt { background: rgba(167, 139, 250, 0.05); }

.section-head { text-align: center; margin-bottom: 52px; }

.section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  background: linear-gradient(90deg, var(--accent-light), var(--accent-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub { color: var(--text-dim); letter-spacing: 0.5em; margin-top: 6px; font-size: 0.85rem; }

/* ===== 档案 ===== */
.profile-card {
  display: flex;
  gap: 48px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 44px;
}

.profile-art { flex: 0 0 220px; }

.silhouette {
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 40%, rgba(167, 139, 250, 0.35), transparent 60%),
    linear-gradient(160deg, rgba(196, 181, 253, 0.1), rgba(125, 211, 252, 0.05));
  border: 1px solid var(--line);
  padding: 24px;
}

.silhouette svg { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(167, 139, 250, 0.5)); }

.profile-info { flex: 1; display: grid; gap: 0; }

.info-row {
  display: flex;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(167, 139, 250, 0.15);
}

.info-row dt { flex: 0 0 96px; color: var(--text-dim); font-size: 0.92rem; }
.info-row dd { color: var(--text); font-weight: 600; }

.about h3 { font-size: 1.25rem; margin-bottom: 14px; color: var(--accent-light); }

.about p { color: var(--text-dim); margin-bottom: 14px; }

/* ===== 语录 ===== */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.quote-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 16px;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.5;
}

.quote-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.quote-card p { font-size: 1.02rem; color: var(--text); margin-bottom: 12px; }
.quote-card cite { font-style: normal; font-size: 0.85rem; color: var(--text-dim); }

/* ===== 轨迹 ===== */
.timeline { list-style: none; position: relative; max-width: 640px; margin: 0 auto; }

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-sky));
  opacity: 0.5;
}

.t-item { position: relative; padding: 0 0 34px 44px; }

.t-item:last-child { padding-bottom: 0; }

.t-dot {
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-mid);
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.8);
}

.t-item h3 { color: var(--accent-light); font-size: 1.05rem; margin-bottom: 6px; }
.t-item p { color: var(--text-dim); }

/* ===== 应援 ===== */
.cheer-panel {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.counter-box { margin-bottom: 26px; }

.counter-label { color: var(--text-dim); letter-spacing: 0.3em; font-size: 0.85rem; }

.counter {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--gold), var(--accent-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.cheer-tip { margin-top: 18px; color: var(--text-dim); font-size: 0.85rem; }

/* ===== 应援墙 ===== */
.wish-wall h3 { text-align: center; margin-bottom: 22px; color: var(--accent-light); }

.wish-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 30px;
}

.wish-form input,
.wish-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 30, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wish-form input:focus,
.wish-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.wish-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.wish-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  animation: fadeUp 0.5s ease both;
}

.wish-item .wish-name { color: var(--accent-sky); font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.wish-item .wish-text { color: var(--text); font-size: 0.95rem; word-break: break-word; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.empty-hint { grid-column: 1 / -1; text-align: center; color: var(--text-dim); padding: 30px 0; }

/* ===== 页脚 ===== */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 6vw;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer p { margin: 4px 0; }

/* ===== 打call粒子 ===== */
.cheer-particle {
  position: fixed;
  z-index: 60;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  pointer-events: none;
  animation: rise 1.2s ease-out forwards;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.9);
}

@keyframes rise {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(-120px) scale(1.15); opacity: 0; }
}

/* ===== 响应式 ===== */
@media (max-width: 760px) {
  .navbar { padding: 12px 5vw; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.8rem; }
  .profile-card { flex-direction: column; text-align: center; padding: 26px; }
  .profile-art { flex-basis: auto; width: 180px; }
  .info-row { justify-content: center; }
  .info-row dt { flex-basis: 76px; text-align: right; padding-right: 12px; }
  .section { padding: 72px 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
