/* ============================================================
   OnlyIvan · V1.2 备案简化版
   深空黑 #05060f · 蓝紫霓虹 #5b3df5 / #2e7bff / #b44df0
   ============================================================ */
:root {
  --bg: #05060f;
  --bg-2: #0a0d1e;
  --bg-card: rgba(16, 18, 40, 0.62);
  --line: rgba(120, 110, 255, 0.16);
  --text: #d6d9f2;
  --text-dim: #8b90b5;
  --neon-blue: #2e7bff;
  --neon-violet: #5b3df5;
  --neon-purple: #b44df0;
  --glow-blue: rgba(46, 123, 255, 0.45);
  --glow-violet: rgba(91, 61, 245, 0.45);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-en: "Avenir Next", "Segoe UI", var(--font);
  --nav-h: 64px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(91, 61, 245, 0.55); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #07081a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3b2bb0, #5b3df5); border-radius: 6px; border: 2px solid #07081a; }
::-webkit-scrollbar-thumb:hover { background: #7a5cff; }
a { color: #9db8ff; text-decoration: none; }
a:hover { color: #c4d4ff; }
img, svg { max-width: 100%; display: block; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(5, 6, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(5, 6, 15, 0.85); border-bottom-color: var(--line); }
.nav-logo {
  font-family: var(--font-en);
  font-size: 20px; font-weight: 700; letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 12px var(--glow-violet), 0 0 32px var(--glow-blue);
}
.nav-logo em { font-style: normal; color: #a08cff; }
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--text-dim); font-size: 14.5px; letter-spacing: .5px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(91, 61, 245, 0.14); }
.nav-links a.active { color: #c9b8ff; text-shadow: 0 0 10px var(--glow-violet); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 38px; cursor: pointer;
  color: var(--text); font-size: 18px; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../img/hero-night.webp") center / cover no-repeat;
}
#rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .4; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(5,6,15,.25) 20%, rgba(5, 6, 15, 0.72) 100%),
    linear-gradient(to bottom, rgba(5,6,15,.55) 0%, rgba(5,6,15,.15) 30%, rgba(5,6,15,.25) 70%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 5; text-align: center;
  padding: 0 20px; margin-top: -8vh;
}
.hero-kicker {
  font-family: var(--font-en); font-size: 13px; letter-spacing: 6px;
  color: var(--text-dim); text-transform: uppercase; margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-en);
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 800; letter-spacing: 2px; line-height: 1.1;
  color: #fff;
  text-shadow:
    0 0 8px rgba(160, 140, 255, .8),
    0 0 28px var(--glow-violet),
    0 0 72px var(--glow-blue);
  animation: neonBreath 5s ease-in-out infinite;
}
.hero-title em { font-style: normal; color: #b9a5ff; }
@keyframes neonBreath {
  0%, 100% { text-shadow: 0 0 8px rgba(160,140,255,.8), 0 0 28px var(--glow-violet), 0 0 72px var(--glow-blue); }
  50% { text-shadow: 0 0 6px rgba(160,140,255,.6), 0 0 18px rgba(91,61,245,.35), 0 0 48px rgba(46,123,255,.3); }
}
.hero-sub {
  margin-top: 20px; font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text); letter-spacing: 3px;
}
.hero-cta {
  display: inline-block; margin-top: 42px; padding: 12px 34px;
  border: 1px solid rgba(160, 140, 255, .5); border-radius: 999px;
  color: #d9d0ff; font-size: 14.5px; letter-spacing: 3px;
  background: rgba(91, 61, 245, 0.12);
  box-shadow: 0 0 18px rgba(91, 61, 245, .25), inset 0 0 12px rgba(91, 61, 245, .12);
  transition: box-shadow .25s, background .25s, transform .25s;
}
.hero-cta:hover {
  background: rgba(91, 61, 245, 0.24); color: #fff;
  box-shadow: 0 0 30px rgba(91, 61, 245, .5), inset 0 0 16px rgba(91, 61, 245, .2);
  transform: translateY(-2px);
}
.hero-scrollhint {
  position: absolute; bottom: 24px; left: clamp(16px, 4vw, 48px);
  z-index: 6; color: var(--text-dim); font-size: 12px; letter-spacing: 3px;
  animation: floatY 2.4s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- 通用 Section ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 20px; }
.section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 18% 0%, rgba(46, 123, 255, 0.06), transparent 70%);
}
.section:nth-of-type(odd)::before {
  background: radial-gradient(ellipse 60% 40% at 82% 0%, rgba(180, 77, 240, 0.06), transparent 70%);
}
.section-inner { max-width: 1060px; margin: 0 auto; position: relative; }
.section:nth-of-type(even) { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.sec-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-en {
  font-family: var(--font-en); font-size: 12px; letter-spacing: 5px;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px;
}
.sec-title { font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: #fff; letter-spacing: 4px; }
.sec-title::after {
  content: ""; display: block; width: 56px; height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  box-shadow: 0 0 12px var(--glow-violet);
  border-radius: 2px;
}
.sec-lead { max-width: 640px; margin: 22px auto 0; color: var(--text-dim); font-size: 14px; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-title, .hero-scrollhint { animation: none; }
}

/* ---------- 关于我 ---------- */
.about-brief {
  max-width: 560px; margin: 0 auto; text-align: center;
  font-size: clamp(16px, 2.2vw, 19px); color: var(--text);
  letter-spacing: 1px; line-height: 2.1;
}

/* ---------- 兴趣爱好（四项） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-four { grid-template-columns: repeat(4, 1fr); }
.cards-simple .card { text-align: center; padding: 34px 20px 30px; }
.card {
  position: relative; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-violet), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(160, 140, 255, .4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(91, 61, 245, .15);
}
.card:hover::before { opacity: 1; }
.card-icon { font-size: 32px; margin-bottom: 14px; filter: drop-shadow(0 0 10px var(--glow-violet)); }
.card h3 { font-size: 17px; color: #fff; letter-spacing: 2px; }
.card .card-en { font-family: var(--font-en); font-size: 11px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; margin-top: 4px; }

/* ---------- 生活点滴 ---------- */
.moments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.moment-card {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-card); overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.moment-card:hover {
  border-color: rgba(160,140,255,.35);
  box-shadow: 0 0 22px rgba(91,61,245,.14);
  transform: translateY(-4px);
}
.moment-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.moment-card figcaption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
}
.moment-card h3 { font-size: 15px; color: #fff; letter-spacing: 2px; font-weight: 600; }
.ai-tag {
  font-size: 11px; color: var(--text-dim); letter-spacing: 1px;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
  background: rgba(91, 61, 245, .07);
}

/* ---------- 联系方式 ---------- */
.contact-wrap { max-width: 460px; margin: 0 auto; text-align: center; }
.contact-card {
  padding: 36px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-card);
}
.contact-card .cc-icon { font-size: 28px; filter: drop-shadow(0 0 10px var(--glow-blue)); }
.contact-card h3 { margin-top: 12px; font-size: 16px; color: #fff; letter-spacing: 2px; }
.contact-card .cc-value {
  margin-top: 10px; font-size: 22px; letter-spacing: 2px; color: #c9cdf0;
  font-family: var(--font-en); user-select: all;
}
.copy-btn {
  margin-top: 18px; padding: 10px 30px; cursor: pointer;
  border: 1px solid rgba(160, 140, 255, .5); border-radius: 999px;
  color: #d9d0ff; font-size: 14px; letter-spacing: 2px;
  background: rgba(91, 61, 245, 0.12);
  transition: background .25s, box-shadow .25s;
}
.copy-btn:hover { background: rgba(91, 61, 245, 0.26); box-shadow: 0 0 20px rgba(91, 61, 245, .4); color: #fff; }
.copy-btn.copied { border-color: rgba(80, 220, 160, .6); color: #8ff0c0; }
.copy-feedback { margin-top: 10px; font-size: 13px; color: #8ff0c0; min-height: 22px; letter-spacing: 1px; }
.contact-note { margin-top: 22px; font-size: 13px; color: var(--text-dim); }

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 110px 20px 36px; text-align: center;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(5,6,15,.55) 45%, rgba(7,8,24,.92) 100%),
    url("../img/city-far.svg") center bottom / cover no-repeat,
    linear-gradient(180deg, var(--bg), #070818);
}
.footer > * { position: relative; }
.footer-logo {
  font-family: var(--font-en); font-size: 18px; font-weight: 700; color: #fff;
  text-shadow: 0 0 14px var(--glow-violet); letter-spacing: 1px;
}
.footer-links { margin-top: 16px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-dim); letter-spacing: 1px; }
.footer-links a:hover { color: #c9b8ff; }
.footer-copy { margin-top: 18px; font-size: 12px; color: #565b7e; letter-spacing: 1px; }
.footer-icp { margin-top: 8px; font-size: 12px; letter-spacing: 1px; }
.footer-icp a { color: #565b7e; }
.footer-icp a:hover { color: #c9b8ff; }

/* ---------- 法律页 ---------- */
.legal-hero {
  padding: calc(var(--nav-h) + 64px) 20px 40px; text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91,61,245,.18), transparent 60%),
    linear-gradient(180deg, #0a0d22, var(--bg));
}
.legal-hero h1 { font-size: clamp(26px, 4vw, 34px); color: #fff; letter-spacing: 4px; }
.legal-hero .sec-en { margin-bottom: 8px; }
.legal-body { max-width: 780px; margin: 0 auto; padding: 20px 20px 90px; }
.legal-body h2 { font-size: 18px; color: #c9b8ff; margin: 36px 0 12px; letter-spacing: 2px; }
.legal-body p, .legal-body li { font-size: 14.5px; color: var(--text); margin-bottom: 10px; }
.legal-body ul { padding-left: 22px; }
.legal-body .updated { font-size: 12.5px; color: var(--text-dim); margin-top: 40px; border-top: 1px solid var(--line); padding-top: 16px; }
.legal-back { display: inline-block; margin-top: 30px; font-size: 14px; letter-spacing: 2px; }

/* ---------- 平板 / 移动端 ---------- */
@media (max-width: 860px) {
  .cards, .cards-four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(5, 6, 15, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .hero-content { margin-top: -12vh; }
  .moments { grid-template-columns: 1fr; }
  .section { padding: 64px 18px; }
}
