:root {
  --bg: #0b0c10;
  --text: #222;
  --muted: #666;
  --white: #fff;
  --yellow: #ffd400;
  --purple: #8e44ad;
  --purple-2: #b06fd3;
  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', system-ui, -apple-system, Segoe UI, Roboto, Arial, "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #f7f7f7;
}

.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

/* 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; }
.logo-mark {
  display: inline-block;
  font-weight: 900;
  background: var(--yellow);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
}
.logo-text { font-weight: 800; color: #111; letter-spacing: .5px; }

.nav { display: flex; gap: 18px; flex: 1 1 auto; flex-wrap: nowrap; overflow-x: hidden; min-width: 0; }
.nav-item {
  color: #333; text-decoration: none; font-weight: 500; padding: 8px 10px; border-radius: 6px; white-space: nowrap; display: inline-flex; align-items: center;
}
.nav-item:hover { background: #f1f1f1; }
.nav-item.active { color: #000; background: #f7f7f7; }

.actions { display: flex; align-items: center; gap: 8px; margin-left: auto; justify-content: flex-end; }
.icon-btn { border: none; background: #f3f3f3; border-radius: 10px; width: 36px; height: 36px; cursor: pointer; }
.icon-btn:hover { filter: brightness(.95); }
.hotline { color: #111; font-weight: 800; text-decoration: none; background: var(--yellow); padding: 8px 12px; border-radius: 8px; }

/* 右上角菜单按钮（在需要时显示） */
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 2px solid rgba(0,0,0,.2); background: var(--yellow); cursor: pointer; align-items: center; justify-content: center; gap: 5px; padding: 6px; }
.menu-btn .bar { display: block; width: 18px; height: 2px; background: #111; border-radius: 2px; }

/* 当检测到导航无法完整显示时，显示菜单按钮 */
.menu-needed .menu-btn { display: inline-flex; }
.menu-needed .nav { display: none; }

/* 顶部菜单面板 */
.menu-panel {
  position: fixed; right: 16px; top: 76px; z-index: 1002;
  display: none; min-width: 220px; background: #fff; border: 1px solid #eee; border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}
.menu-active .menu-panel { display: block; }
.menu-panel a { display: block; padding: 12px 14px; color: #222; text-decoration: none; }
.menu-panel a:hover { background: #f7f7f7; }

/* 英雄区 */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(.9) contrast(1.1);
  background-image: url('https://imgbed.3my.top/jsf/th.jpg'); /* 本地默认背景图 */
}
.hero::before { /* 顶部淡入渐变 */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
}
/* .hero::after { 
  content: ""; position: absolute; right: -10vw; bottom: -18vh;
  width: 50vw; height: 40vh;
  background: linear-gradient(135deg, var(--purple-2), var(--purple));
  transform: rotate(-8deg);
  opacity: .9;
  border-radius: 24px;
} */

.hero-content {
  position: relative; z-index: 1; color: var(--white);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 24px; padding: 8vh 0 10vh;
}

.years { display: flex; align-items: flex-end; gap: 24px; }
.year-big {
  line-height: .9;
  font-weight: 900;
  font-size: clamp(120px, 26vw, 320px);
  background: linear-gradient(180deg, #ffe0f0 0%, #a960f3 40%, #7a3cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}
.year-meta { margin-bottom: 28px; }
.year-meta .meta-top { font-weight: 700; letter-spacing: 2px; opacity: .9; }
.year-meta .meta-bottom { margin-top: 8px; opacity: .8; }

.hero-right .slogan { font-size: clamp(28px, 4.6vw, 60px); margin: 0 0 12px; }
.hero-right .sub { margin: 0 0 20px; opacity: .9; max-width: 560px; }
.cta-group { display: flex; gap: 12px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn-primary { background: var(--yellow); color: #111; }
.btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn:hover { transform: translateY(-1px); transition: .2s ease; }

.carousel-controls { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; z-index: 2; }
.ctrl { width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255,255,255,.2); color: #fff; font-size: 18px; cursor: pointer; }
.ctrl:hover { background: rgba(255,255,255,.35); }

/* 检测模块 */
.checks { background: #fff; padding: 64px 0; }
.checks h2 { text-align: center; margin: 0 0 24px; font-size: 28px; }
.check-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.check-list li { background: #fafafa; border: 1px solid #eee; border-radius: 12px; padding: 16px; }
.check-list h3 { margin: 0 0 8px; font-size: 18px; }
.check-list p { margin: 0; color: var(--muted); }

/* 右侧工具条 */
.toolbar { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 1001; }
.tool { width: 44px; height: 44px; border-radius: 12px; border: none; background: #111; color: #fff; cursor: pointer; box-shadow: 0 8px 16px rgba(0,0,0,.2); }
.tool:hover { filter: brightness(1.1); }
.tool::after {
  content: attr(data-tip);
  position: absolute; right: 54px; top: 50%; transform: translateY(-50%);
  background: #111; color: #fff; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 6px 12px rgba(0,0,0,.18);
}
.tool:hover::after { opacity: .95; }

.footer { background: #0f0f11; color: #aaa; padding: 24px 0; text-align: center; }

/* 简易前端路由：区块显示切换 */
.route-section { display: none; }
.route-section.route-active { display: block; }

/* 二维码弹窗 */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
  z-index: 2000; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { background: #fff; border-radius: 16px; width: min(92vw, 360px); padding: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.25); position: relative; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal-title { font-weight: 700; }
.modal-close { position: absolute; right: 12px; top: 12px; border: none; background: transparent; font-size: 22px; cursor: pointer; }
.qr-box { display: grid; place-items: center; }
.qr-box img { width: 240px; height: 240px; object-fit: contain; }
.qr-tips { text-align: center; color: var(--muted); margin-top: 8px; font-size: 14px; }

/* 响应式 */
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-right { text-align: center; }
  .hero-right .sub { margin: 0 auto 20px; }
  .nav { gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 640px) {
  .check-list { grid-template-columns: 1fr; }
  .topbar .container { gap: 12px; }
  .actions .hotline { display: none; }
}

/* 达人秀（故事网格） */
.stories { background:#fff; padding: 36px 0 64px; }
.stories .heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.stories h2 { margin:0; font-size:28px; }
.story-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:18px; }
.story-card { position:relative; border-radius:14px; overflow:hidden; min-height:240px; background:#000; }
.story-card img { width:100%; height:100%; object-fit:cover; display:block; opacity:.88; }
.story-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.55) 85%); }
.story-card .content { position:absolute; inset:0; padding:14px; display:flex; flex-direction:column; justify-content:flex-end; color:#fff; z-index:2; }
.story-card .title { font-weight:800; font-size:18px; line-height:1.3; }
.story-card .desc { margin-top:6px; font-size:13px; opacity:.92; }
.story-card .meta { margin-top:8px; font-size:12px; opacity:.8; }
.story-card:hover { transform: translateY(-2px); transition:.2s ease; }
@media (max-width: 980px) { .story-grid { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px) { .story-grid { grid-template-columns: 1fr; } }