Files
pk-lab-xhs/web/style.css
T
codex-bot 350aae797f
Verify mini program and deploy preview / verify-deploy (push) Failing after 34s
feat: launch PK testing application
2026-09-18 21:50:25 +08:00

3 lines
5.9 KiB
CSS

:root{--paper:#fff8f2;--ink:#201d1b;--orange:#ff6b35;--blue:#2766df;--muted:#887d75;--line:#e8ddd5}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"PingFang SC",sans-serif}.nav{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:18px max(24px,calc((100vw - 1180px)/2));background:rgba(255,248,242,.92);border-bottom:1px solid rgba(50,30,20,.08);backdrop-filter:blur(15px)}button{font:inherit;border:0;cursor:pointer}.brand{padding:0;background:none;font-weight:950;letter-spacing:2px}.brand i{color:var(--orange)}.nav-pill,.button{padding:12px 20px;border-radius:99px;background:var(--ink);color:white;font-weight:800}.shell{width:min(1180px,calc(100% - 36px));margin:34px auto 80px}.hero{position:relative;overflow:hidden;min-height:330px;padding:54px;border-radius:38px;background:var(--orange);color:white;box-shadow:0 24px 70px rgba(162,61,23,.18)}.hero:after{content:"↗";position:absolute;right:40px;bottom:-54px;font-size:260px;font-weight:900;opacity:.12;transform:rotate(-12deg)}.eyebrow{font-size:12px;letter-spacing:5px;opacity:.75}.hero h1{max-width:700px;margin:22px 0 24px;font-size:clamp(46px,7vw,92px);line-height:.98;letter-spacing:-.06em}.hero p{max-width:550px;font-size:18px;line-height:1.65}.section-head{display:flex;justify-content:space-between;align-items:end;margin:55px 5px 20px}.section-head h2{margin:0;font-size:28px}.muted{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}.test-card{overflow:hidden;padding:0;text-align:left;border-radius:28px;background:white;box-shadow:0 12px 40px rgba(60,35,20,.08);transition:.2s}.test-card:hover{transform:translateY(-6px) rotate(-.5deg);box-shadow:0 20px 50px rgba(60,35,20,.14)}.test-card:nth-child(3n+2) .art{height:270px}.art{position:relative;height:220px;display:grid;place-items:center;color:white}.art .emoji{font-size:92px;filter:drop-shadow(0 8px 8px rgba(0,0,0,.12));transform:rotate(-8deg)}.art small{position:absolute;top:20px;left:22px;font-weight:900;opacity:.8}.card-body{padding:25px}.card-body h3{margin:0;font-size:24px}.card-body p{min-height:48px;color:#756a62;line-height:1.5}.meta{display:flex;justify-content:space-between;color:#958981;font-size:13px}.loading,.empty{padding:100px 20px;text-align:center;color:var(--muted)}.arena{max-width:900px}.arena-top{display:flex;justify-content:space-between}.progress{height:9px;margin:17px 0 48px;border-radius:99px;background:#e9ded6;overflow:hidden}.progress span{display:block;height:100%;background:var(--orange);transition:width .25s}.arena h1{font-size:clamp(40px,6vw,72px);line-height:1.08}.pair{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:24px}.choice{position:relative;min-height:400px;padding:40px;text-align:left;border-radius:36px;color:white;box-shadow:0 20px 50px rgba(80,35,18,.13);transition:.15s}.choice:hover{transform:scale(1.015)}.choice:first-child{background:var(--orange)}.choice:last-child{background:var(--blue)}.choice-letter{display:grid;width:52px;height:52px;place-items:center;border:2px solid rgba(255,255,255,.6);border-radius:50%;font-weight:900}.choice-emoji{position:absolute;right:30px;top:20px;font-size:86px;opacity:.8}.choice-name{display:block;margin-top:85px;font-size:clamp(39px,5vw,66px);font-weight:950;line-height:1.06}.choice-hint{position:absolute;bottom:32px;left:40px;opacity:.72}.vs{position:absolute;z-index:2;left:50%;top:50%;display:grid;width:76px;height:76px;place-items:center;transform:translate(-50%,-50%) rotate(-9deg);border:5px solid var(--ink);border-radius:50%;background:white;font-weight:950}.result-shell{max-width:1040px}.champion-panel{padding:55px;text-align:center;border-radius:38px;background:var(--ink);color:white}.champion-panel small{opacity:.6}.champion-panel h1{margin:18px 0 8px;font-size:clamp(55px,9vw,105px);letter-spacing:-.06em}.result-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;margin-top:35px}.poster{width:100%;border-radius:28px;box-shadow:0 18px 55px rgba(50,30,20,.15)}.control{padding:28px;border-radius:28px;background:white}.control h2{margin-top:0}.theme{display:block;width:100%;margin:10px 0;padding:16px;text-align:left;border:2px solid var(--line);border-radius:18px;background:white;font-weight:800}.theme.active{border-color:var(--ink);background:var(--ink);color:white}.wide{width:100%;margin-top:16px}.outline{background:white;color:var(--ink);border:2px solid var(--line)}.history{max-width:850px}.link-box{padding:28px;border-radius:28px;background:#f7e9ff}.link-code{margin:20px 0 0;font-size:42px;letter-spacing:10px;font-weight:950}.result-row{display:flex;align-items:center;gap:18px;width:100%;margin:12px 0;padding:22px;text-align:left;border-radius:24px;background:white;box-shadow:0 8px 28px rgba(50,30,20,.07)}.medal{display:grid;width:60px;height:60px;place-items:center;border-radius:18px;background:var(--orange);color:white;font-weight:950}.result-row strong{display:block;font-size:24px}.result-row span:last-child{margin-left:auto}.toast{position:fixed;z-index:50;left:50%;bottom:30px;padding:14px 22px;transform:translate(-50%,30px);border-radius:99px;background:var(--ink);color:white;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:38px 30px}.pair,.result-layout{grid-template-columns:1fr}.choice{min-height:300px}.vs{top:50%}.result-layout{gap:20px}}@media(max-width:520px){.grid{gap:14px}.art{height:160px}.test-card:nth-child(3n+2) .art{height:200px}.art .emoji{font-size:66px}.card-body{padding:18px}.card-body h3{font-size:19px}.card-body p{font-size:14px}.meta{font-size:11px}.pair{gap:16px}.choice{padding:24px;min-height:250px}.choice-name{margin-top:52px}.choice-hint{left:24px;bottom:22px}.choice-emoji{font-size:60px}.vs{width:60px;height:60px}.champion-panel{padding:38px 25px}.result-shell{width:min(100% - 24px,1180px)}}