/* ============ 基础 ============ */
:root {
  --bg: #0a0a1a;
  --text: #e8ecff;
  --muted: #9aa3c7;
  --cyan: #00e5ff;
  --purple: #a855f7;
  --pink: #ff5c8a;
  --green: #3ddc97;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--cyan); color: #000; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0d0d22; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 10px;
}

/* ============ 背景粒子 ============ */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============ 漂浮光斑 ============ */
.bg-blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite;
}
.blob-1 { width: 480px; height: 480px; background: var(--purple); top: -120px; left: -100px; }
.blob-2 { width: 420px; height: 420px; background: var(--cyan); top: 35%; right: -140px; animation-delay: -5s; }
.blob-3 { width: 380px; height: 380px; background: var(--pink); bottom: -120px; left: 30%; animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ============ 背景网格（质感层） ============ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 0%, transparent 78%);
}

/* ============ 鼠标视差元素 ============ */
[data-parallax] { will-change: transform; }

/* ============ 滚动浮现 ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 通用 ============ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.grad-text {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 6s ease infinite;
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hidden { display: none !important; }

/* ============ 导航栏 ============ */
.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1100px, calc(100% - 40px));
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }

.logo-mark {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
  color: #fff;
  animation: spin 8s linear infinite;
}
@keyframes spin { 0%, 90%, 100% { transform: rotate(0); } 95% { transform: rotate(360deg); } }

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.3s;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}

/* ============ 主区域 ============ */
main { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 130px;
}

/* 滚动指示 */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 4px;
  font-family: 'Orbitron', sans-serif;
  opacity: 0.8;
}
.scroll-dot {
  width: 20px;
  height: 34px;
  border-radius: 12px;
  border: 1.5px solid var(--glass-border);
  position: relative;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { top: 6px; opacity: 1; }
  70% { top: 20px; opacity: 0; }
  100% { top: 6px; opacity: 0; }
}

/* 头像 */
.hero-avatar {
  position: relative;
  width: 140px; height: 140px;
  margin-bottom: 26px;
}
.hero-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
  animation: avatar-bob 4s ease-in-out infinite;
}
@keyframes avatar-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 229, 255, 0.5);
  animation: ring-spin 12s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* 标题 */
.hero-title {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
}
.type-text { color: #fff; text-shadow: 0 0 24px rgba(0, 229, 255, 0.7); }
.name-text {
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 900;
  display: inline-block;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink), var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 5s linear infinite;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.45));
}
.type-line { display: inline-block; margin-top: 8px; font-size: clamp(1.1rem, 3vw, 1.5rem); }
.cursor {
  color: var(--cyan);
  animation: blink 0.8s step-end infinite;
  font-weight: 700;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  color: var(--cyan);
  font-size: 1.1rem;
  letter-spacing: 4px;
  margin-bottom: 14px;
}
.hero-desc {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.9;
  margin-bottom: 30px;
}

/* 按钮 */
.hero-actions { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; justify-content: center; }

.btn {
  padding: 13px 34px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.45);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 38px rgba(168, 85, 247, 0.7);
}
.btn-ghost {
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.3);
  transform: translateY(-3px);
}

/* 统计 */
.hero-stats {
  display: flex;
  gap: 0;
  padding: 20px 10px;
  width: min(680px, 100%);
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  border-right: 1px solid var(--glass-border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.85rem; }

/* ============ 区块 ============ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
}

/* 区块小标签（标题上方的层次引导） */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--cyan);
  margin-bottom: 6px;
}
.section-kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.section-kicker::after {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(270deg, transparent, var(--cyan));
  opacity: 0.45;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 10px;
  font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
  letter-spacing: 2px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ============ 上传区 ============ */
.drop-zone {
  position: relative;
  padding: 60px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.15), rgba(168, 85, 247, 0.15), rgba(255, 92, 138, 0.15));
  opacity: 0;
  transition: opacity 0.3s;
}
.drop-zone:hover::before,
.drop-zone.dragging::before { opacity: 1; }
.drop-zone.dragging {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.35), inset 0 0 60px rgba(0, 229, 255, 0.08);
  transform: scale(1.01);
}

.drop-inner { position: relative; z-index: 1; }

.drop-icon {
  font-size: 3.2rem;
  margin-bottom: 16px;
  animation: bob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.6));
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.drop-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.drop-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.drop-hint { color: var(--muted); font-size: 0.85rem; }

/* 进度条 */
.upload-progress { margin-top: 22px; position: relative; z-index: 1; }
.progress-track {
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  background-size: 200% 100%;
  animation: gradient-flow 2s linear infinite;
  transition: width 0.25s;
}
#progress-text { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

/* 图片画廊（交替比例，形成错落节奏） */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  animation: pop-in 0.45s ease backwards;
}
.gallery-item:nth-child(4n+2) { aspect-ratio: 4 / 3; }
.gallery-item:nth-child(4n+3) { aspect-ratio: 3 / 4; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.8) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.12) rotate(1deg); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.gallery-item:hover .gallery-meta { opacity: 1; transform: translateY(0); }
.gallery-name {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-del {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery-del:hover { background: var(--pink); transform: rotate(90deg); }

/* 空状态 */
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.6; }

/* ============ 文件仓库 ============ */
.file-list { display: flex; flex-direction: column; gap: 14px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  animation: slide-in 0.4s ease backwards;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.file-item:hover {
  transform: translateX(6px);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.file-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.file-icon.pdf { background: linear-gradient(135deg, #ff5c5c, #c0392b); }
.file-icon.zip { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.file-icon.doc { background: linear-gradient(135deg, #4facfe, #00b3ff); }
.file-icon.sheet { background: linear-gradient(135deg, #3ddc97, #16a085); }
.file-icon.pres { background: linear-gradient(135deg, #ff9a56, #e67e22); }
.file-icon.video { background: linear-gradient(135deg, #a855f7, #6c5ce7); }
.file-icon.audio { background: linear-gradient(135deg, #00e5ff, #0984e3); }
.file-icon.code { background: linear-gradient(135deg, #636e72, #2d3436); }
.file-icon.other { background: linear-gradient(135deg, #7f8c8d, #2f3542); }

.file-info { flex: 1; min-width: 0; }
.file-name {
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta { color: var(--muted); font-size: 0.8rem; margin-top: 4px; }

.file-actions { display: flex; gap: 10px; flex-shrink: 0; }
.file-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.file-btn.download:hover {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}
.file-btn.delete:hover { background: var(--pink); border-color: transparent; color: #fff; }

/* ============ 页脚 ============ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.25s;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.3);
  animation: zoom-in 0.3s ease;
}
@keyframes zoom-in { from { transform: scale(0.85); } to { transform: scale(1); } }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}
.lightbox-close:hover { background: var(--pink); transform: rotate(90deg); }

/* ============ Toast 提示 ============ */
.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  padding: 14px 28px;
  border-radius: 40px;
  background: rgba(10, 10, 26, 0.9);
  border: 1px solid var(--cyan);
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.4);
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 快捷卡片错落（桌面端波浪感，制造空间层次） */
@media (min-width: 761px) {
  .quick-card:nth-child(even) { margin-top: 32px; }
}

/* ============ 响应式 ============ */
@media (max-width: 760px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .nav-upload { width: 100%; margin-top: 4px; }
  .hero { padding-top: 150px; padding-bottom: 90px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 220px; }
  .hero-stats { flex-wrap: wrap; }
  .stat { border: none; min-width: 50%; padding: 10px 0; }
  .drop-zone { padding: 40px 16px; }
  .file-item { flex-wrap: wrap; }
  .file-actions { width: 100%; justify-content: flex-end; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .about-profile { flex-direction: column; text-align: center; }
}

/* ==========================================================
   新版块：SPA 视图 / 导航 / 弹窗 / 博客 / 关于我
   ========================================================== */

/* ---------- 导航链接激活态 / 上传按钮 / 汉堡菜单 ---------- */
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.3s;
  font-size: 0.95rem;
  position: relative;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.3);
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}
.nav-upload {
  padding: 8px 20px;
  font-size: 0.9rem;
  margin-left: 8px;
}
.hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1.2rem;
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}
.hamburger:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 视图切换 ---------- */
.view { display: none; }
.view.active { display: block; animation: view-in 0.45s ease; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.view:not(#view-home) {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}

/* 页面头部（标题 + 按钮） */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-head-title { display: flex; flex-direction: column; }
.page-head .section-title { margin-bottom: 0; text-align: left; }

/* ---------- 首页快捷入口 ---------- */
.quick-cards {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.quick-card {
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: var(--text);
  animation: pop-in 0.5s ease backwards;
}
.quick-card:nth-child(2) { animation-delay: 0.08s; }
.quick-card:nth-child(3) { animation-delay: 0.16s; }
.quick-card:nth-child(4) { animation-delay: 0.24s; }
.quick-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg), 0 12px 34px rgba(0, 229, 255, 0.25);
}
.qc-icon { font-size: 2.3rem; margin-bottom: 12px; filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.5)); }
.qc-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.qc-desc { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* ---------- 通用弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(5, 5, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.25s;
}
.modal-box {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  animation: zoom-in 0.3s ease;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h3 { font-size: 1.3rem; font-family: 'Orbitron', 'Noto Sans SC', sans-serif; }
.modal-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--pink); transform: rotate(90deg); }

/* ---------- 博客 ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.blog-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
  transition: all 0.3s;
  animation: pop-in 0.45s ease backwards;
}
.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: var(--shadow-lg), 0 12px 32px rgba(0, 229, 255, 0.18);
}
.blog-card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.5; }
.blog-card-meta {
  color: var(--muted);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.blog-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(168, 85, 247, 0.18));
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.blog-excerpt {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
  flex: 1;
}
.blog-card-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

/* 小按钮 / 危险按钮 */
.btn-sm { padding: 8px 14px; font-size: 0.8rem; border-radius: 30px; }
.danger-text { color: #ff8a8a; }
.danger-text:hover {
  background: var(--pink);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 92, 138, 0.5);
}
.btn-danger {
  background: linear-gradient(135deg, #ff5c5c, #c0392b);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 92, 92, 0.4);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(255, 92, 92, 0.65);
}

/* ---------- 编辑器表单 ---------- */
.editor-form { display: flex; flex-direction: column; gap: 14px; }
.editor-form input,
.editor-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.editor-form input:focus,
.editor-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}
.editor-form textarea { resize: vertical; min-height: 200px; line-height: 1.8; }
.editor-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* ---------- 文章阅读 ---------- */
.article-box { width: min(680px, 100%); }
.article-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.article-body {
  line-height: 2;
  font-size: 0.98rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d6dcf5;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- 关于我 ---------- */
.about-wrap {
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: view-in 0.5s ease;
}
.about-profile {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 36px;
  flex-wrap: wrap;
}
.about-profile img {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.5);
  flex-shrink: 0;
}
.about-bio { flex: 1; min-width: 240px; }
.about-bio h3 { font-size: 1.7rem; margin-bottom: 8px; }
.about-role {
  color: var(--cyan);
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 14px;
  font-family: 'Orbitron', sans-serif;
}
.about-bio p { color: var(--muted); line-height: 1.9; }

.about-card { padding: 28px; transition: all 0.3s; }
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 229, 255, 0.25);
}
.about-card h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 技能条 */
.skill-row { margin-bottom: 18px; }
.skill-row:last-child { margin-bottom: 0; }
.skill-name {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}
.skill-bar {
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 爱好 */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.hobby {
  text-align: center;
  padding: 22px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.hobby:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.2);
}
.hobby-icon { font-size: 1.8rem; margin-bottom: 8px; }
.hobby-name { font-size: 0.9rem; }

/* 联系方式 */
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.contact-item:hover {
  border-color: var(--purple);
  transform: translateX(6px);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}
.contact-icon { font-size: 1.3rem; }
.contact-label { color: var(--muted); font-size: 0.78rem; margin-bottom: 2px; }
.contact-value { font-size: 0.95rem; word-break: break-all; }
