:root { --ink:#17213b; --muted:#59627a; --blue:#315bcc; --green:#32966f; --yellow:#f4c84a; --coral:#f06b5d; --lavender:#e8e4ff; --line:rgba(23,33,59,.10); --paper:#f7f9ff; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif; }
button,textarea { font:inherit; }
button { color:inherit; }
a { color:inherit; }
.skip-link { position:fixed; z-index:20; left:1rem; top:-5rem; padding:.7rem 1rem; border-radius:.7rem; color:#fff; background:var(--blue); }
.skip-link:focus { top:1rem; }
.site-header { width:min(1180px,calc(100% - 40px)); min-height:76px; margin:auto; display:flex; align-items:center; gap:14px; border-bottom:1px solid var(--line); }
.brand { display:inline-flex; align-items:center; gap:10px; font-size:15px; font-weight:800; text-decoration:none; }
.brand-mark { display:grid; place-items:center; width:35px; height:35px; border-radius:10px; color:#fff; background:var(--blue); font-size:13px; letter-spacing:-.04em; box-shadow:0 5px 14px rgba(49,91,204,.18); }
.product-name { display:flex; align-items:center; gap:8px; margin-left:6px; padding-left:20px; border-left:1px solid var(--line); font-weight:800; }
.product-name span { color:var(--coral); font-size:9px; }
.age-pill { margin-left:auto; padding:7px 12px; border-radius:100px; background:rgba(244,200,74,.3); color:#6d5510; font-size:12px; font-weight:800; }
.kid-world { min-height:calc(100vh - 76px); overflow:hidden; background:radial-gradient(circle at 6% 12%,rgba(232,228,255,.8),transparent 28%),radial-gradient(circle at 92% 30%,rgba(244,200,74,.13),transparent 24%),var(--paper); }
.hero { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:68px 0 74px; display:grid; grid-template-columns:minmax(0,.9fr) minmax(460px,1.1fr); gap:68px; align-items:start; }
.eyebrow { margin:0 0 14px; color:var(--blue); font-size:13px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
h1 { margin:0; max-width:590px; font-size:clamp(40px,4.2vw,62px); line-height:1.08; letter-spacing:-.045em; }
h1 span { display:block; margin-top:9px; color:var(--blue); }
.lead { max-width:570px; margin:24px 0 0; color:var(--muted); font-size:17px; line-height:1.9; }
.role-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:19px 12px; margin-top:34px; }
.role-grid figure { min-width:0; margin:0; text-align:center; }
.role-grid img { display:block; width:min(100%,78px); aspect-ratio:1; margin:auto; border:3px solid rgba(255,255,255,.8); border-radius:22px; object-fit:cover; box-shadow:0 7px 20px rgba(34,48,89,.12); }
.role-grid figcaption { margin-top:8px; font-size:12px; font-weight:800; line-height:1.35; }
.kid-panel { padding:29px; border:1px solid rgba(49,91,204,.13); border-radius:28px; background:rgba(255,255,255,.9); box-shadow:0 22px 60px rgba(35,49,91,.12); backdrop-filter:blur(12px); }
.panel-heading { display:flex; gap:14px; align-items:flex-start; }
.bubble-icon { display:grid; flex:0 0 42px; place-items:center; height:42px; border-radius:14px; color:#fff; background:var(--blue); font-weight:900; letter-spacing:2px; }
h2,h3,p { overflow-wrap:anywhere; }
.panel-heading h2 { margin:0; font-size:24px; line-height:1.3; }
.panel-heading p { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
label { display:block; margin-top:24px; font-size:14px; font-weight:800; }
textarea { width:100%; min-height:170px; margin-top:10px; padding:17px 18px; resize:vertical; border:1.5px solid rgba(23,33,59,.15); border-radius:17px; outline:0; color:var(--ink); background:#fbfcff; font-size:15px; line-height:1.75; transition:border .18s,box-shadow .18s,background .18s; }
textarea::placeholder { color:#9299aa; }
textarea:focus { border-color:var(--blue); background:#fff; box-shadow:0 0 0 4px rgba(49,91,204,.11); }
.textarea-meta { display:flex; justify-content:space-between; margin-top:7px; color:#868da0; font-size:11px; }
.examples { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.examples button { padding:8px 11px; border:0; border-radius:100px; background:var(--lavender); color:#334f9d; cursor:pointer; font-size:11px; font-weight:700; text-align:left; transition:transform .16s,background .16s; }
.examples button:hover { transform:translateY(-1px); background:#dad3ff; }
.error { margin:16px 0 0; padding:13px 15px; border-radius:14px; color:#973f37; background:#fff0ee; font-size:13px; font-weight:700; line-height:1.6; }
.primary { display:flex; width:100%; min-height:51px; align-items:center; justify-content:center; gap:10px; margin-top:20px; padding:13px 18px; border:0; border-radius:15px; color:#fff; background:var(--blue); box-shadow:0 9px 22px rgba(49,91,204,.2); cursor:pointer; font-weight:800; transition:transform .16s,box-shadow .16s,opacity .16s; }
.primary:hover:not(:disabled) { transform:translateY(-2px); box-shadow:0 12px 27px rgba(49,91,204,.28); }
.primary:disabled { cursor:not-allowed; opacity:.45; box-shadow:none; }
.primary.loading .button-label::after { content:""; display:inline-block; width:13px; height:13px; margin-left:9px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; vertical-align:-2px; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.privacy { display:flex; gap:9px; align-items:flex-start; margin:15px 2px 0; color:var(--muted); font-size:11px; line-height:1.65; }
.privacy > span:first-child { display:grid; flex:0 0 19px; place-items:center; height:19px; border-radius:50%; color:#fff; background:var(--green); font-size:11px; font-weight:900; }
button:focus-visible,a:focus-visible { outline:3px solid rgba(49,91,204,.3); outline-offset:3px; }
.result { width:min(1180px,calc(100% - 40px)); margin:0 auto; padding:0 0 80px; scroll-margin-top:20px; }
.result-summary { padding:38px; border:1px solid var(--line); border-radius:26px; background:rgba(255,255,255,.88); }
.result-summary h2 { max-width:930px; margin:0; font-size:clamp(28px,3vw,42px); line-height:1.25; letter-spacing:-.025em; }
.next-step { display:flex; gap:16px; margin-top:27px; padding:22px; border-radius:18px; color:#fff; background:var(--blue); }
.check { display:grid; flex:0 0 38px; height:38px; place-items:center; border-radius:50%; background:rgba(255,255,255,.15); font-weight:900; }
.next-step h3 { margin:0; font-size:14px; }
.next-step p { margin:7px 0 0; font-size:17px; font-weight:700; line-height:1.7; }
.role-results { display:grid; grid-template-columns:1fr 1fr; column-gap:44px; margin-top:34px; }
.role-card { display:grid; grid-template-columns:65px 1fr; gap:16px; padding:25px 0; border-top:1px solid var(--line); }
.role-card img { width:65px; height:65px; border-radius:19px; object-fit:cover; }
.role-card-header { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.role-card h3 { margin:0; font-size:16px; }
.stance { padding:5px 9px; border-radius:100px; color:#334f9d; background:var(--lavender); font-size:10px; font-weight:800; }
.role-card p { margin:11px 0 0; color:var(--muted); font-size:14px; line-height:1.8; }
.questions-wrap { display:flex; align-items:flex-start; justify-content:space-between; gap:32px; padding-top:28px; border-top:1px solid var(--line); }
.questions-wrap h3 { margin:0; font-size:20px; }
.questions-wrap ul { display:grid; gap:7px; margin:13px 0 0; padding-left:20px; color:var(--muted); font-size:14px; line-height:1.65; }
.secondary { flex:0 0 auto; padding:11px 16px; border:1px solid var(--line); border-radius:100px; background:#fff; color:var(--blue); cursor:pointer; font-size:13px; font-weight:800; box-shadow:0 5px 16px rgba(23,33,59,.07); }
footer { display:flex; justify-content:center; gap:8px; padding:25px 20px; border-top:1px solid var(--line); color:var(--muted); background:#fff; font-size:12px; }
footer a { color:var(--blue); font-weight:800; text-decoration:none; }
@media (max-width:900px) { .hero { grid-template-columns:1fr; gap:48px; padding-top:48px; } .intro { max-width:680px; } .kid-panel { max-width:680px; } }
@media (max-width:640px) { .site-header { width:calc(100% - 30px); min-height:66px; gap:9px; } .brand > span:last-child { display:none; } .product-name { margin-left:0; padding-left:12px; font-size:14px; } .age-pill { padding:6px 8px; font-size:10px; } .hero,.result { width:calc(100% - 30px); } .hero { padding:36px 0 56px; gap:38px; } h1 { font-size:37px; } .lead { font-size:15px; line-height:1.8; } .role-grid { gap:15px 7px; } .role-grid img { border-radius:17px; } .role-grid figcaption { font-size:10px; } .kid-panel { padding:21px 17px; border-radius:22px; } .panel-heading h2 { font-size:20px; } .textarea-meta span:first-child { display:none; } .textarea-meta { justify-content:flex-end; } .examples { flex-wrap:nowrap; overflow-x:auto; margin-right:-17px; padding-right:17px; scrollbar-width:none; } .examples button { flex:0 0 auto; max-width:235px; } .result-summary { padding:27px 20px; } .next-step { padding:18px; } .role-results { grid-template-columns:1fr; } .role-card { grid-template-columns:57px 1fr; gap:13px; } .role-card img { width:57px; height:57px; border-radius:16px; } .questions-wrap { display:block; } .secondary { margin-top:22px; } footer { flex-wrap:wrap; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
