/*
 * 品牌配色 + 新素材适配（2026-10-22）
 * 依据：Agent Hosting 字标 SVG 官方色值 —— 深蓝 #102A50（字形）、品牌蓝 #245BFF（斜带）；点缀黄取自 A/H 吉祥物身体。
 * 本文件最后加载，只覆盖颜色与新吉祥物尺寸，不改布局。要回退旧配色，删掉 index.html / admin.html 里对它的引用即可。
 */
:root{
  --ah-navy:#102A50;      /* 字标深蓝：标题、正文主色 */
  --ah-blue:#245BFF;      /* 字标品牌蓝：主按钮、高亮、链接 */
  --ah-blue-deep:#1A47D6; /* 品牌蓝按下/悬停 */
  --ah-blue-50:#EEF3FF;   /* 品牌蓝浅底 */
  --ah-blue-100:#DCE6FF;  /* 品牌蓝描边 */
  --ah-yellow:#FFD23F;    /* 点缀黄（吉祥物身体色） */
  --ah-yellow-50:#FFF6D6; /* 点缀黄浅底 */
  --ah-yellow-ink:#7A5800;/* 黄底上的文字 */
  --ah-page:#F5F8FF;      /* 页面底色 */

  /* 覆盖旧变量，让旧样式自动换色 */
  --azure:var(--ah-blue);--sky:var(--ah-blue);--navy:var(--ah-navy);--ice:var(--ah-page);
  --amber:var(--ah-yellow);--cyan:var(--ah-blue);--line:var(--ah-blue-100);
  --shadow:0 22px 60px rgba(36,91,255,.12);
}

/* ---------- 页面背景：品牌蓝为主，右上角一点暖黄光 ---------- */
html{background:var(--ah-page)}
body{
  background:
    radial-gradient(circle at 88% 6%,rgba(255,210,63,.20),transparent 22rem),
    radial-gradient(circle at 8% 0%,rgba(36,91,255,.10),transparent 30rem),
    linear-gradient(180deg,#F7F9FF 0%,var(--ah-page) 55%,#FFFFFF 100%) !important;
  color:var(--ah-navy);
}

/* ---------- Logo：新字标是横向 SVG，统一高度、保持比例 ---------- */
.topbar img,.survey-brand img,.brand-header img,.admin-top img,.login-card>img{height:30px!important;width:auto!important;max-width:100%}
.specimen-logo img{height:auto!important;width:min(340px,100%)!important}
@media(max-width:600px){
  .topbar img,.brand-header img,.admin-top img{height:24px!important}
  .survey-screen .survey-brand img{height:20px!important;width:auto!important}
}

/* ---------- 顶部状态胶囊 / 小标签：黄色点缀 ---------- */
.status-pill{background:var(--ah-yellow-50)!important;border-color:rgba(255,210,63,.6)!important;color:var(--ah-yellow-ink)!important}
.home-copy .survey-bubble{
  background:var(--ah-blue)!important;color:#fff!important;border:0!important;
  box-shadow:0 10px 24px -14px rgba(36,91,255,.8)!important;
}
.meta-dot{background:var(--ah-yellow)!important}

/* ---------- 标题：首行深蓝，第二行品牌蓝，句号后加一笔黄色下划 ---------- */
.hero h1 span{color:var(--ah-blue)}
.hero h1 .headline-first{color:var(--ah-navy)}

/* ---------- 按钮：主按钮品牌蓝；次按钮白底蓝字蓝边 ---------- */
.primary{background:var(--ah-blue)!important;box-shadow:0 12px 24px -12px rgba(36,91,255,.7)!important}
.primary:hover{background:var(--ah-blue-deep)!important}
.hero-actions .hero-cta{background:var(--ah-blue)!important}
.hero-actions .brand-details-link{
  background:#fff!important;color:var(--ah-blue)!important;border:1.5px solid var(--ah-blue)!important;
  box-shadow:0 8px 18px -14px rgba(36,91,255,.6)!important;
}
.hero-actions .brand-details-link:hover{background:var(--ah-blue-50)!important;color:var(--ah-blue-deep)!important}
.secondary{border-color:var(--ah-blue-100)!important;color:var(--ah-navy)}

/* ---------- 产品胶囊导航：当前项品牌蓝，指示点用黄色 ---------- */
.pp{--pp-highlight:var(--ah-blue);--pp-strong:var(--ah-navy)}
.pp-fill{background:var(--ah-blue)!important}
.pp-dot{background:var(--ah-yellow)!important;box-shadow:0 0 0 3px rgba(255,210,63,.28)!important}
.pp-logo{background:var(--ah-yellow-50)!important;box-shadow:inset 0 0 0 1px rgba(255,210,63,.7)!important}
.pp-cards{border-color:var(--ah-blue-100)!important}
.pp-card-no{color:var(--ah-blue)!important;border-color:var(--ah-blue-100)!important}
.pp-card-more{color:var(--ah-blue)!important}
.pp-progress{background:var(--ah-blue-50)!important}
.pp-progress i{background:linear-gradient(90deg,var(--ah-blue),var(--ah-yellow))!important}
.hero-stage-no{background:var(--ah-blue)!important}
.hero-stage-tag i{color:var(--ah-blue)!important}

/* ---------- 问卷页：进度、选项、章节 ---------- */
.progress-fill{background:linear-gradient(90deg,var(--ah-blue),var(--ah-blue) 80%,var(--ah-yellow))!important}
.progress-node.done{background:var(--ah-blue)!important}
.progress-node.current{background:var(--ah-yellow)!important}
.option.selected,.matrix-choice.selected{border-color:var(--ah-blue)!important;background:var(--ah-blue-50)!important}
.option.selected .check,.matrix-choice.selected .matrix-radio{background:var(--ah-blue)!important;color:#fff!important;border-color:var(--ah-blue)!important}
.chapter-list li.current .chapter-number{background:var(--ah-blue)!important;color:#fff!important}
.chapter-list li.done .chapter-number{background:var(--ah-yellow)!important;color:var(--ah-navy)!important}
.question-num:before{background:var(--ah-yellow-50)!important;color:var(--ah-yellow-ink)!important}

/* ---------- 新吉祥物（A+H 横版，宽高比约 1.39:1）：各位置改为按宽度适配 ---------- */
.hero-guide .mascot,.hero-art .mascot{width:min(560px,96%)!important;height:auto!important;max-height:none!important}
.guide-card img{width:96px!important;height:auto!important}
.contact-seal img{width:110px!important;height:auto!important}
.required-dialog img{width:150px!important;height:auto!important}
.thank-card>img{width:min(300px,72%)!important;height:auto!important;max-height:none!important}
.brand-footer img{width:180px!important;height:auto!important}
.brand-intro img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain}
.brand-specimen img.specimen-mascot{width:100%!important;height:auto!important;max-height:200px;object-fit:contain}
@media(max-width:600px){
  .guide-card img{width:72px!important}
  .contact-seal img{width:84px!important}
  .required-dialog img{width:110px!important}
  .survey-screen .brand-specimen img.specimen-mascot{height:auto!important;max-height:76px}
}

/* ---------- 后台 ---------- */
.stat strong{color:var(--ah-navy)}
.admin-pager button:not(:disabled):hover{border-color:var(--ah-blue)!important}

/* ---------- 胶囊导航左侧：AH 动态标识（替换原黄色头像）----------
   标识是 620:357 的横版，给它一个独立的横向胶囊位，固定宽度、不收缩，
   右侧四颗产品胶囊从它之后开始排，不会被盖住 */
.pp-logo{flex:0 0 auto!important;width:72px!important;height:var(--pp-inner)!important;border-radius:999px!important;
  background:#fff!important;box-shadow:inset 0 0 0 1px var(--ah-blue-100,#d6e2ff),0 4px 10px -6px rgba(36,91,255,.4)!important;
  position:relative;z-index:2;margin-right:4px}
.pp-mark{width:46px!important;height:auto!important;aspect-ratio:620/357;border-radius:0!important;background:none!important;display:block;object-fit:contain}
.pp-logo:hover .pp-mark{animation:none!important}
@media(max-width:600px){
  .pp-logo{width:52px!important;height:38px!important;margin-right:2px}
  .pp-mark{width:34px!important}
}

/* ---------- 首页右侧：吉祥物 ---------- */
.home-shell .hero:has(.hero-guide){align-items:center}
.hero-guide{min-height:520px}
.hero-guide .mascot{width:min(600px,100%)!important;filter:drop-shadow(0 30px 40px rgba(16,42,80,.16))}
@media(max-width:600px){
  .hero-guide{min-height:0;padding:6px 0 0}
  .hero-guide .mascot{width:min(330px,88%)!important}
}

/* 横版终版 Logo 自带留白，顶部显示尺寸相应放大 */
.topbar > img[src*="lockup"]{height:46px!important;width:auto!important;max-width:none!important}
@media(max-width:600px){.topbar > img[src*="lockup"]{height:30px!important}.topbar{flex-wrap:nowrap!important;gap:8px}}
/* 详情页、问卷页、后台等其他位置的横版 Logo 同样放大 */
img[src*="assets/brand/lockup"]:not(.topbar > img):not(.specimen-logo img){height:42px!important;width:auto!important;max-width:none!important}
@media(max-width:600px){img[src*="assets/brand/lockup"]:not(.topbar > img):not(.specimen-logo img){height:30px!important}}

/* ===== 品牌理念（2026-10-23）：首页三方向条 + 详情页新增区块 ===== */
.here-row{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0}
.here-row li{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 6px;border-radius:999px;background:#fff;border:1px solid var(--ah-blue-100)}
.here-row b{padding:3px 9px;border-radius:999px;background:var(--ah-blue);color:#fff;font:700 12px Manrope,sans-serif;letter-spacing:.01em}
.here-row span{font-size:13px;color:var(--ah-navy);font-weight:600}
.hero-guide-bubble{top:8%!important;left:6%!important;font-size:14px!important}
.hero-guide-bubble b{color:var(--ah-blue)!important;font:800 16px Manrope,sans-serif}
.hero-guide-bubble span{color:var(--ah-navy)}

.brand-origin,.brand-who{margin:10px 0 55px}
.aha-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:26px}
.aha-card{padding:26px 24px;border-radius:22px;background:#fff;border:1px solid var(--ah-blue-100);display:flex;flex-direction:column;gap:10px}
.aha-no{align-self:flex-start;padding:4px 10px;border-radius:999px;background:var(--ah-yellow-50);color:var(--ah-yellow-ink);font:800 11px Manrope,sans-serif;letter-spacing:.08em}
.aha-quote{margin:4px 0 0;font-size:18px;line-height:1.6;font-weight:700;color:var(--ah-navy)}
.aha-card strong{margin-top:auto;padding-top:12px;border-top:1px dashed var(--ah-blue-100);color:var(--ah-blue);font:800 15px Manrope,sans-serif}
.aha-card p:last-child{margin:0;font-size:14px;line-height:1.8;color:#506e91}
.cap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 32px;margin-top:20px}
.cap-grid article{padding:18px 0;border-top:1px solid var(--ah-blue-100)}
.cap-grid h4{margin:0 0 6px;font-size:16px;color:var(--ah-navy)}
.cap-grid p{margin:0;font-size:14px;line-height:1.8;color:#506e91}
.who-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}
.who-grid article{padding:20px;border-radius:18px;background:#ffffffc0;border:1px solid var(--ah-blue-100)}
.who-grid strong{display:block;font-size:16px;color:var(--ah-navy);margin-bottom:6px}
.who-grid p{margin:0;font-size:13.5px;line-height:1.75;color:#506e91}
@media(max-width:900px){.aha-grid,.cap-grid,.who-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){
  .here-row{gap:6px;margin-top:12px}
  .here-row li{padding:4px 9px 4px 4px;gap:6px}
  .here-row b{font-size:10.5px;padding:3px 7px}
  .here-row span{font-size:11.5px}
  .aha-grid,.cap-grid,.who-grid{grid-template-columns:1fr}
  .aha-quote{font-size:16px}
  .hero-guide-bubble{font-size:12px!important}
  .hero-guide-bubble b{font-size:13px}
}
.hero-guide-bubble{top:-2%!important;left:2%!important}
.here-row{animation:here-in .6s .5s cubic-bezier(.22,1,.36,1) backwards}
@keyframes here-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.here-row{animation:none}}
@media(max-width:600px){.hero-guide-bubble{top:0!important;left:0!important}}
@media(max-width:600px){
  /* 三个方向排成一行三列，英文在上、中文在下 */
  .here-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .here-row li{flex-direction:column;align-items:flex-start;gap:4px;padding:7px 8px;border-radius:12px}
  .here-row b{font-size:10px;padding:2px 6px;white-space:nowrap}
  /* 气泡放到吉祥物上方，不压头像 */
  .hero-guide{flex-direction:column}
  .hero-guide-bubble{position:relative!important;top:auto!important;left:auto!important;align-self:flex-start;margin:0 0 6px 8%}
}
@media(max-width:600px){.hero-guide-bubble{order:-1}}
@media(max-width:360px){.here-row{gap:4px}.here-row li{padding:6px 5px}.here-row b{font-size:8.6px;padding:2px 4px;letter-spacing:-.01em}.here-row span{font-size:11px}}

/* ===== 主标题第一行：Agent Hosting，Always Here（2026-10-23） ===== */
.hero h1 .headline-first{white-space:normal!important}
.hero h1 .nw{white-space:nowrap;display:inline-block}
.hero h1 .hl-accent{color:var(--ah-blue)}
/* 字墙比容器宽，避免撑出横向滚动条（平板、手机横屏） */
html,body{overflow-x:clip}
.home-shell,.hero{max-width:100%}
/* 手机：按屏幕宽度算字号，保证「Agent Hosting，Always Here」一行放下（该行约 14.2em 宽，左右各留 18px） */
@media(max-width:600px){
  .home-shell .hero h1{font-size:min(30px,calc((100vw - 38px) / 14.4))!important;line-height:1.38}
  .hero h1 .headline-first{white-space:nowrap!important}
}

/* ===== 手机端矩阵题：表格改为「每个产品一张卡，选项两列点选」，不用左右滑 ===== */
@media(max-width:600px){
  .survey-screen .matrix-note:after{content:none!important}
  .survey-screen .matrix-wrap{overflow:visible!important}
  .survey-screen .matrix-table{min-width:0!important;width:100%;display:block;border:0!important;background:none!important}
  .survey-screen .matrix-table thead{display:none}
  .survey-screen .matrix-table tbody{display:flex;flex-direction:column;gap:10px}
  .survey-screen .matrix-table tr{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:10px;border:1px solid var(--ah-blue-100);border-radius:14px;background:#fff}
  .survey-screen .matrix-table tbody th{grid-column:1 / -1;position:static!important;min-width:0!important;background:none!important;padding:0 2px 2px!important;text-align:left;font-size:14px!important;color:var(--ah-navy);border:0!important}
  .survey-screen .matrix-table td{min-width:0!important;padding:0!important;border:0!important}
  .survey-screen .matrix-choice{width:100%;min-height:38px!important;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--ah-blue-100)!important;border-radius:10px;background:#f7f9ff}
  .survey-screen .matrix-choice::after{content:attr(title);font-size:12.5px;color:var(--ah-navy);white-space:nowrap;overflow:hidden;text-overflow:clip}
  .survey-screen .matrix-choice[title]::after{content:attr(data-opt)}
  .survey-screen .matrix-choice.selected{background:var(--ah-blue)!important;border-color:var(--ah-blue)!important}
  .survey-screen .matrix-choice.selected::after{color:#fff}
  .survey-screen .matrix-radio{flex:none;width:16px!important;height:16px!important;font-size:10px}
}
@media(max-width:600px){
  .survey-screen .matrix-table tbody{gap:8px}
  .survey-screen .matrix-table tr{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:8px}
  .survey-screen .matrix-choice{min-height:34px!important;padding:0 6px;gap:4px;justify-content:center}
  .survey-screen .matrix-choice .matrix-radio{display:none}
  .survey-screen .matrix-choice::after{font-size:12px;letter-spacing:-.02em}
}
@media(max-width:340px){.survey-screen .matrix-choice::after{font-size:11px}}

/* ===== iOS / 刘海屏适配 ===== */
/* 输入框字号不低于 16px，否则 iPhone 聚焦时会自动放大页面 */
input,textarea,select{font-size:max(16px,1em)}
.contact-input{font-size:16px!important}
/* 刘海屏和底部横条留出安全区 */
@supports(padding:max(0px)){
  .home-shell,.brand-page{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  .survey-screen{padding-bottom:env(safe-area-inset-bottom)}
}
/* 手机浏览器地址栏收起/展开时，问卷页高度跟着可视区变化 */
@supports(height:100dvh){.survey-screen{min-height:100dvh}}
/* 去掉点按时的灰色高亮块 */
a,button{-webkit-tap-highlight-color:transparent}
/* 标题配色：第一行「Agent Hosting，」深蓝 +「Always Here」品牌蓝；第二行深蓝 */
.hero h1 .headline-first .nw{color:var(--ah-navy)}
.hero h1 .headline-first .nw.hl-accent{color:var(--ah-blue)}
.hero h1>span:not(.headline-first){color:var(--ah-navy)}

/* ===== 手机首页减负（2026-10-23）：说明文字小一号；吉祥物上移到按钮下方，产品胶囊放到吉祥物后面 ===== */
@media(max-width:600px){
  .home-shell .hero-copy{font-size:13px!important;line-height:1.75!important;color:#5a7091;margin-bottom:0}
  .home-shell .here-row{margin-top:10px}
  .home-shell .meta-row{margin:12px 0 14px!important;font-size:11.5px!important}
  .home-shell .hero{gap:6px!important}
  .home-shell .hero-guide{padding:4px 0 0}
  .home-shell .hero-guide .mascot{width:min(260px,72%)!important}
  .home-shell .hero-guide-bubble{margin-bottom:0}
  .home-shell .hero > .pp{margin-top:8px;max-width:none}
}

/* ===== 问卷每题吉祥物（2026-10-23）===== */
.guide-card img{width:118px!important;height:86px!important;object-fit:contain;object-position:left bottom}
.guide-card span{white-space:pre-line}
.guide-card.is-swap img{animation:mascot-in .5s cubic-bezier(.34,1.4,.64,1)}
.guide-card.is-swap span{animation:mascot-fade .45s ease}
@keyframes mascot-in{from{opacity:0;transform:translateY(10px) scale(.92)}to{opacity:1;transform:none}}
@keyframes mascot-fade{from{opacity:0}to{opacity:1}}
.contact-seal img{width:128px!important;height:92px!important;object-fit:contain}
.q-mascot{display:none}
@media(max-width:600px){
  .question-frame{position:relative}
  .q-mascot{display:block;position:absolute;top:8px;right:12px;width:74px;height:52px;object-fit:contain;object-position:right top;pointer-events:none;animation:mascot-in .5s cubic-bezier(.34,1.4,.64,1)}
  .question-frame .question-title{padding-right:70px}
  .contact-seal img{width:92px!important;height:66px!important}
}
@media(prefers-reduced-motion:reduce){.guide-card.is-swap img,.guide-card.is-swap span,.q-mascot{animation:none}}
/* 微调：电脑端左下角吉祥物放大；手机端题号行右侧的小吉祥物不压分割线 */
.guide-card img{width:140px!important;height:100px!important}
@media(max-width:600px){
  .q-mascot{top:2px;right:10px;width:66px;height:40px}
}

/* ===== 问卷页顶栏：返回首页按钮 ===== */
.survey-brand{display:flex;align-items:center;gap:14px}
.survey-home{flex:none;display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--ah-blue-100,#d6e2ff);background:#fff;color:var(--ah-blue,#245BFF);font:600 13px/1 inherit;font-family:inherit;cursor:pointer;transition:.2s;white-space:nowrap}
.survey-home:hover{background:var(--ah-blue,#245BFF);color:#fff;border-color:var(--ah-blue,#245BFF)}
@media(max-width:600px){
  .survey-brand{gap:8px}
  .survey-home{height:30px;padding:0 10px;font-size:12px}
  .survey-home{font-size:0}
  .survey-home::before{content:"← 首页";font-size:12px}
}

/* ===== 每题抽奖标签（2026-10-23）===== */
.question-num{flex-wrap:nowrap}
.question-num .qn-no{flex:none}
.lucky{position:relative;display:inline-flex;min-width:0;letter-spacing:0}
.lucky-tag{display:inline-flex;align-items:center;gap:6px;min-width:0;height:28px;padding:0 6px 0 10px;border-radius:999px;border:1px solid #F5D66B;
  background:linear-gradient(180deg,#FFF8DC,#FFEFB0);color:#7A5A00;font:600 12.5px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap;transition:.2s}
.lucky-tag:hover,.lucky-tag[aria-expanded=true]{background:#FFE58A;border-color:#E9BE2C}
.lucky-ico{font-style:normal;font-size:13px}
.lucky-long,.lucky-short{overflow:hidden;text-overflow:ellipsis}
.lucky-short{display:none}
.lucky-info{display:grid;place-items:center;flex:none;width:16px;height:16px;border-radius:50%;background:#7A5A00;color:#FFF5CC;font:700 10px/1 Georgia,serif;font-style:italic}
.lucky-pop{position:absolute;top:calc(100% + 8px);left:0;z-index:30;width:min(340px,78vw);padding:12px 14px;border-radius:14px;background:#fff;
  border:1px solid #F5D66B;box-shadow:0 18px 40px -18px rgba(16,42,80,.45);color:var(--ah-navy,#102A50);font:400 13px/1.7 inherit;font-family:inherit;letter-spacing:0;white-space:normal;text-transform:none}
.lucky-pop[hidden]{display:none}
.lucky-pop strong{display:block;margin-bottom:4px;color:#7A5A00;font-size:13.5px}
.thank-card .lucky-done{display:flex;flex-direction:column;gap:4px;margin:14px auto 0;padding:12px 16px;max-width:520px;border-radius:14px;background:#FFF6D1;border:1px solid #F5D66B;color:#6b5000;font-size:13.5px;line-height:1.6}
.thank-card .lucky-done b{font-size:15px;color:#7A5A00}
@media(max-width:600px){
  .lucky-long{display:none}.lucky-short{display:inline}
  .lucky-tag{height:24px;font-size:11.5px;padding:0 5px 0 8px;gap:4px}
  .lucky-info{width:14px;height:14px;font-size:9px}
  .question-viewport .question-num{padding-right:74px}
  .lucky-pop{width:min(300px,calc(100vw - 48px));left:-34px}
}
/* 手机：说明弹层相对题目卡片铺开，不再从标签处向右溢出 */
@media(max-width:600px){
  .question-viewport .question-num{position:relative}
  .lucky{position:static}
  .lucky-pop{left:0;right:0;width:auto;top:calc(100% + 6px)}
}

/* ===== 抽奖标签改为主题色（2026-10-23）：默认品牌蓝实心；给 body 加 .lucky-yellow 可切换为主题黄 ===== */
.lucky-tag{background:var(--ah-blue,#245BFF);border:0;color:#fff;font-weight:700;box-shadow:0 6px 14px -8px rgba(36,91,255,.7)}
.lucky-tag:hover,.lucky-tag[aria-expanded=true]{background:#1747DF;border:0}
.lucky-info{background:#FFD23F;color:var(--ah-navy,#102A50)}
.lucky-pop{border-color:var(--ah-blue-100,#d6e2ff)}
.lucky-pop strong{color:var(--ah-blue,#245BFF)}
body.lucky-yellow .lucky-tag{background:#FFD23F;color:var(--ah-navy,#102A50);box-shadow:0 6px 14px -8px rgba(224,168,0,.8)}
body.lucky-yellow .lucky-tag:hover,body.lucky-yellow .lucky-tag[aria-expanded=true]{background:#F5C400}
body.lucky-yellow .lucky-info{background:var(--ah-navy,#102A50);color:#FFD23F}

/* ===== 手机界面检查修复（2026-10-23 17:20）===== */
/* 1) 矮屏手机原先隐藏整行题号 → 抽奖标签也没了。改为保留一行紧凑的题号+标签，只去掉 QUESTION 字样 */
@media(max-width:600px) and (max-height:740px){
  .survey-screen .question-viewport .question-num{display:flex!important;margin-bottom:8px;padding-bottom:6px}
  .survey-screen .question-viewport .question-num:before{display:none}
  .survey-screen .question-viewport .question-num .qn-no{font-size:11px}
}
/* 2) 窄屏顶栏：Logo、首页按钮、进度三者并排时互相挤压 → 缩小 Logo，首页按钮只留箭头图标 */
@media(max-width:374px){
  .survey-screen .survey-brand img{width:112px!important}
  .survey-screen .survey-brand{gap:6px}
  .survey-home{width:30px;padding:0;justify-content:center}
  .survey-home::before{content:"⌂";font-size:16px!important;line-height:1}
  .survey-screen .survey-progress-meta{width:128px!important}
  .survey-screen .question-counter{font-size:9.5px!important;white-space:nowrap}
}
/* 3) 矮屏长题（视觉题、矩阵题）：题卡高度不超过可视区，内容在卡片内滚动，「下一题」按钮可达 */
@media(max-width:600px){
  .survey-screen .question-viewport .question-frame{max-height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
}

/* ===== 背景淡灰网格（2026-10-25）：铺满整页、固定不随滚动；四周渐隐，中间最清楚 ===== */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background-image:
    linear-gradient(rgba(16,42,80,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(16,42,80,.055) 1px,transparent 1px),
    linear-gradient(rgba(16,42,80,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(16,42,80,.03) 1px,transparent 1px);
  background-size:96px 96px,96px 96px,24px 24px,24px 24px;
  background-position:-1px -1px;
  -webkit-mask-image:radial-gradient(ellipse 85% 80% at 50% 40%,#000 35%,rgba(0,0,0,.35) 75%,transparent 100%);
          mask-image:radial-gradient(ellipse 85% 80% at 50% 40%,#000 35%,rgba(0,0,0,.35) 75%,transparent 100%)}
body{position:relative;isolation:isolate}
@media(max-width:600px){body::before{background-size:64px 64px,64px 64px,16px 16px,16px 16px}}

/* 正式版提交成功页：招聘邀请 */
.thank-card .recruitment-card{margin:24px auto 0;padding:28px;max-width:680px;text-align:left;border:2px solid #a8c2ff;border-radius:22px;background:linear-gradient(135deg,#e6efff,#f6f0ff 70%,#fff);box-shadow:0 12px 32px rgba(36,91,255,.12)}
.thank-card .recruitment-kicker{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.1em;color:#245BFF}
.thank-card .recruitment-card h2{margin:0 0 12px;font-size:36px;font-weight:900;line-height:1.3;color:#1744d0}
.thank-card .recruitment-copy{margin:0;font-size:15px;line-height:1.8;color:#102A50}
.thank-card .recruitment-roles{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0;padding:0;list-style:none}
.thank-card .recruitment-roles li{max-width:100%;padding:10px 16px;border-radius:12px;background:#245BFF;color:#fff;font-size:16px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.thank-card .recruitment-apply{padding:18px;border-radius:16px;background:#ffffffd9}
.thank-card .recruitment-apply h3{margin:0 0 12px;color:#102A50;font-size:19px;line-height:1.5}
.thank-card .recruitment-email{display:block;padding:12px 14px;border-radius:12px;background:linear-gradient(110deg,#087bfa,#6540eb);color:#fff;font-size:clamp(15px,2.2vw,22px);font-weight:800;line-height:1.5;text-decoration:none;overflow-wrap:anywhere;user-select:text}
.thank-card .recruitment-email:hover{filter:brightness(1.08)}
.thank-card .recruitment-copy-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:10px 0}
.thank-card .recruitment-copy-email{min-height:40px;padding:8px 14px;border:1px solid #b6c9ff;border-radius:9px;background:#fff;color:#1744d0;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.thank-card .recruitment-feedback{font-size:12px;color:#526079}
.thank-card .recruitment-contact{margin:8px 0 0;font-size:12px;line-height:1.8;color:#526079}
.recruitment-card a:focus-visible,.recruitment-card button:focus-visible{outline:3px solid #102A50;outline-offset:3px}
@media(max-width:600px){.thank-card .recruitment-card{padding:18px;margin-top:20px}.thank-card .recruitment-card h2{font-size:30px}.thank-card .recruitment-apply{padding:14px}.thank-card .recruitment-roles{display:grid;grid-template-columns:minmax(0,1fr)}.thank-card .recruitment-roles li{font-size:16px}.thank-card .recruitment-email{font-size:15px}}

/* 邮箱和复制操作保持同行 */
.thank-card .recruitment-email-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:linear-gradient(110deg,#087bfa,#6540eb)}
.thank-card .recruitment-email-row .recruitment-email{flex:1;min-width:0;padding:0;background:none;border-radius:0;font-size:clamp(14px,2vw,20px)}
.thank-card .recruitment-email-row .recruitment-copy-email{flex:none;min-height:36px;padding:7px 10px;font-size:12px;white-space:nowrap}
.thank-card .recruitment-feedback{display:block;line-height:1.6}
.thank-card .recruitment-feedback:not(:empty){margin-top:6px}
@media(max-width:600px){.thank-card .recruitment-roles{grid-template-columns:minmax(0,1fr)}.thank-card .recruitment-email-row{gap:6px;padding:10px}.thank-card .recruitment-email-row .recruitment-copy-email{padding:7px 8px}.thank-card .recruitment-email-row .recruitment-email{font-size:14px}}

/* 手机端完整显示邮箱，复制按钮固定同行 */
@media(max-width:600px){
  .thank-card .recruitment-card{padding:12px}
  .thank-card .recruitment-apply{padding:10px}
  .thank-card .recruitment-email-row{flex-wrap:nowrap;gap:4px;padding:8px 6px}
  .thank-card .recruitment-email-row .recruitment-email{font-family:Arial,sans-serif;font-size:clamp(9px,2.8vw,13px);font-weight:600;letter-spacing:-.2px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
  .thank-card .recruitment-email-row .recruitment-copy-email{min-height:36px;padding:6px 5px;font-size:10px;border-radius:7px}
}
@media(max-width:360px){.thank-card{padding:16px}}
