:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --dark: #070b16;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #22d3ee;
  --ok: #059669;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
section[id] { scroll-margin-top: 64px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: min(1160px, 92vw); margin: 0 auto; }

/* 2K / 4K 大屏：放宽内容宽度，避免两侧留白过大 */
@media (min-width: 1600px) { .wrap { width: min(1360px, 88vw); } }
@media (min-width: 2200px) { .wrap { width: min(1600px, 82vw); } }

/* 移动端导航按钮 */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 8px 6px; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: currentColor; margin: 4px 0; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav.on-dark { background: rgba(7, 11, 22, 0.55); border-bottom-color: rgba(255,255,255,0.12); color: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.nav-links { display: flex; gap: 26px; font-size: 15px; opacity: 0.85; }
.nav-links a:hover { color: var(--brand); opacity: 1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-dark-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-block { width: 100%; }

/* ---------- Hero（视频背景） ---------- */
.hero {
  position: relative; display: grid; align-items: center; overflow: hidden;
  background: var(--dark); color: #fff;
  min-height: 92vh;
  min-height: clamp(520px, 92svh, 920px);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,22,0.62) 0%, rgba(7,11,22,0.35) 42%, rgba(7,11,22,0.86) 100%);
}
.hero-body { position: relative; z-index: 2; padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); }
.hero h1 { font-size: clamp(40px, 7.4vw, 88px); line-height: 1.02; margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 800; }
.hero h1 .thin { display: block; font-size: 0.42em; font-weight: 500; letter-spacing: 0.28em; opacity: 0.9; margin-bottom: 10px; }
.hero .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: #a5f3fc; border: 1px solid rgba(165, 243, 252, 0.4);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero p.lead { font-size: clamp(15px, 1.5vw, 19px); opacity: 0.9; max-width: min(620px, 90%); margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { flex: 0 1 auto; }
.hero-meta { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 5vw, 54px); flex-wrap: wrap; }
.hero-meta b { display: block; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; }
.hero-meta span { font-size: 13px; opacity: 0.75; }

/* ---------- 区块 ---------- */
section { padding: clamp(48px, 6vw, 78px) 0; }
section.soft { background: var(--bg-soft); }
section.dark { background: var(--dark); color: #fff; }
.sec-title { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.sec-sub { color: var(--ink-soft); margin: 0 0 clamp(24px, 3vw, 40px); max-width: min(720px, 100%); }
section.dark .sec-sub { color: rgba(255,255,255,0.7); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.sec-head p { margin: 0; }

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2vw, 26px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: clamp(16px, 1.4vw, 18px); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(37, 99, 235, 0.1); color: var(--brand); font-size: 20px; margin-bottom: 14px;
}

/* ---------- CAVE 构成示意 ---------- */
.cave-box { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; }
.cave-diagram {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b1220;
}
.cave-diagram img { width: 100%; opacity: 0.92; }
.cave-diagram .faces { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; padding: 6px; }
.cave-diagram .faces span { border: 1.5px solid rgba(34, 211, 238, 0.75); border-radius: 4px; }
.cave-diagram .faces span:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.cave-diagram .faces span:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.cave-diagram .faces span:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
.cave-diagram .lbl {
  position: absolute; left: 12px; bottom: 12px; font-size: 12px; letter-spacing: 0.1em;
  background: rgba(7,11,22,0.7); color: #a5f3fc; padding: 5px 10px; border-radius: 6px;
}
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.spec-list li b { flex: 0 0 110px; color: var(--ink-soft); font-weight: 600; }
section.dark .spec-list li { border-color: rgba(255,255,255,0.14); }
section.dark .spec-list li b { color: rgba(255,255,255,0.6); }

/* ---------- 影像展示卡 ---------- */
.media-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.media-card .frame { position: relative; background: #0b1220; aspect-ratio: 16 / 9; }
.media-card .frame > video, .media-card .frame > img { width: 100%; height: 100%; object-fit: cover; }
.media-card .frame .tag {
  position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600;
  background: rgba(7,11,22,0.66); color: #67e8f9; padding: 5px 10px; border-radius: 6px;
}
.media-card .frame .play {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(7,11,22,0.28); transition: background 0.2s;
}
.media-card .frame .play:hover { background: rgba(7,11,22,0.12); }
.media-card .frame .play i {
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,0.94);
  display: grid; place-items: center; font-style: normal; color: #0b1220; font-size: 22px; padding-left: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.media-card .body { padding: 20px 22px 24px; }
.media-card h3 { margin: 0 0 6px; font-size: 17px; }
.media-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- 图库网格 ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gal-item {
  position: relative; cursor: pointer; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #0b1220; border: 1px solid var(--line);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(7,11,22,0.82));
  color: #fff; font-size: 14px; font-weight: 600;
}
.gal-item .badge {
  position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 700;
  background: rgba(34,211,238,0.92); color: #06202b; padding: 3px 8px; border-radius: 5px;
}

/* ---------- 全景漫游 ---------- */
.pano-view {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #0b1220; cursor: grab;
}
.pano-view.dragging { cursor: grabbing; }
.pano-view canvas { width: 100%; height: auto; display: block; }
.pano-bar {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px; background: linear-gradient(180deg, transparent, rgba(7,11,22,0.85));
}
.pano-bar button {
  font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1); color: #fff; cursor: pointer;
}
.pano-bar button.on { background: #22d3ee; border-color: #22d3ee; color: #06202b; font-weight: 700; }
.pano-tip {
  position: absolute; right: 12px; top: 12px; font-size: 12px; color: #a5f3fc;
  background: rgba(7,11,22,0.6); padding: 5px 10px; border-radius: 6px;
}

/* ---------- 灯箱 ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(4, 7, 14, 0.94); display: none; place-items: center; padding: 24px; }
.lb.show { display: grid; }
.lb-inner { width: min(1100px, 94vw); }
.lb-img { width: 100%; border-radius: 10px; background: #0b1220; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; margin-top: 14px; flex-wrap: wrap; }
.lb-bar h3 { margin: 0; font-size: 18px; }
.lb-bar p { margin: 4px 0 0; font-size: 14px; opacity: 0.7; }
.lb-close { position: absolute; right: 22px; top: 18px; font-size: 30px; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }
.lb canvas { width: 100%; border-radius: 10px; cursor: grab; }

/* ---------- 场景 ---------- */
.scene { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.scene .ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #1e3a8a, #0891b2); }
.scene .tx { padding: 18px 20px 22px; }
.scene h3 { margin: 0 0 6px; font-size: 16px; }
.scene p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- 签到页 ---------- */
.checkin-wrap { max-width: 520px; margin: 0 auto; padding: 48px 0 80px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 6px; font-size: 22px; }
.panel .hint { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 13px; font-size: 15px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink); outline: none;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; }

.tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 11px; margin-bottom: 20px; }
.tabs button { flex: 1; padding: 9px 6px; font-size: 14px; font-weight: 600; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }

.msg { font-size: 14px; padding: 10px 12px; border-radius: 9px; margin-bottom: 14px; display: none; }
.msg.show { display: block; }
.msg.err { background: #fef2f2; color: var(--err); }
.msg.ok { background: #ecfdf5; color: var(--ok); }
.msg.info { background: #eff6ff; color: var(--brand); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; margin-bottom: 20px; }
.stat-row div { background: var(--bg-soft); border-radius: 12px; padding: 14px 6px; }
.stat-row b { display: block; font-size: 24px; line-height: 1.2; }
.stat-row span { font-size: 12px; color: var(--ink-soft); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-size: 12px; color: var(--ink-soft); text-align: center; margin-bottom: 6px; }
.cal .d { aspect-ratio: 1; display: grid; place-items: center; font-size: 13px; border-radius: 9px; background: var(--bg-soft); color: var(--ink-soft); }
.cal .d.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; }
.cal .d.today { outline: 2px solid var(--brand); }
.cal .d.empty { background: transparent; }

.user-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--ink-soft); }
.link-btn { background: none; border: 0; color: var(--brand); cursor: pointer; font-size: 14px; padding: 0; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0; color: var(--ink-soft); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 数据条 ---------- */
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 34px; }
.stat-bar div {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
}
.stat-bar b { display: block; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; color: var(--brand); }
.stat-bar span { font-size: 13px; color: var(--ink-soft); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- 技术卡与流程 ---------- */
section.dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #fff; }
section.dark .card p { color: rgba(255, 255, 255, 0.72); }
section.dark .card .ico { background: rgba(34, 211, 238, 0.16); color: #67e8f9; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 30px; }
.pipe-step {
  border: 1px dashed rgba(255, 255, 255, 0.28); border-radius: 12px; padding: 16px 18px; text-align: center;
}
.pipe-step b { display: block; font-size: 20px; color: #67e8f9; }
.pipe-step span { font-size: 14px; color: rgba(255, 255, 255, 0.8); }

/* ---------- 展馆案例 ---------- */
.sol-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: pointer; box-shadow: var(--shadow); transition: transform 0.2s ease; }
.sol-card:hover { transform: translateY(-3px); }
.sol-card .ph { position: relative; aspect-ratio: 16 / 9; background: #0b1220; overflow: hidden; }
.sol-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.sol-card .ph .tag {
  position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600;
  background: rgba(7, 11, 22, 0.7); color: #67e8f9; padding: 5px 10px; border-radius: 6px;
}
.sol-card .tx { padding: 18px 20px 22px; }
.sol-card h3 { margin: 0 0 6px; font-size: 17px; }
.sol-card p { margin: 0 0 14px; font-size: 14px; color: var(--ink-soft); }
.sol-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.sol-card .meta span { font-size: 12px; background: var(--bg-soft); color: var(--ink-soft); padding: 4px 9px; border-radius: 6px; }

/* ---------- 创意展项 ---------- */
.exh { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.exh .no { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: 0.1em; }
.exh h3 { margin: 6px 0 6px; font-size: 17px; }
.exh p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- 漫游块 ---------- */
.roam-block { margin-top: 10px; }

/* ---------- 时间线 ---------- */
.tl { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.tl li { position: relative; padding: 0 0 26px 24px; }
.tl li::before {
  content: ''; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.tl b { display: block; font-size: 17px; margin-bottom: 2px; }
.tl span { font-size: 15px; color: var(--ink-soft); }

/* ---------- 联系我们 ---------- */
.contact-box { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { flex: 0 0 84px; color: var(--ink-soft); font-weight: 600; }
.contact-list a { color: var(--brand); }
/* ---------- 深色区图库 ---------- */
section.dark .gal-item { border-color: rgba(255, 255, 255, 0.16); }

/* 影视作品：桌面 2×2，窄屏单列 */
.g-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 响应式：中屏 ---------- */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; font-size: 14px; }
}

@media (max-width: 900px) {
  .cave-box { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .g-works { grid-template-columns: 1fr; }

  /* 移动端抽屉导航 */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: 64px; z-index: 40;
    flex-direction: column; gap: 0; padding: 6px 0 12px;
    background: #fff; color: var(--ink);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100svh - 64px); overflow-y: auto;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 24px; font-size: 16px; opacity: 1; }
  .nav-links a:hover { background: var(--bg-soft); color: var(--brand); }
}

/* ---------- 响应式：小屏 ---------- */
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .hero-body { padding: clamp(64px, 12vw, 100px) 0 clamp(48px, 9vw, 80px); }
  .hero { min-height: clamp(480px, 88svh, 720px); }
  .hero h1 { font-size: clamp(32px, 9vw, 48px); }
  .hero .hero-actions .btn { flex: 1 1 100%; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gal-item .cap { font-size: 12px; padding: 18px 10px 9px; }
  .pano-bar { overflow-x: auto; flex-wrap: nowrap; }
  .pano-bar button { flex: 0 0 auto; }
  .tl { padding-left: 14px; }
  .tl li { padding-left: 18px; }
  .stat-bar { gap: 12px; }
  .stat-bar div { padding: 16px 12px; }
  .lb-inner { width: 96vw; }
  .lb-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .gal { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px 22px; }
}

/* ---------- 悬停能力较弱的设备：不做卡片位移 ---------- */
@media (hover: none) {
  .sol-card:hover { transform: none; }
  .gal-item:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sol-card, .gal-item img { transition: none; }
}
