/* ============ 主题变量 ============ */
:root {
  --bg: #0b0e17;
  --bg-soft: #121627;
  --text: #e8eaf2;
  --text-dim: #9aa3b8;
  --accent: #f9a86c;
  --accent-2: #ff7fa5;
  --accent-grad: linear-gradient(120deg, #f9a86c, #ff7fa5);
  --glass: rgba(255, 255, 255, .05);
  --glass-border: rgba(255, 255, 255, .1);
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --nav-h: 56px;
}
[data-theme="light"] {
  --bg: #f5f2ee;
  --bg-soft: #ffffff;
  --text: #23262f;
  --text-dim: #6b7180;
  --accent: #e07a3f;
  --accent-2: #e04f7c;
  --glass: rgba(0, 0, 0, .04);
  --glass-border: rgba(0, 0, 0, .09);
  --shadow: 0 12px 32px rgba(30, 30, 60, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background .5s, color .5s;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-2); color: #fff; }

/* ============ 背景星空 ============ */
#starfield { position: fixed; inset: 0; z-index: -2; }
.meteor-field {
  position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(249, 168, 108, .07), transparent 60%),
    radial-gradient(700px 500px at 85% 20%, rgba(255, 127, 165, .07), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(110, 130, 255, .08), transparent 60%);
}
[data-theme="light"] .meteor-field { opacity: .5; }

/* ============ 导航 ============ */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center;
}
.nav {
  display: flex; gap: 4px; padding: 6px 10px;
  border-radius: 14px; box-shadow: var(--shadow);
  animation: nav-drop .7s cubic-bezier(.2, .9, .3, 1.2) both;
}
@keyframes nav-drop { from { transform: translateY(-70px); opacity: 0; } }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px; font-size: 14px;
  color: var(--text-dim); transition: all .25s;
}
.nav-link:hover { color: var(--text); background: var(--glass); }
.nav-link.active { color: var(--text); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); }
.nav-link .i { width: 15px; height: 15px; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
}

/* ============ Hero ============ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
}
.avatar-wrap { position: relative; width: 128px; height: 128px; margin-bottom: 26px; }
.avatar {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(249, 168, 108, .6);
  animation: avatar-float 5s ease-in-out infinite;
}
@keyframes avatar-float { 50% { transform: translateY(-8px); } }
.avatar-ring {
  position: absolute; inset: -10px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), #6e82ff, var(--accent));
  filter: blur(14px); opacity: .45; animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.status-dot {
  position: absolute; right: 8px; bottom: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: #3ddc84; border: 3px solid var(--bg);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }

.hero-title { font-size: clamp(30px, 5.4vw, 52px); font-weight: 700; letter-spacing: 1px; }
.hero-sub { font-size: clamp(22px, 4vw, 38px); color: var(--text-dim); margin-top: 6px; min-height: 1.4em; }
.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#name-glow { display: inline-block; transition: transform .35s cubic-bezier(.2, .9, .3, 1.4); }
#name-glow:hover { transform: scale(1.08); animation: name-hue 3s linear infinite; }
@keyframes name-hue { to { filter: hue-rotate(360deg); } }
.caret { color: var(--accent); animation: blink .8s step-end infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }

.tech-pill {
  margin-top: 22px; padding: 8px 18px; border-radius: 999px;
  font-size: 14px; color: var(--text-dim);
}
.tech-rotator { color: var(--accent); font-weight: 600; display: inline-block; min-width: 76px; text-align: left; transition: all .3s; }

.motto { margin-top: 26px; color: var(--text-dim); font-size: 15px; }
.hero-stats { margin-top: 10px; font-size: 13px; color: var(--text-dim); display: flex; gap: 10px; align-items: center; }
.hero-stats i { font-style: normal; opacity: .5; }

.social-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.social {
  min-width: 88px; padding: 15px 16px 12px; font: inherit; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border-radius: 14px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: all .3s cubic-bezier(.2, .9, .3, 1.4);
}
.social svg { width: 27px; height: 27px; }
.social-label { font-size: 13px; letter-spacing: .3px; }
.social:hover, .social:focus-visible {
  transform: translateY(-4px) scale(1.15); margin-inline: 10px;
  color: var(--accent); box-shadow: 0 8px 24px rgba(249, 168, 108, .25);
}
#ghg stop { animation: gh-cycle 9s linear infinite; }
#ghg .gs2 { animation-delay: -3s; }
#ghg .gs3 { animation-delay: -6s; }
@keyframes gh-cycle {
  0% { stop-color: #f9a86c; } 33% { stop-color: #ff7fa5; }
  66% { stop-color: #6e82ff; } 100% { stop-color: #f9a86c; }
}

.hero-cta {
  margin-top: 40px; display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-radius: 14px; font-size: 14px;
  transition: all .3s; cursor: pointer;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.hero-cta .arrow { transition: transform .3s; color: var(--accent); }
.hero-cta:hover .arrow { transform: translateX(6px); }
.megaphone { display: inline-block; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) scale(1.1); } }

/* ============ 通用 section ============ */
.section { max-width: 980px; margin: 0 auto; padding: 90px 22px 30px; }
.section-title { font-size: 26px; margin-bottom: 26px; }
.hash { color: var(--accent); margin-right: 6px; font-family: monospace; }

/* ============ EMOO 卡片 ============ */
.emoo-card {
  position: relative; border-radius: 20px; overflow: hidden;
  display: flex; gap: 20px; padding: 34px;
}
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.emoo-glow {
  position: absolute; inset: 0;
  background: conic-gradient(from var(--ga),
    rgba(249, 168, 108, .6) 0deg, rgba(255, 127, 165, .5) 90deg, rgba(110, 130, 255, .22) 180deg,
    rgba(255, 127, 165, .5) 270deg, rgba(249, 168, 108, .6) 360deg);
  filter: blur(18px);
  animation: glow-turn 7s linear infinite;
}
@keyframes glow-turn { to { --ga: 360deg; } }
.emoo-card::before {
  content: ""; position: absolute; inset: 1.5px; border-radius: 19px;
  background: var(--bg-soft); z-index: 0;
}
.emoo-body { position: relative; z-index: 1; flex: 1; }
.emoo-badge {
  display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(249, 168, 108, .12); color: var(--accent);
  border: 1px solid rgba(249, 168, 108, .35); margin-bottom: 12px;
}
.emoo-head h3 { font-size: 22px; margin-bottom: 18px; }
.emoo-feats { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; }
.emoo-feats li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }
.emoo-feats b { flex: 0 0 84px; color: var(--text); }
.emoo-side { position: relative; z-index: 1; display: grid; place-items: center; width: 200px; }
.emoo-mascot {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--glass-border);
  animation: mascot-bob 4s ease-in-out infinite;
  box-shadow: 0 10px 40px rgba(255, 127, 165, .2);
}
@keyframes mascot-bob { 50% { transform: translateY(-10px) rotate(3deg); } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: all .3s cubic-bezier(.2, .9, .3, 1.5);
}
.btn-i { width: 17px; height: 17px; }
.btn-primary {
  background: var(--accent-grad); color: #1b1208;
  box-shadow: 0 6px 22px rgba(249, 168, 108, .35);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 32px rgba(255, 127, 165, .45); }
.btn-ghost { border: 1px solid var(--glass-border); color: var(--text-dim); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.emoo-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.about-item { padding: 26px 22px; border-radius: 18px; transition: all .35s; }
.about-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.about-emoji { font-size: 30px; display: block; margin-bottom: 12px; }
.about-item h4 { margin-bottom: 8px; font-size: 16px; }
.about-item p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }

/* ============ Contact ============ */
.contact-card { text-align: center; padding: 46px 22px; border-radius: 20px; }
.contact-card > p { margin-bottom: 18px; color: var(--text-dim); }
.contact-list { display: grid; gap: 10px; max-width: 440px; margin: 0 auto 24px; text-align: left; }
.contact-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--glass-border); border-radius: 12px; background: var(--glass);
}
.c-name { flex: 0 0 72px; font-size: 16px; color: var(--text-dim); }
.c-val { flex: 1; font-size: 16px; word-break: break-all; }
.c-copy {
  all: unset; cursor: pointer; font-size: 14px; padding: 4px 12px; border-radius: 8px;
  color: var(--accent); border: 1px solid rgba(249, 168, 108, .35); transition: all .25s;
}
.c-copy:hover { background: rgba(249, 168, 108, .12); transform: scale(1.05); }

/* ============ 复制提示 Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  padding: 10px 20px; border-radius: 12px; font-size: 13.5px; z-index: 99;
  background: var(--bg-soft); border: 1px solid var(--glass-border); color: var(--text);
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Footer ============ */
.site-footer {
  margin-top: 100px; padding: 34px 6vw;
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-weight: 700; }
.footer-quote { font-style: italic; color: var(--text-dim); font-size: 14px; }
.footer-copy { font-size: 12px; color: var(--text-dim); opacity: .8; }
.theme-switch {
  display: flex; border-radius: 10px; padding: 3px;
  position: absolute; right: 4px; top: 0;
  box-shadow: var(--shadow);
  animation: nav-drop .7s .1s cubic-bezier(.2, .9, .3, 1.2) both;
}
.theme-switch button {
  all: unset; cursor: pointer; font-size: 12.5px; padding: 6px 12px;
  border-radius: 8px; color: var(--text-dim); transition: all .25s;
}
.theme-switch button.on { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-border); }

/* ============ 滚动显现 ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero .reveal:nth-child(3) { transition-delay: .2s; }
.hero .reveal:nth-child(4) { transition-delay: .3s; }
.hero .reveal:nth-child(5) { transition-delay: .38s; }
.hero .reveal:nth-child(6) { transition-delay: .46s; }
.hero .reveal:nth-child(7) { transition-delay: .54s; }
.hero .reveal:nth-child(8) { transition-delay: .62s; }

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

/* ============ 响应式 ============ */
@media (max-width: 760px) {
  .emoo-card { flex-direction: column-reverse; padding: 24px; }
  .emoo-side { width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .site-footer { justify-content: center; text-align: center; }
  .site-header { flex-direction: column; align-items: center; gap: 8px; }
  .theme-switch { position: static; align-self: flex-end; margin-right: 4px; }
}
