/* ============================================================
   少儿科学实验小站 · 视觉设计
   蒸汽波 · 深紫粉渐变 · 复古未来 · 网格地平线 · 发光字
   ============================================================ */

:root {
  --c-primary: #9d5bd7;
  --c-accent: #9ac74d;
  --c-cta: #72e660;
  --c-pink: #e660b8;
  --c-bg: #120e15;
  --c-surface: #1f1a23;
  --c-surface-2: #26202e;
  --c-text: #f0eef2;
  --c-dim: #a498ae;
  --c-border: #393040;
  --radius: 6px;
  --font-head: 'Poppins', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, 'SFMono-Regular', 'Courier New', monospace;
  --grad-main: linear-gradient(120deg, #9d5bd7 0%, #e660b8 45%, #9ac74d 100%);
  --grad-soft: linear-gradient(120deg, rgba(157, 91, 215, .18), rgba(230, 96, 184, .12));
  --shadow-neon: 0 0 18px rgba(157, 91, 215, .35);
  --shadow-glow: 0 0 30px rgba(114, 230, 96, .25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(157, 91, 215, .28), transparent 60%),
    radial-gradient(700px 460px at -10% 20%, rgba(230, 96, 184, .14), transparent 60%),
    radial-gradient(800px 520px at 50% 115%, rgba(154, 199, 77, .10), transparent 60%),
    var(--c-bg);
}
/* 扫描线 */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
  opacity: .5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ============================== 排版工具 ============================== */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; letter-spacing: .5px; }

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow-title {
  color: var(--c-text);
  text-shadow: 0 0 8px rgba(157, 91, 215, .9), 0 0 24px rgba(230, 96, 184, .6), 0 0 60px rgba(157, 91, 215, .4);
}

.glow-soft {
  text-shadow: 0 0 6px rgba(157, 91, 215, .55), 0 0 18px rgba(157, 91, 215, .3);
}

.section-title {
  font-size: clamp(22px, 3.4vw, 30px);
  margin-bottom: 26px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-shadow: 0 0 18px rgba(157, 91, 215, .35);
}
.section-title::before { content: "// "; color: var(--c-primary); }

.section-sub { color: var(--c-dim); margin: -14px 0 26px; font-size: 13.5px; }

/* ============================== 导航 ============================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 14, 21, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.logo-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--grad-main); border-radius: var(--radius);
  box-shadow: var(--shadow-neon); font-size: 17px;
}
.logo-text { letter-spacing: 1px; }
.logo-accent { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-link {
  position: relative; padding: 8px 16px; border-radius: var(--radius);
  color: var(--c-dim); font-size: 14px; transition: color .25s, background .25s, box-shadow .25s;
}
.nav-link:hover { color: var(--c-text); background: rgba(157, 91, 215, .14); }
.nav-link.active {
  color: var(--c-text);
  background: rgba(157, 91, 215, .2);
  box-shadow: inset 0 -2px 0 var(--c-primary);
}
.nav-link.active::after {
  content: "";
  position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 60%; height: 2px; border-radius: 2px; background: var(--grad-main);
  box-shadow: 0 0 10px rgba(157, 91, 215, .8);
}

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; }
.burger span { width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================== 按钮 ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: 1px;
  transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
}
.btn:active { transform: scale(.96); }

.btn-primary {
  background: var(--grad-main); color: #120e15;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.btn-primary:hover { box-shadow: var(--shadow-neon); transform: translateY(-2px); }
.btn-primary.on { background: var(--c-cta); box-shadow: var(--shadow-glow); }

.btn-ghost {
  background: transparent; color: var(--c-text);
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}
.btn-ghost:hover { background: rgba(157, 91, 215, .15); box-shadow: var(--shadow-neon); transform: translateY(-2px); }
.btn-ghost.on { border-color: var(--c-cta); color: var(--c-cta); box-shadow: var(--shadow-glow); }

/* ============================== 首页 · Hero ============================== */
.hero {
  position: relative;
  padding: 84px 0 130px;
  overflow: hidden;
  text-align: center;
}

.sun {
  position: absolute; left: 50%; top: 30px; transform: translateX(-50%);
  width: 190px; height: 190px; border-radius: 50%;
  background:
    repeating-linear-gradient(180deg,
      #f0a2e8 0 14px, transparent 14px 22px,
      #e660b8 22px 40px, transparent 40px 50px),
    linear-gradient(180deg, #f0a2e8, #9d5bd7);
  background-blend-mode: screen;
  opacity: .5;
  filter: drop-shadow(0 0 30px rgba(230, 96, 184, .5));
  animation: sunPulse 7s ease-in-out infinite;
}

.grid-horizon {
  position: absolute; left: -30%; right: -30%; bottom: -8px; height: 46vh;
  transform: perspective(380px) rotateX(60deg) scale(1.35);
  transform-origin: center bottom;
  background:
    linear-gradient(rgba(157, 91, 215, .5) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(157, 91, 215, .5) 1.5px, transparent 1.5px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.95), transparent 92%);
  mask-image: linear-gradient(to top, rgba(0,0,0,.95), transparent 92%);
  animation: gridGlow 9s ease-in-out infinite alternate;
}
.grid-horizon::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-main);
  box-shadow: 0 0 30px rgba(230, 96, 184, .8), 0 0 90px rgba(157, 91, 215, .6);
}

.hero-kicker {
  position: relative; z-index: 2;
  color: var(--c-cta); font-size: 13px; letter-spacing: 5px; margin-bottom: 18px;
  text-shadow: 0 0 12px rgba(114, 230, 96, .6);
}
.hero-title {
  position: relative; z-index: 2;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-sub {
  position: relative; z-index: 2;
  color: var(--c-dim); max-width: 560px; margin: 0 auto 30px; font-size: 15px;
}
.hero-actions {
  position: relative; z-index: 2;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

.hero-stats {
  position: relative; z-index: 2;
  display: flex; gap: 34px; justify-content: center; margin-top: 46px; flex-wrap: wrap;
}
.stat b {
  display: block; font-family: var(--font-head); font-size: 30px;
  background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(157, 91, 215, .35);
}
.stat span { color: var(--c-dim); font-size: 13px; letter-spacing: 2px; }

/* ============================== 卡片 ============================== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--c-primary);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .4), var(--shadow-neon);
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius); font-size: 12px;
  background: color-mix(in srgb, var(--c, #9d5bd7) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #9d5bd7) 55%, transparent);
  color: var(--c-text);
  white-space: nowrap;
}

.dots { display: inline-flex; gap: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-border); display: block; }
.dots i.on { background: var(--c-cta); box-shadow: 0 0 6px rgba(114, 230, 96, .8); }

/* 实验卡片 */
.exp-card {
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.exp-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-main); opacity: 0;
  transition: opacity .3s;
}
.exp-card:hover::before { opacity: 1; }

.exp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.exp-icon {
  display: grid; place-items: center; width: 48px; height: 48px; font-size: 26px;
  background: var(--grad-soft); border: 1px solid var(--c-border); border-radius: var(--radius);
}
.exp-chip { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.exp-title { font-size: 18px; }
.exp-title a { transition: color .2s, text-shadow .2s; }
.exp-title a:hover { color: #e0b2ff; text-shadow: 0 0 12px rgba(157, 91, 215, .8); }
.exp-summary { color: var(--c-dim); font-size: 13px; flex: 1; }
.exp-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px dashed var(--c-border);
}
.exp-time { color: var(--c-dim); font-size: 12.5px; }

.exp-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: var(--c-surface-2);
  color: var(--c-dim); font-size: 16px; transition: .25s;
}
.icon-btn:hover { transform: translateY(-2px); }
.icon-btn.fav.on { color: var(--c-pink); border-color: var(--c-pink); box-shadow: 0 0 14px rgba(230, 96, 184, .5); background: rgba(230, 96, 184, .12); }
.icon-btn.done.on { color: var(--c-cta); border-color: var(--c-cta); box-shadow: 0 0 14px rgba(114, 230, 96, .5); background: rgba(114, 230, 96, .12); }

/* ============================== 网格 ============================== */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
}

/* ============================== 首页 · 分类卡 ============================== */
.section { padding: 60px 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cat-card {
  padding: 26px 22px; text-align: left; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.cat-card .cat-icon {
  font-size: 34px; width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--c, #9d5bd7) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #9d5bd7) 45%, transparent);
}
.cat-card h3 { font-size: 21px; }
.cat-card p { color: var(--c-dim); font-size: 13px; }
.cat-card .cat-go {
  margin-top: auto; color: var(--c); font-size: 13px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}
.cat-card:hover .cat-go { text-shadow: 0 0 12px currentColor; }
.cat-card .cat-count {
  position: absolute; right: 16px; top: 14px; font-family: var(--font-head); font-size: 30px;
  opacity: .18; font-weight: 700;
}

/* 怎么玩 */
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.how-card { padding: 26px 22px; }
.how-no {
  font-family: var(--font-head); font-size: 13px; letter-spacing: 3px; color: var(--c-primary);
  text-shadow: 0 0 12px rgba(157, 91, 215, .6); margin-bottom: 8px;
}
.how-card h3 { font-size: 18px; margin-bottom: 8px; }
.how-card p { color: var(--c-dim); font-size: 13.5px; }

/* 安全横幅 */
.safe-banner {
  border: 1px solid rgba(154, 199, 77, .4);
  background: linear-gradient(120deg, rgba(154, 199, 77, .1), rgba(114, 230, 96, .05));
  border-radius: var(--radius);
  padding: 26px 28px; display: flex; gap: 20px; align-items: flex-start;
  box-shadow: inset 0 0 40px rgba(114, 230, 96, .05);
}
.safe-banner .safe-ico { font-size: 34px; }
.safe-banner h3 { font-family: var(--font-head); margin-bottom: 6px; color: var(--c-accent); }
.safe-banner p { color: var(--c-dim); font-size: 13.5px; }

/* CTA */
.cta-box {
  text-align: center; padding: 56px 24px; border-radius: var(--radius);
  border: 1px solid var(--c-primary);
  background: var(--grad-soft);
  box-shadow: var(--shadow-neon);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(157, 91, 215, .12) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(157, 91, 215, .12) 1px, transparent 1px);
  background-size: 30px 30px;
}
.cta-box h2 { font-size: clamp(24px, 4vw, 36px); position: relative; }
.cta-box p { color: var(--c-dim); margin: 12px 0 26px; position: relative; }

/* ============================== 分类页 ============================== */
.page-head { padding: 46px 0 10px; }
.page-title { font-size: clamp(28px, 5vw, 44px); margin-bottom: 12px; }
.page-desc { color: var(--c-dim); max-width: 620px; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin: 26px 0; padding: 16px; border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-border);
}
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--c-border);
  background: transparent; color: var(--c-dim); font-size: 13.5px; transition: .25s;
}
.cat-tab:hover { color: var(--c-text); border-color: var(--c-primary); }
.cat-tab.active {
  color: #120e15; background: var(--grad-main); border-color: transparent; font-weight: 600;
  box-shadow: var(--shadow-neon);
}
.dif-chips { display: flex; gap: 6px; }
.dif-chip {
  padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--c-border);
  background: transparent; color: var(--c-dim); font-size: 12.5px; transition: .25s;
}
.dif-chip.active { color: var(--c-cta); border-color: var(--c-cta); box-shadow: 0 0 10px rgba(114, 230, 96, .35); }

.search-box {
  margin-left: auto; position: relative; flex: 1; min-width: 200px; max-width: 300px;
}
.search-box input {
  width: 100%; padding: 10px 14px 10px 36px; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text);
  font-family: inherit; font-size: 14px; transition: border-color .25s, box-shadow .25s;
}
.search-box input:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--shadow-neon); }
.search-box::before {
  content: "🔍"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: .7;
}

.result-count { color: var(--c-dim); font-size: 13px; margin-bottom: 16px; letter-spacing: 1px; }

/* ============================== 详情页 ============================== */
.detail-wrap { padding: 30px 0 70px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--c-dim); font-size: 13px; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--c-dim); transition: color .2s; }
.crumbs a:hover { color: #e0b2ff; }
.crumbs span { opacity: .5; }

.detail-head { padding: 26px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; margin-bottom: 22px; }
.detail-icon {
  width: 86px; height: 86px; font-size: 46px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--c-primary); border-radius: var(--radius);
  box-shadow: var(--shadow-neon);
}
.detail-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-title { font-size: clamp(24px, 4vw, 36px); text-shadow: 0 0 22px rgba(157, 91, 215, .45); }
.detail-summary { color: var(--c-dim); margin-top: 8px; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* 视频区 */
.video-panel { padding: 14px; margin-bottom: 22px; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-ph {
  padding: 40px 24px; text-align: center; border-radius: var(--radius);
  border: 1px dashed var(--c-primary);
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(157, 91, 215, .2), transparent 70%),
    var(--c-surface-2);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.vp-glow {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; color: #120e15; background: var(--grad-main);
  box-shadow: 0 0 40px rgba(230, 96, 184, .8);
  animation: sunPulse 3s ease-in-out infinite;
}
.video-ph h3 { font-size: 20px; }
.video-ph p { color: var(--c-dim); font-size: 13.5px; max-width: 460px; }
.vp-note { font-size: 12px !important; opacity: .7; }

/* 详情两栏 */
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 22px; }

.panel {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 24px;
}
.panel-title { font-size: 19px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; text-shadow: 0 0 14px rgba(157, 91, 215, .4); }
.panel-sub { color: var(--c-dim); font-size: 12.5px; margin-bottom: 16px; }
.p-ico { font-size: 18px; }

/* 材料清单 */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-row {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 11px 14px; color: var(--c-text); font-size: 14px; transition: .25s;
}
.check-row:hover { border-color: var(--c-primary); }
.check-row .box {
  width: 18px; height: 18px; flex: none; border-radius: 4px; border: 2px solid var(--c-border);
  transition: .25s; display: grid; place-items: center; color: transparent; font-size: 12px;
}
.check-row.on .box { background: var(--c-cta); border-color: var(--c-cta); color: #120e15; box-shadow: 0 0 10px rgba(114, 230, 96, .5); }
.check-row.on .txt { color: var(--c-dim); text-decoration: line-through; }
.check-row .txt { flex: 1; }

/* 步骤 */
.steps { list-style: none; display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.steps li {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px dashed var(--c-border); position: relative;
}
.steps li:last-child { border-bottom: 0; }
.step-no {
  flex: none; width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  background: color-mix(in srgb, var(--c-primary) 20%, transparent);
  border: 1px solid var(--c-primary); color: #e0b2ff;
  box-shadow: 0 0 12px rgba(157, 91, 215, .3);
}
.step-txt { padding-top: 8px; }

/* 侧栏 */
.detail-side { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 84px; }
.principle { border-color: rgba(157, 91, 215, .5); box-shadow: inset 0 0 40px rgba(157, 91, 215, .06); }
.principle-txt { color: #e6e0f0; }
.safety { border-color: rgba(230, 96, 184, .45); box-shadow: inset 0 0 40px rgba(230, 96, 184, .05); }
.safety-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.safety-list li { position: relative; padding-left: 26px; color: #f0d9ec; font-size: 14px; }
.safety-list li::before { content: "⚠"; position: absolute; left: 0; color: var(--c-pink); }
.tip-panel { border-color: rgba(154, 199, 77, .4); box-shadow: inset 0 0 40px rgba(114, 230, 96, .05); }
.tip-txt { color: #e8efd9; }

.related { margin-top: 40px; }

/* ============================== 我的实验页 ============================== */
.my-tabs { display: flex; gap: 8px; margin: 26px 0; flex-wrap: wrap; }
.my-tab {
  padding: 10px 22px; border-radius: var(--radius); border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-dim); font-size: 14px; transition: .25s;
}
.my-tab:hover { border-color: var(--c-primary); color: var(--c-text); }
.my-tab.active { background: var(--grad-main); color: #120e15; border-color: transparent; font-weight: 600; box-shadow: var(--shadow-neon); }

/* ============================== 作品墙 ============================== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.upload-panel {
  padding: 28px; margin: 26px 0 40px;
  border-radius: var(--radius); border: 1px dashed var(--c-primary);
  background: var(--grad-soft);
}
.upload-panel h2 { font-size: 20px; margin-bottom: 4px; }
.upload-panel .up-sub { color: var(--c-dim); font-size: 13px; margin-bottom: 20px; }

.upload-body { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.upload-drop {
  border: 1px dashed var(--c-border); border-radius: var(--radius);
  padding: 22px; text-align: center; background: var(--c-surface-2);
  transition: border-color .25s, box-shadow .25s;
  cursor: pointer;
}
.upload-drop:hover { border-color: var(--c-primary); box-shadow: var(--shadow-neon); }
.upload-drop .ud-ico { font-size: 30px; margin-bottom: 8px; }
.upload-drop p { color: var(--c-dim); font-size: 12.5px; }
.upload-drop img { margin: 12px auto 0; max-height: 190px; border-radius: var(--radius); border: 1px solid var(--c-border); }

.upload-form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--c-dim); margin-bottom: 6px; letter-spacing: 1px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius);
  border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text);
  font-family: inherit; font-size: 14px; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: var(--shadow-neon);
}
.field textarea { resize: vertical; min-height: 70px; }

.work { overflow: hidden; }
.work-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work:hover .work-img img { transform: scale(1.06); }
.work-zoom {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 30px; color: var(--c-text); background: rgba(18, 14, 21, .45);
  opacity: 0; transition: opacity .3s;
}
.work:hover .work-zoom { opacity: 1; }
.work-del {
  position: absolute; right: 10px; top: 10px; width: 30px; height: 30px;
  border-radius: var(--radius); border: 0; background: rgba(18, 14, 21, .7);
  color: var(--c-text); font-size: 14px; transition: .2s;
}
.work-del:hover { background: var(--c-pink); }
.work-cap { padding: 14px 16px; }
.work-cap h4 { font-size: 16px; margin-bottom: 4px; }
.work-cap p { color: var(--c-dim); font-size: 12.5px; margin-bottom: 10px; }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.work-meta time { color: var(--c-dim); font-size: 11.5px; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10, 8, 13, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 30px;
  opacity: 0; transition: opacity .25s;
}
.lightbox.show { opacity: 1; }
.lightbox img { max-width: min(900px, 92vw); max-height: 86vh; border-radius: var(--radius); box-shadow: 0 0 60px rgba(157, 91, 215, .4); }
.lb-close {
  position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; font-size: 18px;
  border-radius: var(--radius); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
}

/* ============================== 空状态 / Toast ============================== */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  border: 1px dashed var(--c-border); border-radius: var(--radius); color: var(--c-dim);
}
.empty-ico { display: block; font-size: 44px; margin-bottom: 12px; animation: floaty 3s ease-in-out infinite; }
.empty a { color: var(--c-cta); text-decoration: underline; }

#toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: var(--c-surface); border: 1px solid var(--c-primary); color: var(--c-text);
  padding: 12px 22px; border-radius: var(--radius); font-size: 14px;
  box-shadow: var(--shadow-neon); opacity: 0; pointer-events: none; z-index: 3000;
  transition: opacity .3s, transform .3s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================== 页脚 ============================== */
.footer {
  margin-top: 70px; border-top: 1px solid var(--c-border);
  background: linear-gradient(180deg, transparent, rgba(157, 91, 215, .08));
  padding: 46px 0 26px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 30px;
}
.footer h4 { font-size: 15px; margin-bottom: 14px; letter-spacing: 2px; }
.footer p, .footer li { color: var(--c-dim); font-size: 13px; list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #e0b2ff; }
.footer-bottom {
  border-top: 1px dashed var(--c-border); padding-top: 20px;
  text-align: center; color: var(--c-dim); font-size: 12.5px;
}
.footer-bottom .heart { color: var(--c-pink); }

/* ============================== 动画 ============================== */
@keyframes sunPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .5; }
  50% { transform: translateX(-50%) scale(1.04); opacity: .62; }
}
@keyframes gridGlow {
  0% { opacity: .75; }
  100% { opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================== 响应式 ============================== */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .upload-body { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: rgba(18, 14, 21, .97);
    border-bottom: 1px solid var(--c-border); padding: 10px 20px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; text-align: center; padding: 12px; }
  .search-box { margin-left: 0; max-width: none; }
  .detail-head { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: row; }
  .hero { padding: 60px 0 100px; }
  .sun { width: 130px; height: 130px; }
  .safe-banner { flex-direction: column; }
}
