:root{--red:#ae302a;--dark:#252a31;--muted:#777c82;--line:#e5e3de;--bg:#f7f5f0;--light:#fbefea}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--dark);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.65}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer;border:0;border-radius:9px;padding:12px 20px;font-weight:600;transition:.15s}button:disabled{opacity:.4;cursor:not-allowed}button:hover:not(:disabled){filter:brightness(.94)}button:focus-visible,a:focus-visible{outline:3px solid #df937c;outline-offset:3px}header{max-width:1200px;margin:auto;height:96px;padding:0 38px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{font-weight:650;display:flex;align-items:center;gap:12px;font-size:18px}.brand-icon{color:#fff;background:var(--red);border-radius:10px;width:37px;height:37px;text-align:center;line-height:37px}.subtle,.muted{color:var(--muted)}.subtle{font-size:13px}.landing{max-width:1124px;margin:65px auto 75px;display:grid;grid-template-columns:1.15fr 1fr;gap:90px;padding:0 35px}.hero{padding-top:30px}.eyebrow{font-size:11px;letter-spacing:1.8px;color:var(--red);font-weight:700}.hero h1{font-size:64px;line-height:1.24;letter-spacing:2px;margin:28px 0}.hero h1 span{color:var(--red)}.hero p{color:#6b7076;font-size:17px;line-height:1.9}.hero-meta{display:flex;gap:35px;margin:35px 0}.hero-meta div{display:flex;flex-direction:column}.hero-meta strong{font-size:29px;font-weight:650}.hero-meta span{color:var(--muted);font-size:12px}.hero-line{height:3px;width:48px;background:var(--red);margin:27px 0 20px}.hero small{display:block;max-width:380px;color:#979a9e;font-size:12px}.card{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 12px 38px #29251d04}.registration{padding:35px}.registration h2{margin:14px 0 5px;font-size:24px}.registration p{margin:0 0 25px}label{display:block;font-size:13px;font-weight:600;margin:18px 0}input,select,textarea{display:block;width:100%;margin-top:8px;border:1px solid #dfded9;border-radius:8px;padding:12px 14px;background:#fff;color:var(--dark)}input:focus,select:focus,textarea:focus{outline:2px solid #d9a29a;outline-offset:1px}input::placeholder{color:#adb0b3}.rule{background:var(--bg);padding:14px;border-radius:8px;color:#84878c;font-size:12px;line-height:1.8;margin:23px 0}.primary{color:#fff;background:var(--red)}.secondary{color:#555b63;background:#f0efeb}.wide{width:100%;display:flex;align-items:center;justify-content:space-between}.error{color:#b52d29;font-size:13px;min-height:0;margin:10px 0!important}.error:empty{display:none}footer{max-width:1124px;margin:0 auto;padding:25px 35px;border-top:1px solid var(--line);color:#96999d;font-size:11px;display:flex;justify-content:space-between}#quiz{max-width:1124px;margin:35px auto 65px;padding:0 35px}.quiz-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.quiz-top h2{font-size:21px;margin:8px 0}.timer{display:flex;align-items:center;gap:20px;background:white;border:1px solid var(--line);padding:12px 22px;border-radius:10px}.timer span{color:var(--muted);font-size:12px}.timer strong{font-variant-numeric:tabular-nums;font-size:24px;color:var(--red)}.quiz-grid{display:grid;grid-template-columns:1fr 295px;gap:24px}.question-card{padding:32px}.question-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.question-meta span:first-child{color:var(--red);font-weight:700}.progress{height:4px;background:#f1eeea;margin:17px 0 30px;border-radius:3px}.progress div{height:100%;background:var(--red);border-radius:3px}.question-card h2{font-size:22px;line-height:1.7;font-weight:600;min-height:75px}.option{display:flex;align-items:center;gap:15px;padding:16px;width:100%;text-align:left;border:1px solid var(--line);background:#fff;margin:12px 0;font-weight:400;color:var(--dark)}.option .letter{background:#f2f1ed;border-radius:6px;min-width:32px;height:32px;display:grid;place-items:center;font-weight:600}.option.selected{border-color:var(--red);background:#fff7f3;color:var(--red)}.option.selected .letter{background:var(--red);color:#fff}.question-nav{display:flex;justify-content:space-between;margin-top:35px}.answer-sheet{padding:24px;height:fit-content}.sheet-title{display:flex;justify-content:space-between;align-items:center}.sheet-title h3{margin:0;font-size:16px}.sheet-title span{font-size:12px;color:var(--muted)}#question-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:22px 0;max-height:410px;overflow:auto}.grid-btn{padding:5px;aspect-ratio:1;border-radius:6px;background:#f3f2ee;color:#7a7d81;border:1px solid transparent;font-size:12px}.grid-btn.done{background:var(--light);color:var(--red)}.grid-btn.current{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}.legend{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.legend i{height:9px;width:9px;background:var(--light);border:1px solid #e4b4a9;border-radius:2px}.legend .empty{background:#f3f2ee;border:1px solid #ddd;margin-left:9px}.small{font-size:11px}.result-wrap{max-width:600px;margin:50px auto 65px;padding:0 20px}.result-card{text-align:center;padding:35px}.result-star{color:var(--red);font-size:36px;background:var(--light);border-radius:50%;width:70px;height:70px;line-height:70px;margin:0 auto 20px}.result-card h1{font-size:28px}.score{margin:28px 0}.score strong{font-size:74px;color:var(--red);line-height:1}.score span{font-size:13px;color:var(--muted);margin-left:8px}.result-stats{display:flex;justify-content:center;gap:65px}.result-stats div{display:flex;flex-direction:column}.result-stats strong{font-size:23px}.result-stats span{font-size:12px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:15px;max-width:460px;padding:28px}dialog::backdrop{background:#20242a70}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.admin-main{max-width:1200px;margin:30px auto;padding:0 38px 50px}.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.admin-heading h1{font-size:27px;margin:0}.tabs{display:flex;gap:10px;margin:25px 0}.tabs .active{background:var(--red);color:#fff}.toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0}.toolbar select{width:200px;margin:0}.toolbar input{width:240px;margin:0}.toolbar .primary{margin-left:auto}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.stat{padding:20px}.stat span{display:block;color:var(--muted);font-size:12px}.stat strong{font-size:30px}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th,td{padding:17px 20px;border-bottom:1px solid var(--line);text-align:left}th{background:#faf9f6;color:var(--muted);font-size:12px;font-weight:500}.rank{color:var(--red);font-weight:700}.empty-message{text-align:center;padding:40px;color:var(--muted)}.question-list article{padding:22px;margin:16px 0}.question-list h3{margin:5px 0;font-size:16px}.question-list .note{background:#fff4df;color:#966c25;padding:10px;border-radius:7px;font-size:12px;margin:12px 0}.editor{max-width:650px;width:95%;max-height:90vh}.editor textarea{min-height:80px}.login-wrap{max-width:440px;margin:65px auto;padding:0 20px}.login-wrap .card{padding:30px}[hidden]{display:none!important}@media(max-width:850px){header{height:75px;padding:0 22px}.landing{gap:35px;padding:0 22px;margin:35px auto;grid-template-columns:1fr 1fr}.hero h1{font-size:46px}.hero-meta{gap:20px}.registration{padding:25px}.quiz-grid{grid-template-columns:1fr}.answer-sheet{order:2}#question-grid{grid-template-columns:repeat(10,1fr);max-height:none}.admin-main{padding:0 20px 40px}footer{padding:20px}.hero-meta strong{font-size:25px}}@media(max-width:600px){.brand{font-size:15px}.subtle{font-size:11px}.landing{grid-template-columns:1fr;gap:25px}.hero{padding-top:0}.hero h1{font-size:43px;margin:15px 0}.hero p{font-size:14px}.hero-meta{margin:20px 0;gap:30px}.hero-line,.hero small{display:none}#quiz{padding:0 16px;margin-top:22px}.quiz-top h2{font-size:16px}.timer{padding:10px;gap:8px}.timer strong{font-size:20px}.timer span{font-size:10px}.question-card{padding:23px}.question-card h2{font-size:19px}.option{padding:12px;font-size:14px}footer span{display:none}.stats{gap:9px}.stat{padding:13px}.stat strong{font-size:24px}.toolbar .primary{margin-left:0}.admin-heading{align-items:flex-start}.admin-heading h1{font-size:23px}.toolbar input,.toolbar select{width:100%}#question-grid{grid-template-columns:repeat(8,1fr)}}
