/* ===== 基础 ===== */
:root {
  --bg: #0a0e1a;
  --bg-soft: #10162b;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf8;
  --text-dim: #9aa4c0;
  --primary: #4f7cff;
  --primary-2: #7c5cff;
  --accent: #22d3ee;
  --gradient: linear-gradient(135deg, #4f7cff 0%, #7c5cff 50%, #22d3ee 100%);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --nav-h: 68px;
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(79, 124, 255, 0.35); }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232c4d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #33407a; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  border-bottom-color: var(--card-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.logo span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

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

.nav-link {
  position: relative;
  padding: 8px 14px;
  color: var(--text-dim);
  font-size: 15px;
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-link.active { color: #fff; background: rgba(79, 124, 255, 0.16); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(79, 124, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 80% 30%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(600px 500px at 60% 90%, rgba(34, 211, 238, 0.10), transparent 60%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  z-index: 0;
}

#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeUp 0.9s ease both;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  font-size: 13px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--text-dim);
  letter-spacing: 2px;
  min-height: 1.6em;
}

.hero-subtitle .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  margin: 18px auto 0;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 16px;
}

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

/* ===== 首屏关于我布局 ===== */
.hero-about .hero-avatar {
  width: 108px; height: 108px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: #fff;
  letter-spacing: 2px;
  box-shadow: 0 12px 40px rgba(79, 124, 255, 0.35), 0 0 0 6px rgba(79, 124, 255, 0.12);
  animation: avatarPop 0.9s cubic-bezier(0.2,0.8,0.2,1) 0.1s both;
}
@keyframes avatarPop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-desc { max-width: 720px; line-height: 1.8; }
.hero-meta {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: center;
  margin: 26px auto 0;
  padding: 0;
  max-width: 720px;
  color: var(--text-dim);
  font-size: 14px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
.hero-meta a:hover { color: #fff; }
.hero-meta-icon { font-size: 15px; }
.hero-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.hero-actions .btn span { font-size: 17px; }

@media (max-width: 560px) {
  .hero-about .hero-avatar { width: 88px; height: 88px; font-size: 26px; }
  .hero-meta { gap: 8px 16px; font-size: 13px; }
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center;
  padding: 13px 30px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(79, 124, 255, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(79, 124, 255, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn-outline:hover { border-color: var(--primary); color: #fff; transform: translateY(-2px); }

/* ===== 滚动提示 ===== */
.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDown 1.6s ease infinite;
}

@keyframes scrollDown {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ===== 通用区块 ===== */
.section { padding: 110px 0; position: relative; }

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  background: rgba(34, 211, 238, 0.08);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 1px;
}

.section-sub { color: var(--text-dim); margin-top: 12px; font-size: 16px; }

/* ===== 关于 ===== */
.about { background: var(--bg-soft); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.about-card, .stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-card { padding: 36px; }

.about-avatar {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(79, 124, 255, 0.35);
}

.about-card h3 { font-size: 24px; }
.about-role { color: var(--accent); font-size: 14px; margin: 4px 0 18px; }

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

.about-list { margin-top: 10px; display: grid; gap: 8px; }
.about-list li { font-size: 14px; color: var(--text-dim); }
.about-list b { color: var(--text); font-weight: 600; }
.about-list a:hover { color: var(--primary); }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover { transform: translateY(-4px); border-color: rgba(79, 124, 255, 0.4); }

.stat-num {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

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

.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 124, 255, 0.45);
  background: rgba(79, 124, 255, 0.06);
}

.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 14px; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }

.contact-info { display: grid; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 0.3s;
}

.contact-item:hover { border-color: rgba(79, 124, 255, 0.4); }

.contact-emoji { font-size: 26px; }

.contact-item h4 { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.contact-item a, .contact-item span { font-size: 15px; color: var(--text); }
.contact-item a:hover { color: var(--primary); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.25s, background 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(79, 124, 255, 0.06);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #6b7596; }

.contact-form .btn { justify-self: start; }

.form-tip { font-size: 14px; color: var(--accent); min-height: 1.4em; }
.form-tip.error { color: #f87171; }

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 28px 0;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer p { color: var(--text-dim); font-size: 14px; }
.footer-icp .placeholder { color: #6b7596; }

/* ===== 返回顶部 ===== */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(79, 124, 255, 0.85);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 90;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); }

/* ===== 滚动显现动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }



/* ===== 我的作品 ===== */
.works { background: var(--bg-soft); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

/* ===== 作品卡片（新） ===== */
.works-card {
  position: relative;
  background: linear-gradient(165deg, rgba(30,36,60,0.85), rgba(20,24,44,0.9));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s, box-shadow 0.35s;
}
.works-card::before {
  content:"";
  position:absolute; inset:0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(79,124,255,0.5), rgba(124,92,255,0.25) 40%, rgba(34,211,238,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.works-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px -18px rgba(79,124,255,0.45), 0 0 0 1px rgba(79,124,255,0.3); }
.works-card:hover::before { opacity: 1; }

.works-card-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 200px;
  background: radial-gradient(closest-side, rgba(79,124,255,0.35), transparent);
  filter: blur(20px);
  opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
  z-index: 0;
}
.works-card:hover .works-card-glow { opacity: 1; }

.works-card-bar {
  position: absolute; top:0; left:0; right:0; height: 3px;
  background: var(--gradient);
  z-index: 3;
}

/* 封面 */
.works-cover {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #0b0f1e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: zoom-in;
  z-index: 1;
}
.works-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.4s;
  display: block;
}
.works-card:hover .works-cover img { transform: scale(1.06); }

.works-cover::after {
  content:"";
  position:absolute; inset:0;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.55);
  pointer-events:none;
}
.works-cover-mask {
  position: absolute; left:0; right:0; bottom:0;
  padding: 40px 18px 14px;
  background: linear-gradient(to top, rgba(8,10,22,0.95) 0%, rgba(8,10,22,0.55) 55%, transparent 100%);
  color:#fff;
  display:flex; flex-direction:column; gap:4px;
  pointer-events: none;
}
.works-mask-title { font-size: 16px; font-weight: 700; letter-spacing: 0.5px; }
.works-mask-hint { font-size: 12px; color: rgba(255,255,255,0.65); }

.works-cover-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  font-size: 12px;
  color: #cfe0ff;
  background: rgba(12,16,32,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  z-index: 2;
}
.works-cover-badge .dot {
  width:7px; height:7px; border-radius:50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:0.6; transform: scale(1.3); }
}

/* 卡片主体 */
.works-body {
  padding: 22px 22px 24px;
  position: relative; z-index: 1;
}
.works-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.works-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,124,255,0.2), rgba(124,92,255,0.2));
  border: 1px solid rgba(79,124,255,0.3);
  display:flex; align-items:center; justify-content:center;
  font-size: 22px;
  flex-shrink:0;
}
.works-card-head h3 { font-size: 18px; margin:0; line-height:1.3; }
.works-card-sub {
  font-size: 12px; color: var(--text-dim); margin: 2px 0 0 !important;
  letter-spacing: 0.3px;
}
.works-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

/* 标签 */
.works-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 18px; }
.works-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  padding: 4px 11px;
  border-radius: 999px;
}
.works-tag i { font-style: normal; font-size: 12px; }
.works-tag.tag-lock {
  color: #ffd08a;
  background: rgba(255,180,80,0.08);
  border-color: rgba(255,180,80,0.25);
}

/* 下载列表 */
.dl-list { list-style:none; padding:0; margin: 4px 0 18px; display:grid; gap: 8px; }
.dl-item {
  display:flex; align-items:center; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.dl-item:hover {
  background: rgba(79,124,255,0.07);
  border-color: rgba(79,124,255,0.35);
  transform: translateX(3px);
}
.dl-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79,124,255,0.18), rgba(124,92,255,0.18));
  display:flex; align-items:center; justify-content:center;
  font-size: 15px;
  flex-shrink:0;
}
.dl-info {
  flex:1; min-width:0;
  display:flex; flex-direction:column; gap:2px;
}
.dl-info b { font-size: 13px; font-weight:600; color: #e8ecf7; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dl-size { font-size: 11px; color: var(--text-dim); }

/* 按钮 */
.btn-ghost {
  padding: 7px 14px !important;
  font-size: 12px !important;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  color: #d0d8f0;
  border-radius: 9px !important;
}
.btn-ghost:hover {
  background: rgba(79,124,255,0.2);
  border-color: rgba(79,124,255,0.5);
  color: #fff;
  transform: none !important;
  box-shadow: 0 4px 16px -6px rgba(79,124,255,0.6);
}

/* 流光主按钮 */
.btn-shine {
  position: relative;
  width: 100%;
  text-align: center;
  justify-content: center;
  overflow: hidden;
}
.btn-shine::after {
  content:"";
  position:absolute;
  top:0; left:-100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.6s ease;
}
.btn-shine:hover::after { left: 120%; }

/* 响应式 */
@media (max-width: 560px) {
  .works-cover { height: 210px; }
  .works-body { padding: 18px 18px 20px; }
  .works-grid { gap: 20px; }
}
/* ===== 图片灯箱 ===== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 8, 20, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  padding: 40px 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 22px; line-height: 36px; text-align: center;
  cursor: pointer; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 14px;
  background: rgba(0,0,0,0.4); padding: 6px 14px; border-radius: 999px;
  pointer-events: none;
}/* ===== 赛博朋克风格 ===== */
:root {
  --bg: #060014;
  --bg-soft: #0d0420;
  --card: rgba(255, 0, 128, 0.05);
  --card-border: rgba(255, 0, 200, 0.2);
  --text: #f0e6ff;
  --text-dim: #a080c8;
  --primary: #ff00a0;
  --primary-2: #00f0ff;
  --accent: #f5ff00;
  --gradient: linear-gradient(135deg, #ff00a0 0%, #9d00ff 40%, #00f0ff 100%);
  --shadow: 0 20px 60px rgba(255,0,160,0.25), 0 0 40px rgba(0,240,255,0.1);
}
body {
  background: radial-gradient(ellipse at 20% 10%, rgba(255,0,160,0.12), transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(0,240,255,0.1), transparent 50%),
              #060014;
  font-family: "Rajdhani", "Orbitron", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.navbar { background: rgba(6,0,20,0.8) !important; border-bottom: 1px solid rgba(255,0,200,0.3) !important; }
.navbar.scrolled { background: rgba(6,0,20,0.95) !important; box-shadow: 0 0 20px rgba(255,0,160,0.3) !important; }
.hero-badge { background: rgba(0,240,255,0.1) !important; border-color: rgba(0,240,255,0.4) !important; color: #00f0ff !important; text-shadow: 0 0 8px #00f0ff; }
.works-card { border: 1px solid rgba(255,0,200,0.25) !important; box-shadow: 0 0 20px rgba(255,0,160,0.1), inset 0 0 20px rgba(0,240,255,0.03); }
.works-card:hover { box-shadow: 0 0 40px rgba(255,0,160,0.35), 0 0 80px rgba(0,240,255,0.15) !important; border-color: rgba(255,0,200,0.5) !important; }
.works-card-bar { background: linear-gradient(90deg, #ff00a0, #00f0ff, #f5ff00) !important; height: 4px !important; }
.works-icon { background: linear-gradient(135deg, rgba(255,0,160,0.3), rgba(0,240,255,0.3)) !important; border-color: rgba(0,240,255,0.4) !important; }
.btn-primary { box-shadow: 0 0 20px rgba(255,0,160,0.5) !important; }
.btn-primary:hover { box-shadow: 0 0 30px rgba(255,0,160,0.7), 0 0 60px rgba(0,240,255,0.3) !important; }
.btn-ghost { border-color: rgba(0,240,255,0.3) !important; color: #00f0ff !important; background: rgba(0,240,255,0.05) !important; }
.section-title { text-shadow: 0 0 20px rgba(255,0,160,0.4); }
.works-tag.tag-lock { color: #f5ff00 !important; background: rgba(245,255,0,0.08) !important; border-color: rgba(245,255,0,0.3) !important; }
.hero-about .hero-avatar { box-shadow: 0 0 40px rgba(255,0,160,0.5), 0 0 80px rgba(0,240,255,0.3), 0 0 0 6px rgba(255,0,160,0.15) !important; }
.dl-item:hover { border-color: rgba(0,240,255,0.5) !important; background: rgba(0,240,255,0.07) !important; }
::-webkit-scrollbar-thumb { background: linear-gradient(#ff00a0, #00f0ff); border-radius: 5px; }
/* ===== 作品截图画廊 ===== */
.works-gallery {
  position: absolute;
  inset: 0;
}
.works-gallery .gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: auto;
  cursor: zoom-in;
}
.works-gallery .gallery-img.active {
  opacity: 1;
  transform: scale(1);
}
.works-gallery .gallery-img:not(.active) { pointer-events: none; }

.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(10, 14, 28, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.25s, transform 0.2s;
  opacity: 0;
}
.works-cover:hover .gallery-prev,
.works-cover:hover .gallery-next { opacity: 1; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-prev:hover, .gallery-next:hover { background: rgba(79,124,255,0.75); transform: translateY(-50%) scale(1.08); }
.gallery-prev:active, .gallery-next:active { transform: translateY(-50%) scale(0.95); }

.gallery-dots {
  position: absolute;
  bottom: 44px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 4;
  pointer-events: none;
}
.gallery-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: all 0.3s;
  pointer-events: auto;
  cursor: pointer;
}
.gallery-dots .dot.active {
  width: 20px;
  border-radius: 4px;
  background: #4f7cff;
}
/* ===== 加入我们 ===== */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.join-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.join-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,0,200,0.4);
  box-shadow: 0 16px 40px rgba(255,0,160,0.15);
}
.join-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,0,160,0.2), rgba(0,240,255,0.2));
  border: 1px solid rgba(255,0,200,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.join-card h3 { font-size: 18px; margin-bottom: 6px; }
.join-desc { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.join-qr {
  position: relative;
  width: 168px; height: 168px;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.join-qr img { width: 100%; height: 100%; object-fit: contain; }
.join-qr.no-qr { background: rgba(255,255,255,0.05); border-style: dashed; }
.join-qr-placeholder {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.8;
  display: none;
}
.join-qr.no-qr .join-qr-placeholder { display: block; }
.join-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.join-id {
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: 8px;
  word-break: break-all;
}
.join-copy { padding: 6px 14px !important; font-size: 12px !important; }
.join-mail-box {
  margin: 0 auto 16px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
}
.join-mail {
  font-size: 14px;
  color: #22d3ee;
  word-break: break-all;
  display: block;
}
.join-btn-disabled { opacity: 0.55; cursor: not-allowed !important; }

/* 复制成功提示 */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255,0,160,0.9);
  color: #fff;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(255,0,160,0.4);
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }