﻿:root {
  --base: #2F6BFF;
  --base-dark: #1B3FA8;
  --base-light: #6D9BFF;
  --cyan: #4DE3FF;
  --bg-0: #06102E;
  --bg-1: #0A1B4D;
  --bg-2: #122C6E;
  --text: #eef3ff;
  --muted: #a9bcea;
  --line: rgba(130, 175, 255, .26);
  --line-strong: rgba(140, 190, 255, .52);
  --panel: rgba(24, 52, 120, .5);
  --panel-2: rgba(14, 34, 88, .72);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 8, 36, .5);
  --glow: 0 0 30px rgba(47, 107, 255, .6);
  --fs-body: clamp(14px, .95vw, 20px);
  --fs-h1: clamp(28px, 3vw, 58px);
  --fs-h2: clamp(18px, 1.5vw, 28px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  font-family: "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-0);
  display: flex; flex-direction: column; height: 100dvh; min-height: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip-link:focus { left: 8px; }

/* ---------------- background ---------------- */
.bg-layer {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(109, 155, 255, .42), transparent 60%),
    radial-gradient(900px 600px at 15% 110%, rgba(77, 227, 255, .16), transparent 60%),
    radial-gradient(900px 600px at 90% 100%, rgba(47, 107, 255, .35), transparent 65%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-0) 100%);
}
.bg-grid {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(90, 140, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 255, .12) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 78%);
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

/* ---------------- topbar ---------------- */
.topbar {
  position: relative; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  padding: clamp(8px, .9vw, 16px) clamp(16px, 2.4vw, 40px);
  background: linear-gradient(180deg, rgba(4, 10, 36, .92), rgba(4, 10, 36, .35));
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(77, 227, 255, .55), rgba(109, 155, 255, .7), rgba(77, 227, 255, .55), transparent);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo {
 
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: clamp(18px, 1.4vw, 24px);
   
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { font-size: clamp(15px, 2.05vw, 24px); letter-spacing: .45em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { color: var(--muted); font-size: clamp(10px, .72vw, 13px); letter-spacing: 0em; }
.title-center { text-align: center; line-height: 1.2; }
.title-center strong {
  display: block; font-size: clamp(20px, 1.9vw, 36px); letter-spacing: .18em; font-weight: 800;
  background: linear-gradient(180deg, #ffffff 10%, #bfd2ff 60%, #7ea0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px rgba(90, 140, 255, .35);
}
.title-center span { color: var(--cyan); font-size: clamp(10px, .74vw, 13px); letter-spacing: .42em; }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: clamp(8px, 1vw, 18px); }
.status { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(47, 107, 255, .22); border: 1px solid var(--line-strong); font-size: clamp(11px, .78vw, 14px); color: #cfe0ff; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.status.offline { background: rgba(198, 122, 22, .2); border-color: rgba(230, 160, 60, .5); }
.status.offline .dot { background: #f5a623; box-shadow: 0 0 10px #f5a623; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: clamp(15px, 1.25vw, 26px); letter-spacing: .06em; color: #dce8ff; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(47, 107, 255, .16); font-size: 16px; color: #cfe0ff; }
.icon-btn:hover { background: rgba(109, 155, 255, .3); }

/* ---------------- layout ---------------- */
.stage { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; height: auto; padding: clamp(10px, 1.2vw, 20px) clamp(14px, 1.8vw, 30px) 0; }
.page { height: 100%; animation: page-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.home-grid {
  height: 100%; display: grid; gap: clamp(12px, 1.4vw, 24px);
  grid-template-columns: minmax(240px, 21%) minmax(0, 1fr) minmax(250px, 22%);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "left center right";
  padding-bottom: 4px;
}
.home-left { grid-area: left; display: flex; flex-direction: column; gap: clamp(10px, 1vw, 16px); min-height: 0; }
.home-left > .panel { flex: 1 1 auto; min-height: 0; }
.home-stats { flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(47, 107, 255, .2), rgba(8, 21, 64, .72)); padding: 10px; }
.home-stats-title { font-size: 12px; letter-spacing: .14em; color: var(--muted); margin: 2px 4px 8px; display: flex; align-items: center; gap: 8px; }
.home-stats-title::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.home-stats .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.home-stats .stat { padding: 8px 10px; border-radius: 10px; background: rgba(14, 34, 88, .55); border: 1px solid rgba(130, 175, 255, .14); }
.home-stats .stat .num { font-size: clamp(18px, 1.5vw, 26px); }
.home-stats .stat .label { font-size: 11px; margin-top: 2px; }
.home-right { grid-area: right; display: flex; flex-direction: column; gap: clamp(10px, 1vw, 16px); min-height: 0; }
.home-right > .panel { flex: 1 1 auto; min-height: 0; }
.home-cam-slot { flex: 0 0 auto; display: flex; }
.cam-widget.in-flow { position: static; right: auto; bottom: auto; width: 100%; }\n.cam-widget.in-flow video, .cam-widget.in-flow .cam-ph { height: clamp(104px, 12vh, 150px); aspect-ratio: auto; object-fit: cover; }\n.cam-widget.in-flow .cam-ph { font-size: 24px; }
.logo img { width: 100%; height: 100%; object-fit: contain; } 
.home-center { grid-area: center; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.panel {
  display: flex; flex-direction: column; min-height: 0; height: 100%;
  background: linear-gradient(160deg, rgba(47, 107, 255, .22), rgba(8, 21, 64, .72));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(160, 200, 255, .14), var(--shadow);
  backdrop-filter: blur(8px); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(47, 107, 255, .38), rgba(47, 107, 255, .05));
}
.panel-head h2 { margin: 0; font-size: var(--fs-h2); letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.panel-head h2::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--base-light)); box-shadow: 0 0 12px rgba(77, 227, 255, .8); }
.panel-head .more { font-size: 12px; color: var(--muted); }
.panel-body { flex: 1; min-height: 0; overflow: auto; padding: 8px; scrollbar-width: thin; }
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(130, 175, 255, .35); border-radius: 3px; }
.home-left .panel-body, .home-right .panel-body { -webkit-mask-image: linear-gradient(180deg, #000 91%, transparent 100%); mask-image: linear-gradient(180deg, #000 91%, transparent 100%); }

/* major list */
.major-item {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px;
  padding: 12px; margin-bottom: 8px; border-radius: 12px; cursor: pointer; text-align: left; width: 100%;
  color: inherit; border: 1px solid transparent; background: rgba(14, 34, 88, .55);
  transition: .2s;
}
.major-item:hover, .major-item:focus-visible {
  border-color: var(--line-strong); background: linear-gradient(120deg, rgba(109, 155, 255, .3), rgba(47, 107, 255, .16));
  transform: translateX(3px); outline: none;
}
.major-item .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(77, 227, 255, .12); border: 1px solid rgba(77, 227, 255, .3); color: var(--cyan); font-size: 15px; }
.major-item strong { display: block; font-size: clamp(13px, .95vw, 17px); }
.major-item small { color: var(--muted); font-size: clamp(11px, .74vw, 13px); display: block; margin-top: 3px; }
.major-item .arrow { color: var(--cyan); opacity: .7; }

/* news list */
.news-item {
  display: block; width: 100%; text-align: left; padding: 11px 12px; margin-bottom: 8px;
  border-radius: 10px; border-left: 2px solid rgba(109, 155, 255, .5);
  background: rgba(14, 34, 88, .45); color: inherit; cursor: pointer; transition: .2s;
}
.news-item:hover, .news-item:focus-visible { background: rgba(47, 107, 255, .3); border-left-color: var(--cyan); outline: none; }
.news-item .date { color: var(--cyan); font-size: 11px; letter-spacing: .04em; }
.news-item strong { display: block; font-size: clamp(12px, .86vw, 15px); line-height: 1.45; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .cat { color: var(--muted); font-size: 11px; }

/* 3D stage */
.model-stage { position: relative; flex: 1 1 auto; min-height: 0; border: 0; border-radius: 0; overflow: hidden;
  background: transparent; box-shadow: none; margin: 0 calc(clamp(14px, 1.8vw, 30px) * -0.35) 0;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 55%, #000 62%, transparent 92%);
  mask-image: radial-gradient(120% 100% at 50% 55%, #000 62%, transparent 92%); }
.model-stage canvas { display: block; width: 100%; height: 100%; }
.model-halo { position: absolute; left: 50%; bottom: 8%; width: 58%; height: 12%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(ellipse, rgba(77, 227, 255, .35), transparent 70%);
  filter: blur(14px); pointer-events: none; }
.model-hint { position: absolute; left: 50%; bottom: clamp(74px, 8vh, 92px); transform: translateX(-50%);
  padding: 7px 16px; border-radius: 999px; background: rgba(4, 10, 36, .72); border: 1px solid var(--line);
  color: var(--muted); font-size: clamp(11px, .78vw, 14px); white-space: nowrap; }
.model-hint b { color: var(--cyan); font-weight: 600; }
.model-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

.home-title { text-align: center; padding: 4px 0 10px; }
.home-title h1 { margin: 0; font-size: clamp(22px, 1.8vw, 34px); letter-spacing: .22em; font-weight: 800;
  background: linear-gradient(180deg, #fff, #a9c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-title p { margin: 6px 0 0; color: var(--muted); font-size: clamp(11px, .8vw, 14px); letter-spacing: .3em; }

/* bottom dock */
.dock {
  position: fixed; left: 50%; bottom: clamp(12px, 1.4vh, 24px); transform: translateX(-50%); z-index: 40;
  display: flex; gap: 8px; padding: 8px; border-radius: 16px;
  background: rgba(4, 10, 36, .82); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(160, 200, 255, .15);
  backdrop-filter: blur(12px); max-width: calc(100vw - 32px); overflow-x: auto;
}
.dock::-webkit-scrollbar { height: 0; }
.dock-item {
  position: relative; padding: 10px 20px; border-radius: 11px; color: #c3d3f5; white-space: nowrap;
  font-size: clamp(12px, .9vw, 16px); letter-spacing: .06em; border: 1px solid transparent; transition: .2s;
}
.dock-item:hover { color: #fff; background: rgba(109, 155, 255, .18); }
.dock-item.active {
  color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--base), var(--base-light));
  border-color: rgba(160, 200, 255, .5); box-shadow: 0 0 22px rgba(109, 155, 255, .55);
}
.dock-item.active::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  width: 22px; height: 2px; border-radius: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}

/* floating camera */
.cam-widget {
  position: fixed; right: clamp(14px, 1.6vw, 28px); bottom: clamp(12px, 1.4vh, 92px); z-index: 45;
  width: clamp(200px, 20vw, 268px); border-radius: 14px; overflow: hidden;
  background: rgba(4, 10, 36, .9); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 24px rgba(47, 107, 255, .4);
  transition: width .25s, height .25s, opacity .25s;
}
.cam-widget video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: scaleX(-1); background: #02060f; }
.cam-widget .cam-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 8px;
  font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.cam-widget .cam-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #64748b; margin-right: 5px; }
.cam-widget.live .cam-dot { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.cam-widget .cam-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.cam-widget .cam-btn { border: 1px solid var(--line); background: rgba(47, 107, 255, .2); color: #cfe0ff;
  border-radius: 6px; padding: 3px 6px; font-size: 10px; cursor: pointer; white-space: nowrap; }
.cam-widget .cam-btn:hover { background: rgba(109, 155, 255, .35); }
.cam-widget.collapsed { width: 56px; height: 56px; border-radius: 50%; }
.cam-widget.collapsed video, .cam-widget.collapsed .cam-bar { display: none; }
.cam-fab { display: none; place-items: center; width: 100%; height: 100%; font-size: 22px; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #4f7bff, #16307f); border: 0; color: #fff; }
.cam-widget.collapsed .cam-fab { display: grid; }
.cam-ph { display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(160deg, rgba(37,72,196,.35), rgba(4,10,36,.9)); color: #7f9ad6; font-size: 26px; text-align: center; }
.cam-widget.live .cam-ph { display: none; }
.cam-widget:not(.live) video { display: none; }
.cam-widget .gesture-dot { position: absolute; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(77, 227, 255, .9); background: rgba(77, 227, 255, .16);
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0; box-shadow: 0 0 18px rgba(77, 227, 255, .6); }

/* gesture cursor */
.gesture-cursor {
  position: fixed; width: 30px; height: 30px; border-radius: 50%; pointer-events: none; z-index: 60;
  border: 2px solid rgba(77, 227, 255, .95); background: rgba(77, 227, 255, .18);
  transform: translate(-50%, -50%); box-shadow: 0 0 20px rgba(77, 227, 255, .55);
  opacity: 0; transition: opacity .15s;
}
.gesture-cursor.show { opacity: .9; }
.gesture-cursor::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(77, 227, 255, .3); }

/* generic content pages */
.content-page { height: 100%; overflow: auto; padding-bottom: clamp(80px, 8vh, 110px); scrollbar-width: thin; }
.content-page::-webkit-scrollbar { width: 8px; }
.content-page::-webkit-scrollbar-thumb { background: rgba(130, 175, 255, .3); border-radius: 4px; }
.page-head { margin: 4px 0 clamp(14px, 1.4vw, 22px); }
.eyebrow { color: var(--cyan); letter-spacing: .32em; font-size: clamp(10px, .72vw, 13px); }
.page-head h1 { font-size: var(--fs-h1); margin: .18em 0 .1em; line-height: 1.12; }
.page-head p { color: var(--muted); font-size: var(--fs-body); max-width: 70ch; margin: 0; line-height: 1.7; }

.hero { position: relative; padding: clamp(22px, 2.6vw, 46px); border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 107, 255, .45), rgba(8, 21, 64, .8));
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); margin-bottom: clamp(16px, 1.6vw, 26px); }
.hero::after { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 120%;
  background: radial-gradient(closest-side, rgba(77, 227, 255, .25), transparent 70%); pointer-events: none; }
.hero .badge { display: inline-flex; gap: 8px; align-items: center; padding: 5px 14px; border-radius: 999px;
  background: rgba(77, 227, 255, .12); border: 1px solid rgba(77, 227, 255, .35); color: var(--cyan); font-size: clamp(11px, .8vw, 14px); }
.hero h1 { font-size: clamp(30px, 3.2vw, 64px); margin: .25em 0 .18em; line-height: 1.08; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #9fc0ff, #fff 60%, #8ee9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #ccdcfb; font-size: clamp(14px, 1.05vw, 20px); line-height: 1.75; max-width: 62ch; margin: 0 0 18px; }
 .cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 12px;
  background: linear-gradient(120deg, var(--base-light), var(--base)); color: #fff; font-weight: 700; border: 1px solid rgba(170, 205, 255, .45);
  cursor: pointer; box-shadow: 0 10px 26px rgba(47, 107, 255, .5); }
 .cta:hover { transform: translateY(-2px); }

.section { margin: clamp(18px, 1.8vw, 30px) 0; }
.section-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.section-title h2 { font-size: var(--fs-h2); margin: 0; }
.section-title span { color: var(--muted); font-size: clamp(11px, .8vw, 14px); }

.grid { display: grid; gap: clamp(12px, 1.2vw, 20px); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.entry { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: clamp(16px, 1.5vw, 26px); border-radius: 14px; cursor: pointer; text-align: left; color: inherit;
  background: linear-gradient(150deg, rgba(47, 107, 255, .28), rgba(8, 21, 64, .7));
  border: 1px solid var(--line); transition: .2s; min-height: clamp(84px, 7vw, 128px); }
.entry:hover, .entry:focus-visible { transform: translateY(-3px); border-color: var(--line-strong);
  background: linear-gradient(140deg, rgba(109, 155, 255, .35), rgba(16, 38, 92, .85)); outline: none; }
.entry .ico { width: clamp(44px, 3.6vw, 64px); height: clamp(44px, 3.6vw, 64px); border-radius: 14px; display: grid; place-items: center;
  font-size: clamp(20px, 1.8vw, 30px); background: rgba(77, 227, 255, .1); border: 1px solid rgba(77, 227, 255, .28); }
.entry strong { display: block; font-size: clamp(16px, 1.2vw, 22px); margin-bottom: 6px; }
.entry small { color: var(--muted); font-size: clamp(11px, .82vw, 14px); }
.entry .arrow { color: var(--cyan); font-size: 20px; }
.entry .tag { position: absolute; top: 10px; right: 12px; font-size: 10px; letter-spacing: .1em;
  padding: 2px 7px; border-radius: 5px; background: rgba(245, 166, 35, .2); color: #ffce7a; border: 1px solid rgba(245, 166, 35, .4); }

.stats { display: grid; gap: clamp(12px, 1.2vw, 20px); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: clamp(14px, 1.4vw, 24px); border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.stat .num { font-size: clamp(26px, 2.6vw, 48px); font-weight: 800;
  background: linear-gradient(120deg, #9fd4ff, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: clamp(11px, .82vw, 14px); margin-top: 6px; }

.timeline { position: relative; display: grid; gap: 14px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), transparent); }
.tl-item { position: relative; padding: clamp(12px, 1.2vw, 20px); border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 22px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 4px rgba(77, 227, 255, .16); }
.tl-item .year { color: var(--cyan); font-weight: 700; letter-spacing: .06em; font-size: clamp(12px, .88vw, 15px); }
.tl-item h3 { margin: 6px 0 8px; font-size: clamp(15px, 1.1vw, 19px); }
.tl-item p { margin: 0; color: var(--muted); line-height: 1.7; font-size: var(--fs-body); }

.cards { display: grid; gap: clamp(12px, 1.2vw, 20px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { padding: clamp(14px, 1.3vw, 22px); border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: .2s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.card h3 { margin: 0 0 8px; font-size: clamp(15px, 1.1vw, 19px); }
.card .sub { color: var(--cyan); font-size: clamp(11px, .82vw, 14px); margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: var(--fs-body); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-i { font-size: clamp(10px, .72vw, 12px); padding: 3px 9px; border-radius: 999px;
  background: rgba(77, 227, 255, .08); border: 1px solid rgba(77, 227, 255, .2); color: #a9e9ff; }

.list { display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: clamp(14px, 1.2vw, 20px); border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  cursor: pointer; text-align: left; width: 100%; color: inherit; }
.item:hover, .item:focus-visible { border-color: var(--line-strong); background: rgba(47, 107, 255, .3); outline: none; }
.item h3 { margin: 0 0 6px; font-size: clamp(15px, 1.1vw, 19px); line-height: 1.35; }
.item p { margin: 0; color: var(--muted); line-height: 1.6; font-size: var(--fs-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .meta { color: var(--muted); font-size: clamp(10px, .74vw, 13px); white-space: nowrap; }
.item .cat { display: inline-block; margin-bottom: 6px; font-size: 10px; padding: 2px 8px; border-radius: 5px;
  background: rgba(77, 227, 255, .14); color: var(--cyan); }

.banner { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(245, 166, 35, .16), rgba(14, 34, 88, .6));
  border: 1px solid rgba(245, 166, 35, .35); color: #ffd9a0; font-size: var(--fs-body); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: clamp(16px, 1.6vw, 26px); border-radius: 16px;
  background: linear-gradient(120deg, rgba(47, 107, 255, .5), rgba(8, 21, 64, .8)); border: 1px solid var(--line); }
.cta-row p { margin: 0; color: #d7e4ff; font-size: clamp(15px, 1.1vw, 19px); }

.rich { color: #d9e6ff; line-height: 1.9; font-size: clamp(14px, 1vw, 19px); }
.rich p { margin: 0 0 1em; }
.rich h2, .rich h3 { color: #fff; margin: 1.2em 0 .5em; }
.rich img { max-width: 100%; border-radius: 12px; }
.rich blockquote { margin: 1em 0; padding: 10px 16px; border-left: 3px solid var(--cyan); background: rgba(77, 227, 255, .06); }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich a { color: var(--cyan); text-decoration: underline; }

/* AI page */
.ai-wrap { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; }
.ai-console { padding: clamp(18px, 1.8vw, 30px); border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mic-orb { width: clamp(110px, 10vw, 170px); height: clamp(110px, 10vw, 170px); border-radius: 50%; margin: 6px auto 16px;
  display: grid; place-items: center; font-size: clamp(32px, 2.8vw, 48px); cursor: pointer; border: 0; color: #fff;
  background: radial-gradient(circle at 35% 30%, #6f97ff, var(--base) 50%, #16307f 100%);
  box-shadow: 0 0 0 10px rgba(47, 107, 255, .15), 0 18px 46px rgba(0, 0, 0, .45); transition: transform .2s; }
.mic-orb:hover { transform: scale(1.04); }
.mic-orb.listening { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 10px rgba(109, 155, 255, .16), 0 18px 46px rgba(0, 0, 0, .45); }
  50% { box-shadow: 0 0 0 24px rgba(109, 155, 255, .06), 0 18px 46px rgba(0, 0, 0, .45); } }
.ai-state { text-align: center; color: var(--muted); margin-bottom: 12px; min-height: 1.4em; font-size: 13px; }
.answer { margin-top: 16px; padding: 16px; border-radius: 14px; background: rgba(77, 227, 255, .07);
  border: 1px solid rgba(77, 227, 255, .22); line-height: 1.8; font-size: clamp(14px, 1.02vw, 18px); min-height: 84px; }
.answer .q { color: var(--cyan); font-size: 12px; letter-spacing: .08em; margin-bottom: 6px; }
.ask-form { display: flex; gap: 8px; margin-top: 14px; }
.ask-form input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(4, 10, 36, .75); color: var(--text); font-size: var(--fs-body); }
.ask-form input:focus { outline: 2px solid rgba(109, 155, 255, .5); border-color: transparent; }
.ask-form button { padding: 0 20px; border-radius: 10px; border: 1px solid rgba(170, 205, 255, .4);
  background: linear-gradient(120deg, var(--base-light), var(--base)); color: #fff; font-weight: 700; cursor: pointer; }
.hot-list { display: grid; gap: 8px; }
.hot-q { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(14, 34, 88, .6); color: var(--text); cursor: pointer; font-size: clamp(13px, .94vw, 16px); }
.hot-q:hover { border-color: var(--line-strong); background: rgba(47, 107, 255, .3); }

/* gesture detail page */
.gesture-wrap { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.camera-box { position: relative; border-radius: 16px; overflow: hidden; background: #02060f; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.camera-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-box .cam-badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(4, 10, 36, .75); border: 1px solid var(--line); font-size: 11px; color: var(--cyan); }
.gesture-tip { color: var(--muted); margin-top: 10px; font-size: clamp(12px, .9vw, 15px); line-height: 1.7; }
.gesture-log { display: grid; gap: 6px; margin-top: 10px; max-height: 160px; overflow: auto; }
.gesture-log div { padding: 7px 11px; border-radius: 8px; background: rgba(14, 34, 88, .6); border: 1px solid var(--line); font-size: 12px; }

/* modal / toast / idle */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px;
  background: rgba(2, 6, 20, .74); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(880px, 100%); max-height: 84vh; overflow: auto; padding: clamp(20px, 2vw, 34px);
  border-radius: 18px; background: linear-gradient(160deg, #14306e, #081540); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); animation: pop .22s ease both; }
  .modal-card img{max-width: 60%; text-align: center;}
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); font-size: 18px; cursor: pointer; }
.modal h2 { margin: 0 0 8px; font-size: clamp(20px, 1.7vw, 28px); }
.modal .meta-line { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.idle-overlay { position: fixed; inset: 0; z-index: 65; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, #0a1a4a, #03081c 72%); overflow: hidden; }
.idle-carousel { position: absolute; inset: 0; z-index: 0; }
.idle-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; background-size: cover; background-position: center; transform: scale(1.03); }
.idle-slide.active { opacity: 1; }
.idle-slide-caption { position: absolute; left: 6vw; bottom: 8vh; max-width: 40vw; text-align: left; color: #fff; font-size: clamp(18px, 2vw, 30px); font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.idle-carousel-dots { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.idle-carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.idle-carousel-dot.active { background: #fff; }
.idle-overlay::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(3,8,28,.18), rgba(3,8,28,.62)); pointer-events: none; }
.idle-inner { position: relative; z-index: 2; }
.idle-logo { letter-spacing: .5em; color: var(--cyan); font-size: 13px; }
.idle-inner h2 { font-size: clamp(28px, 3.6vw, 56px); margin: 14px 0 8px; }
.idle-inner p { color: var(--muted); }
.idle-clock { margin-top: 18px; font-size: clamp(36px, 5.4vw, 84px); font-weight: 800; font-variant-numeric: tabular-nums; color: rgba(234, 240, 255, .92); }
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%) translateY(-10px); z-index: 90;
  padding: 10px 18px; border-radius: 10px; background: rgba(4, 10, 36, .94); border: 1px solid var(--line-strong);
  opacity: 0; transition: .22s; pointer-events: none; font-size: 13px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* responsive */
@media (max-width: 1180px) {
  body { overflow: auto; height: auto; min-height: 100dvh; }
  .home-grid { height: auto; grid-template-columns: 1fr 1fr;
    grid-template-areas: "center center" "left right";
    grid-template-rows: minmax(320px, 1.2fr) auto; }
  .stage { min-height: calc(100dvh - 74px); }
  .panel { max-height: 44vh; }
}
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; padding: 8px 12px; }
  .title-center { display: none; }
  .brand { gap: 8px; }
  .brand-text strong { font-size: 14px; max-width: 160px; }
  .brand-text span { display: none; }
  .logo { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
  .status { display: none; }
  .home-grid { grid-template-columns: 1fr;
    grid-template-areas: "center" "left" "right";
    grid-template-rows: 46vh auto auto; }
  .home-stats .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cam-widget { width: 120px; bottom: 84px; }
  .dock { width: calc(100vw - 20px); }
  .ai-wrap, .gesture-wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}

/* ---------------- 全局 AI 抽屉 ---------------- */
.ai-top-btn { font-weight: 800; font-size: 13px; letter-spacing: .04em; color: #b9ecff; }
.ai-top-btn:hover { color: #fff; box-shadow: 0 0 20px rgba(77, 227, 255, .5); }
.ai-drawer {
  position: fixed; right: clamp(14px, 1.6vw, 28px); top: 92px; z-index: 55;
  width: min(430px, calc(100vw - 28px)); max-height: min(76vh, 700px);
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(20, 44, 108, .96), rgba(6, 16, 44, .97));
  border: 1px solid rgba(120, 220, 255, .38); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 6, 30, .7), 0 0 50px rgba(47, 107, 255, .3);
  backdrop-filter: blur(14px);
  animation: drawerIn .28s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes drawerIn { from { opacity: 0; transform: translateX(16px) scale(.98); } to { opacity: 1; transform: none; } }
.ai-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid rgba(120, 180, 255, .22); }
.ai-drawer-title { display: flex; flex-direction: column; gap: 3px; }
.ai-drawer-title strong { font-size: 15px; letter-spacing: .06em; }
.ai-drawer-title span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.ai-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(120, 180, 255, .3);
  background: rgba(255, 255, 255, .05); color: #cfe0ff; font-size: 18px; line-height: 1; cursor: pointer; }
.ai-close:hover { background: rgba(255, 255, 255, .12); }
.ai-drawer-body { padding: 12px 16px 18px; overflow: auto; }
.ai-drawer .ai-console { background: transparent; border: 0; box-shadow: none; padding: 0; }
.ai-drawer .mic-orb { width: 88px; height: 88px; font-size: 26px; margin: 2px auto 10px; }
.ai-drawer .ai-state { font-size: 12px; margin-bottom: 8px; }
.ai-drawer .answer { min-height: 66px; font-size: 14px; padding: 12px; margin-top: 10px; }
.ai-drawer .ask-form { margin-top: 10px; }
.ai-drawer .ask-form input { padding: 10px 12px; font-size: 13px; }
.ai-drawer .gesture-tip { display: none; }
.ai-drawer .hot-list { gap: 6px; margin-top: 14px; }
.ai-drawer .hot-q { padding: 9px 12px; font-size: 12px; }
.ai-drawer .section-title h2 { font-size: 14px; }

/* 摄像头骨架层 */
.cam-skeleton { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; opacity: .9; }
.cam-widget.collapsed .cam-skeleton { display: none; }

@media (max-width: 760px) {
  .ai-drawer { left: 10px; right: 10px; width: auto; top: auto; bottom: 10px; max-height: 74vh; }
}

/* ---------------- 顶栏状态胶囊（手势 / AI） ---------------- */
.top-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(47, 107, 255, .14); color: #cfe0ff; cursor: pointer;
  font-size: 12px; letter-spacing: .04em; transition: .2s; white-space: nowrap;
}
.top-chip:hover { background: rgba(47, 107, 255, .28); box-shadow: 0 0 18px rgba(77, 227, 255, .25); }
.top-chip b { font-weight: 600; color: #8fd8ff; }
.top-chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; box-shadow: 0 0 8px rgba(100, 116, 139, .6); }
.top-chip.on { border-color: rgba(77, 227, 255, .55); background: rgba(47, 107, 255, .26); }
.top-chip.on .chip-dot { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.top-chip.busy .chip-dot { background: #4de3ff; box-shadow: 0 0 12px #4de3ff; animation: dotBreathe 1.6s ease-in-out infinite; }
.top-chip.armed { border-color: rgba(77, 255, 200, .7); box-shadow: 0 0 20px rgba(77, 255, 200, .3); }
.top-chip.armed .chip-dot { background: #7dffcf; box-shadow: 0 0 12px #7dffcf; }
.top-chip.off b { color: #94a3b8; }
@media (max-width: 760px) {
  .top-chip span { display: none; }
  .top-chip { padding: 0 9px; height: 34px; }
}

/* 公告跑马灯 */
.banner { gap: 10px; }
.banner .banner-track { overflow: hidden; flex: 1; min-width: 0; }
.banner .banner-text { display: inline-block; white-space: nowrap; }
.banner.marquee .banner-track { display: flex; width: max-content; animation: banner-scroll var(--marquee-duration, 16s) linear infinite; }
.banner.marquee .banner-text { padding-right: 60px; }
@keyframes banner-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .banner.marquee .banner-track { animation: none; } }

/* 自检弹层 */
.selfcheck-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(120, 150, 200, .25); }
.selfcheck-row .ok { color: #1f9d55; font-weight: 700; }
.selfcheck-row .bad { color: #d64545; font-weight: 700; }


/* 轮播图 */
.carousel { position: relative; border-radius: 16px; overflow: hidden; background: rgba(10, 24, 60, .45); min-height: 260px; }
.carousel-track { position: relative; min-height: 260px; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.carousel-slide.active { opacity: 1; }
.carousel-caption { width: 100%; padding: 18px 20px; background: linear-gradient(transparent, rgba(4, 12, 32, .82)); }
.carousel-caption h3 { margin: 0 0 8px; font-size: 20px; color: #fff; }
.carousel-dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .4); cursor: pointer; padding: 0; }
.carousel-dot.active { background: #fff; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(4, 12, 32, .5); color: #fff; font-size: 26px; width: 34px; height: 44px; cursor: pointer; }
.carousel-arrow.prev { left: 0; border-radius: 0 8px 8px 0; }
.carousel-arrow.next { right: 0; border-radius: 8px 0 0 8px; }
.carousel.empty { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .55); }

/* 维护模式 */
.maintenance-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; padding: 10px 16px; text-align: center; background: #b42318; color: #fff; font-size: 14px; letter-spacing: .04em; }
body[data-mode="maintenance"] { padding-top: 40px; }


/* 终端激活页 */
.activate-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.activate-card { width: min(520px, 92vw); padding: 34px 32px; border-radius: 20px; background: rgba(8, 22, 52, .82); border: 1px solid rgba(90, 150, 255, .25); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.activate-logo { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #2f6bff, #22d3ee); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.activate-card h1 { margin: 0 0 10px; font-size: 26px; }
.activate-card .field { margin: 18px 0; }
.activate-card a { color: #6fb0ff; }


/* 待机增强 */
.idle-date { color: rgba(220, 235, 255, .72); font-size: 16px; letter-spacing: .06em; margin-top: 6px; }
.idle-news { margin: 18px auto 10px; max-width: 640px; min-height: 30px; }
.idle-news-item { display: inline-flex; align-items: center; gap: 8px; color: #cfe4ff; font-size: 15px; }
.idle-news-tag { padding: 2px 8px; border-radius: 10px; background: rgba(47, 107, 255, .25); color: #8fc0ff; font-size: 12px; }
.idle-hint { display: flex; align-items: center; justify-content: center; gap: 8px; }
.idle-pulse { width: 8px; height: 8px; border-radius: 50%; background: #38e0ff; box-shadow: 0 0 0 0 rgba(56, 224, 255, .7); animation: idle-pulse 2s infinite; }
@keyframes idle-pulse { 0% { box-shadow: 0 0 0 0 rgba(56,224,255,.6); } 70% { box-shadow: 0 0 0 12px rgba(56,224,255,0); } 100% { box-shadow: 0 0 0 0 rgba(56,224,255,0); } }

/* 图片灯箱 */
.img-viewer { position: fixed; inset: 0; z-index: 10000; background: rgba(3, 8, 20, .92); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.viewer-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; touch-action: none; }
.viewer-img { max-width: 92vw; max-height: 86vh; transform-origin: center center; cursor: grab; user-select: none; transition: transform .08s linear; }
.viewer-close { position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; }
.viewer-toolbar { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 22px; background: rgba(8, 20, 46, .78); border: 1px solid rgba(90, 150, 255, .25); }
.viewer-btn { border: 0; background: rgba(255,255,255,.1); color: #fff; min-width: 34px; height: 30px; border-radius: 8px; cursor: pointer; }
.viewer-scale { color: #cfe4ff; font-size: 13px; min-width: 46px; text-align: center; }

/* hidden 属性优先级高于 display，避免待机层无法隐藏 */
.idle-overlay[hidden] { display: none !important; }


/* 专业目录与详情 */
.major-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding: 16px; }
.major-card { text-align: left; border: 1px solid rgba(120, 160, 230, .22); background: rgba(20, 40, 80, .35); border-radius: 14px; padding: 16px; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.major-card:hover { border-color: rgba(56, 224, 255, .55); background: rgba(32, 66, 120, .45); }
.major-card-icon { font-size: 24px; }
.major-card strong { font-size: 17px; }
.major-card small { color: var(--muted); line-height: 1.5; }
.major-card-arrow { margin-top: 6px; color: #6fb0ff; font-size: 13px; }
.major-hero { display: flex; gap: 18px; align-items: flex-start; padding: 24px; margin-bottom: 6px; border-radius: 18px; background: linear-gradient(135deg, rgba(30, 70, 150, .45), rgba(10, 24, 60, .35)); border: 1px solid rgba(90, 150, 255, .22); }
.major-hero-icon { font-size: 46px; }
.major-hero h1 { margin: 4px 0 6px; font-size: clamp(26px, 3vw, 40px); }
.major-subtitle { color: #a9c7ff; margin: 0 0 10px; }
.major-summary { font-size: 16px; line-height: 1.9; }
.cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 14px; background: rgba(20, 40, 80, .4); border: 1px solid rgba(90, 150, 255, .2); }
.btn-link { background: none; border: 0; color: #6fb0ff; cursor: pointer; font-size: 15px; padding: 0; }


/* 预览模式 */
.preview-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 9998; padding: 6px 16px; text-align: center; background: #b45309; color: #fff; font-size: 13px; letter-spacing: .04em; }
body.preview-mode { padding-top: 32px; }

/* 字体与动效配置 */
body { font-family: var(--font-family, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif); }
body.motion-off *, body.motion-off *::before, body.motion-off *::after { animation: none !important; transition: none !important; }
body.reduced-motion .particles, body.reduced-motion .aurora { display: none; }


/* 专业方向切换 */
.major-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.major-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(120,160,230,.3); background: rgba(20,40,80,.35); color: inherit; cursor: pointer; font-size: 15px; }
.major-tab.active { background: var(--base, #2F6BFF); border-color: transparent; color: #fff; }
/* 搜索 */
.search-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(120,160,230,.35); background: rgba(10,24,50,.6); color: inherit; font-size: 16px; margin-bottom: 12px; }
.search-results { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow: auto; }
.search-hit { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(120,160,230,.22); background: rgba(20,40,80,.35); color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.search-hit:hover { border-color: rgba(56,224,255,.55); }
.search-hit small { color: var(--muted); }
/* 超宽屏预留 */
@media (min-aspect-ratio: 21/9) {
  .home-grid { max-width: 2400px; margin: 0 auto; }
  .content-page { max-width: 2200px; margin: 0 auto; }
}

/* 页面栅格布局 */
.section-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: start; }
.section-grid > .section { grid-column: span 12; margin: 0; min-width: 0; }
@media (max-width: 900px) {
  .section-grid { display: flex; flex-direction: column; }
  .section-grid > .section { width: 100%; }
}

/* 分享与参观模式 */
.share-box { display: flex; gap: 18px; align-items: center; margin-top: 12px; }
.share-qr { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; }
.share-meta { flex: 1; min-width: 0; }
.tour-overlay { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 9500; width: min(680px, 92vw); }
.tour-card { background: rgba(10, 24, 50, .94); border: 1px solid rgba(90,150,255,.4); border-radius: 16px; padding: 18px 22px; color: #eaf2ff; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.tour-card h3 { margin: 6px 0 8px; font-size: 22px; }
.tour-card p { color: #b8cdf0; line-height: 1.7; margin: 0 0 12px; }
body img { -webkit-user-drag: none; user-select: none; }


/* 视频版块 */
.video-wrap { width: 100%; }
.video-title { margin: 0 0 10px; }
.video-frame, .video-player { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; display: block; object-fit: contain; }

.share-brand { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; margin-top: 10px; }

/* 待机页视觉优化 */
.idle-overlay.light::before { background: radial-gradient(ellipse at center, rgba(3,8,28,.08), rgba(3,8,28,.42)); }
.idle-overlay.medium::before { background: radial-gradient(ellipse at center, rgba(3,8,28,.18), rgba(3,8,28,.62)); }
.idle-overlay.dark::before { background: radial-gradient(ellipse at center, rgba(3,8,28,.42), rgba(3,8,28,.82)); }
.idle-inner { width: min(860px, 92vw); padding: clamp(30px, 4vw, 54px) clamp(28px, 4vw, 64px); border-radius: 32px;
  background: linear-gradient(150deg, rgba(9, 22, 52, .62), rgba(5, 12, 32, .38));
  border: 1px solid rgba(120, 170, 255, .22); box-shadow: 0 30px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.idle-logo { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px;
  background: rgba(47, 107, 255, .16); border: 1px solid rgba(120, 170, 255, .3); letter-spacing: .28em; }
.idle-inner h2 { font-size: clamp(26px, 3.4vw, 52px); margin: 16px 0 6px; letter-spacing: .04em;
  background: linear-gradient(120deg, #ffffff 10%, #bcd7ff 55%, #7fe7ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.idle-date { color: #a9c2e8; letter-spacing: .12em; font-size: 15px; }
.idle-clock { margin-top: 12px; font-size: clamp(52px, 7vw, 104px); line-height: 1.05; letter-spacing: .04em;
  background: linear-gradient(180deg, #ffffff, #9ec5ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 24px rgba(60, 130, 255, .35)); }
.idle-news { margin: 18px auto 0; max-width: 640px; min-height: 28px; }
.idle-news-item { padding: 7px 14px; border-radius: 999px; background: rgba(10, 28, 64, .55); border: 1px solid rgba(120, 170, 255, .18); }
.idle-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 16px; border-radius: 999px;
  background: rgba(47, 107, 255, .14); border: 1px solid rgba(120, 170, 255, .26); color: #bcd7ff !important; font-size: 13px; }
.idle-pulse { width: 7px; height: 7px; border-radius: 50%; background: #56e0ff; box-shadow: 0 0 0 0 rgba(86, 224, 255, .5); animation: idlePulse 2s infinite; }
@keyframes idlePulse { 0% { box-shadow: 0 0 0 0 rgba(86,224,255,.5); } 70% { box-shadow: 0 0 0 10px rgba(86,224,255,0); } 100% { box-shadow: 0 0 0 0 rgba(86,224,255,0); } }
@media (max-width: 720px) { .idle-inner { border-radius: 22px; padding: 24px 20px; } .idle-slide-caption { font-size: 16px; left: 20px; bottom: 90px; } }

/* 待机页上下布局 / 全屏两种模式 */
.idle-stage { position: relative; z-index: 2; width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.idle-ad { position: relative; display: grid; grid-template-columns: 1.55fr 1fr; min-height: 0; overflow: hidden; background: #08142e; }
.idle-ad-media { background: #0b1730 center/cover no-repeat; min-height: 0; }
.idle-ad-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 64px);
  background: linear-gradient(135deg, rgba(9, 24, 58, .96), rgba(5, 12, 30, .92)); border-left: 1px solid rgba(120, 170, 255, .14); }
.idle-ad-eyebrow { color: #7fd8ff; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; }
.idle-ad-copy h3 { margin: 0; font-size: clamp(26px, 3.4vw, 52px); line-height: 1.25; color: #fff;
  background: linear-gradient(120deg, #ffffff, #bcd7ff 70%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.idle-ad-index { color: #7c93b6; font-size: 14px; letter-spacing: .18em; }
.idle-ad-link { align-self: flex-start; margin-top: 6px; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(127, 216, 255, .45);
  background: rgba(47, 107, 255, .18); color: #dbeaff; font-size: 14px; cursor: pointer; }
.idle-ad-link:hover { background: rgba(47, 107, 255, .34); }
.idle-ad-dots { position: absolute; right: clamp(24px, 4vw, 64px); bottom: 24px; display: flex; gap: 8px; z-index: 3; }
.idle-ad-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); cursor: pointer; }
.idle-ad-dot.active { background: #7fd8ff; box-shadow: 0 0 0 4px rgba(127, 216, 255, .15); }
.idle-split::before { display: none; }
.idle-split .idle-inner { width: 100%; max-width: none; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  padding: 16px clamp(20px, 3vw, 40px); border-radius: 0; border: 0; border-top: 1px solid rgba(120, 170, 255, .18);
  background: linear-gradient(180deg, rgba(6, 16, 38, .92), rgba(4, 10, 26, .98)); box-shadow: none; backdrop-filter: blur(12px); text-align: left; }
.idle-split .idle-logo { letter-spacing: .18em; font-size: 11px; padding: 4px 10px; }
.idle-split .idle-inner h2 { margin: 0; font-size: clamp(18px, 1.6vw, 24px); background: none; -webkit-text-fill-color: #eaf2ff; color: #eaf2ff; letter-spacing: .02em; white-space: nowrap; }
.idle-datetime { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.idle-split .idle-date { font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.idle-split .idle-clock { margin: 0; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; filter: none; color: #dcebff; -webkit-text-fill-color: #dcebff; background: none; }
.idle-split .idle-news { margin: 0; flex: 1; min-width: 0; text-align: left; overflow: hidden; }
.idle-split .idle-news-item { display: inline-flex; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.idle-split .idle-hint { margin: 0 0 0 auto; flex: 0 0 auto; font-size: 12px; padding: 6px 14px; }

/* 全屏轮播模式 */
.idle-full .idle-stage { display: block; }
.idle-full .idle-ad { position: absolute; inset: 0; display: block; }
.idle-full .idle-ad-media { position: absolute; inset: 0; }
.idle-full .idle-ad-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 120px 6vw 42px;
  background: linear-gradient(transparent, rgba(3, 8, 28, .88)); border: 0; justify-content: flex-end; }
.idle-full .idle-ad-copy h3 { font-size: clamp(30px, 3.6vw, 56px); -webkit-text-fill-color: #fff; }
.idle-full .idle-ad-dots { left: 50%; right: auto; bottom: 28px; transform: translateX(-50%); }
.idle-full .idle-inner { position: absolute; inset: 0; width: 100%; max-width: none; background: none; border: 0; border-radius: 0;
  box-shadow: none; backdrop-filter: none; padding: 0; pointer-events: none; }
.idle-full .idle-brandline { position: absolute; top: 24px; left: 32px; }
.idle-full .idle-datetime { position: absolute; top: 66px; left: 32px; align-items: flex-start; min-width: 0; }
.idle-full .idle-inner h2 { display: none; }
.idle-full .idle-news { display: none; }
.idle-full .idle-hint { position: absolute; right: 32px; bottom: 26px; margin: 0; pointer-events: none; }
.idle-full::before { background: linear-gradient(180deg, rgba(3,8,28,.42), rgba(3,8,28,.08) 35%, rgba(3,8,28,.72)); }
@media (max-width: 860px) {
  .idle-split .idle-ad { grid-template-columns: 1fr; grid-template-rows: 55% auto; }
  .idle-split .idle-ad-copy { border-left: 0; border-top: 1px solid rgba(120,170,255,.14); padding: 18px 22px; }
  .idle-split .idle-inner { flex-wrap: wrap; gap: 10px 18px; }
  .idle-split .idle-inner h2 { font-size: 18px; }
  .idle-split .idle-hint { display: none; }
}

.idle-full .idle-brandline { padding: 6px 14px; background: rgba(4, 10, 28, .55); border: 1px solid rgba(120, 170, 255, .25); border-radius: 999px; backdrop-filter: blur(8px); }
.idle-full .idle-datetime { padding: 8px 14px; background: rgba(4, 10, 28, .5); border: 1px solid rgba(120, 170, 255, .2); border-radius: 14px; backdrop-filter: blur(8px); }
.idle-full .idle-date { color: #d7e7ff; }

/* 待机页比例微调 */
.idle-split .idle-ad { grid-template-columns: minmax(0, 1fr) 20%; }
.idle-split .idle-ad-copy { padding: 18px 16px; gap: 8px; }
.idle-split .idle-ad-copy h3 { font-size: clamp(18px, 1.8vw, 30px); line-height: 1.35; }
.idle-split .idle-ad-eyebrow { font-size: 10px; letter-spacing: .2em; }
.idle-split .idle-ad-index { font-size: 12px; }
.idle-split .idle-ad-dots { right: 12px; bottom: 12px; }
.idle-full .idle-brandline,
.idle-full .idle-datetime,
.idle-full .idle-inner h2,
.idle-full .idle-news { display: none !important; }
.idle-full .idle-ad-copy { padding-bottom: 48px; }
.idle-full .idle-hint { background: rgba(4, 10, 28, .62); border-color: rgba(120, 170, 255, .3); }
@media (max-width: 860px) {
  .idle-split .idle-ad { grid-template-columns: 1fr; grid-template-rows: 62% auto; }
}

/* 待机轮播完整显示图片 */
.idle-ad-media, .idle-full .idle-ad-media { background-size: contain !important; background-repeat: no-repeat !important; background-position: center !important; background-color: #050b18; }

/* 待机页底部三段式：25% / 50% / 25% */
.idle-split .idle-inner { display: grid; grid-template-columns: 25% 50% 25%; align-items: center; gap: 0; text-align: left; }
.idle-split .idle-info-left { grid-column: 1; min-width: 0; padding-right: 18px; }
.idle-split .idle-info-center { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; text-align: center; }
.idle-split .idle-info-right { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; padding-left: 18px; }
.idle-split .idle-brandline { flex: 0 0 auto; }
.idle-split .idle-logo { letter-spacing: .12em; font-size: 10px; padding: 4px 9px; white-space: nowrap; }
.idle-split .idle-inner h2 { flex: 0 1 auto; margin: 0; font-size: clamp(17px, 1.55vw, 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idle-split .idle-datetime { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 10px; min-width: 0; }
.idle-split .idle-date { font-size: 12px; white-space: nowrap; }
.idle-split .idle-clock { font-size: clamp(24px, 2.3vw, 36px); white-space: nowrap; }
.idle-split .idle-news { width: 100%; margin: 0; }
.idle-split .idle-news-item { max-width: 100%; font-size: 13px; }
.idle-split .idle-hint { margin: 0; font-size: 12px; padding: 6px 13px; white-space: nowrap; }
.idle-full .idle-info-left, .idle-full .idle-info-center { display: none !important; }
.idle-full .idle-info-right { position: absolute; right: 32px; bottom: 26px; }
.idle-full .idle-hint { position: static; margin: 0; }
@media (max-width: 1100px) {
  .idle-split .idle-inner { grid-template-columns: 30% 45% 25%; }
  .idle-split .idle-brandline { display: none; }
  .idle-split .idle-inner h2 { font-size: 16px; }
}
@media (max-width: 860px) {
  .idle-split .idle-inner { grid-template-columns: 1fr; gap: 8px; }
  .idle-split .idle-info-left, .idle-split .idle-info-center, .idle-split .idle-info-right { grid-column: 1; padding: 0; justify-content: flex-start; }
  .idle-split .idle-info-right { display: none; }
}

/* 待机轮播链接二维码 */
.idle-ad-linkrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.idle-ad-linklabel { color: #b9cff0; font-size: 12px; letter-spacing: .06em; }
.idle-ad-qr { display: block; width: 86px; height: 86px; background: #fff; padding: 4px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.idle-ad-linkrow a { display: inline-flex; }
.idle-full .idle-ad-qr { width: 92px; height: 92px; }

/* 底部中间三元素水平居中对齐 */
.idle-split .idle-info-center { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 14px; text-align: center; }
.idle-split .idle-info-center .idle-brandline { justify-self: end; }
.idle-split .idle-info-center h2 { justify-self: center; text-align: center; }
.idle-split .idle-info-center .idle-datetime { justify-self: start; align-items: center; flex-direction: row; gap: 8px; }
.idle-split .idle-info-center .idle-date { line-height: 1; }
.idle-split .idle-info-center .idle-clock { line-height: 1; }
.idle-split .idle-hint { white-space: normal; text-align: center; line-height: 1.45; font-size: 11.5px; padding: 6px 10px; max-width: 100%; }
.idle-full .idle-hint { white-space: nowrap; }
@media (max-width: 1100px) {
  .idle-split .idle-info-center { grid-template-columns: 1fr; gap: 2px; }
  .idle-split .idle-info-center .idle-brandline,
  .idle-split .idle-info-center .idle-datetime { justify-self: center; }
}

.detail-cover { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; margin: 12px 0; }


/* AI 回答来源/置信度 */
.ai-answer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(120, 170, 255, .25); font-size: 12px; color: #9fb4d6; }
.ai-source { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(120,170,255,.3); background: rgba(47,107,255,.12); color: #bfe0ff; }
.ai-source.llm { border-color: rgba(127, 216, 255, .45); background: rgba(127, 216, 255, .12); color: #9fe8ff; }
.ai-source.miss { border-color: rgba(245, 166, 35, .4); background: rgba(245, 166, 35, .1); color: #ffd27f; }
.ai-source.blocked { border-color: rgba(255, 99, 99, .45); background: rgba(255, 99, 99, .12); color: #ffb3b3; }

/* 首页 3D 成果展厅 */
.model-stage.hall-stage { background: transparent; border-radius: 20px; overflow: hidden;
  -webkit-mask-image: none; mask-image: none; box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .16), 0 18px 40px rgba(0,0,0,.28); }
.model-stage.hall-stage .model-halo { display: none; }
.model-stage.hall-stage .model-hint { bottom: 14px; background: rgba(4, 10, 28, .78); }
@media (max-width: 900px) { .model-stage.hall-stage { border-radius: 14px; } }

/* 3D 展厅视角切换 */
.hall-nav { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.hall-nav-btn { border: 1px solid rgba(120,170,255,.28); background: rgba(5,14,36,.62); color: #a9c6f2; border-radius: 999px; padding: 5px 12px; font-size: 11px; cursor: pointer; backdrop-filter: blur(6px); }
.hall-nav-btn:hover { color: #fff; border-color: rgba(120,200,255,.6); }
.hall-nav-btn.active { color: #fff; background: rgba(47,107,255,.42); border-color: rgba(120,200,255,.7); }

/* WebGL 不可用时的平面展厅 */
.model-stage.hall-fallback { background: rgba(5, 14, 36, .72); border: 1px solid rgba(120, 170, 255, .18); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
.hall-fallback-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hall-fallback-head strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.hall-fallback-head span { color: var(--muted); }
.hall-fallback-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hall-fallback-tab { border: 1px solid rgba(120, 170, 255, .24); background: rgba(8, 20, 48, .7); color: #b6c9e8; border-radius: 999px; padding: 5px 11px; font-size: 11px; cursor: pointer; }
.hall-fallback-tab.active { color: #fff; background: rgba(47, 107, 255, .55); border-color: rgba(120, 200, 255, .7); }
.hall-fallback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: auto; padding: 2px; align-content: start; }
.hall-card { min-width: 0; padding: 10px; border-radius: 10px; border: 1px solid #d7deea; background: #fff; color: #123263; text-align: left; cursor: pointer; }
.hall-card strong { display: block; font-size: 12px; line-height: 1.4; min-height: 34px; margin-bottom: 7px; }
.hall-card-cover { width: 100%; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #eef3fb; }
.hall-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hall-card-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #9fb2cc; font-size: 12px; background: linear-gradient(#eef3fb, #e3eaf6); }
.hall-card.placeholder { opacity: .7; }
.hall-center-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex: 1; color: var(--muted); text-align: center; }
.hall-center-eagle { font-size: clamp(58px, 10vw, 120px); line-height: 1; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.hall-center-fallback strong { color: #fff; font-size: 16px; }
.hall-center-fallback p { margin: 0; max-width: 420px; font-size: 12px; line-height: 1.6; white-space: pre-line; }
@media (max-width: 900px) { .hall-fallback-grid { grid-template-columns: 1fr; } }