/* ============================================================
   base.css —— 重置 / 全局背景 / 固定装饰层
   对应 SDD-002 §6.1 §6.2 / M11-01~04 M11-07
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-cn);
  font-size: 14px;
  color: var(--text-main);
  /* 背景图 image/backgroup.jpg：3D 元素靠右作点缀，加载失败时回退到蓝绿渐变 */
  background: url('../image/backgroup.jpg') right center / cover no-repeat fixed,
              linear-gradient(135deg, var(--bg-from) 0%, var(--bg-to) 100%);
  background-attachment: fixed;
  overflow: hidden;              /* 单页应用，不出现滚动 */
  -webkit-font-smoothing: antialiased;
}

/* ---- 背景柔化层：让背景图与登录卡片协调 ----
   1) 居中椭圆白雾：压淡卡片正后方的 3D 元素，使白色卡片边界干净、层次分明
   2) 左侧横向渐隐：削弱左半区画面，保证装饰文字不糊在复杂图形上 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 54% at 50% 50%,
      rgba(255, 255, 255, .62) 0%,
      rgba(255, 255, 255, .30) 45%,
      rgba(255, 255, 255, 0) 74%),
    linear-gradient(90deg,
      rgba(243, 248, 253, .46) 0%,
      rgba(243, 248, 253, .22) 38%,
      rgba(243, 248, 253, 0) 64);
}

/* ---- 左上角考试标识：全国导游专业资格考试 / 2026·贵州（M11-04） ---- */
.brandbar {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  user-select: none;
}
.brandbar__logo {
  height: 22px;
  width: auto;
  display: block;
}
.brandbar__lines {
  padding-left: 9px;
  border-left: 1px solid rgba(38, 60, 84, .3);
  line-height: 1.3;
}
.brandbar__title {
  font-size: 13px;
  font-weight: 700;
  color: #223b5e;
  letter-spacing: .05em;
}
.brandbar__sub {
  font-size: 11px;
  color: #6b7f96;
  letter-spacing: .08em;
}

/* ---- 固定装饰位（M11-07） ---- */
.decoration {
  position: fixed;
  z-index: 2;
  color: rgba(38, 60, 84, .74);
  font-size: 12px;
  letter-spacing: .02em;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .78);
}
.decoration--auth    { left: 16px; bottom: 14px; }
.decoration--version { right: 16px; bottom: 14px; }

.decoration__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #7CFC9B;
  box-shadow: 0 0 6px #7CFC9B;
  display: inline-block;
}

/* ---- 主舞台 ---- */
.stage {
  position: relative;
  z-index: 3;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 页面区块：同一 DOM，靠 hidden 切显隐（DD-01/DD-02） */
.page {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  animation: pageIn .28s ease both;
}
.page[hidden] { display: none; }

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

/* 答题/阅题页：全屏背景，内嵌居中信息框 */
.page--exam {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ---- 滚动条（表格/内容区） ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1f4; }
::-webkit-scrollbar-thumb { background: #b9c3cc; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #97a4ae; }

/* ---- 通用工具类 ---- */
[hidden] { display: none !important; }