
:root{--bg:#0b1728;--panel:#12243a;--panel2:#172d46;--line:#334963;--gold:#e8bd76;--text:#f5f3ed;--muted:#a8b7c8;--ink:#172335;--cream:#f4f0e8;--content-rail:26px}
@media(max-width:750px){:root{--content-rail:24px}}*{box-sizing:border-box}html{scroll-behavior:smooth;touch-action:manipulation;-ms-touch-action:manipulation}body{margin:0;background:radial-gradient(circle at 15% 0%,#19324d 0%,var(--bg) 48%),var(--bg);color:var(--text);font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}button{font:inherit;cursor:pointer}button:focus,button:focus-visible{outline:none}
.button:focus,.button:focus-visible,.quiz-nav .button:focus,.quiz-nav .button:focus-visible,.result-actions .button:focus,.result-actions .button:focus-visible{outline:none}.shell{min-height:100dvh;display:flex;flex-direction:column}.topbar{max-width:1120px;width:100%;margin:auto auto 0;padding:24px 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ffffff22}.brand{display:flex;align-items:center;gap:12px;font-size:12px;letter-spacing:.12em;font-weight:700}.brand-mark{display:block;width:29px;height:29px;flex:none;color:var(--gold)}.top-note{font-size:12px;color:var(--muted);letter-spacing:.08em}main{width:100%;max-width:1120px;margin:auto;padding:42px 30px 0;flex:1 1 auto;min-height:0}.footer{text-align:center;color:#8292a6;font-size:11px;padding:56px 20px max(24px,env(safe-area-inset-bottom,0px))}.eyebrow{font-size:11px;color:var(--gold);font-weight:700;letter-spacing:.25em;text-transform:uppercase}.hero{min-height:690px;display:grid;grid-template-columns:.85fr 1.15fr;align-items:center;gap:70px}.hero h1{font-size:clamp(48px,6.2vw,74px);line-height:1.1;letter-spacing:.06em;margin:24px 0}.hero h1 em{font-style:normal;color:var(--gold)}.hero p{color:#b8c5d3;line-height:1.9;max-width:540px;font-size:16px}.button{border:0;border-radius:11px;background:var(--gold);color:#182338;font-weight:700;padding:16px 25px;min-height:56px;transition:.2s}.button:hover{background:#f4ce91;transform:translateY(-2px)}.button.secondary{background:transparent;color:var(--text);border:1px solid var(--line)}.button.secondary:hover{background:#ffffff12}.hero-actions{display:flex;gap:12px;align-items:center;margin-top:36px}.hero-art{height:480px;border:1px solid #59718a66;border-radius:26px;position:relative;background:linear-gradient(150deg,#1d3954,#0b182b 65%);overflow:hidden;box-shadow:0 35px 80px #0005}.hero-art:before{content:'';position:absolute;width:410px;height:410px;border:1px solid #d7b98355;border-radius:50%;top:33px;left:50%;transform:translateX(-50%);box-shadow:0 0 0 50px #c9ac7920,0 0 0 100px #c9ac7910}.orbit{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 59px,#ffffff0a 60px),repeating-linear-gradient(0deg,transparent 0 59px,#ffffff0a 60px)}.art-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}.art-center strong{font-size:104px;color:var(--gold);font-weight:400;line-height:1}.art-center span{font-size:12px;letter-spacing:.32em;color:#e9d1ab;margin-top:15px}.art-bottom{position:absolute;bottom:25px;left:25px;right:25px;display:flex;justify-content:space-between;color:#b4c3d3;font-size:11px;letter-spacing:.1em}.resume-note{font-size:12px;color:var(--muted)}.quiz-wrap{max-width:780px;margin:0 auto;min-height:650px}.progress-header{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px;color:var(--muted);font-size:13px}.progress-track{height:5px;background:#2a3d54;border-radius:10px;overflow:hidden;border:1px solid rgba(255,255,255,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.22)}.progress-fill{height:100%;background:var(--gold);border-radius:10px;transition:width .3s}.question-card{margin-top:16px;padding:44px;background:linear-gradient(150deg,#183049,#102238);border:1px solid #43607a88;border-radius:24px;box-shadow:0 25px 60px #0003}.question-num{font-size:12px;color:var(--gold);letter-spacing:.15em}.question-card h2{font-size:clamp(25px,3.2vw,38px);line-height:1.42;letter-spacing:-.02em;margin:17px 0 33px;color:#ebe8e2}.answers{display:grid;gap:12px}.answer{width:100%;display:flex;align-items:center;text-align:left;gap:18px;background:#e6e2d8;color:#243444;border:2px solid transparent;border-radius:13px;padding:18px 20px;min-height:67px;transition:.18s}.answer:hover{background:#efebe3;transform:translateX(3px)}.answer.selected{border-color:var(--gold);background:#f2ddb0;box-shadow:0 0 0 1px rgba(232,189,118,.28)}.answer b{font-size:12px;display:grid;place-items:center;flex:none;width:26px;height:26px;border:1px solid #a7b1ba;border-radius:7px}.answer.selected b{background:var(--gold);border-color:var(--gold)}.quiz-nav{display:flex;justify-content:space-between;gap:12px;margin-top:24px}.quiz-nav .button{min-width:130px}.button:disabled{opacity:.42;cursor:not-allowed;transform:none}.section-label{color:var(--gold);font-size:12px;letter-spacing:.2em;font-weight:700}.result-head{padding:48px;border-radius:26px;border:1px solid #947c5699;background:radial-gradient(circle at 84% 0%,#49607844,transparent 35%),linear-gradient(135deg,#1a3048,#0d1c2f);position:relative;overflow:hidden}.result-head:after{content:'◈';position:absolute;right:45px;top:20px;font-size:220px;color:#e8bd7612;line-height:1}.result-kicker{font-size:12px;color:var(--gold);letter-spacing:.2em}.result-head h1{font-size:clamp(42px,6vw,76px);margin:25px 0 6px;letter-spacing:-.05em;position:relative;z-index:1}.result-head .en{font-size:13px;color:#a9b6c4}.result-head p{font-size:19px;line-height:1.7;max-width:670px;margin:28px 0 0;position:relative;z-index:1}.match{display:inline-flex;gap:9px;align-items:baseline;margin-top:35px;border-top:1px solid #ffffff30;padding-top:21px;color:var(--muted);font-size:12px}.match strong{font-size:35px;color:var(--gold)}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.result-card{background:var(--cream);border-radius:20px;padding:30px 32px;color:var(--ink);min-width:0}.result-card.wide{grid-column:1/-1}.card-index{color:#a47c3f;font-size:11px;letter-spacing:.17em;font-weight:700}.result-card h2{font-size:22px;margin:12px 0 17px}.result-card p{font-size:15px;line-height:1.9;color:#445064;margin:0}.bars{display:grid;gap:15px;margin-top:20px}.bar-row{display:grid;grid-template-columns:110px 1fr 122px;align-items:center;gap:14px;font-size:13px;color:#3a485b}.bar-track{height:7px;border-radius:20px;background:#dededb}.bar-fill{height:100%;border-radius:20px;background:linear-gradient(90deg,#a7824e,#d5ae6d)}.bullets{padding:0;margin:0;list-style:none;display:grid;gap:11px}.bullets li{padding-left:18px;position:relative;color:#445064;line-height:1.7;font-size:14px}.bullets li:before{content:'◆';position:absolute;left:0;top:2px;color:#b58b50;font-size:8px}.result-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:24px 0 0}.result-actions .button{min-width:170px}.modal{position:fixed;inset:0;background:rgba(7,16,31,.78);backdrop-filter:blur(5px);display:grid;place-items:center;padding:22px;z-index:20}.modal-box{width:min(100%,410px);background:linear-gradient(155deg,#1b344e,#101e31 78%);color:var(--text);padding:24px 22px 20px;border:1px solid #8b76547d;border-radius:14px;box-shadow:0 24px 70px rgba(0,0,0,.48);text-align:center}.modal-box-mark{display:grid;place-items:center;width:38px;height:38px;margin:0 auto 13px;border:1px solid rgba(232,189,118,.45);border-radius:50%;color:var(--gold);font-size:20px;font-weight:700}.modal-box h2{margin:0 0 8px;font-size:20px;color:var(--text)}.modal-box p{margin:0;color:var(--muted);line-height:1.75;font-size:13px}.modal-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;margin-top:20px}.modal-actions .button{min-height:56px;border-radius:11px;width:100%}.modal-actions .secondary{color:var(--text);border:1px solid var(--line);background:transparent}.modal-actions .secondary:focus,.modal-actions .secondary:focus-visible{outline:none;box-shadow:none}.modal-actions .button:not(.secondary){background:var(--gold);color:#182338;border:0}.modal-ok-lines{display:grid;gap:1px;line-height:1.2;font-size:14px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#f5efe2;color:#14263a;padding:12px 18px;border-radius:9px;z-index:30;box-shadow:0 10px 30px #0005;font-size:13px}@media(max-width:750px){.topbar{padding:17px 19px}.brand{font-size:10px}.top-note{display:none}main{padding:25px 16px 35px}.hero{min-height:calc(100dvh - 130px);display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:25px}.hero h1{font-size:clamp(43px,11vw,68px);margin:18px 0}.hero p{font-size:14px;line-height:1.75}.hero-art{height:245px;flex:none}.hero-art:before{width:170px;height:170px;top:20px;box-shadow:0 0 0 25px #c9ac7920,0 0 0 50px #c9ac7910}.art-center strong{font-size:58px}.art-center span{font-size:9px}.art-bottom{font-size:8px;bottom:14px;left:16px;right:16px}.hero-actions{margin-top:24px}.quiz-wrap{min-height:calc(100dvh - 150px)}.question-card{margin-top:25px;padding:25px 18px;border-radius:19px}.question-card h2{font-size:24px;margin:15px 0 24px}.answer{font-size:14px;padding:14px;min-height:60px;gap:12px}.quiz-nav .button{min-width:105px;padding:12px 16px}.result-head{padding:28px 23px}.result-head h1{font-size:47px}.result-head p{font-size:16px}.result-grid{grid-template-columns:1fr;gap:12px;margin-top:12px}.result-card,.result-card.wide{grid-column:1;padding:25px 22px}.bar-row{grid-template-columns:75px 1fr 90px;gap:8px;font-size:12px}.footer{font-size:11px;padding:56px 16px max(24px,env(safe-area-inset-bottom,0px))}}@media(max-height:740px) and (max-width:750px){.hero{min-height:auto}.hero-art{height:170px}.question-card{margin-top:15px;padding:20px 17px}.question-card h2{font-size:21px;margin:10px 0 17px}.answers{gap:8px}.answer{min-height:54px;padding:10px 13px}.quiz-nav{margin-top:15px}}




@media(max-width:750px){.hero{gap:22px}.hero h1{font-size:clamp(34px,9.5vw,46px);line-height:1.18;letter-spacing:-.045em;overflow-wrap:normal}.hero .eyebrow{letter-spacing:.12em;font-size:11px}.hero-art{height:245px}.hero-art:before{top:16px}.art-center{transform:translateY(-12px)}.art-center strong{font-size:46px}.art-names{height:34px;margin:1px 0}.art-names span{font-size:21px}.art-center>span{font-size:10px;letter-spacing:.16em;margin-top:2px}.art-bottom{font-size:8px;bottom:12px}.hero p{line-height:1.7}}@media(max-height:740px) and (max-width:750px){.hero-art{height:190px}.hero-art:before{top:5px}.art-center{transform:translateY(-8px)}}

/* Mobile home: balanced spacing and readable headline */
@media(max-width:750px){main{padding:40px 20px 28px}.hero{min-height:calc(100dvh - 150px);justify-content:space-evenly;gap:22px}.hero-art{height:245px}.hero-art:before{width:184px;height:184px;top:29px;box-shadow:0 0 0 28px #c9ac7920,0 0 0 56px #c9ac7910}.art-center{transform:none}.art-center strong{font-size:51px}.art-names{height:42px;margin:8px 0 0}.art-names span{font-size:23px}.hero .eyebrow{font-size:11px;letter-spacing:.09em}.hero h1{font-size:clamp(31px,8.6vw,40px);line-height:1.27;letter-spacing:.05em;margin:16px 0 19px}.hero p{font-size:14px;line-height:1.85;margin:0}.hero-actions{margin-top:28px}}@media(max-height:740px) and (max-width:750px){.hero{min-height:auto;gap:25px}.hero-art{height:190px}.hero-art:before{width:155px;height:155px;top:18px}.art-center strong{font-size:44px}.art-names{height:35px;margin:4px 0}.art-names span{font-size:20px}}

/* 本地版：结果简介、首页与题页排版 */
.top-note{display:flex;align-items:center;gap:22px}
.top-note-item{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.top-note-item svg{width:16px;height:16px;fill:none;stroke:var(--gold);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bio-paragraphs p{margin:0;line-height:1.85}
.bio-paragraphs p+p{margin-top:14px}
.hero{transform:none}
.art-center{transform:translateY(-22px)}
@media(min-width:751px){
  .quiz-wrap{min-height:auto}
  .question-card{margin-top:24px;padding:30px 36px}
  .question-card h2{font-size:clamp(22px,2.5vw,30px);margin:12px 0 22px}
  .answers{gap:9px}
  .answer{min-height:55px;padding:12px 17px;font-size:14px}
  .quiz-nav{margin-top:17px}
}
@media(max-width:750px){
  .hero{transform:none}
  .art-center{transform:translateY(-8px)}
}
/* 手机端不显示页眉统计 */
@media(max-width:750px){.top-note{display:none}}
@media(max-width:750px){.hero-art,.hero-copy{min-width:0;width:100%}.hero p{max-width:100%;overflow-wrap:anywhere}}

.start-button{display:inline-flex;align-items:center;justify-content:center;gap:17px;white-space:nowrap}.start-access{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:6px;background:#17233518;border:1px solid #17233533;font-size:11px;font-weight:600;letter-spacing:.02em}.start-access svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.start-access[hidden]{display:none!important}@media(max-width:750px){.start-button{gap:13px}}

/* 访问码弹窗 */
.access-modal{background:#050d1dc9;backdrop-filter:blur(7px)}
.access-panel{position:relative;width:min(420px,100%);padding:34px;background:linear-gradient(155deg,#1b344e,#101e31 78%);border:1px solid #8b76547d;border-radius:22px;box-shadow:0 30px 90px #0009;color:var(--text)}
.access-close{position:absolute;right:17px;top:13px;width:36px;height:36px;border:0;background:transparent;color:#aebbc9;font-size:28px;line-height:1;border-radius:8px}
.access-close:hover{background:#ffffff14;color:white}
.access-icon{width:48px;height:48px;display:grid;place-items:center;color:var(--gold);background:#e8bd7616;border:1px solid #e8bd7655;border-radius:13px;margin-bottom:24px}
.access-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.access-eyebrow{color:var(--gold);font-size:11px;font-weight:700;letter-spacing:.16em}
.access-panel h2{font-size:29px;letter-spacing:.02em;margin:9px 0 10px}
.access-panel>p{font-size:14px;color:#b6c4d2;line-height:1.7;margin:0 0 27px}
.access-form{display:grid;gap:10px}
.access-form label{font-size:12px;color:#d3dbe4;font-weight:600}
.access-form input{width:100%;height:51px;border:1px solid #62758b;border-radius:10px;background:#0b192b;color:#fff;padding:0 15px;font:inherit;outline:none}
.access-form input::placeholder{color:#7f90a5}
.access-form input:focus{border-color:var(--gold);box-shadow:0 0 0 3px #e8bd7624}
.access-error{font-size:12px;color:#ffb8aa;line-height:1.5;margin:0}
.access-error[hidden]{display:none}
.access-submit{width:100%;margin-top:8px}
@media(max-width:750px){.access-panel{padding:29px 23px}.access-panel h2{font-size:26px}}
.access-modal{display:flex;align-items:center;justify-content:center}.access-panel{width:min(420px,calc(100vw - 40px));min-width:0;flex:none}

@media(max-width:750px){.hero-actions{flex-direction:column;align-items:center;justify-content:center;gap:10px}.hero-actions .start-button{width:100%;min-height:56px}.hero-actions .resume-note{text-align:center}}

.quiz-hint{text-align:center;color:var(--muted);font-size:12px;line-height:1.5;min-height:18px;margin:14px 0 0}
.quiz-hint+.quiz-nav{margin-top:14px}

.topbar{margin:0 auto}
main{display:flex;align-items:safe center;margin:0 auto;padding:0 30px 6vh}
.shell>main#app{display:block;align-items:stretch;margin-left:auto;margin-right:auto;padding:var(--content-rail) 30px 0;flex:1 1 auto;min-height:0;max-width:1120px;width:100%}
@media(max-width:750px){.shell>main#app{padding-left:16px;padding-right:16px}}
/* 首页双栏：DOM .hero-art → .hero-copy，勿用 order 对调 */
.hero{min-height:0;transform:none;width:100%}
.footer{padding:56px 20px max(24px,env(safe-area-inset-bottom,0px));font-size:12px;line-height:1.6}
.btn-arrow{display:inline-block;margin-left:6px;font-size:1.08em;line-height:1}
.start-button:has(.start-access:not([hidden])) .btn-arrow{display:none}
@media(min-width:751px){
  main{padding-left:78px;padding-right:16px}
  .hero{gap:108px}
  .hero h1{font-size:clamp(44px,5vw,62px)}
  .hero-copy{text-align:left}
  .hero-copy p{margin-left:0;margin-right:0}
  .hero-actions{justify-content:flex-start}
  main:has(> .hero) .hero-copy{align-self:center;transform:translateY(-24px)}
  main:has(> .hero) .hero h1{margin:0 0 30px}
  main:has(> .hero) .meta-row{margin-top:28px}
  main:has(> .hero) .hero-actions{margin-top:21px}
}
@media(max-width:750px){
  main{padding:12px 16px 0}
  .hero{min-height:0;transform:none;gap:22px}
  .hero-copy{text-align:left}
  .hero-copy p{margin-left:0;max-width:100%}
  .hero-actions{justify-content:stretch}
  .footer{padding:56px 16px max(24px,env(safe-area-inset-bottom,0px));font-size:11px;line-height:1.6}
}

/* 答题页、结果页不受首页左右偏移影响，卡片宽度固定 */
.quiz-wrap{
  width:100%;
  max-width:780px;
  min-width:0;
  margin-left:auto;
  margin-right:auto;
  align-self:center;
}
.result{
  width:100%;
  max-width:780px;
  min-width:0;
  margin-left:auto;
  margin-right:auto;
  align-self:center;
}
.result-head,.result-card,.result-card.wide{width:100%;max-width:780px}
.question-card{width:100%;min-width:0}
.question-card h2,
.answer span{overflow-wrap:anywhere}
.quiz-nav{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.quiz-nav .button{
  width:100%;
  min-width:0;
  border:0;
  border-radius:16px;
  min-height:56px;
  font-weight:800;
}
.quiz-nav .button.secondary{
  background:#e8bd761f;
  color:var(--gold);
  border:0;
}
.quiz-nav .button.secondary:hover{background:#e8bd7633;color:var(--gold)}
.quiz-nav .button:not(.secondary){box-shadow:0 8px 20px #00000044}
.quiz-nav:not(:has(#prev)) #next{grid-column:2}
main:has(.quiz-wrap),
main:has(.result){
  display:block;
  padding:var(--content-rail) 30px 0;
}
.result-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  margin:30px 0;
}
.result-actions .button{width:100%;min-width:0}
@media(min-width:751px){
  main:has(.quiz-wrap),
  main:has(.result){padding:var(--content-rail) 30px 0}
  .result-actions{flex-direction:row-reverse;justify-content:center;gap:20px}
  .result-actions .button{flex:1;width:auto}
}
@media(max-width:750px){
  main:has(.quiz-wrap),
  main:has(.result){display:block;padding:var(--content-rail) 16px 0}
}
.meta-dots{display:flex;align-items:center;gap:8px;margin-top:22px}
.meta-dots i{width:8px;height:8px;border-radius:50%;background:var(--c);box-shadow:0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent);flex:none}
.meta-dots span{margin-left:4px;font-size:11px;letter-spacing:.1em;color:#b4c3d3}
.hero-actions{margin-top:16px}
.art-names{position:relative;width:min(92%,340px);margin:0 auto;overflow:visible}

.meta-row{display:flex;align-items:center;gap:16px;margin-top:22px}
.meta-item{display:inline-flex;align-items:center;gap:6px;font-size:13px;letter-spacing:.02em;color:#b4c3d3}
.meta-ico{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.footer{margin-top:auto;flex-shrink:0}
.footer .footer-tip{margin:0;font-size:11px;font-weight:400;line-height:1.6;color:#8292a6}
.footer .footer-copy{margin:7px 0 0;font-size:10px;font-weight:400;line-height:1.5;color:#627389}
/* 页脚：首页 .hero 与 /test 结果页展示；答题中隐藏 */
.shell:has(main#app) > .footer{display:none}
.shell:has(main#app > .hero) > .footer,
.shell:has(main#app > .result) > .footer{display:block}
@media(max-width:750px){
  main:not(:has(.quiz-wrap)):not(:has(.result)){align-items:flex-start;justify-content:flex-start;padding:8px 24px 0}
  .hero{justify-content:flex-start;min-height:0;margin-top:0;margin-bottom:0}
  main:not(:has(.quiz-wrap)):not(:has(.result)){margin-top:0}
  .hero-art{margin-top:14px}
  .footer{padding:56px 16px max(24px,env(safe-area-inset-bottom,0px));font-size:11px}
  body:not(:has(.quiz-wrap)):not(:has(.result)) .topbar{padding-left:24px;padding-right:24px}
  body:not(:has(.quiz-wrap)):not(:has(.result)) .footer{padding-left:24px;padding-right:24px}
  body:has(.quiz-wrap) .footer,
  body:has(.result) .footer,
  body:has(main .quiz-wrap) .footer,
  body:has(main .result) .footer{
    padding:56px 24px max(24px,env(safe-area-inset-bottom,0px));
    font-size:11px;
    line-height:1.6;
  }
  main:has(.quiz-wrap),
  main:has(.result){padding-left:24px;padding-right:24px}
  body:has(.quiz-wrap) .topbar,
  body:has(.result) .topbar{padding-left:24px;padding-right:24px}
  .result-actions{margin-bottom:8px}
}

/* hero marquee mq8 — 图标边长/副文案 = 人名一半（em） */
@keyframes name-cycle{0%{opacity:0;transform:scale(.88)}25%{opacity:1;transform:scale(1)}75%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.94)}}
.hero-art{height:480px;--hero-emblem-gap:10px;--hero-cap-gap:15px}
.hero-art-center.art-center,.hero-art .art-center{position:absolute;inset:0;transform:none!important;display:block}
.hero-art-center strong,.art-center>strong{display:none!important}
.hero-marquee-anchor{position:absolute;left:50%;top:var(--marquee-anchor-y,50%);transform:translate(-50%,-50%);width:min(92%,340px);text-align:center;z-index:1;font-size:clamp(24px,2.9vw,34px);line-height:1.15}
.hero-marquee-anchor>.hero-emblem,.hero-art .hero-emblem{position:absolute;left:50%;bottom:calc(100% + var(--hero-emblem-gap));transform:translateX(-50%);display:block;width:1em;height:1em;margin:0!important;color:var(--gold)}
.hero-marquee-anchor .marquee-name{display:block;margin:0;padding:0;font:inherit;font-size:1em;font-weight:850;letter-spacing:.06em;line-height:1.15;color:#f6e3bb;white-space:nowrap;transform-origin:center center;min-height:1.15em;opacity:1}
.hero-marquee-anchor .marquee-name.is-active{animation:name-cycle 2s ease forwards;will-change:opacity,transform}
.hero-marquee-anchor .marquee-cap{position:absolute;left:50%;top:calc(100% + var(--hero-cap-gap));transform:translateX(-50%);margin:0;padding:0;width:max-content;max-width:min(92vw,340px);font-size:.5em;font-weight:600;letter-spacing:.18em;line-height:1.35;color:#e9d1ab;white-space:nowrap}
@media(max-width:750px){.hero-art{height:245px!important;--marquee-anchor-y:calc(29px + 92px);--hero-emblem-gap:6px;--hero-cap-gap:10px}.hero-marquee-anchor{font-size:25px}.hero-marquee-anchor .marquee-cap{letter-spacing:.14em}}
@media(max-width:750px) and (max-height:740px){.hero-art{height:190px!important;--marquee-anchor-y:calc(18px + 77.5px)}.hero-marquee-anchor{font-size:23px}}
@media(min-width:751px){.hero-art{--marquee-anchor-y:calc(33px + 205px)}}
@media(prefers-reduced-motion:reduce){.hero-marquee-anchor .marquee-name.is-active{animation:none;opacity:1;transform:none}}

/* 移动端首页：标题下～页脚上区间整体约减 20px */
@media(max-width:750px){
  main:not(:has(.quiz-wrap)):not(:has(.result)) .hero{gap:18px}
  main:not(:has(.quiz-wrap)):not(:has(.result)) .hero-art{margin-top:11px;height:238px!important}
  main:not(:has(.quiz-wrap)):not(:has(.result)) .hero h1{margin-bottom:13px}
  main:not(:has(.quiz-wrap)):not(:has(.result)) .meta-row{margin-top:19px}
  main:not(:has(.quiz-wrap)):not(:has(.result)) .hero-actions{margin-top:14px}
}
@media(max-width:750px) and (max-height:740px){
  main:not(:has(.quiz-wrap)):not(:has(.result)) .hero-art{height:183px!important}
}

/* /test 首屏加载 */
main.test-booting{display:block;padding-top:var(--content-rail)}
.test-boot-shell{width:100%;max-width:640px;margin:0 auto;animation:boot-shell-in .45s ease both}
.progress-header{margin-top:0}
html.resume-pending .test-boot-shell .progress-header,
html.resume-pending .test-boot-shell .progress-track,
html.resume-pending .test-boot-shell .test-boot-kicker,
html.resume-pending .test-boot-shell .test-boot-skel{display:none!important}
html.resume-pending .question-card.test-boot-card{margin-top:0;padding:32px 26px 28px;text-align:center}
html.resume-pending .test-boot-status{margin-top:0;border:0;background:transparent;padding:8px 4px 0;flex-direction:column;align-items:center;gap:10px;font-size:clamp(17px,4.2vw,20px);font-weight:700;color:var(--text);letter-spacing:.03em}
html.resume-pending .test-boot-status::before{width:10px;height:10px;margin:0 auto 6px;box-shadow:0 0 0 6px rgba(232,189,118,.14)}
html.resume-pending .test-boot-status::after{content:'答题记录已保留，请稍候。';display:block;font-size:14px;font-weight:500;line-height:1.65;color:var(--muted)}
.test-boot-muted{opacity:.55;pointer-events:none}
.test-boot-progress{width:38%!important;opacity:.7;transition:width 4s ease-out}
.test-boot-card{position:relative;overflow:hidden}
.test-boot-kicker{color:var(--gold);margin-bottom:18px}
.test-boot-skel{display:grid;gap:12px;margin:4px 0 22px}
.test-boot-line{display:block;height:14px;border-radius:8px;background:linear-gradient(90deg,rgba(232,189,118,.12),rgba(232,189,118,.28),rgba(232,189,118,.12));background-size:220% 100%;animation:boot-shimmer 1.35s ease-in-out infinite}
.test-boot-line.w72{width:72%}
.test-boot-line.w88{width:88%}
.test-boot-line.w96{width:96%}
.test-boot-status{display:flex;align-items:center;justify-content:center;gap:10px;margin:0;padding:14px 16px;border-radius:14px;background:rgba(232,189,118,.08);border:1px solid rgba(232,189,118,.22);color:var(--muted);font-size:14px;line-height:1.5;letter-spacing:.03em;text-align:center}
.test-boot-status::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--gold);flex:none;animation:boot-pulse 1.4s ease-in-out infinite}
.test-boot-failed .test-boot-status{cursor:pointer;border-color:rgba(232,120,100,.45);background:rgba(232,120,100,.1)}
.test-boot-failed .test-boot-status::before{animation:none;opacity:.5;background:#e87864}
html.resume-pending .test-boot-status::before{animation-duration:1s}
@keyframes boot-shell-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes boot-shimmer{0%{background-position:120% 0}100%{background-position:-120% 0}}
@keyframes boot-pulse{0%,100%{opacity:.35;transform:scale(.92)}50%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.test-boot-shell,.test-boot-line,.test-boot-status::before{animation:none}.test-boot-progress{width:42%!important}}

/* 重新测试确认框 */
.modal-box{padding:22px 20px 20px;border-radius:18px;width:min(100%,380px)}
.modal-box-mark{display:none}
.modal-box h2{margin:0 0 6px;font-size:18px;font-weight:800}
.modal-box p{margin:0;line-height:1.6}
.modal-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.modal-actions .button{min-height:52px;padding:11px 10px;border-radius:16px;font-weight:800}
.modal-actions .button:not(.secondary){font-size:13px;letter-spacing:0;white-space:nowrap}
.modal-actions .button:focus,.modal-actions .button:focus-visible{outline:none;transform:none}
.modal-actions .button:not(.secondary):focus,.modal-actions .button:not(.secondary):focus-visible{box-shadow:none}
.modal-ok-lines{display:inline}
