/* ===== FDE 个人主页 · 深色科技风 ===== */
:root {
  --bg: #0a0e17;
  --bg-2: #0d1220;
  --panel: rgba(22, 27, 34, 0.7);
  --panel-solid: #161b22;
  --border: #2a3038;
  --tx: #e6edf3;
  --tx-dim: #9aa5b1;
  --tx-mute: #6e7781;
  --ac: #4a9eff;
  --ac-2: #a371f7;
  --ac-3: #2ea86f;
  --grad: linear-gradient(135deg, #4a9eff, #a371f7);
  --mono: "JetBrains Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }

/* ===== 背景粒子 ===== */
#bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(74,158,255,.12), transparent 60%),
    radial-gradient(600px 400px at 80% 30%, rgba(163,113,247,.10), transparent 60%);
}

/* ===== 导航 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,14,23,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px; color: #fff;
}
.brand-tx { font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.brand-sub { color: var(--tx-mute); font-weight: 400; margin-left: 6px; font-size: 12px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--tx-dim); cursor: pointer;
  padding: 4px 2px; position: relative; transition: color .2s;
}
.nav-links a:hover { color: var(--tx); }
.nav-links a.on { color: var(--ac); }
.nav-links a.on::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--grad); border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--tx); border-radius: 6px; width: 34px; height: 34px; font-size: 16px; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; padding: 8px 24px 16px; border-top: 1px solid var(--border); }
.mobile-menu a { padding: 10px 0; color: var(--tx-dim); border-bottom: 1px solid var(--border); cursor: pointer; }
.mobile-menu a.on { color: var(--ac); }

/* ===== Hero ===== */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-inner { max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--panel);
  padding: 6px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--tx-dim);
  letter-spacing: .5px; margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ac-3); box-shadow: 0 0 10px var(--ac-3);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 20px; letter-spacing: -.5px;
}
.hero-title .typed { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-title .cursor { color: var(--ac); animation: blink 1s infinite; font-weight: 400; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.hero-sub {
  color: var(--tx-dim); font-size: 18px; line-height: 1.8;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat-num { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--tx); }
.stat-label { font-size: 13px; color: var(--tx-mute); margin-top: 4px; letter-spacing: 1px; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; color: var(--tx-mute); letter-spacing: 3px;
  animation: float 2s infinite;
}
@keyframes float { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== Section 通用 ===== */
.section { position: relative; z-index: 1; padding: 100px 24px; }
.section:nth-child(even) { background: var(--bg-2); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  font-family: var(--mono); font-size: 12px; color: var(--ac);
  letter-spacing: 3px; text-transform: uppercase;
}
.section-head h2 { font-size: 38px; font-weight: 700; margin: 12px 0 8px; }
.section-head h2 i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-desc { color: var(--tx-mute); font-size: 15px; }

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 48px;
}
.about-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 24px;
  transition: transform .25s, border-color .25s;
}
.about-card:hover { transform: translateY(-6px); border-color: var(--ac); }
.about-icon { font-size: 30px; margin-bottom: 14px; }
.about-card h3 { font-size: 17px; margin-bottom: 8px; }
.about-card p { color: var(--tx-dim); font-size: 14px; }
.fde-quote {
  text-align: center; max-width: 640px; margin: 0 auto;
  padding: 36px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--panel);
}
.fde-quote blockquote {
  font-size: 20px; font-style: italic; color: var(--tx);
  margin-bottom: 12px; line-height: 1.6;
}
.quote-src { font-family: var(--mono); font-size: 12px; color: var(--tx-mute); }

/* ===== Skills ===== */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.skill-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px 24px;
  transition: transform .25s, border-color .25s;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--ac); }
.skill-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.skill-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ac-soft); display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex: 0 0 auto;
}
.skill-group-title {
  font-size: 16px; color: var(--tx); font-weight: 600;
  letter-spacing: .5px;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 14px;
  font-family: var(--mono); font-size: 12.5px; color: var(--tx-dim);
  transition: all .2s; cursor: default;
}
.skill-chip:hover { border-color: var(--ac); color: var(--ac); transform: translateY(-2px); }

/* ===== Works ===== */
.works-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.work-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.work-visual {
  position: relative; height: 200px; overflow: hidden;
  background: var(--bg-2);
}
.work-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-visual img { transform: scale(1.06); }
.work-overlay {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 8px;
}
.work-status {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  font-weight: 600; letter-spacing: .5px;
  background: rgba(46,168,111,.2); color: #4cc38a;
  border: 1px solid rgba(46,168,111,.4);
}
.work-status.online { background: rgba(46,168,111,.2); color: #4cc38a; border-color: rgba(46,168,111,.4); }
.work-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.work-tag {
  font-size: 11px; padding: 2px 10px; border-radius: 999px;
  background: rgba(74,158,255,.12); color: var(--ac);
  border: 1px solid rgba(74,158,255,.25);
}
.work-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.work-desc { color: var(--tx-dim); font-size: 14px; margin-bottom: 16px; }
.work-block { margin-bottom: 14px; }
.work-block h4 { font-size: 13px; color: var(--tx-dim); margin-bottom: 6px; font-weight: 600; }
.work-block ul li {
  font-size: 13px; color: var(--tx);
  padding-left: 18px; position: relative; margin-bottom: 4px;
}
.work-block ul li::before {
  content: "▸"; position: absolute; left: 0; color: var(--ac-2);
}
.work-body .btn { margin-top: auto; align-self: flex-start; }

/* ===== Button ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .2s;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 20px rgba(74,158,255,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,158,255,.45); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--tx); }
.btn-ghost:hover { border-color: var(--ac); color: var(--ac); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ===== Contact ===== */
.contact-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
}
.contact-line { font-size: 16px; color: var(--tx); margin-bottom: 12px; }
.contact-email {
  font-family: var(--mono); font-size: 15px; color: var(--ac);
  margin-bottom: 8px; letter-spacing: .5px;
}
.contact-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
  position: relative; z-index: 1;
  text-align: center; padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--tx-mute); font-size: 13px;
}
.footer-icp { margin-top: 10px; font-size: 12px; }
.footer-icp a {
  color: var(--tx-mute); text-decoration: none;
  transition: color .2s;
}
.footer-icp a:hover { color: var(--ac); }

/* ===== 滚动入场动画 ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.section-head.reveal { transition-delay: .05s; }
.about-card.reveal:nth-child(2) { transition-delay: .1s; }
.about-card.reveal:nth-child(3) { transition-delay: .2s; }
.skill-card.reveal:nth-child(2) { transition-delay: .08s; }
.skill-card.reveal:nth-child(3) { transition-delay: .16s; }
.skill-card.reveal:nth-child(4) { transition-delay: .24s; }
.skill-card.reveal:nth-child(5) { transition-delay: .32s; }
.work-card.reveal:nth-child(2) { transition-delay: .1s; }
.work-card.reveal:nth-child(3) { transition-delay: .2s; }
.work-card.reveal:nth-child(4) { transition-delay: .3s; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: flex; }
  .hero { padding: 110px 20px 60px; min-height: 100dvh; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 28px; }
  .section { padding: 64px 16px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 28px; }
  .skills-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .work-visual { height: 180px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 20px; }
  .fde-quote { padding: 24px 18px; }
  .fde-quote blockquote { font-size: 17px; }
  .btn { padding: 11px 22px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 27px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; }
  .hero-stats { gap: 18px; }
  .stat-num { font-size: 24px; }
  .nav-inner { padding: 10px 16px; }
  .brand-tx { font-size: 14px; }
  .skill-chip { font-size: 11.5px; padding: 5px 11px; }
}