/* ============================================================
   EC9 · 地球克隆计划9 — H5 设计还原
   设计稿：MasterGo EC9-外部（375 × 815）
   字体：MiSans（小米可商用字体，字形最接近设计稿的苹方；
         iOS 真机仍优先使用系统苹方）
   ============================================================ */

@import url("../fonts/MiSans-Regular.min.css");
@import url("../fonts/MiSans-Normal.min.css");
@import url("../fonts/MiSans-Medium.min.css");

:root {
  --blue: #3056D4;
  --blue-dark: #2743A8;
  --brand-blue: #3056D4;
  --btn-blue: #2B77C8;
  --red: #E34D59;
  --title-gray: #7E828F;
  --label-gray: #7E828F;
  --placeholder: #BEBEBE;
  --input-bg: #EDEDED;
  --page-bg: #FFFFFF;
  --black: #000000;
  --white: #FFFFFF;
  --error-bg: #FDECEC;
  --divider: #E5E6EB;
  --radius-card: 20px;
  --radius-input: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* --vh：JS 写入的真实可视高度（window.innerHeight）。
   微信里 100vh 含浏览器 UI 与底部安全区，比可视区高一截，直接用会把底部按钮顶出屏幕。
   JS 没跑起来时（脚本报错/极老 WebView）退回 100vh，表现和改之前一致。 */
:root { --vh: 100vh; }

html, body {
  height: 100%;
  /* ⚠️ 这里千万不要加 overflow-x: hidden。
     它会把 overflow-y 从 visible 强制成 auto，滚动容器从 documentElement 变成 body，
     documentElement.scrollHeight 会缩回一屏高、window.scrollY 恒为 0
     （键盘回弹复位、滚动定位全部失效，iOS 上还会丢惯性滚动）。
     横向溢出的正解在 common.js：transform 分支用负 marginRight 吃掉布局盒多出的宽度。 */
  background: var(--page-bg);
  font-family: "PingFang SC", "PingFang TC", "MiSans", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1D2129;
  /* 微信「字体大小」设置 / 横屏切换会按文字自动缩放撑破版式，这里锁死 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 等比适配：页面始终按 375 设计稿宽度布局，再由 JS 整体缩放（common.js fitViewport）
   100vh 会被缩放放大，因此统一用 calc(100vh / var(--z,1)) 抵消 */
#app {
  width: 375px; max-width: 375px; margin: 0 auto;
  min-height: calc(var(--vh, 100vh) / var(--z, 1));
  background: var(--page-bg); position: relative;
  transform-origin: top center;
}
#app.home { background: var(--page-bg); }   /* 蓝色只保留 375px 手机舞台，外围不铺蓝 */
/* 首页隐藏 H5 自带 logo 大条（设计稿无此元素），仅保留右上角语言切换浮层 */
#app.home .brand { display: none; }
#app.home #header { height: 0; }

/* ---------- 顶部品牌区（设计稿切片：蓝底+地球线稿，文字真字体） ---------- */
/* 设计稿量测：蓝块 y0-183（白卡顶 y164 + 顶部圆角 20，圆角内透出蓝色） */
.brand {
  height: 185px;
  background: url(../img/signup_bg.png?v=3x20261102) top center / 375px 185px no-repeat;
  position: relative;
  overflow: hidden;
}
/* 2026-11-02 新稿：共用蓝带分中/英两版。applyLang 会把 <html lang> 写成
   en / zh-CN / zh-Hant，English 换英文版切图，繁體沿用中文版。 */
html[lang="en"] .brand { background-image: url(../img/signup_bg_en.png?v=3x20261102); }
/* ---------- 语言切换（产品功能入口，设计稿未画；坐标贴设计稿风格） ---------- */
/* 位置贴页面右上角：状态栏删除后整条上移，右侧留 12px（首页另有设计稿坐标，见下方 #app.home 覆盖） */
.lang-switch {
  position: absolute;
  top: 20px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  z-index: 30;
  user-select: none;
}
.lang-switch .globe { width: 20px; height: 20px; border: 1.6px solid #fff; border-radius: 50%; position: relative; display: inline-block; }
.lang-switch .globe::before {
  /* inset 简写要 Chrome 87+，微信 Android 的 X5 内核偏老，展开写更保险 */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%;
  border-left-color: transparent; border-right-color: transparent;
  border: 1.6px solid #fff; clip-path: inset(0 22% 0 22%);
}
.lang-menu {
  position: absolute;
  top: 48px;
  right: 12px;
  background: #2743A8;
  border-radius: 10px;
  padding: 6px 0;
  min-width: 128px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.lang-menu div { color: #fff; font-size: 15px; padding: 12px 20px; cursor: pointer; }
.lang-menu div:hover { background: rgba(255, 255, 255, .08); }

/* ---------- 白色内容卡（设计稿：sheet 顶 164，上移 20 压住蓝块底，圆角内露出蓝色） ---------- */
.sheet {
  background: var(--white);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  margin-top: -20px;
  position: relative;
  z-index: 1;
  min-height: calc(100vh / var(--z, 1) - 164px);
  padding: 26px 20px 40px;
  /* iPhone X 及以上：微信里底部有 34px 小黑条，不加安全区最后一行内容会被压在下面 */
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.sheet--flush { min-height: 0; }
.sheet--black { background: transparent; border-radius: 0; padding-top: 1px; }

/* 首页：设计稿切片背景（蓝底+装饰，文字已剥离）精确 375x815（画布状态栏已裁掉） */
.home-stage {
  position: relative;
  width: 375px;
  height: 815px;
  margin: 0 auto;
  overflow: hidden;
  background: url(../img/home_bg.png?v=home20261102) no-repeat center top;
  background-size: 375px 815px;
}
.home-stage .home-hero,
.home-stage .home-meta { position: static; }
.home-stage .home-hero > div,
.home-stage .home-meta > div { position: absolute; left: 0; right: 0; }

.page-title {
  text-align: center;
  font-size: 24px;
  color: var(--title-gray);
  font-weight: 600;
  margin-bottom: 26px;
}

/* ---------- 表单（设计稿：行距58=框38+间距20，标签13px，输入框x起69/95） ---------- */
.form-row { display: flex; align-items: center; margin-bottom: 20px; }
.form-label { width: 76px; flex-shrink: 0; font-size: 13px; color: var(--label-gray); }
.form-field { flex: 1; display: flex; gap: 19px; align-items: center; }
/* 报名信息页：设计稿标签列 49px（输入框 x69 起）；个人信息页 76px（x95 起） */
.pg-signup .form-label { width: 49px; white-space: nowrap; }
/* 报名信息页按钮：设计稿按钮顶 y394（MiSans 行高差 1px 校正） */
.pg-signup .btn-primary { margin-top: 49px; }

.input {
  width: 100%;
  height: 38px;
  background: var(--input-bg);
  border: none;
  outline: none;
  border-radius: var(--radius-input);
  padding: 0 16px;
  font-size: 13px;
  color: #1D2129;
}
.input::placeholder { color: var(--placeholder); }
.input:focus { box-shadow: 0 0 0 1.5px var(--blue) inset; background: #fff; }

select.input { appearance: none; background-image: none; color: var(--placeholder); }
select.input.filled { color: #1D2129; }
.select-wrap { position: relative; flex: 1; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px; border-right: 1.6px solid var(--label-gray);
  border-bottom: 1.6px solid var(--label-gray);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

.btn-code {
  height: 38px;
  background: var(--btn-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-input);
  font-size: 13px;
  padding: 0 10px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-code:disabled { background: #A8C3F8; cursor: default; }

/* ---------- 按钮（设计稿：h38，按钮蓝 #2B77C8，与上一行间距51） ---------- */
.btn-primary {
  display: block;
  width: 100%;
  height: 38px;
  background: var(--btn-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 50px;
}
.btn-primary:active { background: var(--blue-dark); }

/* 首页报名按钮（2026-11-02 新稿：白色圆角胶囊 + 蓝字，不再用平行四边形切图） */
.btn-register {
  position: absolute; left: 97px; top: 660px;
  display: block;
  width: 180px;
  height: 38px;
  background: #fff;
  color: var(--blue);
  border: none;
  border-radius: 10px;
  padding: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
}

/* 错误提示胶囊 */
.error-pill {
  margin: 18px auto 0;
  width: fit-content;
  max-width: 100%;
  background: var(--error-bg);
  color: var(--red);
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 999px;
  text-align: center;
}

/* 首页文字（2026-11-02 新稿：标题 / 中文副标语 / 英文副标语 / 地点 / 日期，绝对定位 1x 坐标） */
.home-title { top: 126px; text-align: center; font-size: 34px; font-weight: 800; font-style: italic; color: #fff; letter-spacing: 4px; text-indent: 4px; line-height: 1.1; white-space: nowrap; }
/* 首页标题默认按中文视觉量身定制；英文活动名更长，继续用 34px + 4px 字距会被 375 画布裁掉。 */
.home-title--latin { font-size: 26px; letter-spacing: 1px; text-indent: 1px; }
.home-title--latin .home-nine { font-size: 38px; transform: translateY(3px); }
.home-title--latin.home-title--long { font-size: 22px; letter-spacing: .5px; text-indent: .5px; }
.home-title--latin.home-title--long .home-nine { font-size: 32px; transform: translateY(2px); }
.home-nine { display: inline-block; font-size: 44px; font-weight: 400; font-style: normal; color: rgba(255,255,255,.42); letter-spacing: 0; transform: translateY(3px); }
.home-tagline-cn { top: 196px; text-align: center; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 2px; text-indent: 2px; line-height: 1; white-space: nowrap; }
.home-tagline-en { top: 232px; text-align: center; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-indent: 2px; line-height: 1; text-transform: uppercase; white-space: nowrap; }
/* 地点 / 日期（新稿：居中两行，无「时间：」「地址：」标签、无 6651.HK） */
.home-meta .home-value { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px; line-height: 1; text-align: center; }
.home-meta .home-loc { top: 330px; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.home-meta .home-date { top: 358px; font-size: 17px; font-weight: 700; font-style: italic; letter-spacing: 2px; }

/* 协议勾选（基础样式：供 signup/profile 等页使用） */
.agree-row {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 12px; color: rgba(255,255,255,.85);
}
.checkbox {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.4px solid #C9CDD4; flex-shrink: 0; cursor: pointer;
  background: #fff; position: relative;
}
.checkbox.checked { background: var(--blue); border-color: var(--blue); }
.checkbox.checked::after {
  content: ""; position: absolute; left: 4.5px; top: 1.5px;
  width: 4px; height: 8px; border-right: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff; transform: rotate(45deg);
}
.agree-row a { color: var(--blue); text-decoration: none; }

/* 移动端触摸热区增强：协议行 / 「开票·退款」这类行内链接本身只有 13~21px 高，
   真机上很难点中。行内元素的竖直 padding 不撑行高、水平 padding 用负 margin 抵消，
   所以「padding + 负 margin」能原地把热区上下各扩 12px、左右各扩 4px，视觉与排版完全不变。 */
.agree-row a,
.tk-agree-row a,
.et-foot a {
  padding: 12px 4px; margin: 0 -4px;
}

/* 首页协议勾选（蓝底上：白色圆角方块，贴合设计稿 y632） */
#app.home .agree-row {
  position: absolute; left: 0; right: 0; top: 628px;
  display: flex; align-items: center; justify-content: center;
  gap: 7px; font-size: 11px; color: #fff;
}
#app.home .agree-row a { color: rgba(255,255,255,.6); text-decoration: none; }
#app.home .checkbox {
  width: 14px; height: 14px; border-radius: 4px; border: none;
  background: #fff; flex-shrink: 0; cursor: pointer; position: relative;
}
#app.home .checkbox.checked { background: #fff; border: none; }
#app.home .checkbox.checked::after {
  content: ""; position: absolute; left: 3.5px; top: 0.5px;
  width: 4px; height: 7px; border-right: 1.6px solid var(--blue);
  border-bottom: 1.6px solid var(--blue); transform: rotate(45deg);
}

/* 首页语言切换：挂到 .home-stage 内，贴设计稿坐标（图标 x286 y45 20×20） */
#app.home .lang-switch { top: 45px; left: 286px; right: auto; font-size: 13.5px; gap: 12px; }
#app.home .lang-menu {
  top: 77px; left: 275px; right: auto; min-width: 0; width: 80px;
  background: #213A8D; border-radius: 8px; padding: 0;
}
#app.home .lang-menu div { font-size: 14px; line-height: 14px; padding: 12px 0 12px 17px; }

/* 首页联系我们（2026-11-02 新稿：白色文字链，不再用平行四边形切图） */
#app.home .btn-contact {
  position: absolute; left: 0; right: 0; top: 740px;
  display: block; width: auto; height: auto; margin: 0; padding: 0;
  background: none; border: none;
  color: #fff; font-family: inherit; font-size: 12px; letter-spacing: 1px;
  line-height: 1; text-align: center; cursor: pointer;
}

/* 首页底部 51WORLD logo（2026-11-02 新稿） */
.home-logo {
  position: absolute; left: 0; right: 0; top: 770px;
  text-align: center; color: #fff;
  font-size: 15px; font-weight: 800; font-style: italic;
  letter-spacing: 2px; line-height: 1;
}

/* ---------- 门票卡 ---------- */
.ticket-card {
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ticket-card.selected { border-color: var(--blue); }
.ticket-top {
  display: flex;
  border-bottom: 1.5px dashed var(--divider);
  position: relative;
}
.ticket-top::before, .ticket-top::after {
  content: ""; position: absolute; bottom: -9px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--page-bg);
}
.ticket-top::before { left: -11px; }
.ticket-top::after { right: -11px; }
.ticket-selected.selected .ticket-top::before,
.ticket-selected.selected .ticket-top::after { background: #fff; }
.ticket-photo { flex: 1.6; position: relative; height: 150px; overflow: hidden; }
.ticket-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ticket-meta { position: absolute; top: 10px; left: 12px; right: 8px; bottom: 10px; color: #1D2129; }
.ticket-meta .year { font-size: 15px; font-weight: 800; line-height: 1.25; }
.ticket-meta .city { position: absolute; bottom: 28px; left: 0; font-size: 11px; color: #4E5969; }
.ticket-meta .venue { position: absolute; bottom: 8px; left: 0; font-size: 14px; font-weight: 700; color: #1D2129; white-space: nowrap; }
.ticket-photo .slogan { position: absolute; right: 8px; bottom: 8px; font-size: 8px; color: #fff; text-align: right; line-height: 1.4; opacity: .9; }
.ticket-right {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: .5px; color: #1D2129;
  border-left: 1.5px dashed transparent; margin-left: -1px;
  position: relative; overflow: hidden;
}
.ticket-right::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 100%; height: 34%;
  background: var(--blue);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 12% 100%);
}
.ticket-right span, .ticket-right { z-index: 1; }
.ticket-right b { position: relative; z-index: 2; }
.ticket-selected .ticket-right { border-left-color: var(--divider); }

.ticket-name-row { padding: 10px 14px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ticket-name-row .ticket-tag { font-size: 12px; color: var(--blue); font-weight: 500; }

/* 价格 */
.price { color: var(--red); font-size: 44px; font-weight: 800; margin: 14px 2px 4px; }
.price .cny { font-size: 30px; }

/* 退款提示 */
.refund-tip { font-size: 11px; color: #86909C; margin-top: 22px; line-height: 1.6; white-space: normal; }

/* ---------- 状态结果页（设计稿：图标区 y234 Ø252，标题字形带 y553 h34，按钮 y697） ---------- */
.result-page { text-align: center; padding-top: 26px; }
/* 签到页说明文案（设计稿无此元素，沿用 result-sub 的视觉口径） */
.checkin-tip { font-size: 13px; color: #86909C; text-align: center; margin: -18px 0 24px; line-height: 1.6; }

/* 设计帧量测：图标光晕圆 280×280 @ y220（sheet 顶 165 + result-page 26 + margin 29） */
.result-icon { width: 280px; height: 280px; max-width: 280px; margin: 29px auto 0; }
.result-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.result-title { font-size: 34px; color: var(--title-gray); font-weight: 600; margin-top: 48px; letter-spacing: 1px; }
.result-sub { font-size: 13px; color: #86909C; margin-top: 12px; }
.result-page .btn-primary { margin-top: 106px; }
.result-page .btn-primary + .btn-primary { margin-top: 12px; }

/* ---------- 电子票（设计稿：蓝底品牌区+白卡 y193 浮起，行距40，状态值大字） ---------- */
.eticket-wrap { background: var(--brand-blue); padding: 0 12px 30px; min-height: calc(var(--vh, 100vh) / var(--z, 1)); position: relative; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
#app.eticket-wrap .btn-primary { margin-top: 12px; }
#app.eticket-wrap div > .btn-primary:first-child { margin-top: 18px; }
.eticket {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.35); position: relative;
  margin-top: 28px;
}
.eticket-head { padding: 22px 20px 14px; display: flex; justify-content: space-between; }
.eticket-name { font-size: 30px; font-weight: 800; }
.eticket-phone { font-size: 17px; font-weight: 600; color: #1D2129; margin-top: 8px; letter-spacing: 1px; }
.eticket-co { text-align: right; font-size: 12px; color: #86909C; line-height: 1.7; }
.eticket-co b { color: #4E5969; font-weight: 600; display: block; }
.eticket-head-wrap { border-bottom: 1.5px dashed var(--divider); position: relative; }
.eticket-head-wrap::before, .eticket-head-wrap::after {
  content: ""; position: absolute; bottom: -10px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--brand-blue);
}
.eticket-head-wrap::before { left: -10px; }
.eticket-head-wrap::after { right: -10px; }
.eticket-body { padding: 16px 20px 0; }
.et-row { display: flex; margin-bottom: 12px; font-size: 13px; }
.eticket .et-row { margin-bottom: 22px; }
.et-row .k { width: 76px; color: var(--label-gray); flex-shrink: 0; }
.et-row .v { color: #1D2129; font-weight: 500; }
.eticket .et-row .v.hl { color: var(--blue); font-size: 22px; font-weight: 700; }
.et-tabs { display: flex; margin-top: 14px; border-bottom: 1px solid var(--divider); }
.et-tab {
  flex: 1; text-align: center; padding: 12px 0; font-size: 15px;
  color: #86909C; cursor: pointer; position: relative;
}
.et-tab.active { color: var(--blue); font-weight: 600; }
.et-tab.active::after {
  content: ""; position: absolute; left: 25%; right: 25%; bottom: -1px;
  height: 2.5px; background: var(--blue); border-radius: 2px;
}
.et-panel { min-height: 150px; padding: 16px 2px; font-size: 13px; color: #4E5969; line-height: 1.9; }
.et-foot { text-align: center; font-size: 12px; color: #86909C; padding: 14px 0 20px; border-top: 1px solid var(--divider); }
.et-foot a { color: var(--blue); text-decoration: none; }

/* ---------- 协议页（设计稿：蓝底白卡深色字） ---------- */
#app.agree-page { background: var(--brand-blue); }
.agree-page .brand::before { display: none; }
.agree-page .lang-switch { top: 24px; }
.agree-page { min-height: calc(var(--vh, 100vh) / var(--z, 1)); padding: 64px 12px 30px; position: relative; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.agree-page .back-btn { color: #4E5969; }
.agree-page .back-btn:active { color: #1D2129; }
.agree-card { background: #fff; border-radius: 16px; padding: 0 0 30px; overflow: hidden; }
.agree-tabs { display: flex; padding: 4px 10px 0; }
.agree-tab {
  flex: 1; text-align: center; font-size: 15px; color: #86909C;
  padding: 16px 0 12px; cursor: pointer; position: relative;
}
.agree-tab.active { color: #1D2129; font-weight: 600; }
.agree-tab.active::after {
  content: ""; position: absolute; left: 28%; right: 28%; bottom: 0;
  height: 2.5px; background: var(--blue); border-radius: 2px;
}
.agree-body { color: #4E5969; font-size: 13.5px; line-height: 2; padding: 18px 18px 0; }
/* 法务文档排版（文档自带 <style> 已被剥掉，这里接管；
   全局 * {margin:0;padding:0} 重置也在这儿补回间距） */
.agree-body h1 { color: #1D2129; font-size: 20px; font-weight: 600; text-align: center; margin: 4px 0 16px; letter-spacing: 1px; }
.agree-body h2 { color: #1D2129; font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.agree-body h3 { color: #1D2129; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
.agree-body h4 { color: #1D2129; font-size: 14px; margin: 10px 0 4px; }
.agree-body p { margin: 0 0 10px; }
.agree-body strong, .agree-body b { color: #1D2129; font-weight: 600; }
.agree-body ul, .agree-body ol { padding-left: 20px; margin: 0 0 10px; }
.agree-body li { margin-bottom: 6px; }
/* 法务文档暂无当前语言版本时的说明条（避免用户以为「切了语言整页还是中文」是 bug） */
.agree-body .legal-notice {
  background: #FFF6E5;
  border-left: 3px solid #F0A020;
  color: #7A4E00;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 10px 12px;
  margin: 0 0 16px;
  border-radius: 4px;
}
.agree-body a { color: var(--blue); text-decoration: none; }
.agree-body img { max-width: 100%; height: auto; display: block; margin: 10px auto; }
.agree-body hr { border: none; border-top: 1px solid var(--divider); margin: 16px 0; }
.agree-body table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.agree-body th, .agree-body td { border: 1px solid var(--divider); padding: 6px 8px; text-align: left; }
.agree-contact { padding: 18px; }
.agree-contact .hotline { text-align: center; font-size: 13px; color: #4E5969; }
.agree-contact .hotline b { color: var(--blue); }
.agree-contact .tel { text-align: center; font-size: 38px; color: #1D2129; font-weight: 400; letter-spacing: 2px; margin: 14px 0 6px; }
.agree-contact .hours { text-align: center; font-size: 12px; color: #86909C; }
.office { background: #F5F6F7; border-radius: 10px; padding: 14px; margin-top: 12px; }
.office b { color: #1D2129; font-size: 14px; display: block; margin-bottom: 8px; }
.office p { font-size: 12px; color: #86909C; line-height: 1.8; }
.qr-row { display: flex; gap: 16px; margin: 18px 0 6px; }
.qr-item { flex: 1; text-align: center; }
.qr-item img { width: 86px; height: 86px; display: block; margin: 0 auto 8px; background: #fff; border: 1px solid var(--divider); padding: 5px; border-radius: 6px; }
.qr-item span { font-size: 11.5px; color: #4E5969; }
.follow-tip { text-align: center; font-size: 12.5px; color: #4E5969; margin-top: 22px; }

/* ---------- 开发票页（设计稿：提示 y206，二维码区 287px y251-528，按钮 y697） ---------- */
.invoice-page { text-align: center; padding-top: 38px; }
.invoice-tip { font-size: 13px; color: #4E5969; margin: 0 0 30px; }
.qr-big { width: 307px; max-width: none; margin: 0 auto; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.qr-big img { width: 100%; display: block; }
.invoice-page .btn-primary { margin-top: 169px; }

/* ---------- Toast ---------- */
/* 居中方式用 left:0/right:0 + margin:auto，不用 left:50%。
   用 left:50% 时元素的可用宽度只剩半屏（50vw），max-width:80% 永远轮不到生效，
   长文案（如未勾选协议的提示）会被挤成 5 行的窄高条。 */
.ec9-toast {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12%;
  bottom: calc(12% + env(safe-area-inset-bottom, 0px));
  margin: 0 auto;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 80%;
  transform: translateY(10px);
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 999;
  pointer-events: none;
}
.ec9-toast.show { opacity: 1; transform: translateY(0); }

/* ---------- 返回栏 ---------- */
.back-bar { padding: 12px 16px 0; }
.back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: none; color: #B8BAC0;
  font-size: 14px; cursor: pointer; padding: 4px 0;
}
.back-btn:active { color: #fff; }

/* ---------- 工具 ---------- */
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hidden { display: none !important; }


/* ============================================================
   多人代报（group）组件
   ============================================================ */
.member-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px 10px;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 1px 4px rgba(30, 50, 120, .06);
}
.member-card .mc-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.member-card .mc-title { font-size: 15px; font-weight: 700; color: #1D2129; }
.member-card .mc-tag {
  font-size: 11px; color: var(--blue); border: 1px solid var(--blue);
  border-radius: 4px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px;
}
.member-card .mc-remove {
  border: none; background: none; color: var(--label-gray);
  font-size: 13px; padding: 4px 6px; cursor: pointer;
}
.member-card .mc-remove:active { color: var(--red); }
.member-card .form-row { margin-bottom: 10px; }
.member-card .form-label { width: 78px; flex: none; font-size: 13px; color: var(--title-gray); }
.required-note {
  font-size: 12px;
  color: var(--red);
  margin: -4px 0 12px;
}
.required-star {
  color: var(--red);
  font-weight: 700;
  margin-left: 2px;
}
.add-member-btn {
  width: 100%; height: 46px; border: 1.4px dashed var(--blue);
  border-radius: 12px; background: rgba(48, 86, 212, .04);
  color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer;
  margin-bottom: 14px;
}
.add-member-btn:active { background: rgba(48, 86, 212, .1); }

/* ---------- 论坛多选（一人可选多个论坛） ----------
   论坛名较长（如「下午 · 具身智能数据•模型•仿真闭环论坛」），
   所以整行改成竖排：标签在上、勾选项逐行铺开，避免挤压换行 */
.member-card .form-row-col { display: block; }
.member-card .form-row-col .form-label { width: auto; margin-bottom: 8px; }
.sess-picks { display: flex; flex-direction: column; gap: 8px; }
.sess-picks .sp-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 11px; border: 1.2px solid var(--line-gray, #E5E7EB);
  border-radius: 10px; font-size: 13px; line-height: 1.45;
  color: var(--title-gray); cursor: pointer;
  background: #fff;
}
.sess-picks .sp-item:active { background: rgba(48, 86, 212, .04); }
.sess-picks .sp-item input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.sess-picks .sp-item span { flex: 1; word-break: break-word; }
.sess-picks .sp-item:has(input:checked) { border-color: var(--blue); background: rgba(48, 86, 212, .05); }
/* 「全部论坛」快捷项单独提亮，跟具体论坛区分开 */
.sess-picks .sp-all { font-weight: 600; background: rgba(48, 86, 212, .03); }
.sess-picks .sp-all:has(input:checked) { background: rgba(48, 86, 212, .1); border-color: var(--blue); }

.fee-box {
  background: #fff; border-radius: 16px; padding: 14px 16px; margin: 6px 0 14px;
}
.fee-box .fee-title { font-size: 13px; font-weight: 700; color: var(--title-gray); margin-bottom: 8px; }
.fee-row { display: flex; justify-content: space-between; font-size: 13px; color: #4E5969; padding: 3px 0; }
.fee-row.discount { color: var(--red); }
.fee-row.total { font-size: 15px; font-weight: 700; color: #1D2129; border-top: 1px solid var(--divider); margin-top: 6px; padding-top: 8px; }
.fee-row .free-mark { color: #00B42A; font-size: 12px; }

.student-tip {
  background: #FFF7E8; border: 1px solid #FFD591; color: #874D00;
  border-radius: 8px; font-size: 12px; line-height: 1.6; padding: 8px 10px; margin: 8px 0;
}

.group-tip {
  border-radius: 12px; font-size: 13px; line-height: 1.7; padding: 12px 14px; margin-bottom: 14px;
}
.group-tip.info { background: #EAF0FF; color: #2B4DC1; }
.group-tip.ok { background: #E8FFEA; color: #008A20; }
.group-tip.warn { background: #FDECEC; color: #C2404F; }

.refund-note { font-size: 11px; color: var(--label-gray); line-height: 1.6; margin: 10px 2px 4px; white-space: normal; }

/* 票种行内选择（member card 内） */
.ticket-select-row .select-wrap::after { border-color: var(--blue); }

/* 首页蓝底上的协议行与联系我们按钮 */
.sheet--black .agree-row { color: rgba(255,255,255,.85); }
.sheet--black .agree-row a { color: #fff; text-decoration: none; }
.sheet--black .checkbox { background: transparent; border-color: #fff; }
.sheet--black .checkbox.checked { background: #fff; border-color: #fff; }
.sheet--black .checkbox.checked::after { border-right-color: var(--blue); border-bottom-color: var(--blue); }
.sheet--black .btn-contact { background: rgba(255,255,255,.25); color: #fff; }

/* 首页建筑线稿（设计稿装饰，蓝底白线图直接融合） */
.home-building { display: block; width: 100%; margin: 16px auto 0; mix-blend-mode: lighten; }

.invited-tip {
  background: #E8FFEA; border: 1px solid #9FE3A8; color: #008A20;
  border-radius: 8px; font-size: 12px; line-height: 1.6; padding: 8px 10px; margin: 8px 0;
}

/* ============================================================
   门票类型页（设计稿「票选择」375x1115）
   灰底 #EDEDED，无品牌头；标题 y70-92 / 三卡 y114-541 / 权益面板
   y562-889 / 协议 y950-963 / 提交按钮 y984-1021 / 退款说明 y1061-1069
   ============================================================ */
#app.tk-page { background: #EDEDED; min-height: calc(var(--vh, 100vh) / var(--z, 1)); padding: 69px 0 30px; padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
/* 门票页没有蓝色品牌条（设计稿此处是浅灰底），所以只保留语言切换浮层并改成深色，
   否则白色图标落在灰底上等于看不见 */
#app.tk-page #header { height: 0; }
#app.tk-page .brand { display: none; }
#app.tk-page .lang-switch { color: #1B1C1E; top: 22px; }
#app.tk-page .lang-switch svg,
#app.tk-page .lang-switch circle,
#app.tk-page .lang-switch path { stroke: #1B1C1E; }
#app.tk-page .lang-menu { top: 50px; }
#app.tk-page .tk-title {
  text-align: center; font-size: 24px; line-height: 1; font-weight: 600;
  color: var(--title-gray); margin: 0 0 21px;
}

/* ---------- 票卡：335x136，圆角 20，白卡 + 虚线撕口 + 副券 + 右侧色条 ---------- */
.tk-cards { margin: 0 20px; }
.tk-card {
  position: relative; display: flex; height: 136px; margin-bottom: 10px;
  background: #fff; border-radius: 20px; overflow: hidden; cursor: pointer;
}
.tk-card.selected { box-shadow: 0 0 0 2px var(--btn-blue); }
.tk-main { position: relative; width: 242px; flex: none; }
.tk-tline {
  position: absolute; left: 8px; right: 16px; top: 8px;
  display: flex; justify-content: space-between; align-items: flex-start; color: #1D2129;
}
.tk-date { font-size: 10px; font-weight: 800; line-height: 1.2; }
.tk-tickets { font-size: 9px; font-weight: 800; letter-spacing: .6px; }
.tk-photo {
  position: absolute; left: 37px; top: 27px; width: 180px; height: 75px;
  border-radius: 37.5px; object-fit: cover; display: block;
}
.tk-bl { position: absolute; left: 8px; top: 93px; color: #1D2129; }
.tk-city { font-size: 14px; font-weight: 700; line-height: 1.1; }
.tk-venue { font-size: 14px; line-height: 1.2; margin-top: 3px; }
.tk-br {
  position: absolute; right: 12px; top: 106px; text-align: right;
  color: #1D2129; font-size: 8px; line-height: 1.35; letter-spacing: .2px;
}
.tk-perf { width: 2px; flex: none; border-left: 2px dashed #E5E6EB; }
/* 副券：TICKETS / 票种名 / 价格符号 / 价格数字（设计稿实测坐标） */
.tk-stub { position: relative; width: 69px; flex: none; }
.tk-s-top {
  position: absolute; left: 9px; top: 11px; font-size: 11px; font-weight: 800;
  letter-spacing: .9px; color: #000; line-height: 1; white-space: nowrap;
}
.tk-s-name {
  position: absolute; left: 9px; top: 27px; font-size: 17px; font-weight: 700;
  color: #000; line-height: 1; white-space: nowrap; letter-spacing: 0;
}
.tk-s-cur {
  position: absolute; left: 9px; top: 88px; font-size: 14px; font-weight: 800;
  color: #E54A55; line-height: 1; white-space: nowrap;
}
.tk-s-val {
  position: absolute; left: 9px; top: 106px; font-size: 18px; font-weight: 800;
  color: #E54A55; line-height: 1; white-space: nowrap; letter-spacing: 0;
}
.tk-s-cur.free, .tk-s-val.free { color: #83B931; }

/* ---------- 英文适配：副券区只有 60px 可用宽，英文票种名放不下 ----------
   英文票种名（如 "Standard Ticket"）17px 时要 130px，会越出副券压到右侧色条上；
   场馆名 "Qianhai Int'l Convention Center" 14px 时要 208px，会撞上右下角标语。
   这里只在 lang="en" 下缩小字号并允许折行，中文/繁体完全不受影响。 */
html[lang="en"] .tk-s-name {
  font-size: 11px; line-height: 1.15; white-space: normal;
  width: 52px; letter-spacing: -.2px;
}
html[lang="en"] .tk-s-top { font-size: 10px; letter-spacing: .4px; }
html[lang="en"] .tk-city { font-size: 12px; }
html[lang="en"] .tk-venue {
  font-size: 10px; line-height: 1.2; white-space: normal;
  width: 146px; margin-top: 2px;
}
/* 列头英文会折成两行，把整列往下顶，三列就对不齐了 */
html[lang="en"] .tk-col-h { font-size: 12px; }

/* ---------- 按人分配票种 ---------- */
.tk-assign {
  margin: 16px 20px 0; padding: 12px 14px;
  background: #fff; border-radius: 8px;
}
.tk-assign-t { font-size: 13px; font-weight: 700; color: #1D2129; }
.tk-assign-hint { font-size: 11px; color: #86909C; margin-top: 4px; line-height: 1.5; }
.tk-a-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;   /* 学生票的身份证输入要独占一行，不能和票种按钮挤在一起 */
  padding: 9px 0; border-top: 1px solid #F2F3F5;
}
.tk-a-row:first-child { border-top: none; }
.tk-a-name {
  font-size: 12px; color: #1D2129; font-weight: 500;
  max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-a-free { font-size: 10px; color: #83B931; margin-left: 4px; }
.tk-a-btns { display: flex; gap: 6px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.tk-a-btn {
  font-size: 11px; color: #4E5969; background: #F2F3F5;
  border: 1px solid transparent; border-radius: 4px;
  padding: 5px 8px; cursor: pointer; line-height: 1;
}
.tk-a-btn.on { color: #fff; background: #3056D4; }
/* 英文票种名更长，按钮区改纵向排布避免挤成一团 */
html[lang="en"] .tk-a-row { flex-direction: column; align-items: stretch; gap: 6px; }
html[lang="en"] .tk-a-name { max-width: none; }
html[lang="en"] .tk-a-btns { justify-content: flex-start; }
/* 学生票：选中后多出《教育部学籍在线验证报告》上传，整行独占一行避免和票种按钮挤在一起 */
.tk-a-report { flex-basis: 100%; margin-top: 8px; }
.tk-report-pick { display: inline-block; position: relative; cursor: pointer; }
/* input 不能用 display:none（微信 WebView 里 label 点不触发），用 1px 透明保留可点击性 */
.tk-report-input {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
}
.tk-report-btn {
  display: inline-block; padding: 7px 12px; border-radius: 6px;
  border: 1px dashed #3056D4; background: #F5F8FF; color: #3056D4;
  font-size: 11px; font-weight: 600; line-height: 1.4;
}
.tk-report-file {
  margin-top: 5px; font-size: 11px; color: #00B42A; line-height: 1.5;
  word-break: break-all;
}
.tk-a-report .tk-a-tip {
  font-size: 10px; color: #86909C; margin-top: 4px; line-height: 1.5;
}
.tk-a-report .tk-report-how { color: #4E5969; }
.tk-fee-total { font-weight: 700; margin-top: 2px; }
.tk-bar { width: 20px; flex: none; }
.tk-bar.g1 { background: #83B931; }
.tk-bar.g2 { background: #3056D4; }
.tk-bar.g3 { background: linear-gradient(180deg, #5B3200 0%, #EB870E 100%); }

/* ---------- 权益 / 议程面板：335x328，圆角 8 ---------- */
.tk-panel {
  margin: 21px 20px 0; background: #fff; border-radius: 8px;
  padding: 20px 20px 14px; min-height: 328px;
}
.tk-tabs { display: flex; height: 32px; }
.tk-tab {
  flex: 1; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--title-gray); position: relative; padding-top: 2px;
}
.tk-tab.active { color: #000; }
.tk-tab.active::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 148px; height: 3px; background: var(--btn-blue); border-radius: 2px;
}
.tk-cols { display: flex; margin-top: 16px; }
.tk-col { flex: 1; text-align: center; }
.tk-col-h { font-size: 14px; font-weight: 700; color: #383838; line-height: 1; position: relative; }
/* 选中列的下划线用绝对定位：原来占布局流，会把该列整列推下一行，三列对不齐 */
.tk-col.active .tk-col-h::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  width: 98px; height: 5px;
  background: #3056D4; border-radius: 3px; margin-top: 8px;
}
.tk-ben { margin-top: 15px; list-style: none; padding: 0; }
.tk-ben li { font-size: 10px; line-height: 12px; color: #1D2129; margin-bottom: 21px; }
.tk-ben li.tk-p { font-weight: 700; color: #383838; }
.tk-agenda { margin-top: 18px; }

/* ---------- 论坛议程卡片（2026-11-02 新稿）----------
   票选择 / 电子票 两个 tab 共用：三列 上午·下午·晚间 + 胶囊块。
   胶囊横跨整行 = 全天开放（展区），落在某一列 = 该时段专场。 */
.agenda-card { width: 100%; }
.agenda-heads { display: flex; border-bottom: 1px dashed #D8DBE3; }
.agenda-heads > div {
  flex: 1; text-align: center; font-size: 12px; font-weight: 600;
  color: #7E828F; padding: 4px 0 10px; position: relative; line-height: 1.2;
}
.agenda-heads > div + div::before {
  content: ""; position: absolute; left: 0; top: -2px; bottom: 0;
  border-left: 1px dashed #E0E3EA;
}
.agenda-grid {
  padding-top: 12px;
  background: linear-gradient(90deg, #FFFCF2 0 66.66%, #FFFFFF 66.66% 100%);
}
.agenda-row { display: flex; min-height: 44px; align-items: center; }
.agenda-row + .agenda-row { margin-top: 8px; }
.agenda-cell { flex: 1; padding: 0 5px; position: relative; text-align: center; }
.agenda-cell + .agenda-cell::before {
  content: ""; position: absolute; left: 0; top: -6px; bottom: -6px;
  border-left: 1px dashed #E0E3EA;
}
.agenda-full { width: 100%; padding: 0 5px; }
.agenda-pill {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 34px; box-sizing: border-box;
  border-radius: 8px; padding: 7px 5px;
  font-size: 12px; font-weight: 600; line-height: 1.3; color: #fff;
  text-align: center; word-break: break-word;
}
.agenda-pill.ag-blue   { background: #2B4BC8; }
.agenda-pill.ag-violet { background: #9A8AE6; }
.agenda-pill.ag-sky    { background: #6BA6E8; }
.agenda-pill.ag-night  { background: #6F4FC0; }

/* ---------- 协议 / 提交 / 退款说明 ---------- */
#app.tk-page .tk-agree-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 24px 20px 0; font-size: 13px; color: #6E6E6E;
}
/* 选票页协议勾选：圆圈上移对齐首行、放大到 20px；透明热区盖住链接扩展热区，避免误触《退款政策》 */
#app.tk-page .tk-agree-row a { color: var(--blue); text-decoration: none; padding: 8px 4px; margin: 0 -4px; }
#app.tk-page .checkbox {
  width: 20px; height: 20px; border-color: #C9CDD4;
  margin-top: 1px; position: relative; z-index: 2;
}
#app.tk-page .checkbox::before {
  content: ""; position: absolute; left: -10px; right: -2px; top: -10px; bottom: -10px;
}
#app.tk-page .checkbox.checked::after { left: 6px; top: 3px; width: 5px; height: 10px; border-right-width: 2px; border-bottom-width: 2px; }
#app.tk-page .tk-fee {
  margin: 14px 20px 0; text-align: center; font-size: 12px; color: #4E5969; line-height: 1.3;
}
#app.tk-page .tk-submit { width: calc(100% - 40px); margin: 21px 20px 0; }
#app.tk-page .refund-note {
  margin: 36px 23px 0; font-size: 10px; line-height: 1.4; color: #6E6E6E;
}
#app.tk-page .tk-student-tip {
  margin: 12px 20px 0; font-size: 11px; line-height: 1.6; color: #8A6D3B;
}

/* 现场签到页 /checkin/<码>：活动信息卡（仅 #app.ck-page 生效，不影响其他页面） */
#app.ck-page .ck-card {
  border: 1px solid var(--divider); border-radius: 12px;
  padding: 14px 16px; margin: 0 0 22px; background: #fff;
}
#app.ck-page .ck-card-title {
  font-size: 15px; font-weight: 700; color: var(--title-gray);
  margin-bottom: 10px; line-height: 1.4;
}
#app.ck-page .ck-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  font-size: 13px; color: #4E5969; padding: 4px 0; line-height: 1.5;
}
#app.ck-page .ck-row b { font-weight: 500; color: #1D2129; text-align: right; }
#app.ck-page .ck-badge {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  background: rgba(33,58,141,.08); color: #213A8D; font-weight: 600; font-size: 12px;
}

/* 老板特邀邀约码：选票页锁定票种提示（2026-11-19），作用域限定 tk-page */
#app.tk-page .vip-banner {
  margin: 0 20px 14px; padding: 12px 14px; border-radius: 10px;
  background: #EDF3FF; border: 1px solid #C9DAFF;
  color: #213A8D; font-size: 13px; line-height: 1.6; text-align: center;
}
#app.tk-page .vip-banner b { font-weight: 700; }
