/* ===== 奥的斯进博会答题 H5 — VI 1.0 =====
 * 色板：NAVY #041E42 / VIOLET #2E1A47 / BLUE #0033A0 / SUNRISE #F65275 / GOLD #CBA052 / GRAY #9E978E
 * 规范：全直角无圆角；唯一动画=主视觉描边；装饰=菱形渐变/菱形描边/正方形色块 */

/* 品牌字体（子集化 woff2，拉丁） */
@font-face { font-family: "GrifoL"; src: url("../assets/fonts/GrifoL-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; }
@font-face { font-family: "AvenirLTPro"; src: url("../assets/fonts/Avenir-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; }

:root {
  --navy: #041E42;
  --violet: #2E1A47;
  --blue: #0033A0;
  --sunrise: #F65275;
  --gold: #CBA052;
  --gray: #9E978E;
  --white: #FFFFFF;
  --black: #000000;
}

/* ===== 通用工具类（浅色系）===== */
picture { display: contents; }
.bg-kv { position: fixed; bottom: 0; left: 0; width: 100%; height: auto; z-index: -1; pointer-events: none; }
.light-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.5); z-index: -1; pointer-events: none; }
.corner-logo { position: fixed; top: 5%; right: 5%; z-index: 10; }
.corner-logo img { width: auto; height: 3vh; display: block; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #E5E5E5;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
}

/* ===== 页面容器 ===== */
.page { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 16px 20px 76px; display: flex; flex-direction: column; }

/* ===== 角标 Logo ===== */
.corner { display: flex; justify-content: center; padding: 4px 0 0; margin-bottom: 35px; }
.corner img { height: 24px; width: auto; display: block; }

/* ===== 标题体系 =====
 * 中文大标题：思源黑体 Bold（开源，系统 fallback）
 * 全英文正文：AvenirLTPro Black
 * 大数字：GrifoL Bold */
.cn-title { font-family: "Source Han Sans SC", "思源黑体", "Noto Sans SC", system-ui, "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 700; }
.en-caption { font-family: "AvenirLTPro", "Avenir", "Helvetica Neue", Arial, sans-serif; font-weight: 900; }
.num-display { font-family: "GrifoL", "AvenirLTPro", "Avenir", sans-serif; font-weight: 700; }

/* ===== 按钮（全直角）===== */
.btn {
  display: block; width: 100%; padding: 15px 0; border: 2px solid var(--gold);
  background: var(--gold); color: var(--navy); font-size: 17px; font-weight: 700;
  cursor: pointer; transition: opacity .15s, transform .08s;
}
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.small { padding: 9px 0; font-size: 13px; border-width: 1px; }
.btn:disabled { opacity: .5; }

/* ===== 文本 ===== */
.sub { font-size: 14px; color: rgba(4,30,66,.7); line-height: 1.7; background: rgba(255,255,255,0.7); padding: 12px 16px; }

/* ===== 页码标签（金色菱形：经过=实心，未到=描边）===== */
.pager { display: flex; justify-content: center; gap: 0; position: fixed; left: 0; right: 0; bottom: 14px; z-index: 20; margin: 0; }
.pager svg { width: 26px; height: 26px; display: block; }

/* ===== 滑动舞台：题目层/资料层叠放横向切换 ===== */
#stage { position: relative; overflow: hidden; }
#info-view { position: absolute; top: 0; left: 0; right: 0; }

/* ===== 题目层 ===== */
.quiz-head { text-align: left; margin-bottom: 0; }
.q-card { margin-bottom: 14px; }
.q-no, .info-tag, .ov-index { font-size: 14px; color: var(--gold); letter-spacing: .18em; margin-bottom: 10px; }
.q-text, .info-title, .ov-q { font-size: 24px; font-weight: 700; line-height: 1.45; min-height: 69.6px; margin-bottom: 16px; }
.q-img, .info-img, .ov-img { width: 100%; aspect-ratio: 2/1; object-fit: cover; background: rgba(255,255,255,.4); border: 1px solid rgba(4,30,66,.15); margin: 0 0 12px; display: block; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: rgba(255,255,255,.5); border: 2px solid rgba(0,51,160,.25);
  padding: 13px 14px; margin-bottom: 10px; font-size: 15px; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.opt:active { transform: scale(.98); }
.opt .opt-mark { flex: 0 0 16px; height: 16px; border: 2px solid rgba(0,51,160,.25); }
.opt .opt-body { flex: 1; min-width: 0; }
.opt .opt-body img { width: 64px; height: 64px; object-fit: cover; border: 1px solid rgba(4,30,66,.15); display: block; margin: 0 auto; }
.opt.selected { border-color: var(--gold); background: rgba(203,160,82,.14); }
.opt.selected .opt-mark { background: var(--gold); border-color: var(--gold); }
.img-ph { display: flex; align-items: center; justify-content: center; min-height: 80px; background: rgba(255,255,255,.4); border: 1px solid rgba(4,30,66,.15); color: rgba(4,30,66,.5); font-size: 13px; }

/* ===== 资料页（一屏图文）===== */
.info-wrap { flex: 1; display: flex; flex-direction: column; }


.info-text { font-size: 15px; line-height: 1.75; color: var(--navy); }

/* ===== 结果页 ===== */
.result-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.result-mark { display: flex; justify-content: center; margin-bottom: 18px; }
.result-title { font-size: 30px; margin-bottom: 6px; }
.result-sub { font-size: 14px; color: var(--navy); line-height: 1.7; }
.redeem-box { border: 2px dashed var(--gold); background: rgba(255,255,255,0.7); padding: 20px 14px; margin: 20px 0 6px; box-sizing: border-box; width: 100%; flex-shrink: 0; text-align: center; }
.redeem-label { font-size: 13px; color: var(--navy); margin-bottom: 10px; }
.redeem-code { font-size: 54px; letter-spacing: 10px; color: var(--gold); }
.redeem-tip { font-size: 13px; color: var(--navy); margin-top: 12px; line-height: 1.7; }
.score-line { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.score-line b { font-size: 22px; color: var(--gold); }

/* ===== 了解更多 overlay（z 最高，观看模式）===== */
.overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #E5E5E5;
  display: flex; flex-direction: column;
}
.overlay.hidden { display: none; }
.overlay-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid rgba(4,30,66,.14); }
.ov-head-left { display: flex; align-items: center; gap: 10px; }
.ov-logo { height: 22px; width: auto; display: block; }
.ov-close {
  background: transparent; border: 1px solid var(--navy); color: var(--navy);
  font-size: 13px; padding: 6px 14px; cursor: pointer;
}
.overlay-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.ov-item { display: none; }
.ov-item.active { display: block; }


.ov-text { font-size: 14.5px; line-height: 1.75; color: var(--navy); }
.overlay-foot { display: flex; gap: 10px; padding: 12px 20px 20px; border-top: 1px solid rgba(4,30,66,.14); }
.overlay-foot .btn { margin: 0; }

/* ===== 欢迎层 ===== */
.welcome { justify-content: center; }
.hero-title { font-size: 42px; letter-spacing: .05em; margin: 14px 0 6px; text-align: center; }
.hero-sub { font-size: 12px; letter-spacing: .3em; text-align: center; color: rgba(255,255,255,.7); margin-bottom: 0; text-transform: uppercase; }
.revisit-title { font-size: 22px; margin-bottom: 8px; text-align: center; }
.revisit-code { font-size: 34px; letter-spacing: 8px; color: var(--gold); text-align: center; margin: 12px 0 2px; }
.revisit-note { text-align: center; font-size: 13px; color: rgba(4,30,66,.6); line-height: 1.7; }
.state-area {
  width: 100%; min-height: 232px; height: auto; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  gap: 12px; margin-top: 26px;
}
/* state-area 用 align-items:center，子块按内容宽度收缩；统一拉满，保证核销框与按钮同宽 */
.state-area > div { width: 100%; }
.cta-row { display: flex; justify-content: center; width: 100%; }

/* ===== ICP 备案（首页底部，弱化呈现）===== */
.icp {
  position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2;
  text-align: center; font-size: 11px; line-height: 1.6;
  color: rgba(4,30,66,.4); letter-spacing: .02em;
}
.icp a { color: inherit; text-decoration: none; }

/* ===== 动效（0.2s）===== */
.fade-in { animation: fadeIn .2s ease both; }
.fade-out { animation: fadeOut .2s ease both; }
.leaving { animation: fadeOut .2s ease both; }
.slide-up { animation: slideUp .2s ease both; }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.hidden { display: none !important; }
.loading { text-align: center; color: rgba(4,30,66,.55); padding: 40px 0; font-size: 15px; }

/* ===== 动态核销凭证跑马灯（滚动=活页，静止=截图） ===== */
.ticker {
  box-sizing: border-box;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  margin: 14px 0 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(4,30,66,.14);
  border-bottom: 1px solid rgba(4,30,66,.14);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.ticker-inner {
  display: flex;
  width: -webkit-max-content;
  width: max-content;
  animation: tickerRun 10s linear infinite;
  will-change: transform;
}
.ticker-inner > span {
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .06em;
  color: rgba(4,30,66,.55);
  padding-right: 2.5em;
}
@keyframes tickerRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
