:root {
  --brand-blue: #1a79bf;
  --brand-blue-dark: #145f99;
  --brand-red: #cd4132;
  --ink: #1f2d3d;
  --ink-soft: #5a6b7d;
  --line: #e3eaf2;
  --card: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f2f7fc 0%, #e8f1f9 100%);
  display: flex;
  flex-direction: column;
}

/* ---------- 顶部：logo + 公司名 ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--brand-blue);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(26, 121, 191, 0.08);
}

.site-header img {
  height: 38px;
  width: auto;
  display: block;
}

.header-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

.header-company {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand-blue-dark);
  line-height: 1.3;
}

.header-sub {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ---------- 主体 ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-block {
  text-align: center;
  margin-bottom: 8px;
}

.main-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin: 0;
  letter-spacing: 1px;
}

.title-rule {
  width: 68px;
  height: 4px;
  background: var(--brand-red);
  border-radius: 2px;
  margin: 12px auto 0;
}

.subtitle {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- 两个入口 ---------- */
.entries {
  width: 100%;
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.entry {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(26, 121, 191, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.entry:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue);
  box-shadow: 0 10px 24px rgba(26, 121, 191, 0.18);
}

.entry:active { transform: translateY(-1px); }

.entry-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.entry-icon svg { display: block; }

.entry-1 .entry-icon { background: var(--brand-blue); }
.entry-2 .entry-icon { background: var(--brand-red); }

.entry-step {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

.entry-name {
  font-size: 19px;
  font-weight: 700;
  margin: 6px 0 8px;
  color: var(--brand-blue-dark);
}

.entry-2 .entry-name { color: var(--brand-red); }

.entry-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  min-height: 42px;
}

.entry-go {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
}

.entry-2 .entry-go { color: var(--brand-red); }

/* ---------- 流程提示 ---------- */
.tips {
  width: 100%;
  margin-top: 26px;
  background: #ffffff;
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.tips strong { color: var(--brand-blue-dark); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--brand-blue-dark);
  color: #d9e8f5;
  text-align: center;
  padding: 14px 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.8;
}

/* ---------- 播放页 ---------- */
.player-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 20px 30px;
  flex: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--brand-blue);
  text-decoration: none;
  margin-bottom: 14px;
}

.back-link:hover { text-decoration: underline; }

.player-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-blue-dark);
  margin: 0 0 4px;
}

.player-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.video-box {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  position: relative;
}

/* 自动播放被彻底拦截时（iOS 低电量模式、部分微信版本）的兜底遮罩 */
.tap-mask {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  z-index: 2;
}

.tap-mask.show { display: flex; }

.tap-mask span {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: 2px solid #ffffff;
  border-radius: 10px;
  padding: 12px 26px;
}

.video-box video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}

.notice {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.8;
  display: none;
}

.notice.show { display: block; }

.notice button {
  font-family: inherit;
  font-size: 12px;
  color: #fff;
  background: var(--brand-blue);
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
}

.next-block {
  margin-top: 18px;
  text-align: center;
}

.btn-exam {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(205, 65, 50, 0.28);
}

.btn-exam:hover { background: #b6362a; }

.next-tip {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- 手机适配（现场扫码场景） ---------- */
@media (max-width: 640px) {
  .site-header { padding: 12px 14px; gap: 10px; }
  .site-header img { height: 30px; }
  .header-company { font-size: 15px; }
  .main { padding: 24px 16px 22px; }
  .main-title { font-size: 21px; }
  .entries { grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
  .entry { padding: 22px 18px 18px; }
  .entry-desc { min-height: 0; }
  .player-wrap { padding: 16px 12px 24px; }
  .btn-exam { width: 100%; padding: 13px 0; }
}
