:root{--bg:#f4f8ff;--card:#fff;--text:#18324b;--muted:#6c8093;--line:#dbe7f3;--blue:#3b82f6;--green:#10b981;--amber:#f59e0b;--purple:#8b5cf6;--shadow:0 18px 44px rgba(39,74,111,.12);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 15% 5%,#dcecff 0,transparent 32%),radial-gradient(circle at 85% 8%,#dcfce7 0,transparent 28%),var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{width:min(1220px,94vw);margin:auto;padding:28px 0 48px}.narrow{width:min(900px,94vw)}.hero-shell{padding-top:70px}.hero{text-align:center;padding:40px 20px}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.18em;color:#52708e}.hero h1,.dashboard-head h1,.my-hero h1{font-size:clamp(36px,6vw,64px);margin:8px 0}.lead{max-width:760px;margin:0 auto;color:var(--muted);font-size:18px;line-height:1.8}.hero-badges{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}.hero-badges span{background:#fff;border:1px solid var(--line);padding:9px 14px;border-radius:999px;box-shadow:var(--shadow)}.role-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.role-card{min-height:125px;padding:24px;border-radius:24px;background:rgba(255,255,255,.9);border:1px solid var(--line);box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center;gap:8px}.role-card b{font-size:20px}.role-card small{color:var(--muted);line-height:1.6}.role-card.teacher{background:linear-gradient(135deg,#eff6ff,#fff)}.role-card.student{background:linear-gradient(135deg,#ecfdf5,#fff)}.role-card.parent{background:linear-gradient(135deg,#fff7ed,#fff)}.role-card.display{background:linear-gradient(135deg,#f5f3ff,#fff)}.footer-note{text-align:center;color:var(--muted);margin-top:24px}.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px max(3vw,18px);background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.topbar>div{display:flex;flex-direction:column}.topbar small{color:var(--muted)}.topbar nav{display:flex;gap:14px;flex-wrap:wrap}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(430px,94vw);background:#fff;border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:var(--shadow)}.auth-card h1{margin:8px 0}.auth-card p{color:var(--muted)}.planet-logo{font-size:48px}.auth-card form,.panel form{display:grid;gap:14px}.auth-card label,.panel label{display:grid;gap:7px;font-weight:800}.auth-card input,.panel input,.panel select,.panel textarea,.search{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff;outline:none}.panel textarea{min-height:90px;resize:vertical}.primary{border:0;background:linear-gradient(135deg,#3b82f6,#10b981);color:#fff;padding:12px 16px;border-radius:14px;font-weight:900}.text-link{display:block;text-align:center;margin-top:16px;color:#4c6f91}.alert{padding:12px 14px;border-radius:14px;margin:12px 0}.alert.error{background:#fff1f2;color:#be123c}.alert.ok{background:#ecfdf5;color:#047857}.dashboard-head,.my-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:22px 0}.dashboard-head h1{font-size:42px}.dashboard-head p,.my-hero p{color:var(--muted)}.session-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.session-box button,.tiny,.repair-btn,.dim-actions button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 11px;font-weight:850}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.metric{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.metric b{display:block;font-size:28px}.metric span{color:var(--muted);font-size:13px}.panel{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:24px;padding:20px;margin:16px 0;box-shadow:var(--shadow)}.panel h2{margin:0 0 6px}.panel h3{margin-top:22px}.panel p{color:var(--muted);line-height:1.65}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.search{min-width:220px}.priority-grid{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.priority-chip{border:1px solid #bfdbfe;background:#eff6ff;border-radius:16px;padding:12px 14px;text-align:left}.priority-chip b,.priority-chip span{display:block}.priority-chip span{font-size:12px;color:var(--muted);margin-top:3px}.student-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.student-card{border:1px solid var(--line);border-radius:20px;padding:14px;background:#fff}.student-card.flash{outline:4px solid rgba(245,158,11,.35)}.student-name{display:flex;align-items:center;gap:10px}.student-name>div{flex:1}.student-name b,.student-name small{display:block}.student-name small{color:var(--muted);font-size:12px}.pet-emoji{font-size:32px}.tiny{font-size:12px;padding:6px 8px}.dim-mini{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin:12px 0}.dim-mini span{background:#f8fafc;border-radius:9px;padding:6px;font-size:12px;color:#50677d}.goal-line{background:#fffbeb;color:#92400e;border-radius:10px;padding:8px;font-size:12px;margin-bottom:10px}.dim-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.dim-actions button:hover{background:#eff6ff}.repair-btn{width:100%;margin-top:7px;color:#9a3412;background:#fff7ed}.toast{position:fixed;right:20px;bottom:20px;background:#17324d;color:#fff;padding:12px 16px;border-radius:14px;box-shadow:var(--shadow);z-index:650}.my-hero{background:linear-gradient(135deg,#fff,#eff6ff);border:1px solid var(--line);border-radius:28px;padding:24px;box-shadow:var(--shadow)}.pet-big{font-size:72px}.dim-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.dim-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;text-align:center;box-shadow:var(--shadow)}.dim-card span,.dim-card b,.dim-card strong,.dim-card small{display:block}.dim-card span{font-size:28px}.dim-card strong{font-size:30px;margin:8px}.dim-card small{color:var(--muted)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.timeline{display:grid;gap:10px}.timeline>div{display:flex;gap:10px;padding:10px;background:#f8fafc;border-radius:14px}.timeline p{margin:0}.timeline b,.timeline small{display:block}.timeline small{font-size:12px;color:var(--muted);margin-top:3px}.goal-box{padding:16px;border-radius:18px;background:#eff6ff}.repair-list{padding-left:20px;line-height:1.8}.family-tip{padding:12px;background:#fff7ed;border-radius:12px}.muted,.empty{color:var(--muted)}.steps{line-height:1.9}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.dark{background:#071323;color:#fff}.dark-card{background:#0d1f35;border-color:#214263;color:#fff}.display-body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 10%,#183b6a,transparent 32%),radial-gradient(circle at 80% 20%,#155e75,transparent 28%),linear-gradient(180deg,#071323,#0b1930);color:#eff8ff}.display-shell{width:min(1400px,94vw);margin:auto;padding:40px 0}.display-title{display:flex;align-items:center;gap:18px}.display-title>span{font-size:62px}.display-title h1{font-size:46px;margin:4px 0}.display-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:26px 0}.display-metric{padding:22px;border:1px solid rgba(160,210,255,.22);background:rgba(255,255,255,.07);border-radius:22px}.display-metric b{font-size:36px;display:block}.display-metric span{color:#a9c8e6}.display-events{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.display-event{padding:18px;border:1px solid rgba(160,210,255,.2);background:rgba(255,255,255,.06);border-radius:20px}.display-event b{font-size:20px}.display-event p{margin:8px 0;color:#c9ddf0}.display-event small{color:#8db4d7}.display-foot{text-align:center;color:#8db4d7;margin-top:24px}@media(max-width:900px){.student-grid{grid-template-columns:repeat(2,1fr)}.metric-grid,.dim-grid{grid-template-columns:repeat(2,1fr)}.display-events{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.role-grid,.two-col,.student-grid,.display-events{grid-template-columns:1fr}.metric-grid,.dim-grid{grid-template-columns:repeat(2,1fr)}.dashboard-head,.my-hero,.panel-head{align-items:flex-start;flex-direction:column}.topbar{align-items:flex-start}.display-metrics{grid-template-columns:1fr}.hero-shell{padding-top:30px}}

/* ===== V3.1 PET CORE ===== */
.pet-avatar-mini{width:48px;height:48px;display:grid;place-items:center;border-radius:17px;font-size:30px;background:linear-gradient(145deg,#fff7d6,#eef7ff);box-shadow:inset 0 0 0 1px rgba(90,130,170,.14),0 8px 18px rgba(50,90,130,.10);position:relative;flex:0 0 auto}.pet-mini-label{color:#8a6a2d!important;margin-bottom:2px}.pet-portrait{position:relative;display:grid;place-items:center;aspect-ratio:1;border-radius:34%;background:radial-gradient(circle at 32% 24%,rgba(255,255,255,.95),rgba(255,255,255,.35) 27%,transparent 28%),linear-gradient(145deg,#e0f2fe,#fef3c7);border:1px solid rgba(96,165,250,.22);box-shadow:0 22px 55px rgba(37,99,235,.15),inset 0 -16px 30px rgba(255,255,255,.55);overflow:hidden}.pet-portrait:before,.pet-avatar-mini:before,.display-pet-card:before{content:"";position:absolute;inset:8%;border-radius:50%;background:radial-gradient(circle,rgba(251,191,36,.22),transparent 62%);opacity:.35}.pet-portrait span{position:relative;z-index:2;filter:drop-shadow(0 12px 16px rgba(24,50,75,.16));transition:transform .2s ease}.pet-portrait em{position:absolute;left:50%;bottom:9px;transform:translateX(-50%);z-index:3;font-size:12px;font-style:normal;font-weight:900;white-space:nowrap;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.86);color:#435d78;border:1px solid rgba(90,130,170,.14)}.hero-pet{width:min(320px,34vw);min-width:220px}.hero-pet span{font-size:clamp(100px,13vw,180px)}.pet-stage-2{background:linear-gradient(145deg,#dcfce7,#eff6ff)}.pet-stage-2:before{opacity:.55}.pet-stage-3{background:linear-gradient(145deg,#fef3c7,#ede9fe);box-shadow:0 24px 60px rgba(245,158,11,.20),inset 0 -16px 30px rgba(255,255,255,.6)}.pet-stage-3:before{opacity:.75}.pet-stage-4{background:linear-gradient(145deg,#ddd6fe,#cffafe);box-shadow:0 26px 70px rgba(124,58,237,.22),0 0 42px rgba(56,189,248,.14)}.pet-stage-4:before{opacity:.9}.pet-stage-5{background:linear-gradient(145deg,#f5d0fe,#fde68a);box-shadow:0 30px 82px rgba(168,85,247,.27),0 0 52px rgba(251,191,36,.22)}.pet-stage-5:before{opacity:1}.pet-stage-3 span{transform:scale(1.05)}.pet-stage-4 span{transform:scale(1.11)}.pet-stage-5 span{transform:scale(1.17)}.pet-hero{display:grid;grid-template-columns:minmax(220px,330px) 1fr;gap:34px;align-items:center;background:linear-gradient(135deg,#fff,#eef8ff 55%,#f0fdf4);border:1px solid var(--line);border-radius:32px;padding:30px;box-shadow:var(--shadow);margin:22px 0}.pet-hero-copy h1{font-size:clamp(34px,5vw,58px);margin:8px 0}.pet-hero-copy p{color:var(--muted);font-size:16px;line-height:1.8}.pet-status-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.pet-status-row span{padding:8px 11px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:13px;font-weight:850}.pet-progress{height:9px;border-radius:999px;background:#e8eef5;overflow:hidden}.pet-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#60a5fa,#34d399,#fbbf24)}.pet-progress.big{height:13px;max-width:620px}.pet-progress-note{display:block;color:var(--muted);margin-top:7px}.pet-center{scroll-margin-top:90px}.pet-filter-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}.pet-filter{border:1px solid var(--line);background:#fff;padding:9px 12px;border-radius:999px;font-weight:850}.pet-filter.active{background:#17324d;color:#fff;border-color:#17324d}.pet-catalog-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.pet-choice{position:relative;border:1px solid var(--line);background:#fff;border-radius:20px;padding:12px;text-align:center;box-shadow:0 10px 22px rgba(50,90,130,.06)}.pet-choice.current{outline:3px solid rgba(16,185,129,.32);background:#f0fdf4}.pet-portrait.choice{width:92px;margin:0 auto 9px}.pet-portrait.choice span{font-size:54px}.pet-choice>b,.pet-choice>small{display:block}.pet-choice>small{color:var(--muted);margin:3px 0 9px}.pet-select-form button{width:100%;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:11px;padding:7px;font-weight:850}.current-pet-badge{display:block;background:#d1fae5;color:#047857;border-radius:999px;padding:7px;margin-top:8px;font-size:12px}.teacher-pet-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.teacher-pet-card{display:grid;grid-template-columns:86px 1fr minmax(230px,.8fr);gap:14px;align-items:center;border:1px solid var(--line);border-radius:20px;padding:12px}.pet-portrait.compact{width:76px}.pet-portrait.compact span{font-size:44px}.teacher-pet-meta b,.teacher-pet-meta small{display:block}.teacher-pet-meta small{color:var(--muted);margin:3px 0}.teacher-pet-card form{display:flex;gap:7px;align-items:center}.teacher-pet-card select{min-width:0;width:100%;border:1px solid var(--line);border-radius:12px;padding:9px;background:#fff}.display-section{margin:24px 0}.display-section h2{font-size:28px;margin:0 0 4px}.display-section>p{color:#8db4d7;margin:0 0 14px}.display-pet-wall{display:grid;grid-template-columns:repeat(7,1fr);gap:9px}.display-pet-card{position:relative;text-align:center;padding:11px 7px;border:1px solid rgba(160,210,255,.18);background:rgba(255,255,255,.06);border-radius:17px;overflow:hidden}.display-pet-emoji{font-size:38px;position:relative;z-index:2;filter:drop-shadow(0 7px 9px rgba(0,0,0,.22))}.display-pet-card b,.display-pet-card span,.display-pet-card small{display:block;position:relative;z-index:2}.display-pet-card b{margin-top:4px}.display-pet-card span{font-size:12px;color:#c9ddf0;margin-top:2px}.display-pet-card small{font-size:11px;color:#8db4d7;margin-top:2px}.display-event{display:flex;gap:14px;align-items:center}.display-event-pet{font-size:46px;flex:0 0 58px;text-align:center}.display-event>div:last-child{min-width:0}.family-pet-hero{grid-template-columns:minmax(200px,290px) 1fr}
@media(max-width:1000px){.pet-catalog-grid{grid-template-columns:repeat(4,1fr)}.display-pet-wall{grid-template-columns:repeat(5,1fr)}.teacher-pet-grid{grid-template-columns:1fr}}@media(max-width:720px){.pet-hero,.family-pet-hero{grid-template-columns:1fr}.hero-pet{width:220px;min-width:0;margin:auto}.pet-catalog-grid{grid-template-columns:repeat(2,1fr)}.display-pet-wall{grid-template-columns:repeat(3,1fr)}.teacher-pet-card{grid-template-columns:70px 1fr}.teacher-pet-card form{grid-column:1/-1}.pet-portrait.compact{width:64px}}

/* ============================================================
   V3.1A PET-HERO visual hotfix · 2026-08-12
   Pet-first hierarchy: character stage -> growth signals -> details.
   Pure presentation layer; no data or permission changes.
   ============================================================ */
.student-shell,.parent-shell{width:min(1480px,96vw)}
.student-pet-hero,.family-pet-hero{position:relative;isolation:isolate;overflow:hidden}
.student-pet-hero:after,.family-pet-hero:after{content:"";position:absolute;inset:auto -8% -42% 34%;height:70%;border-radius:50%;background:radial-gradient(circle,rgba(52,211,153,.12),transparent 68%);z-index:-1;pointer-events:none}
.student-pet-hero{min-height:70vh;grid-template-columns:minmax(0,56%) minmax(360px,44%);gap:clamp(34px,4vw,64px);padding:clamp(38px,5vw,76px);margin:20px 0 28px}
.pet-stage-wrap{position:relative;display:grid;place-items:center;min-width:0;isolation:isolate}
.student-pet-stage{min-height:clamp(500px,58vh,680px)}
.family-pet-stage{min-height:clamp(370px,46vh,520px)}
.pet-stage-glow{position:absolute;width:min(78%,560px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.92) 0 15%,rgba(251,191,36,.22) 28%,rgba(96,165,250,.13) 52%,transparent 72%);filter:blur(6px);z-index:-3;animation:banpetGlow 5.8s ease-in-out infinite}
.pet-stage-orbit{position:absolute;border:1px solid rgba(96,165,250,.22);border-radius:50%;z-index:-2;pointer-events:none}
.pet-stage-orbit-a{width:78%;aspect-ratio:1;transform:rotate(-12deg)}
.pet-stage-orbit-b{width:61%;aspect-ratio:1;transform:rotate(24deg);border-color:rgba(245,158,11,.20)}
.pet-stage-orbit:before,.pet-stage-orbit:after{content:"✦";position:absolute;color:rgba(245,158,11,.72);font-size:22px;text-shadow:0 4px 18px rgba(245,158,11,.24)}
.pet-stage-orbit:before{left:8%;top:20%}.pet-stage-orbit:after{right:10%;bottom:18%;font-size:15px;color:rgba(59,130,246,.68)}
.student-pet-hero .hero-pet{width:clamp(430px,39vw,560px);max-width:92%;min-width:0;border-radius:38%;box-shadow:0 36px 90px rgba(37,99,235,.19),0 0 70px rgba(251,191,36,.10),inset 0 -22px 42px rgba(255,255,255,.62);animation:banpetFloat 5.5s ease-in-out infinite}
.student-pet-hero .hero-pet span{font-size:clamp(235px,26vw,360px)}
.student-pet-hero .hero-pet em{font-size:14px;padding:7px 12px;bottom:16px}
.pet-stage-caption{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,255,255,.78);box-shadow:0 14px 36px rgba(24,50,75,.12);backdrop-filter:blur(12px);white-space:nowrap}
.pet-stage-caption small{color:var(--muted)}.pet-stage-caption b{font-size:14px}
.student-pet-hero .pet-hero-copy{padding-right:clamp(0px,2vw,24px)}
.student-pet-hero .pet-hero-copy h1{font-size:clamp(48px,5.4vw,78px);line-height:1.05;letter-spacing:-.035em;max-width:760px;margin:10px 0 18px}
.student-pet-hero .pet-hero-copy p{font-size:17px;max-width:650px;margin:0 0 18px}
.pet-energy-head{display:flex;align-items:end;justify-content:space-between;gap:20px;max-width:620px;margin:24px 0 8px;color:var(--muted);font-weight:850}.pet-energy-head b{font-size:28px;color:var(--text)}
.student-pet-hero .pet-progress.big{height:16px;max-width:620px;background:rgba(219,231,243,.86);box-shadow:inset 0 2px 4px rgba(24,50,75,.08)}
.pet-center-jump{display:inline-flex;align-items:center;gap:7px;margin-top:18px;padding:10px 14px;border:1px solid #bfdbfe;border-radius:999px;background:rgba(255,255,255,.82);color:#255c91;font-weight:850;box-shadow:0 8px 18px rgba(50,90,130,.08)}
.student-growth-section,.family-growth-section{margin:30px 0 18px;scroll-margin-top:90px}.section-heading{margin-bottom:16px}.section-heading h2{font-size:clamp(28px,3vw,40px);margin:5px 0 4px}.section-heading p{color:var(--muted);margin:0;line-height:1.7}
.student-growth-section .dim-card,.family-growth-section .dim-card{box-shadow:0 12px 28px rgba(39,74,111,.09)}
.family-pet-hero{min-height:58vh;grid-template-columns:minmax(0,44%) minmax(420px,56%);gap:clamp(32px,4vw,58px);padding:clamp(34px,4vw,62px)}
.family-pet-hero .hero-pet{width:clamp(330px,30vw,450px);max-width:92%;min-width:0;animation:banpetFloat 6s ease-in-out infinite}
.family-pet-hero .hero-pet span{font-size:clamp(185px,20vw,285px)}
.family-pet-hero .pet-hero-copy h1{font-size:clamp(42px,4.6vw,66px);line-height:1.08;letter-spacing:-.03em;max-width:760px}
.family-pet-hero .pet-hero-copy p{font-size:17px;max-width:720px}
.pet-catalog-grid{grid-template-columns:repeat(4,1fr);gap:16px}.pet-choice{padding:16px}.pet-portrait.choice{width:132px;margin-bottom:12px}.pet-portrait.choice span{font-size:78px}.pet-choice>b{font-size:16px}
.pet-avatar-mini{width:60px;height:60px;font-size:38px;border-radius:20px}
.display-pet-emoji{font-size:64px}.display-event-pet{font-size:102px;flex-basis:120px}.display-event{min-height:150px}
@keyframes banpetFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes banpetGlow{0%,100%{opacity:.82;transform:scale(1)}50%{opacity:1;transform:scale(1.045)}}
@media(max-width:1199px) and (min-width:901px){.student-pet-hero{min-height:640px;grid-template-columns:minmax(0,52%) minmax(340px,48%);padding:40px}.student-pet-stage{min-height:470px}.student-pet-hero .hero-pet{width:clamp(380px,42vw,455px)}.student-pet-hero .hero-pet span{font-size:clamp(205px,27vw,285px)}.student-pet-hero .pet-hero-copy h1{font-size:clamp(44px,5.4vw,62px)}.family-pet-hero{grid-template-columns:minmax(0,42%) minmax(390px,58%)}.pet-catalog-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.student-pet-hero,.family-pet-hero{grid-template-columns:1fr}.student-pet-hero{min-height:auto}.student-pet-stage{min-height:460px}.family-pet-stage{min-height:340px}.student-pet-hero .pet-hero-copy,.family-pet-hero .pet-hero-copy{text-align:center;padding-right:0}.student-pet-hero .pet-hero-copy p,.family-pet-hero .pet-hero-copy p{margin-left:auto;margin-right:auto}.pet-status-row{justify-content:center}.pet-energy-head{margin-left:auto;margin-right:auto}.student-pet-hero .pet-progress.big,.family-pet-hero .pet-progress.big{margin-left:auto;margin-right:auto}.pet-center-jump{margin-left:auto;margin-right:auto}.pet-catalog-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.student-shell,.parent-shell{width:min(100%,100vw);padding-top:10px}.student-pet-hero{min-height:78vh;margin:10px 10px 24px;padding:28px 18px 34px;gap:18px;border-radius:28px}.student-pet-stage{min-height:330px}.student-pet-hero .hero-pet{width:min(84vw,330px);max-width:330px}.student-pet-hero .hero-pet span{font-size:clamp(190px,57vw,270px)}.student-pet-hero .hero-pet em{font-size:12px;bottom:10px}.pet-stage-glow{width:86%}.pet-stage-orbit-a{width:86%}.pet-stage-orbit-b{width:66%}.pet-stage-caption{bottom:-2%;padding:8px 11px}.student-pet-hero .pet-hero-copy h1{font-size:clamp(36px,11vw,48px);margin-top:6px}.student-pet-hero .pet-hero-copy p{font-size:15px;line-height:1.65}.pet-energy-head{margin-top:18px}.student-pet-hero .pet-progress.big{height:14px}.student-growth-section,.family-growth-section{padding:0 14px}.student-growth-section .dim-grid,.family-growth-section .dim-grid{grid-template-columns:repeat(2,1fr)}.family-pet-hero{min-height:72vh;margin:10px 10px 24px;padding:26px 18px 32px;gap:14px;border-radius:28px}.family-pet-stage{min-height:280px}.family-pet-hero .hero-pet{width:min(74vw,285px)}.family-pet-hero .hero-pet span{font-size:clamp(160px,48vw,225px)}.family-pet-hero .pet-hero-copy h1{font-size:clamp(31px,9.4vw,42px)}.family-pet-hero .pet-hero-copy p{font-size:15px}.pet-catalog-grid{grid-template-columns:repeat(2,1fr);gap:12px}.pet-portrait.choice{width:min(120px,34vw)}.pet-portrait.choice span{font-size:clamp(62px,19vw,84px)}.display-pet-emoji{font-size:58px}.display-event-pet{font-size:88px;flex-basis:100px}}
@media(max-width:430px){.student-pet-stage{min-height:300px}.student-pet-hero .hero-pet{width:min(86vw,300px)}.student-pet-hero .hero-pet span{font-size:clamp(175px,56vw,235px)}.family-pet-stage{min-height:250px}.family-pet-hero .hero-pet{width:min(72vw,250px)}.family-pet-hero .hero-pet span{font-size:clamp(145px,45vw,205px)}.pet-stage-caption{font-size:12px}.pet-stage-caption small{display:none}}
@media(prefers-reduced-motion:reduce){.student-pet-hero .hero-pet,.family-pet-hero .hero-pet,.pet-stage-glow{animation:none!important}}

/* ===== V3.1B PET-STUDIO + DISPLAY WALL ===== */
.v3-pet-stage{--pet-scale:1;--pet-hue:0deg;--pet-saturate:1;--pet-brightness:1;--pet-contrast:1;--pet-float-speed:2.6s;--pet-skin-opacity:.22;--pet-aura-opacity:.45;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at center bottom,var(--pet-stage-bg),transparent 48%),linear-gradient(180deg,var(--pet-stage-bg2),rgba(255,255,255,.74));border:1px solid var(--pet-stage-border);box-shadow:inset 0 -12px 22px rgba(255,255,255,.55),0 12px 26px rgba(50,90,130,.10)}
.v3-pet-aura{position:absolute;width:64%;aspect-ratio:1;border-radius:50%;border:2px dashed rgba(255,255,255,.68);box-shadow:0 0 0 7px var(--pet-aura-2),0 0 34px var(--pet-aura-1);background:radial-gradient(circle,var(--pet-aura-2),transparent 66%);opacity:var(--pet-aura-opacity);animation:v3AuraSpin 12s linear infinite}
.v3-pet-shockwave{position:absolute;width:44%;aspect-ratio:1;border-radius:50%;border:1.5px solid rgba(255,255,255,.45);opacity:calc(var(--pet-aura-opacity)*.55);animation:v3Shockwave 3s ease-out infinite}
.v3-pet-skin{position:absolute;inset:19%;border-radius:50%;background:repeating-linear-gradient(135deg,rgba(255,255,255,.18) 0 8px,transparent 8px 16px),radial-gradient(circle at 30% 30%,rgba(255,255,255,.38),transparent 46%),radial-gradient(circle at 70% 70%,var(--pet-aura-1),transparent 58%);mix-blend-mode:screen;opacity:var(--pet-skin-opacity)}
.v3-pet-sparkles{position:absolute;inset:8px 8px auto;text-align:center;color:rgba(255,255,255,.9);font-size:12px;letter-spacing:10px;text-shadow:0 0 10px rgba(255,255,255,.75);opacity:.88;z-index:2}
.v3-pet-visual{position:relative;z-index:3;line-height:1;transform:scale(var(--pet-scale));filter:drop-shadow(0 12px 16px rgba(24,50,75,.20)) saturate(var(--pet-saturate)) hue-rotate(var(--pet-hue)) brightness(var(--pet-brightness)) contrast(var(--pet-contrast));animation:v3PetFloat var(--pet-float-speed) ease-in-out infinite;transform-origin:center}
.v3-pet-floor{position:absolute;bottom:11%;width:42%;height:9%;border-radius:50%;background:rgba(15,23,42,.10);filter:blur(2px)}
.v3-pet-stage-badge,.v3-pet-level,.v3-pet-crown{position:absolute;z-index:5}.v3-pet-stage-badge{left:9px;top:9px;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.90);color:#7c2d12;border:1px solid rgba(251,191,36,.28);font-size:10px;font-weight:950}.v3-pet-level{right:9px;bottom:9px;padding:4px 8px;border-radius:999px;background:linear-gradient(135deg,var(--pet-accent),#fb7185);color:#fff;border:2px solid rgba(255,255,255,.84);font-size:10px;font-weight:950}.v3-pet-crown{top:30px;left:50%;transform:translateX(-50%);font-size:18px;filter:drop-shadow(0 4px 6px rgba(15,23,42,.16))}
@keyframes v3AuraSpin{to{transform:rotate(360deg)}}@keyframes v3Shockwave{0%{transform:scale(.82);opacity:.42}70%{transform:scale(1.28);opacity:.10}100%{transform:scale(1.42);opacity:0}}@keyframes v3PetFloat{0%,100%{transform:translateY(0) rotateY(-8deg) scale(var(--pet-scale))}50%{transform:translateY(-6px) rotateY(8deg) scale(calc(var(--pet-scale)*1.025))}}

/* 教师页：宠物舞台恢复为原单页式主视觉，并在 hover/click 时弹出调节器 */
.teacher-student-card{position:relative;overflow:visible;z-index:1}.teacher-student-card:hover{z-index:20}.teacher-pet-studio{position:relative;margin:10px 0 12px}.teacher-pet-stage{height:152px;border-radius:20px}.teacher-pet-stage .v3-pet-visual{font-size:88px}.teacher-pet-stage.tier-4 .v3-pet-visual,.teacher-pet-stage.tier-5 .v3-pet-visual{font-size:92px}.pet-studio-trigger{width:100%;margin-top:7px;border:1px dashed rgba(59,130,246,.28);background:#eff6ff;color:#1d4ed8;border-radius:12px;padding:7px 9px;font-size:11px;font-weight:900}.pet-hover-inspector{position:absolute;left:50%;top:calc(100% - 4px);transform:translateX(-50%) translateY(-4px);width:min(340px,calc(100vw - 28px));padding:12px;border-radius:20px;background:rgba(255,255,255,.98);border:1px solid rgba(96,165,250,.28);box-shadow:0 26px 62px rgba(15,23,42,.24);opacity:0;visibility:hidden;pointer-events:none;transition:.16s ease;z-index:60}.teacher-pet-studio:hover .pet-hover-inspector,.teacher-pet-studio.inspector-open .pet-hover-inspector{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}.pet-inspector-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding-bottom:8px;border-bottom:1px solid var(--line);margin-bottom:8px}.pet-inspector-head b,.pet-inspector-head small{display:block}.pet-inspector-head small{color:var(--muted);margin-top:2px;font-size:11px}.pet-control-row{display:grid;gap:4px;margin:7px 0}.pet-control-row>span{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:850;color:#435d78}.pet-control-row output{color:#1d4ed8;font-weight:950}.pet-control-row input[type=range]{width:100%;accent-color:#3b82f6}.pet-inspector-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.pet-inspector-actions button,.pet-inspector-actions a{border:1px solid var(--line);background:#fff;border-radius:11px;padding:7px 9px;font-size:11px;font-weight:900}.pet-inspector-actions .primary{border:0;background:linear-gradient(135deg,#3b82f6,#10b981);color:#fff}.student-grid{align-items:start}

/* 学生/家长页：教师保存的视觉参数同步到本人宠物 */
.pet-portrait.pet-visualized{background:radial-gradient(circle at 50% 62%,var(--pet-aura-2),transparent 32%),radial-gradient(circle at 32% 24%,rgba(255,255,255,.95),rgba(255,255,255,.35) 27%,transparent 28%),linear-gradient(145deg,var(--pet-stage-bg),var(--pet-stage-bg2));border-color:var(--pet-stage-border)}.pet-portrait.pet-visualized span{transform:scale(var(--pet-scale));filter:drop-shadow(0 14px 18px rgba(24,50,75,.16)) saturate(var(--pet-saturate)) hue-rotate(var(--pet-hue)) brightness(var(--pet-brightness)) contrast(var(--pet-contrast))}

/* 大屏：参考原 HTML 的投屏状态墙，42 人按 7×6 一屏铺满 */
.display-body-v31b{overflow:hidden;background:radial-gradient(circle at 12% 8%,rgba(147,197,253,.48),transparent 30%),radial-gradient(circle at 88% 10%,rgba(167,243,208,.44),transparent 28%),linear-gradient(135deg,#eef7ff 0%,#f8fbff 58%,#fff7ed 100%);color:#17324d}.display-shell-v31b{width:100vw;height:100vh;padding:10px 14px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px}.display-topbar-v31b{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:62px;padding:8px 12px;border-radius:20px;background:rgba(255,255,255,.80);border:1px solid rgba(80,120,160,.18);box-shadow:0 12px 28px rgba(55,92,130,.12);backdrop-filter:blur(9px)}.display-brand-v31b{display:flex;align-items:center;gap:10px;min-width:0}.display-brand-v31b>span{font-size:40px}.display-brand-v31b h1{margin:2px 0 0;font-size:clamp(26px,2.4vw,42px);line-height:1}.display-metrics-v31b{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}.display-metrics-v31b span{display:flex;align-items:baseline;gap:5px;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid rgba(90,130,170,.15);font-size:11px;color:#5b7288;font-weight:850}.display-metrics-v31b b{color:#17324d;font-size:16px}.display-wall-v31b{min-height:0;border-radius:22px;padding:7px;background:rgba(255,255,255,.64);border:1px solid rgba(90,130,170,.16);box-shadow:inset 0 -6px 18px rgba(255,255,255,.60);display:grid;grid-template-rows:auto minmax(0,1fr);gap:6px}.display-wall-head-v31b{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 3px;color:#28506f}.display-wall-head-v31b>div{display:flex;align-items:baseline;gap:10px}.display-wall-head-v31b b{font-size:14px;color:#17324d}.display-wall-head-v31b span{font-size:10px;color:#6a7e91}.display-wall-count{font-weight:900}.display-pet-wall-v31b{min-height:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));gap:6px}.display-pet-card-v31b{min-width:0;min-height:0;position:relative;overflow:hidden;border-radius:16px;padding:5px 6px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:2px;text-align:center;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,251,255,.86));border:1px solid var(--pet-stage-border);box-shadow:0 7px 16px rgba(50,90,130,.08)}.display-card-name-v31b{font-size:clamp(11px,1vw,15px);font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:3}.display-pet-stage-v31b{width:min(86px,8.2vh);height:min(86px,8.2vh);min-width:46px;min-height:46px;margin:auto;border-radius:28px;border:none;box-shadow:none;background:radial-gradient(circle,var(--pet-aura-2),transparent 64%)}.display-pet-stage-v31b .v3-pet-visual{font-size:clamp(31px,4.8vh,58px)}.display-pet-stage-v31b .v3-pet-aura{width:78%;border-width:1px}.display-pet-stage-v31b .v3-pet-skin{inset:13%}.display-pet-stage-v31b .v3-pet-sparkles{display:none}.display-pet-stage-v31b .v3-pet-floor{bottom:6%;height:8%}.display-card-meta-v31b{min-width:0;line-height:1.12}.display-card-meta-v31b b,.display-card-meta-v31b span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.display-card-meta-v31b b{font-size:clamp(9px,.84vw,12px);color:#28506f}.display-card-meta-v31b span{font-size:clamp(8px,.72vw,10px);color:#6a7e91;margin-top:1px}.display-ticker-v31b{min-height:34px;display:flex;align-items:center;gap:8px;padding:5px 10px;border-radius:16px;background:rgba(23,50,77,.94);color:#eaf5ff;overflow:hidden}.ticker-label{font-size:11px;font-weight:950;white-space:nowrap;color:#fde68a}.ticker-events{display:flex;gap:7px;min-width:0;overflow:hidden}.ticker-event{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.10);font-size:10px;white-space:nowrap}.ticker-event.hot{background:linear-gradient(135deg,rgba(59,130,246,.78),rgba(16,185,129,.78));color:#fff}.ticker-event.muted{color:#a9c8e6}
@media(max-width:1100px){.display-pet-wall-v31b{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:auto;overflow:auto}.display-body-v31b{overflow:auto}.display-shell-v31b{height:auto;min-height:100vh}.display-metrics-v31b span:nth-child(3){display:none}.teacher-pet-stage{height:142px}.teacher-pet-stage .v3-pet-visual{font-size:82px}}
@media(max-width:720px){.teacher-pet-stage{height:134px}.teacher-pet-stage .v3-pet-visual{font-size:78px}.pet-hover-inspector{position:fixed;left:14px;right:14px;bottom:14px;top:auto;width:auto;transform:translateY(12px)}.teacher-pet-studio:hover .pet-hover-inspector,.teacher-pet-studio.inspector-open .pet-hover-inspector{transform:translateY(0)}.display-pet-wall-v31b{grid-template-columns:repeat(3,minmax(0,1fr))}.display-topbar-v31b{align-items:flex-start;flex-direction:column}.display-metrics-v31b{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.v3-pet-aura,.v3-pet-shockwave,.v3-pet-visual{animation:none!important}}



/* ===== V3.1C PET-ACTION + 2.5D + SOUND ===== */
:root{--pet-tilt-x:0deg;--pet-tilt-y:0deg;--pet-pointer-x:50%;--pet-pointer-y:38%;--pet-tilt-strength:10;--pet-depth:10px;--pet-shadow-strength:.20}
.topbar-sound-btn{border:1px solid var(--line);background:rgba(255,255,255,.82);border-radius:999px;padding:7px 10px;color:#28506f;font-weight:900;cursor:pointer}
.v3-pet-stage[data-interactive-pet],.pet-portrait[data-interactive-pet]{cursor:pointer;perspective:700px;transform-style:preserve-3d;isolation:isolate}
.v3-pet-stage[data-interactive-pet]::before,.pet-portrait[data-interactive-pet]::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:4;pointer-events:none;background:radial-gradient(circle at var(--pet-pointer-x) var(--pet-pointer-y),rgba(255,255,255,.40),transparent 34%);opacity:.34;mix-blend-mode:screen;transition:opacity .2s ease}
.v3-pet-stage[data-interactive-pet]:hover::before,.pet-portrait[data-interactive-pet]:hover::before{opacity:.62}
.v3-pet-stage[data-interactive-pet]:hover{box-shadow:0 20px 46px rgba(50,90,130,.18),inset 0 0 0 1px rgba(255,255,255,.44)}
.v3-pet-visual{transform-style:preserve-3d;will-change:transform,filter;filter:drop-shadow(0 14px 16px rgba(24,50,75,var(--pet-shadow-strength))) saturate(var(--pet-saturate)) hue-rotate(var(--pet-hue)) brightness(var(--pet-brightness)) contrast(var(--pet-contrast))}
@keyframes v3PetFloat{0%,100%{transform:perspective(560px) translateZ(var(--pet-depth)) translateY(0) rotateX(var(--pet-tilt-x)) rotateY(calc(var(--pet-tilt-y) - 7deg)) scale(var(--pet-scale))}50%{transform:perspective(560px) translateZ(var(--pet-depth)) translateY(-7px) rotateX(var(--pet-tilt-x)) rotateY(calc(var(--pet-tilt-y) + 7deg)) scale(calc(var(--pet-scale)*1.025))}}
.pet-portrait[data-interactive-pet]>span{transform:perspective(620px) translateZ(var(--pet-depth)) rotateX(var(--pet-tilt-x)) rotateY(var(--pet-tilt-y)) scale(var(--pet-scale));transform-style:preserve-3d;transition:transform .14s ease,filter .18s ease;filter:drop-shadow(0 18px 20px rgba(24,50,75,var(--pet-shadow-strength))) saturate(var(--pet-saturate)) hue-rotate(var(--pet-hue)) brightness(var(--pet-brightness)) contrast(var(--pet-contrast))}
.pet-portrait.pet-tap>span{animation:petTapBounce .36s cubic-bezier(.2,.9,.2,1.2)}@keyframes petTapBounce{0%{transform:scale(var(--pet-scale))}45%{transform:scale(calc(var(--pet-scale)*1.08)) translateY(-10px)}100%{transform:scale(var(--pet-scale))}}
.pet-celebrate .v3-pet-sparkles{font-size:22px;opacity:1;animation:petSparkCelebrate .55s ease 2}@keyframes petSparkCelebrate{50%{transform:scale(1.28);filter:brightness(1.4)}}

/* 点击教师宠物后：参考原 HTML 的大弹窗，但改为 V3 四维成长模型 */
body.pet-modal-open{overflow:hidden}.pet-action-modal[hidden]{display:none!important}.pet-action-modal{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:18px}.pet-action-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(9px)}.pet-action-dialog{position:relative;width:min(1180px,97vw);max-height:94vh;overflow:auto;border-radius:30px;background:rgba(255,255,255,.98);box-shadow:0 34px 100px rgba(15,23,42,.34);border:1px solid rgba(255,255,255,.78);padding:18px}.pet-action-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:4px 4px 14px;border-bottom:1px solid var(--line)}.pet-action-head h2{margin:4px 0 2px;font-size:28px;color:#17324d}.pet-action-head p{margin:0;color:#6a7e91}.pet-action-head-actions{display:flex;gap:8px;flex-wrap:wrap}.pet-action-head-actions button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;font-weight:900}.pet-action-close{color:#be123c!important;background:#fff1f2!important}.pet-action-layout{display:grid;grid-template-columns:minmax(300px,.86fr) minmax(520px,1.5fr);gap:18px;padding-top:16px}.pet-action-left{border-radius:24px;padding:14px;background:radial-gradient(circle at 50% 30%,rgba(147,197,253,.26),transparent 32%),linear-gradient(180deg,#f8fbff,#fff);border:1px solid var(--line)}.modal-pet-stage{height:350px;border-radius:26px}.modal-pet-stage .v3-pet-visual{font-size:168px}.modal-pet-stage .v3-pet-stage-badge{font-size:12px}.modal-pet-stage .v3-pet-level{font-size:12px}.modal-pet-stage .v3-pet-crown{font-size:28px;top:48px}.pet-action-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:10px}.pet-action-stats span{padding:9px 6px;border-radius:14px;background:#fff;border:1px solid var(--line);text-align:center;color:#6a7e91;font-size:11px}.pet-action-stats b{display:block;color:#17324d;font-size:17px;margin-top:3px}.pet-action-progress{height:9px;margin-top:10px;border-radius:999px;background:#e5edf5;overflow:hidden}.pet-action-progress i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#60a5fa,#34d399,#fbbf24)}.pet-action-hint{font-size:12px;color:#6a7e91;line-height:1.6;margin:9px 2px 0}.pet-action-right{min-width:0}.pet-action-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.pet-action-tabs button{border:1px solid var(--line);background:#f8fbff;color:#28506f;border-radius:999px;padding:9px 13px;font-weight:900}.pet-action-tabs button.active{background:linear-gradient(135deg,#60a5fa,#34d399);color:#fff;border-color:transparent}.pet-action-tab-body{border-radius:22px;background:#f8fbff;border:1px solid var(--line);padding:14px;min-height:470px}.pet-modal-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.pet-modal-metrics>div{border-radius:17px;padding:11px;background:#fff;border:1px solid var(--line);text-align:center}.pet-modal-metrics span{display:block;color:#6a7e91;font-size:12px}.pet-modal-metrics b{display:block;margin-top:5px;font-size:24px;color:#17324d}.pet-modal-quick-title{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin:18px 2px 9px}.pet-modal-quick-title b{font-size:15px;color:#17324d}.pet-modal-quick-title span{font-size:11px;color:#6a7e91}.pet-modal-dim-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.pet-modal-dim-btn{min-height:104px;border-radius:20px;border:1px solid rgba(59,130,246,.18);background:linear-gradient(180deg,#fff,#eff6ff);color:#17324d;display:grid;place-items:center;align-content:center;gap:3px}.pet-modal-dim-btn>span{font-size:28px}.pet-modal-dim-btn b{font-size:16px}.pet-modal-dim-btn small{color:#6a7e91}.pet-behavior-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.pet-behavior-grid button{border-radius:16px;border:1px solid rgba(34,197,94,.20);background:#fff;color:#28506f;padding:11px 8px;font-weight:900}.pet-behavior-grid button:hover,.pet-modal-dim-btn:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(50,90,130,.12)}.pet-modal-last{margin-top:14px;padding:11px 12px;border-radius:16px;background:#fff;border:1px dashed rgba(90,130,170,.22);color:#28506f}.pet-visual-note{padding:10px 12px;border-radius:16px;background:#fff7ed;border:1px dashed rgba(245,158,11,.30);color:#7c4a03;font-size:12px;line-height:1.65;margin-bottom:8px}.pet-modal-slider{display:grid;gap:5px;margin:10px 0}.pet-modal-slider>span{display:flex;justify-content:space-between;color:#435d78;font-size:12px;font-weight:850}.pet-modal-slider output{color:#1d4ed8;font-weight:950}.pet-modal-slider input{width:100%;accent-color:#3b82f6}.pet-modal-visual-actions{display:flex;gap:8px;margin-top:14px}.pet-modal-visual-actions button{border:1px solid var(--line);border-radius:13px;background:#fff;padding:9px 12px;font-weight:900}.pet-modal-visual-actions .primary{border:0;color:#fff;background:linear-gradient(135deg,#3b82f6,#10b981)}.pet-modal-manage{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pet-manage-card{border-radius:20px;padding:14px;background:#fff;border:1px solid var(--line);display:grid;align-content:start;gap:8px;min-height:180px}.pet-manage-card b{font-size:16px;color:#17324d}.pet-manage-card p{margin:0;color:#6a7e91;font-size:12px;line-height:1.65}.pet-manage-card button,.pet-manage-card a{margin-top:auto;border:1px solid var(--line);border-radius:13px;padding:9px 10px;background:#f8fbff;color:#1d4ed8;text-align:center;font-weight:900}

/* 大屏：新增成长时短暂聚光，不改变 7×6 稳定布局 */
.display-top-actions{display:flex;align-items:center;gap:8px}.display-sound-toggle{border:1px solid rgba(90,130,170,.16);background:#fff;border-radius:999px;padding:7px 10px;color:#28506f;font-size:11px;font-weight:900}.display-event-flash{animation:displayCardFlash 2s ease}@keyframes displayCardFlash{0%,100%{transform:scale(1)}25%{transform:scale(1.08);box-shadow:0 0 0 5px rgba(251,191,36,.28),0 18px 38px rgba(245,158,11,.24)}55%{transform:scale(1.03)}}.display-spotlight[hidden]{display:none!important}.display-spotlight{position:fixed;inset:0;z-index:200;display:grid;place-items:center;pointer-events:none;background:radial-gradient(circle at center,rgba(15,23,42,.12),rgba(15,23,42,.40))}.display-spotlight-card{display:grid;grid-template-columns:160px 1fr;gap:18px;align-items:center;width:min(720px,86vw);padding:22px 28px;border-radius:30px;color:#fff;background:linear-gradient(135deg,rgba(37,99,235,.96),rgba(16,185,129,.94));box-shadow:0 34px 100px rgba(15,23,42,.38);animation:spotPop .42s cubic-bezier(.2,.9,.2,1.1)}.spot-pet{font-size:110px;text-align:center;filter:drop-shadow(0 20px 20px rgba(0,0,0,.18))}.display-spotlight-card small{font-weight:900;letter-spacing:1px;opacity:.9}.display-spotlight-card h2{margin:5px 0;font-size:36px}.display-spotlight-card p{margin:0;font-size:18px}@keyframes spotPop{0%{transform:scale(.82);opacity:0}100%{transform:scale(1);opacity:1}}

@media(max-width:900px){.pet-action-layout{grid-template-columns:1fr}.modal-pet-stage{height:300px}.modal-pet-stage .v3-pet-visual{font-size:138px}.pet-action-tab-body{min-height:0}.pet-modal-dim-actions,.pet-behavior-grid{grid-template-columns:repeat(2,1fr)}.pet-modal-manage{grid-template-columns:1fr}.display-top-actions{align-items:flex-end;flex-direction:column}.display-spotlight-card{grid-template-columns:110px 1fr}.spot-pet{font-size:82px}}
@media(max-width:620px){.pet-action-dialog{padding:12px;border-radius:22px}.pet-action-head{flex-direction:column}.pet-action-head h2{font-size:22px}.modal-pet-stage{height:250px}.modal-pet-stage .v3-pet-visual{font-size:116px}.pet-action-stats{grid-template-columns:repeat(2,1fr)}.pet-modal-metrics{grid-template-columns:repeat(2,1fr)}.pet-modal-quick-title{align-items:flex-start;flex-direction:column}.display-spotlight-card{grid-template-columns:1fr;text-align:center}.spot-pet{font-size:88px}}
@media(prefers-reduced-motion:reduce){.v3-pet-stage[data-interactive-pet]::before,.pet-portrait[data-interactive-pet]::before{display:none}.display-event-flash,.display-spotlight-card,.pet-tap{animation:none!important}}

/* ===== V3.1D PET-TALK：学生点击宠物，随机回应 ===== */
.pet-talk-bubble{position:absolute;z-index:8;top:7%;right:-2%;width:min(300px,38%);padding:14px 16px 15px;border-radius:22px 22px 22px 8px;background:rgba(255,255,255,.96);border:1px solid rgba(96,165,250,.26);box-shadow:0 18px 46px rgba(30,64,100,.18);backdrop-filter:blur(10px);transform-origin:left bottom;opacity:0;transform:translateY(8px) scale(.94);pointer-events:none}.pet-talk-bubble::after{content:"";position:absolute;left:18px;bottom:-10px;width:20px;height:20px;background:rgba(255,255,255,.96);border-right:1px solid rgba(96,165,250,.26);border-bottom:1px solid rgba(96,165,250,.26);transform:rotate(45deg);border-radius:0 0 5px 0}.pet-talk-bubble b{display:block;color:#17324d;font-size:13px;margin-bottom:5px}.pet-talk-bubble p{margin:0!important;color:#28506f!important;font-size:15px!important;font-weight:800;line-height:1.65}.pet-talk-bubble.show{animation:petTalkPop .26s cubic-bezier(.2,.9,.2,1.15) forwards}.pet-talk-excited{filter:saturate(1.06)}@keyframes petTalkPop{0%{opacity:0;transform:translateY(10px) scale(.9)}100%{opacity:1;transform:translateY(0) scale(1)}}
.student-pet-stage .hero-pet{cursor:pointer}.student-pet-stage .hero-pet:hover{box-shadow:0 28px 70px rgba(37,99,235,.19),inset 0 -16px 30px rgba(255,255,255,.62)}
@media(max-width:900px){.pet-talk-bubble{top:3%;right:2%;width:min(320px,58%);padding:12px 14px}.pet-talk-bubble p{font-size:14px!important}}
@media(max-width:620px){.pet-talk-bubble{top:2%;right:4%;width:82%;border-radius:18px 18px 18px 7px}.pet-talk-bubble p{font-size:13px!important;line-height:1.55}.pet-talk-bubble b{font-size:12px}}
@media(prefers-reduced-motion:reduce){.pet-talk-bubble.show{animation:none;opacity:1;transform:none}.pet-talk-excited{animation:none!important}}

/* ===== V3.1E PET-PERSONA：40宠物人格标签与伙伴选择提示 ===== */
.pet-personality-tag{display:inline-flex!important;align-items:center;gap:4px;background:linear-gradient(135deg,#fff7ed,#f5f3ff);border-color:#ddd6fe!important;color:#6d28d9!important}
.pet-personality-motto{margin:10px 0 2px;font-size:15px;font-weight:800;color:#64748b;letter-spacing:.02em}
.pet-personality-mini{display:block;margin-top:5px;color:#7c3aed;font-size:12px;font-weight:800;line-height:1.4}
.pet-choice.current .pet-personality-mini{color:#047857}
.pet-talk-bubble b::after{content:' · 我的伙伴';font-size:11px;font-weight:700;color:#94a3b8;margin-left:5px}
@media(max-width:720px){.pet-personality-motto{font-size:14px}.pet-personality-mini{font-size:11px}.pet-personality-tag{font-size:12px}}


/* ===== V3.1F PET-MEMORY + FAMILY-TALK：课堂记忆与家长互动 ===== */
.pet-memory-chip,.family-talk-chip{display:inline-flex;align-items:center;gap:7px;margin-top:11px;padding:9px 12px;border-radius:999px;font-size:13px;font-weight:850;color:#31577a;background:linear-gradient(135deg,#eff6ff,#ecfdf5);border:1px solid rgba(96,165,250,.20)}
.family-talk-chip{border-radius:15px;line-height:1.55;color:#7c4a03;background:linear-gradient(135deg,#fff7ed,#fffbeb);border-color:rgba(245,158,11,.22)}
.family-pet-stage .hero-pet{cursor:pointer}.family-pet-stage .hero-pet:hover{box-shadow:0 28px 70px rgba(245,158,11,.16),inset 0 -16px 30px rgba(255,255,255,.62)}
.family-talk-bubble{top:4%;right:-10%;width:min(330px,48%);border-color:rgba(245,158,11,.24);background:rgba(255,253,247,.97)}
.family-talk-bubble::after{background:rgba(255,253,247,.97);border-color:rgba(245,158,11,.24)}
.family-talk-bubble b::after{content:' · 家庭小信使'}
@media(max-width:900px){.family-talk-bubble{right:2%;width:min(330px,60%)}}
@media(max-width:620px){.pet-memory-chip,.family-talk-chip{font-size:12px}.family-talk-bubble{top:2%;right:4%;width:84%}}

/* ===== V3.2A CODE PET ENGINE：纯代码 SVG 宠物美术层 ===== */
.pet-art-host,.pet-art-slot{display:grid;place-items:center;position:relative;min-width:0;min-height:0}.pet-art-host>svg,.pet-art-slot>svg{width:100%;height:100%;display:block;overflow:visible}.pet-art-fallback{display:grid;place-items:center;width:100%;height:100%}.pet-code-ready>.pet-art-fallback{display:none!important}.banpet-code-pet{transform-origin:50% 72%;will-change:transform,filter}.banpet-code-pet .code-pet-character{transform-origin:50% 72%;animation:codePetBreathe var(--pet-float-speed,2.6s) ease-in-out infinite}.banpet-code-pet .code-particles{animation:codePetSpark 2.8s ease-in-out infinite alternate}.banpet-code-pet.stage-4,.banpet-code-pet.stage-5{filter:saturate(1.06)}@keyframes codePetBreathe{0%,100%{transform:translateY(1px) scale(1)}50%{transform:translateY(-4px) scale(1.015)}}@keyframes codePetSpark{0%{opacity:.55}100%{opacity:1}}
.hero-pet .pet-art-host{width:100%;height:100%;padding:3%}.hero-pet .banpet-code-pet{max-width:100%;max-height:100%}.pet-portrait.choice .pet-art-host{width:100%;height:100%}.teacher-pet-stage .v3-pet-visual{display:grid!important;place-items:center!important;width:min(92%,190px)!important;height:min(88%,168px)!important;font-size:0!important;z-index:4}.teacher-pet-stage .v3-pet-visual .pet-art-slot{width:100%;height:100%}.modal-pet-stage .v3-pet-visual{display:grid!important;place-items:center!important;font-size:0!important;width:min(92%,380px)!important;height:min(82%,310px)!important}.display-pet-stage-v31b .v3-pet-visual{font-size:0!important;width:90%!important;height:86%!important;display:grid!important;place-items:center!important}.display-pet-stage-v31b .pet-art-slot{width:100%;height:100%}.display-spotlight .spot-pet{font-size:0!important;width:160px;height:160px}.display-spotlight .spot-pet .pet-art-slot{width:100%;height:100%}
.pet-art-lab-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.pet-art-lab-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:12px;text-align:center;box-shadow:var(--shadow)}.pet-art-lab-stage{height:190px;display:grid;place-items:center;background:radial-gradient(circle at 50% 42%,rgba(219,234,254,.85),rgba(255,255,255,.3) 60%,transparent 80%);border-radius:18px}.pet-art-lab-stage .pet-art-host{width:100%;height:100%}.pet-art-lab-card b,.pet-art-lab-card small{display:block}.pet-art-lab-card small{color:var(--muted);margin-top:4px}.pet-art-lab-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pet-art-lab-toolbar select{border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:#fff}.pet-art-lab-note{padding:12px 14px;border-radius:15px;background:#ecfdf5;color:#047857;margin:12px 0;line-height:1.65}
@media(max-width:1100px){.pet-art-lab-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:820px){.pet-art-lab-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:620px){.pet-art-lab-grid{grid-template-columns:repeat(2,1fr)}.pet-art-lab-stage{height:150px}.display-spotlight .spot-pet{width:110px;height:110px}}@media(prefers-reduced-motion:reduce){.banpet-code-pet .code-pet-character,.banpet-code-pet .code-particles{animation:none!important}}

/* ===== V3.2B PREMIUM CODE PET + STUDENT PICKER ===== */
.banpet-code-pet{width:100%;height:100%;overflow:visible;filter:saturate(1.06)}
.banpet-code-pet .code-pet-character{transform-origin:160px 185px;animation:codePetBreathe 3.2s ease-in-out infinite}
@keyframes codePetBreathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2.2px) scale(1.008)}}
.pet-art-host.pet-code-ready{display:grid;place-items:center}
.pet-art-host.pet-code-ready .pet-art-fallback{display:none!important}
.hero-pet .banpet-code-pet{width:108%;height:108%}
.teacher-pet-stage .banpet-code-pet{width:106%;height:106%}
.pet-portrait.choice .banpet-code-pet{width:104%;height:104%}
.topbar-link-btn{appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:850;padding:0;cursor:pointer}
.topbar-link-btn:hover{color:#2563eb}
.pet-center-jump{cursor:pointer}
body.pet-picker-open{overflow:hidden}
.pet-picker-modal[hidden]{display:none!important}.pet-picker-modal{position:fixed;inset:0;z-index:420;display:grid;place-items:center;padding:18px}.pet-picker-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.46);backdrop-filter:blur(10px)}
.pet-picker-dialog{position:relative;width:min(1120px,96vw);max-height:92vh;overflow:auto;border-radius:30px;background:rgba(250,252,255,.985);box-shadow:0 34px 110px rgba(15,23,42,.34);border:1px solid rgba(255,255,255,.82);padding:18px 20px 24px}
.pet-picker-head{position:sticky;top:-18px;z-index:8;display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:16px 4px 14px;background:rgba(250,252,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(148,163,184,.18)}
.pet-picker-head h2{margin:0 0 5px;font-size:26px;color:#17324d}.pet-picker-head p{margin:0;color:#6b7f91;line-height:1.55}.pet-picker-close{border:1px solid #dbe6f1;background:#fff;border-radius:999px;padding:10px 17px;font-weight:900;color:#17324d;cursor:pointer}.pet-picker-close:hover{background:#f1f7ff}
.pet-picker-toolbar{padding:14px 0 8px}.pet-picker-filters{margin-bottom:12px}.pet-picker-search-row{display:grid;grid-template-columns:1fr auto auto;gap:10px}.pet-picker-search-row .search{width:100%;min-height:46px;border-radius:999px;padding:0 18px;background:#fff}.pet-picker-random,.pet-picker-clear{border:1px solid #dbe6f1;border-radius:999px;padding:0 18px;font-weight:900;cursor:pointer}.pet-picker-random{color:#fff;border:0;background:linear-gradient(135deg,#60a5fa,#34d399)}.pet-picker-clear{background:#fff;color:#28506f}
.pet-picker-section-head{display:flex;justify-content:space-between;align-items:end;gap:14px;padding:7px 2px 13px}.pet-picker-section-head b{display:block;font-size:18px;color:#17324d}.pet-picker-section-head small{display:block;margin-top:4px;color:#6b7f91}.pet-picker-section-head>span{color:#6b7f91;font-size:13px}
.pet-picker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.pet-picker-grid .pet-choice{padding:0;border-radius:22px;overflow:hidden;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #dbe8f5;transition:.18s ease;min-height:218px}.pet-picker-grid .pet-choice:hover{transform:translateY(-3px);box-shadow:0 16px 30px rgba(58,91,125,.13);border-color:#9cc5ff}.pet-picker-grid .pet-choice.current{border:2px solid #a78bfa;background:linear-gradient(180deg,#f8f5ff,#fff)}.pet-card-form{height:100%;margin:0}.pet-card-click{appearance:none;width:100%;height:100%;border:0;background:transparent;padding:13px 12px 12px;display:grid;justify-items:center;align-content:start;gap:5px;color:inherit;cursor:pointer;font:inherit;text-align:center}.pet-card-click .pet-portrait.choice{width:132px;height:132px;margin:0}.pet-card-click>b{font-size:16px;color:#17324d}.pet-card-click>small{color:#708398}.pet-card-select-hint{margin-top:auto;width:100%;padding:7px 9px;border-radius:12px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:900;opacity:.82}.pet-choice.current .current-pet-badge{margin-top:auto;width:100%;padding:7px 9px;border-radius:12px;background:#d1fae5;color:#047857;font-size:12px}.pet-choice.pet-recommended{outline:4px solid rgba(52,211,153,.28);box-shadow:0 0 0 7px rgba(96,165,250,.14),0 18px 34px rgba(37,99,235,.18);animation:petRecommendPulse .8s ease-in-out 3}@keyframes petRecommendPulse{50%{transform:translateY(-4px) scale(1.018)}}
@media(max-width:900px){.pet-picker-grid{grid-template-columns:repeat(3,1fr)}.pet-picker-search-row{grid-template-columns:1fr 1fr}.pet-picker-search-row .search{grid-column:1/-1}}
@media(max-width:620px){.pet-picker-modal{padding:0}.pet-picker-dialog{width:100vw;max-height:100vh;height:100vh;border-radius:0;padding:10px 12px 18px}.pet-picker-head{top:-10px}.pet-picker-head h2{font-size:22px}.pet-picker-head p{font-size:13px}.pet-picker-grid{grid-template-columns:repeat(2,1fr);gap:10px}.pet-card-click .pet-portrait.choice{width:112px;height:112px}.pet-picker-search-row{grid-template-columns:1fr 1fr}.pet-picker-random,.pet-picker-clear{min-height:42px;padding:0 10px}.pet-picker-section-head{align-items:flex-start;flex-direction:column}}


/* ===== V3.3A OFFICIAL PET ASSET SYSTEM ===== */
.pet-art-host>.banpet-official-pet,.pet-art-slot>.banpet-official-pet{width:100%;height:100%;display:grid;place-items:center;position:relative;isolation:isolate;overflow:visible}
.banpet-official-pet .official-pet-img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 14px 16px rgba(32,55,84,.16));transform-origin:50% 72%;animation:officialPetFloat var(--pet-float-speed,3.2s) ease-in-out infinite;position:relative;z-index:3}
.pet-official-ready>.pet-art-fallback{display:none!important}
.official-stage-aura{position:absolute;inset:10%;border-radius:50%;z-index:0;background:radial-gradient(circle,rgba(255,255,255,.75) 0%,rgba(96,165,250,.18) 46%,transparent 70%);filter:blur(2px);opacity:.48;pointer-events:none}
.banpet-official-pet.stage-2 .official-stage-aura{opacity:.58}.banpet-official-pet.stage-3 .official-stage-aura{opacity:.72;background:radial-gradient(circle,rgba(255,255,255,.78),rgba(52,211,153,.16) 43%,transparent 72%)}
.banpet-official-pet.stage-4 .official-stage-aura{opacity:.9;background:radial-gradient(circle,rgba(255,255,255,.8),rgba(124,58,237,.17) 38%,rgba(56,189,248,.13) 58%,transparent 76%)}
.banpet-official-pet.stage-5 .official-stage-aura{opacity:1;background:radial-gradient(circle,rgba(255,255,255,.9),rgba(251,191,36,.2) 38%,rgba(168,85,247,.16) 58%,transparent 78%)}
.official-stage-stars{position:absolute;inset:8%;z-index:4;color:#fbbf24;font-style:normal;font-size:clamp(10px,1.6vw,20px);letter-spacing:3.5em;text-align:center;opacity:.75;pointer-events:none;animation:officialStars 2.6s ease-in-out infinite alternate}
.official-stage-crown{position:absolute;top:4%;left:50%;transform:translateX(-50%);z-index:5;color:#f59e0b;font-style:normal;font-size:clamp(16px,2.2vw,30px);filter:drop-shadow(0 4px 8px rgba(245,158,11,.28));pointer-events:none}
.banpet-official-pet.stage-1 .official-pet-img{transform:scale(.93);filter:saturate(.94) drop-shadow(0 12px 14px rgba(32,55,84,.13))}.banpet-official-pet.stage-2 .official-pet-img{transform:scale(.97)}.banpet-official-pet.stage-3 .official-pet-img{transform:scale(1)}.banpet-official-pet.stage-4 .official-pet-img{transform:scale(1.035);filter:saturate(1.04) drop-shadow(0 15px 18px rgba(32,55,84,.18))}.banpet-official-pet.stage-5 .official-pet-img{transform:scale(1.065);filter:saturate(1.07) contrast(1.02) drop-shadow(0 18px 22px rgba(70,50,110,.2))}
@keyframes officialPetFloat{0%,100%{translate:0 1px}50%{translate:0 -5px}}@keyframes officialStars{from{opacity:.48;transform:scale(.97)}to{opacity:.92;transform:scale(1.03)}}
@media(prefers-reduced-motion:reduce){.banpet-official-pet .official-pet-img,.official-stage-stars{animation:none!important}}
.hero-pet .banpet-official-pet{padding:0}.hero-pet .official-pet-img{max-width:100%;max-height:100%}.pet-picker-dialog .banpet-official-pet .official-pet-img{padding:4%}.teacher-pet-stage .banpet-official-pet .official-pet-img{padding:3%}.modal-pet-stage .banpet-official-pet .official-pet-img{padding:0}.display-pet-stage-v31b .banpet-official-pet .official-pet-img{padding:1%}
.pet-art-lab-card:has(.pet-official-ready)::after{content:"官方资产";display:inline-block;margin-top:7px;padding:3px 8px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:900}
/* Large-screen wall: give the pet a clean middle zone, keep text out of the art. */
.display-pet-card-v31b{grid-template-rows:18px minmax(0,1fr) 24px;padding:4px 5px;gap:1px}
.display-card-name-v31b{font-size:clamp(10px,.9vw,14px);line-height:18px}.display-pet-stage-v31b{width:min(78px,7.4vh);height:min(78px,7.4vh);min-width:42px;min-height:42px}.display-card-meta-v31b{height:24px;display:grid;align-content:center}.display-card-meta-v31b b{font-size:clamp(8px,.72vw,11px)}.display-card-meta-v31b span{font-size:clamp(7px,.62vw,9px)}

/* V3.3A-R1 OFFICIAL BINDING HOTFIX */
.modal-pet-stage .v3-pet-visual .pet-art-slot{width:100%!important;height:100%!important;display:grid!important;place-items:center!important}
.modal-pet-stage .banpet-official-pet,.modal-pet-stage .banpet-code-pet{width:100%!important;height:100%!important}
.modal-pet-stage .official-pet-img{width:100%!important;height:100%!important;object-fit:contain!important}
.pet-art-host.pet-official-ready>.banpet-code-pet,.pet-art-slot.pet-official-ready>.banpet-code-pet{display:none!important}


/* ===== V3.3B OFFICIAL40 · pet-first 42-person planet wall ===== */
.display-shell-v31b{padding:8px 10px;gap:6px;grid-template-rows:auto minmax(0,1fr) auto}
.display-topbar-v31b{min-height:54px;padding:6px 10px;border-radius:18px}
.display-brand-v31b>span{font-size:34px}.display-brand-v31b h1{font-size:clamp(25px,2.15vw,38px)}
.display-brand-v31b .eyebrow{font-size:10px;letter-spacing:.18em}.display-metrics-v31b{gap:5px}.display-metrics-v31b span{padding:5px 8px;font-size:10px}.display-metrics-v31b b{font-size:15px}
.display-wall-v31b{padding:5px 6px;gap:4px;border-radius:20px}.display-wall-head-v31b{min-height:22px;padding:0 4px}.display-wall-head-v31b b{font-size:13px}.display-wall-head-v31b span{font-size:9px}.display-pet-wall-v31b{gap:5px}
.display-pet-card-v33b{padding:3px 4px!important;gap:0!important;grid-template-rows:20px minmax(0,1fr) 24px!important;border-radius:15px!important;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.90))!important}
.display-pet-card-v33b::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 48%,var(--pet-aura-2),transparent 58%);opacity:.75}
.display-card-name-v33b{position:relative;z-index:2;line-height:20px!important;font-size:clamp(11px,.92vw,14px)!important;font-weight:950!important}.display-card-art-v33b{position:relative;z-index:2;min-height:0;display:grid;place-items:center;overflow:hidden}
.display-card-art-v33b .pet-art-slot{display:grid;place-items:center;width:min(112px,10.6vh);height:min(112px,10.6vh);max-width:96%;max-height:96%}.display-card-art-v33b .banpet-official-pet,.display-card-art-v33b .banpet-code-pet{width:100%;height:100%;display:grid;place-items:center}.display-card-art-v33b .official-pet-img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 8px rgba(23,50,77,.14))}
.display-card-meta-v33b{position:relative;z-index:2;height:24px!important;display:flex!important;align-items:center;justify-content:center;gap:5px;line-height:1!important;white-space:nowrap}.display-card-meta-v33b b,.display-card-meta-v33b span{display:inline!important;margin:0!important;overflow:hidden;text-overflow:ellipsis}.display-card-meta-v33b b{max-width:68%;font-size:clamp(9px,.78vw,11px)!important;color:#214766}.display-card-meta-v33b span{font-size:clamp(8px,.67vw,9px)!important;color:#6a7e91}
.display-ticker-v31b{min-height:30px;padding:4px 9px;border-radius:14px}.ticker-label{font-size:10px}.ticker-event{padding:3px 7px;font-size:9px}
@media(max-height:780px){.display-shell-v31b{padding:5px 7px;gap:4px}.display-topbar-v31b{min-height:46px;padding:4px 8px}.display-brand-v31b>span{font-size:28px}.display-brand-v31b h1{font-size:clamp(22px,2vw,32px)}.display-brand-v31b .eyebrow{display:none}.display-metrics-v31b span{padding:4px 6px}.display-wall-head-v31b{min-height:18px}.display-wall-head-v31b>div span{display:none}.display-wall-count{font-size:8px!important}.display-pet-card-v33b{grid-template-rows:18px minmax(0,1fr) 20px!important}.display-card-name-v33b{line-height:18px!important}.display-card-art-v33b .pet-art-slot{width:min(88px,10.2vh);height:min(88px,10.2vh)}.display-card-meta-v33b{height:20px!important}.display-card-meta-v33b b{font-size:9px!important}.display-card-meta-v33b span{font-size:8px!important}.display-ticker-v31b{min-height:26px;padding:3px 7px}}
@media(max-width:1180px){.display-metrics-v31b span:nth-child(3){display:none}.display-wall-head-v31b>div span{display:none}}


/* ===== V3.4A CLASSROOM RELIABILITY ===== */
.runtime-strip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-4px 0 18px;padding:10px 14px;border:1px solid #d7e6f5;border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 8px 24px rgba(15,55,90,.05)}
.runtime-sync{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;font-weight:800;font-size:14px;white-space:nowrap}
.runtime-sync.ok{background:#ecfdf5;color:#047857}.runtime-sync.pending{background:#fff7ed;color:#c2410c}.runtime-sync.offline{background:#fff1f2;color:#be123c}.runtime-sync.syncing{background:#eff6ff;color:#1d4ed8}
.runtime-note{color:#60758c;font-size:13px;flex:1;min-width:260px}.runtime-undo{border:1px solid #f4b4b4;background:#fff7f7;color:#b42318;border-radius:999px;padding:8px 14px;font-weight:800;cursor:pointer}.runtime-undo[hidden]{display:none!important}
.student-card.record-pending{outline:2px solid rgba(245,158,11,.38);outline-offset:2px}.student-card.record-synced{animation:v34syncFlash .75s ease}@keyframes v34syncFlash{0%{box-shadow:0 0 0 0 rgba(34,197,94,.35)}100%{box-shadow:0 0 0 18px rgba(34,197,94,0)}}
button.record-busy{pointer-events:none;opacity:.58}
@media(max-width:760px){.runtime-strip{align-items:flex-start}.runtime-note{min-width:100%;order:3}.runtime-undo{margin-left:auto}}

/* ===== V3.4B DATA SAFETY ===== */
.data-safety-shell{max-width:1320px}.safety-overall{min-width:min(460px,100%);padding:14px 16px;border-radius:18px;display:grid;gap:5px;border:1px solid var(--line);background:#fff}.safety-overall.ok{background:#ecfdf5;border-color:#bbf7d0}.safety-overall.warn{background:#fff7ed;border-color:#fed7aa}.safety-overall b{font-size:16px}.safety-overall span{font-size:12px;color:#60758c;line-height:1.55}.safety-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 16px}.safety-metrics article{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;display:grid;gap:5px;min-height:116px}.safety-metrics span,.safety-metrics small{color:#6a7e91}.safety-metrics b{font-size:22px;color:#17324d}.safety-actions{display:flex;align-items:center;justify-content:space-between;gap:18px}.safety-actions h2{margin:0 0 5px}.safety-actions p{margin:0;color:#6a7e91}.safety-buttons{display:flex;gap:9px;flex-wrap:wrap}.safety-buttons form{margin:0}.safety-buttons button,.safety-download{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:13px;padding:0 14px;border:1px solid var(--line);background:#fff;color:#234b6c;font-weight:900;text-decoration:none}.safety-buttons .primary{border:0;color:#fff;background:linear-gradient(135deg,#3b82f6,#10b981)}.safety-check-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.safety-check{border-radius:18px;padding:14px;border:1px solid var(--line);display:grid;gap:6px;background:#fff}.safety-check.ok{border-color:#bbf7d0;background:#f0fdf4}.safety-check.bad{border-color:#fecaca;background:#fff7f7}.safety-check span{font-size:12px;color:#60758c;line-height:1.5}.safety-counts{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}.safety-counts div{border:1px solid var(--line);border-radius:15px;padding:12px;background:#f8fbff;text-align:center}.safety-counts span{display:block;color:#6a7e91;font-size:11px}.safety-counts b{display:block;font-size:20px;color:#17324d;margin-top:4px}.safety-boundary{border-color:#fed7aa;background:#fffaf2}.safety-boundary code{display:block;padding:10px 12px;border-radius:12px;background:#172033;color:#e5eef9;overflow:auto;white-space:nowrap;font-size:12px}.safety-boundary p{color:#5b6f83;line-height:1.65}
@media(max-width:1000px){.safety-metrics,.safety-check-grid{grid-template-columns:repeat(2,1fr)}.safety-counts{grid-template-columns:repeat(4,1fr)}.safety-actions{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.safety-metrics,.safety-check-grid{grid-template-columns:1fr}.safety-counts{grid-template-columns:repeat(2,1fr)}.safety-buttons{display:grid;width:100%}.safety-buttons button,.safety-download{width:100%}}


/* ===== V3.5-GROWTH-AUTO · 冻结规则 V1.0 ===== */
.growth-season-strip{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 12px;padding:10px 14px;border-radius:16px;border:1px solid #bfe4d5;background:#f0fdf7;color:#285b49}.growth-season-strip b{color:#136b4c}.growth-season-strip span{font-size:13px;line-height:1.55}
.pet-studio-trigger,.pet-hover-inspector,.pet-modal-visual{display:none!important}.pet-auto-growth-note{margin-top:8px;padding:7px 10px;border-radius:12px;background:#f0fdf4;border:1px solid #bbf7d0;color:#176547;font-size:12px;font-weight:800;line-height:1.45}.pet-growth-rule-note{display:grid;gap:4px;margin:8px 0 14px;padding:11px 13px;border-radius:14px;background:#f8fbff;border:1px solid #d8e7f5}.pet-growth-rule-note span{font-size:12px;color:#60758c;line-height:1.55}.growth-score-badge{display:inline-grid;place-items:center;min-width:30px;height:24px;padding:0 7px;margin-left:5px;border-radius:999px;font-size:11px;font-weight:950}.score-1{background:#e8f7ee;color:#15734e}.score-2{background:#eaf2ff;color:#245fc5}.score-3{background:#fff1d6;color:#9a6000}.growth-behavior-grid button{position:relative}.pet-action-hint{max-width:430px}
/* 真实成长前两阶段不是完整宠物，而是蛋/破壳。 */
.banpet-growth-egg{--egg-a:#dbeafe;--egg-b:#fff;--egg-accent:#60a5fa;position:relative;display:grid;place-items:center;width:100%;height:100%;min-height:74px;isolation:isolate;animation:growthEggBreathe 3.2s ease-in-out infinite}.growth-egg-body{position:absolute;width:54%;height:66%;max-width:210px;max-height:245px;min-width:46px;min-height:58px;border-radius:52% 52% 46% 46% / 60% 60% 40% 40%;background:radial-gradient(circle at 33% 22%,rgba(255,255,255,.95),transparent 22%),linear-gradient(145deg,var(--egg-b),var(--egg-a));border:3px solid color-mix(in srgb,var(--egg-accent) 52%,white);box-shadow:inset -14px -18px 30px rgba(40,70,100,.08),0 18px 30px rgba(35,70,110,.16);z-index:2}.growth-egg-speckles{position:absolute;z-index:4;color:var(--egg-accent);font-style:normal;font-weight:950;font-size:clamp(12px,4vw,25px);letter-spacing:.2em;opacity:.72;transform:translateY(7%)}.growth-egg-shadow{position:absolute;z-index:0;width:52%;height:10%;bottom:8%;border-radius:50%;background:rgba(40,55,75,.14);filter:blur(7px)}.banpet-growth-egg.stage-2{animation:growthEggWiggle 2.4s ease-in-out infinite}.banpet-growth-egg.stage-2 .growth-egg-body{height:48%;transform:translateY(19%);clip-path:polygon(0 24%,12% 11%,23% 24%,34% 7%,47% 25%,58% 10%,71% 25%,84% 8%,100% 25%,100% 100%,0 100%)}.growth-egg-shell-top{position:absolute;z-index:5;width:38%;height:22%;top:18%;border-radius:50% 50% 28% 28%;background:linear-gradient(145deg,var(--egg-b),var(--egg-a));border:2px solid color-mix(in srgb,var(--egg-accent) 45%,white);transform:rotate(-13deg) translate(-28%,-12%);box-shadow:0 8px 16px rgba(30,60,90,.1)}.growth-egg-crack{position:absolute;z-index:6;top:39%;font-style:normal;color:var(--egg-accent);font-size:30px;font-weight:950;transform:rotate(-8deg)}.growth-pet-peek{position:absolute;z-index:3;top:10%;width:58%;height:56%;display:grid;place-items:center;overflow:hidden}.growth-pet-peek img{width:100%;height:100%;object-fit:contain;transform:translateY(28%) scale(.72);filter:saturate(.9) brightness(1.03) drop-shadow(0 8px 10px rgba(25,55,85,.14))}.growth-emoji-peek{font-size:clamp(38px,9vw,92px);transform:translateY(15%)}
/* 幼宠→成长→成熟→星耀：同一官方角色按阶段自动呈现，不接受教师手调。 */
.banpet-official-pet.stage-3 .official-pet-img{transform:scale(.58)!important;filter:saturate(.88) brightness(1.05) drop-shadow(0 10px 12px rgba(32,55,84,.12))!important}.banpet-official-pet.stage-4 .official-pet-img{transform:scale(.79)!important;filter:saturate(.96) brightness(1.03) drop-shadow(0 14px 16px rgba(32,55,84,.15))!important}.banpet-official-pet.stage-5 .official-pet-img{transform:scale(1)!important;filter:saturate(1.03) contrast(1.01) drop-shadow(0 18px 22px rgba(40,55,85,.18))!important}.banpet-official-pet.stage-6 .official-pet-img{transform:scale(1.035)!important;filter:saturate(1.08) contrast(1.03) brightness(1.04) drop-shadow(0 0 22px rgba(251,191,36,.28)) drop-shadow(0 20px 24px rgba(70,50,110,.2))!important}.banpet-official-pet.stage-6 .official-stage-aura{opacity:.88;transform:scale(1.1)}.official-stage-stars.subtle{opacity:.42;font-size:.8em}.banpet-official-pet.stage-6 .official-stage-stars{opacity:1;animation:officialStars .9s ease-in-out infinite alternate}.banpet-official-pet.stage-6 .official-stage-crown{display:block}
.pet-stage-6{background:linear-gradient(145deg,#fdf4ff,#fef3c7);box-shadow:0 30px 82px rgba(168,85,247,.24),0 0 60px rgba(251,191,36,.22)}
@keyframes growthEggBreathe{0%,100%{transform:translateY(2px) scale(.985)}50%{transform:translateY(-4px) scale(1.015)}}@keyframes growthEggWiggle{0%,100%{transform:rotate(0deg)}20%{transform:rotate(-2deg)}40%{transform:rotate(2.2deg)}60%{transform:rotate(-1.2deg)}80%{transform:rotate(1deg)}}
@media(prefers-reduced-motion:reduce){.banpet-growth-egg{animation:none!important}}
.growth-egg-mark{position:absolute;z-index:4;font-style:normal;font-size:clamp(18px,5vw,34px);opacity:.32;filter:grayscale(.25);transform:translateY(-15%)}.banpet-growth-egg.stage-2 .growth-egg-mark{opacity:.14;transform:translateY(28%)}

/* ===== V3.5-GROWTH-AUTO-R1：教师成长记录纠错 ===== */
.correction-entry-card{border-color:rgba(47,111,235,.22);background:linear-gradient(180deg,#f8fbff,#f2f7ff)}
.pet-correction-panel{display:grid;gap:14px}.correction-rule-note{margin:0}.correction-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 0;color:#52657a;font-size:13px}.correction-toolbar button{white-space:nowrap}.correction-loading,.correction-empty{padding:24px;border:1px dashed rgba(82,101,122,.25);border-radius:16px;text-align:center;color:#6a7c8f;background:#fbfdff}.correction-list{display:grid;gap:10px;max-height:440px;overflow:auto;padding-right:4px}.correction-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid rgba(82,101,122,.16);border-radius:16px;background:#fff}.correction-main{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;flex:1}.correction-main>div{display:grid;gap:4px;min-width:0}.correction-main b{display:flex;align-items:center;gap:6px;color:#1f3852}.correction-main span{color:#43566a;overflow-wrap:anywhere}.correction-main small{color:#7b8b9c;white-space:nowrap}.correction-actions{display:flex;gap:8px;flex:0 0 auto}.danger-soft{color:#9f2d2d!important;border-color:rgba(180,35,24,.22)!important;background:#fff8f7!important}.correction-editor{display:grid;gap:14px;padding:16px;border:1px solid rgba(47,111,235,.2);border-radius:18px;background:#fbfdff}.correction-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.correction-editor-head>div{display:grid;gap:4px}.correction-editor-head b{font-size:17px;color:#18334d}.correction-editor-head small{color:#728396}.correction-editor label{display:grid;gap:7px;font-weight:700;color:#31485f}.correction-editor select,.correction-editor input,.correction-editor textarea{width:100%;box-sizing:border-box;border:1px solid rgba(73,94,116,.22);border-radius:12px;background:#fff;padding:11px 12px;font:inherit;color:#21384f;outline:none}.correction-editor textarea{min-height:86px;resize:vertical}.correction-editor select:focus,.correction-editor input:focus,.correction-editor textarea:focus{border-color:rgba(47,111,235,.5);box-shadow:0 0 0 3px rgba(47,111,235,.08)}.correction-impact{padding:11px 12px;border-radius:12px;background:#eef6ff;color:#3b5670;font-size:13px;line-height:1.55}
@media(max-width:760px){.correction-row,.correction-main{align-items:flex-start;flex-direction:column}.correction-main small{white-space:normal}.correction-actions{width:100%}.correction-actions button{flex:1}.correction-editor-head{flex-direction:column}.correction-toolbar{align-items:flex-start;flex-direction:column}}

/* V3.5-GROWTH-AUTO-R2: classroom session visibility */
.pet-session-pill{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:900;vertical-align:1px;border:1px solid var(--line)}
.pet-session-pill.active{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.pet-session-pill.inactive{background:#fff7ed;color:#9a3412;border-color:#fed7aa}


/* ============================================================
   V3.5-GROWTH-AUTO-R3 · 六阶段视觉验收 + 真实跨阶段确认
   只增强验收与反馈，不改变积分/等级/阶段阈值。
   ============================================================ */
.pet-lab-focus{display:grid;grid-template-columns:minmax(240px,320px) 1fr;gap:18px;align-items:start}
.pet-lab-focus-controls{position:sticky;top:88px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:var(--shadow)}
.pet-lab-focus-controls label{display:grid;gap:6px;font-weight:900}.pet-lab-focus-controls select{width:100%;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}
.pet-lab-health{margin-top:12px;padding:11px 12px;border-radius:14px;background:#eff6ff;color:#1d4ed8;font-weight:850;line-height:1.55}
.pet-lab-health.pass{background:#ecfdf5;color:#047857}.pet-lab-health.warn{background:#fff7ed;color:#b45309}
.pet-lab-focus-note{color:var(--muted);font-size:12px;line-height:1.65;margin-top:9px}
.pet-six-stage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.pet-six-stage-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:11px;box-shadow:0 10px 26px rgba(39,74,111,.08);min-width:0}
.pet-six-stage-card .pet-art-lab-stage{height:220px}.pet-six-stage-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:8px}
.pet-six-stage-title b{font-size:15px}.pet-six-stage-title span{font-size:11px;font-weight:900;color:#435d78;background:#f1f5f9;padding:4px 7px;border-radius:999px;white-space:nowrap}
.pet-six-stage-card p{font-size:12px;color:var(--muted);line-height:1.55;margin:6px 0 0}
.pet-six-stage-card[data-stage="1"]{border-color:#cfe0f2}.pet-six-stage-card[data-stage="2"]{border-color:#bfdbfe}
.pet-six-stage-card[data-stage="3"]{border-color:#bbf7d0}.pet-six-stage-card[data-stage="4"]{border-color:#ddd6fe}
.pet-six-stage-card[data-stage="5"]{border-color:#fde68a}.pet-six-stage-card[data-stage="6"]{border-color:#e9d5ff;background:linear-gradient(180deg,#fff,#fdf8ff)}
.pet-lab-divider{height:1px;background:var(--line);margin:22px 0}
.pet-lab-section-title{display:flex;justify-content:space-between;gap:12px;align-items:end;margin:0 0 10px}.pet-lab-section-title h2{margin:0}.pet-lab-section-title p{margin:0;color:var(--muted)}
.growth-stage-transition{position:fixed;inset:0;z-index:900;display:grid;place-items:center;padding:20px}
.growth-stage-transition-backdrop{position:absolute;inset:0;background:rgba(7,19,35,.68);backdrop-filter:blur(7px)}
.growth-stage-transition-card{position:relative;z-index:1;width:min(620px,94vw);background:linear-gradient(180deg,#fff,#f5fbff);border:1px solid rgba(147,197,253,.55);border-radius:32px;padding:26px;text-align:center;box-shadow:0 35px 100px rgba(7,19,35,.34);animation:growthStageIn .42s cubic-bezier(.2,.8,.2,1)}
.growth-stage-transition-close{position:absolute;right:14px;top:14px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;font-weight:900;color:#5b7085}
.growth-stage-transition-kicker{font-size:12px;letter-spacing:.1em;font-weight:950;color:#0f766e}
.growth-stage-transition-art{height:270px;display:grid;place-items:center;margin:2px auto 0}.growth-stage-transition-art .pet-art-host{width:100%;height:100%}
.growth-stage-transition-card h2{font-size:clamp(24px,4vw,36px);margin:3px 0 10px;color:#17324d}.growth-stage-transition-card>p{font-size:15px;color:#435d78}
.growth-stage-transition-route{display:flex;justify-content:center;align-items:center;gap:10px;margin:8px 0 12px}.growth-stage-transition-route span,.growth-stage-transition-route strong{padding:7px 11px;border-radius:999px}
.growth-stage-transition-route span{background:#eef2f7;color:#64748b}.growth-stage-transition-route strong{background:#dcfce7;color:#047857}.growth-stage-transition-route b{color:#94a3b8}
.growth-stage-transition-why{text-align:left;background:#eff6ff;color:#294d70;border-radius:16px;padding:12px 14px;line-height:1.65;margin:12px 0}
.growth-stage-transition-card>small{display:block;color:#7b8fa2;line-height:1.55}
@keyframes growthStageIn{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:900px){.pet-lab-focus{grid-template-columns:1fr}.pet-lab-focus-controls{position:static}.pet-six-stage-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.pet-six-stage-grid{grid-template-columns:1fr}.pet-six-stage-card .pet-art-lab-stage{height:200px}.growth-stage-transition-art{height:220px}}
@media(prefers-reduced-motion:reduce){.growth-stage-transition-card{animation:none}}

/* V3.6 classroom action contrast */
.teacher-shell .session-box button.primary{background:#2563eb;color:#fff;border-color:#2563eb}
