/* ===== 基础变量 ===== */
    :root {
      --ot-blue: #3D8BFF;
      --ot-blue-dark: #1F6BE0;
      --ot-blue-light: #EAF3FF;
      --ot-sky-1: #BFE3FF;
      --ot-sky-2: #DFF2FF;
      --ot-green: #3ECF8E;
      --ot-orange: #FF9F43;
      --ot-purple: #9B7BFF;
      --ot-pink: #FF7BA8;
      --ot-yellow: #FFD166;
      --ot-bg: #F2F8FF;
      --ot-text: #17324D;
      --ot-text-sec: #45607A;
      --ot-text-third: #869DB2;
      --ot-border: #DCE8F5;
      --shadow-sm: 0 2px 10px rgba(31,107,224,0.06);
      --shadow-md: 0 6px 20px rgba(31,107,224,0.10);
      --shadow-lg: 0 12px 32px rgba(31,107,224,0.16);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html, body { height: 100%; }
    body {
      font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', sans-serif;
      color: var(--ot-text);
      background:
        radial-gradient(420px 180px at 12% 8%, rgba(255,255,255,0.75), transparent 70%),
        radial-gradient(520px 220px at 88% 14%, rgba(255,255,255,0.65), transparent 70%),
        radial-gradient(600px 260px at 50% 110%, rgba(141,205,255,0.35), transparent 70%),
        linear-gradient(180deg, #C9E7FF 0%, #E3F4FF 34%, #F0F9FF 100%);
      background-attachment: fixed;
      font-size: 14px;
      line-height: 1.5;
      display: flex;
      overflow: hidden;
    }
    a { color: inherit; text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
    input, textarea { font-family: inherit; }
    h1, h2, h3 { font-weight: 600; }
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-thumb { background: #d0d4db; border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #b0b6bf; }

    /* ===== 布局 ===== */
    .app { display: flex; height: 100vh; width: 100%; }
    .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

    /* ===== 顶部标题栏 ===== */
    .topbar { min-height: 62px; background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,0.9); box-shadow: 0 4px 18px rgba(31,107,224,0.08); display: flex; align-items: center; gap: 14px; padding: 8px 20px; flex-shrink: 0; }
    .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 0; }
    .brand > div { flex-shrink: 0; }
    .brand-logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,#3D8BFF,#6FBBFF); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; box-shadow: 0 4px 12px rgba(61,139,255,0.35); flex-shrink: 0; }
    .brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; background: #fff; }
    .brand-name { font-size: 17px; font-weight: 800; color: var(--ot-text); letter-spacing: 0.5px; white-space: nowrap; }
    .brand-sub { font-size: 11px; color: var(--ot-text-third); white-space: nowrap; }
    .topbar-right { display:flex; align-items:center; gap:12px; flex-shrink: 0; }
    @media (max-width: 1500px) { .brand-sub { display: none; } .top-clock { display: none; } }
    .top-clock { text-align: right; line-height: 1.25; }
    .top-clock .d { font-size: 11px; color: var(--ot-text-third); }
    .top-clock .t { font-size: 16px; font-weight: 800; color: var(--ot-blue-dark); font-variant-numeric: tabular-nums; }
    .user-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; background:linear-gradient(90deg,#3D8BFF,#6FBBFF); color:#fff; border-radius:999px; font-size:12px; font-weight:600; box-shadow: 0 3px 10px rgba(61,139,255,0.3); }
    .user-chip::before { content:"👤"; }
    .breadcrumb { display: flex; align-items: center; }
    .crumb { font-size: 13px; color: var(--ot-blue-dark); margin-right: 8px; display: inline-flex; align-items: center; cursor: pointer; background: var(--ot-blue-light); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
    .crumb svg { width: 14px; height: 14px; }
    .crumb-sep { font-size: 12px; color: var(--ot-text-third); margin-right: 8px; }
    .breadcrumb h1 { font-size: 15px; font-weight: 700; color: var(--ot-text-sec); }
    #exitBtn { background: #FFF3E8; padding: 6px 10px; border-radius: 999px; }
    #exitBtn svg { color: #E8833A; }
    /* ===== 工具栏 ===== */
    .toolbar { background: #fff; padding: 12px 20px; border-bottom: 1px solid var(--ot-border); display: flex; flex-direction: row; align-items: center; flex-shrink: 0; overflow-x: auto; }
    .tool-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; flex: 1 1 auto; justify-content: safe center; overflow-x: auto; overflow-y: hidden; padding: 2px 0; scrollbar-width: none; }
    .tool-row::-webkit-scrollbar { display: none; }
    .capsule { display: inline-flex; align-items: center; padding: 6px 12px; background: #fff; border: 1px solid var(--ot-border); border-radius: 999px; font-size: 12px; color: var(--ot-text-sec); cursor: pointer; transition: all .2s ease; white-space: nowrap; flex-shrink: 0; }
    .capsule:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74,124,255,0.12); border-color: var(--ot-blue); }
    .capsule.active { background: var(--ot-blue-light); border-color: var(--ot-blue); color: var(--ot-blue); font-weight: 500; }
    .capsule svg { width: 14px; height: 14px; margin-right: 6px; }
    .capsule .ico-only-right { margin-right: 0; margin-left: 4px; }
    .tool-sep { width: 1px; height: 20px; background: var(--ot-border); margin: 0 4px; flex-shrink: 0; }

    .capsule.green { background: rgba(62,207,142,0.1); color: var(--ot-green); border-color: transparent; font-weight: 500; }
    .capsule.blue { background: var(--ot-blue-light); color: var(--ot-blue); border-color: transparent; font-weight: 500; }
    .capsule.orange { background: rgba(255,159,67,0.1); color: var(--ot-orange); border-color: transparent; font-weight: 500; }
    .capsule.purple { background: rgba(155,123,255,0.1); color: var(--ot-purple); border-color: transparent; font-weight: 500; }
    .capsule.pink { background: rgba(255,123,168,0.1); color: var(--ot-pink); border-color: transparent; font-weight: 500; }
    .capsule.yellow { background: rgba(255,209,102,0.25); color: var(--ot-orange); border-color: transparent; font-weight: 500; }

    /* ===== 筛选栏 ===== */
    .filterbar { display: none; }
    .filter-left { display: flex; align-items: center; gap: 12px; }
    .toggle { display: inline-flex; background: var(--ot-blue-light); padding: 3px; border-radius: 999px; flex-shrink: 0; }
    .toggle button { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ot-text-sec); cursor: pointer; }
    .toggle button.active { background: #fff; color: var(--ot-blue); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
    .search-box { position: relative; }
    .search-box input { padding: 6px 14px 6px 32px; background: #F2F3F5; border: none; border-radius: 999px; font-size: 12px; width: 180px; outline: none; }
    .search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--ot-text-third); }
    .sort-btn { display: inline-flex; align-items: center; font-size: 12px; color: var(--ot-text-sec); cursor: pointer; user-select: none; }
    .sort-btn:hover { color: var(--ot-blue); }
    .sort-btn svg { width: 14px; height: 14px; margin-left: 4px; transition: transform .2s; }
    .sort-btn.desc svg { transform: rotate(180deg); }

    .filter-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .more-tools { position: relative; flex-shrink: 0; }
    .more-tools .chev { transition: transform .2s; }
    .more-tools.open .chev { transform: rotate(180deg); }
    .more-menu { position: fixed; background: #fff; border: 1px solid var(--ot-border); border-radius: 14px; box-shadow: 0 12px 32px rgba(30,50,90,0.16); padding: 6px; min-width: 156px; display: none; z-index: 600; }
    .more-tools.open .more-menu { display: block; }
    .more-menu.open { display: block; animation: morePop .16s ease; }
    @keyframes morePop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
    .more-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border: none; background: none; border-radius: 10px; font-size: 13px; color: var(--ot-text); cursor: pointer; text-align: left; white-space: nowrap; }
    .more-item:hover { background: rgba(61,102,204,0.08); }
    .more-sep { height: 1px; background: var(--ot-border); margin: 5px 8px; }
    .cta-pill { padding: 6px 16px; background: linear-gradient(90deg, var(--ot-orange), #FF7A38); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s; }
    .cta-pill:hover { box-shadow: 0 4px 12px rgba(255,159,67,0.4); transform: translateY(-1px); }

    /* ===== 内容区 ===== */
    .content { flex: 1; overflow: auto; padding: 20px; background: transparent; }
    .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 14px; justify-content: center; }
    .grid.group-view { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

    /* ===== 品格精灵卡片 ===== */
    .pet-card { background: #fff; border-radius: 16px; padding: 10px 8px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: all .25s ease; cursor: pointer; user-select: none; width: 100%; max-width: 220px; margin: 0 auto; min-height: 202.8px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; }
    .pet-card:hover { transform: scale(1.02); box-shadow: 0 8px 28px rgba(74,124,255,0.14); }
    .pet-card.selected { outline: 2px solid var(--ot-blue); outline-offset: 2px; }
    .pet-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; width: 100%; }
    .lv-row { position: absolute; top: 10px; right: 8px; z-index: 3; }
    .lv-tag { background: var(--ot-yellow); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; flex-shrink: 0; }
    .star-exp { display: inline-flex; align-items: center; color: var(--ot-orange); font-size: 13px; font-weight: 700; min-width: 0; }
    .coin { display: inline-flex; align-items: center; color: #C7900B; font-size: 13px; font-weight: 700; min-width: 0; }
    .star-exp svg, .coin svg { width: 16px; height: 16px; margin-right: 2px; flex-shrink: 0; }
    .side-plus { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 32px;
      border: none; border-radius: 16px 0 0 16px;
      background: linear-gradient(160deg, #9BB6FF 0%, #5B7CFA 50%, #8A6BFF 100%);
      color: #fff; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; z-index: 6;
      display: flex; align-items: center; justify-content: center; padding: 0;
      box-shadow: -1px 1px 5px rgba(91,124,250,0.28); opacity: .9; transition: all .15s; }
    .side-plus:hover { width: 20px; opacity: 1; filter: brightness(1.06); }
    .side-plus:active { transform: translateY(-50%) scale(0.92); }
    .pet-img-wrap { position: relative; height: 112px; border-radius: 12px; overflow: hidden; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .pet-img-wrap .badge-change { position: absolute; top: 6px; left: 6px; padding: 2px 6px; background: rgba(255,255,255,0.9); font-size: 10px; border-radius: 6px; color: var(--ot-text-sec); opacity: 0; transition: opacity .2s; cursor: pointer; }
    .pet-card:hover .badge-change { opacity: 1; }
    .pet-img { transition: transform .4s ease; width: 108px; height: 108px; object-fit: contain; }
    .pet-card:hover .pet-img { transform: scale(1.05); }
    .pet-name { display: flex; align-items: center; justify-content: center; margin-bottom: 4px; font-size: 13px; color: var(--ot-text-sec); font-weight: 500; }
    .pet-name .pencil { width: 12px; height: 12px; margin-left: 4px; color: var(--ot-text-third); cursor: pointer; opacity: 0; transition: opacity .2s; }
    .pet-card:hover .pencil { opacity: 1; }
    .student-name { text-align: center; font-weight: 700; font-size: 14px; margin-bottom: 3px; line-height: 1.2; }
    .badge-deco { text-align: center; margin-bottom: 3px; }
    .badge-deco .tag { display: inline-block; padding: 2px 8px; font-size: 10px; border-radius: 999px; }
    .xp-row { display: flex; align-items: center; font-size: 10px; color: var(--ot-text-third); margin-bottom: 1px; }
    .xp-row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ot-purple); margin-right: 4px; }
    .xp-row .num { margin-left: auto; color: var(--ot-text); font-weight: 500; }
    .xp-row .num .max { color: var(--ot-text-third); }
    .xp-track { height: 6px; width: 100%; background: #F2F3F5; border-radius: 999px; overflow: hidden; margin-bottom: 1px; }
    .xp-fill { height: 100%; background: linear-gradient(90deg, var(--ot-purple) 0%, var(--ot-blue) 100%); border-radius: 999px; transition: width .8s cubic-bezier(.4,.0,.2,1); }
    .quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; width: 100%; padding-top: 4px; }
    .quick-actions button { padding: 5px 0; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .15s; border: 1px solid transparent; line-height: 1.2; }
    .quick-actions button[data-more="minus"] { grid-column: 1; }
    .quick-actions button[data-more="plus"] { grid-column: 3; }
    .quick-actions button:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.1); }
    .quick-actions button[data-more="minus"] { background: rgba(255,122,69,0.12); color: #E8622C; border-color: rgba(255,122,69,0.3); }
    .quick-actions button[data-more="minus"]:hover { background: rgba(255,122,69,0.2); }
    .quick-actions button[data-more="plus"] { background: rgba(62,207,142,0.12); color: var(--ot-green); border-color: rgba(62,207,142,0.3); }
    .quick-actions button[data-more="plus"]:hover { background: rgba(62,207,142,0.2); }

    /* 打分弹窗：加分/减分页签 */
    .score-mode-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
    .score-mode-tabs .smt { flex: 1; padding: 8px 0; border-radius: 10px; border: 1px solid var(--ot-border); background: var(--ot-bg, #F6F8FB); color: var(--ot-text-sec); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
    .score-mode-tabs .smt:hover { transform: translateY(-1px); }
    .score-mode-tabs .smt.plus.on { background: rgba(62,207,142,0.14); color: #1F9D63; border-color: rgba(62,207,142,0.45); }
    .score-mode-tabs .smt.minus.on { background: rgba(255,122,69,0.14); color: #D4531F; border-color: rgba(255,122,69,0.45); }

    /* 品格精灵蛋未领养状态 */
    .egg-card { border: 1px dashed var(--ot-border); box-shadow: none; }
    .egg-card:hover { border-color: var(--ot-blue); box-shadow: 0 8px 28px rgba(74,124,255,0.14); }
    .egg-wrap { background: linear-gradient(180deg, #F7F8FA 0%, #FFFFFF 100%); height: 124px; margin-bottom: 0; }
    .egg-img { width: 100px; height: 100px; object-fit: contain; animation: eggWiggle 3s ease-in-out infinite; }
    @keyframes eggWiggle { 0%,100% { transform: rotate(0deg); } 10% { transform: rotate(-3deg); } 20% { transform: rotate(3deg); } 30% { transform: rotate(0deg); } }
    .egg-name { color: var(--ot-text-third); }
    .adopt-btn { width: 100%; padding: 6px 0; margin-top: auto; background: var(--ot-blue); color: #fff; font-size: 12px; font-weight: 600; border-radius: 8px; transition: all .2s; }
    .adopt-btn:hover { background: var(--ot-blue-dark); transform: translateY(-1px); }
    .egg-card .student-name { margin-top: 8px; margin-bottom: 4px; }

    .float-msg { position: absolute; pointer-events: none; font-weight: 700; font-size: 16px; animation: floatUp 1s ease-out forwards; z-index: 10; left: 50%; top: 40%; }
    .float-msg.plus { color: var(--ot-green); }
    .float-msg.minus { color: var(--ot-orange); }
    @keyframes floatUp {
      0% { opacity: 0; transform: translate(-50%, 0) scale(.8); }
      20% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
      100% { opacity: 0; transform: translate(-50%, -50px) scale(1); }
    }

    /* ===== 加分/扣分特效 ===== */
    /* 光斑爆开：围绕浮动数字向四周飞散 */
    .score-burst { position: absolute; left: 50%; top: 40%; pointer-events: none; z-index: 11; }
    .score-burst i { position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
      animation: burstOut .72s cubic-bezier(.2,.7,.3,1) forwards; }
    @keyframes burstOut {
      0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); }
      25% { opacity: 1; }
      100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.25); }
    }
    /* 加分时卡片轻微弹一下 */
    .pet-card.score-pop { animation: scorePop .46s ease-out; }
    @keyframes scorePop {
      0% { transform: scale(1); }
      35% { transform: scale(1.045); box-shadow: 0 10px 26px rgba(62,207,142,0.28); }
      100% { transform: scale(1); }
    }
    .pet-card.score-drop { animation: scoreDrop .5s ease-out; }
    @keyframes scoreDrop {
      0% { transform: translateY(0); }
      35% { transform: translateY(4px) scale(.985); filter: saturate(.7); }
      100% { transform: translateY(0); filter: none; }
    }
    .float-msg.plus { text-shadow: 0 2px 10px rgba(62,207,142,0.45); font-size: 19px; }
    .float-msg.minus { font-size: 17px; }

    /* ===== 精灵形象特效（点击加分：光效 + 粒子） ===== */
    /* 粒子层容器：覆盖整个精灵图区域，不拦截点击 */
    .pet-fx { position: absolute; inset: 0; pointer-events: none; z-index: 12; overflow: hidden; border-radius: 12px; }

    /* ① 精灵本体：发光脉冲 + 弹性放大（加分） */
    .pet-img.fx-glow { animation: petFxGlow .95s cubic-bezier(.2,.8,.3,1); }
    @keyframes petFxGlow {
      0%   { transform: scale(1)    translateY(0);    filter: drop-shadow(0 0 0 rgba(255,214,102,0)); }
      18%  { transform: scale(1.22) translateY(-7px); filter: drop-shadow(0 0 16px rgba(255,214,102,1)) drop-shadow(0 0 30px rgba(255,169,64,.85)) brightness(1.22); }
      45%  { transform: scale(1.1)  translateY(-3px); filter: drop-shadow(0 0 12px rgba(255,224,130,.85)) brightness(1.1); }
      72%  { transform: scale(1.06) translateY(-1px); filter: drop-shadow(0 0 8px rgba(255,224,130,.5)); }
      100% { transform: scale(1)    translateY(0);    filter: drop-shadow(0 0 0 rgba(255,214,102,0)); }
    }
    /* ② 精灵本体：扣分时轻微下沉 + 去色抖动 */
    .pet-img.fx-dim { animation: petFxDim .8s ease-out; }
    @keyframes petFxDim {
      0%   { transform: translateY(0) scale(1); filter: none; }
      25%  { transform: translateY(3px) scale(.96) rotate(-2.5deg); filter: saturate(.55) brightness(.94); }
      55%  { transform: translateY(1px) scale(.98) rotate(2deg); filter: saturate(.7) brightness(.97); }
      100% { transform: translateY(0) scale(1) rotate(0); filter: none; }
    }

    /* ③ 环绕光环：从精灵脚下扩散的两圈光波 */
    .pet-fx .fx-ring { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
      border-radius: 50%; border: 2.5px solid rgba(255,214,102,.95); box-shadow: 0 0 16px rgba(255,214,102,.75), inset 0 0 14px rgba(255,214,102,.5);
      animation: petFxRing .85s cubic-bezier(.15,.75,.35,1) forwards; }
    .pet-fx .fx-ring:nth-of-type(2) { animation-delay: .16s; border-color: rgba(123,227,176,.9); box-shadow: 0 0 16px rgba(123,227,176,.7); }
    @keyframes petFxRing {
      0%   { opacity: 0; transform: scale(.35); }
      22%  { opacity: 1; }
      100% { opacity: 0; transform: scale(1.9); }
    }
    /* ④ 脚下光台：椭圆光斑脉冲 */
    .pet-fx .fx-pad { position: absolute; left: 50%; bottom: 12%; width: 90px; height: 26px; margin-left: -45px;
      border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,224,130,.9) 0%, rgba(255,196,80,.45) 45%, rgba(255,196,80,0) 72%);
      filter: blur(3px); animation: petFxPad .9s ease-out forwards; }
    @keyframes petFxPad {
      0%   { opacity: 0; transform: scale(.5, .4); }
      30%  { opacity: 1; transform: scale(1.15, 1.1); }
      100% { opacity: 0; transform: scale(1.5, .7); }
    }

    /* ⑤ 粒子：从精灵身上迸发（星形/圆点/花瓣，由 JS 决定方向与色） */
    .pet-fx i { position: absolute; left: 50%; top: 46%; display: block;
      animation: petFxFly var(--dur, .95s) cubic-bezier(.16,.72,.3,1) forwards; }
    .pet-fx i.dot { width: var(--sz, 7px); height: var(--sz, 7px); border-radius: 50%; }
    .pet-fx i.star { width: var(--sz, 12px); height: var(--sz, 12px); background: currentColor;
      clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
    .pet-fx i.petal { width: var(--sz, 9px); height: var(--sz, 9px); border-radius: 50% 0 50% 0; background: currentColor; }
    @keyframes petFxFly {
      0%   { opacity: 0; transform: translate(-50%,-50%) scale(.2) rotate(0deg); }
      18%  { opacity: 1; }
      100% { opacity: 0;
             transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--sc, .62)) rotate(var(--rot, 180deg)); }
    }
    /* ⑥ 上升星屑：从精灵体内缓缓飘起（更轻更慢） */
    .pet-fx i.rise { animation: petFxRise var(--dur, 1.25s) ease-out forwards; }
    @keyframes petFxRise {
      0%   { opacity: 0; transform: translate(-50%,-50%) scale(.3); }
      20%  { opacity: 1; }
      100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% - 74px)) scale(.85); }
    }
    /* ⑦ 中心闪光：加分瞬间的一记爆闪 */
    .pet-fx .fx-flash { position: absolute; left: 50%; top: 45%; width: 130px; height: 130px; margin: -65px 0 0 -65px;
      border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,224,130,.7) 32%, rgba(255,196,80,0) 68%);
      animation: petFxFlash .5s ease-out forwards; }
    @keyframes petFxFlash {
      0%   { opacity: 0; transform: scale(.25); }
      16%  { opacity: 1; transform: scale(.85); }
      100% { opacity: 0; transform: scale(1.35); }
    }
    /* ⑧ 弹幕文字：随机飘起的短评（+加分时） */
    .pet-fx .fx-word { position: absolute; left: 50%; top: 40%; white-space: nowrap; font-size: 12px; font-weight: 800;
      color: #E08A00; text-shadow: 0 1px 6px rgba(255,255,255,.9), 0 0 12px rgba(255,214,102,.8);
      animation: petFxWord var(--dur, 1.1s) cubic-bezier(.2,.8,.3,1) forwards; }
    @keyframes petFxWord {
      0%   { opacity: 0; transform: translate(-50%,-50%) scale(.5); }
      22%  { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 14px)) scale(1.12); }
      100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 52px)) scale(1); }
    }
    /* 减少动效偏好：降级为纯透明度过渡 */
    @media (prefers-reduced-motion: reduce) {
      .pet-img.fx-glow, .pet-img.fx-dim, .pet-fx i, .pet-fx .fx-ring, .pet-fx .fx-pad,
      .pet-fx .fx-flash, .pet-fx .fx-word { animation-duration: .28s !important; }
    }

    /* ===== 升级庆祝（全屏） ===== */
    .lvup-mask { position: fixed; inset: 0; z-index: 3200; display: flex; align-items: center; justify-content: center;
      background: radial-gradient(circle at 50% 46%, rgba(255,236,179,0.34) 0%, rgba(20,24,40,0.62) 62%, rgba(12,16,28,0.78) 100%);
      animation: lvupIn .3s ease-out; overflow: hidden; }
    @keyframes lvupIn { from { opacity: 0; } to { opacity: 1; } }
    .lvup-mask.closing { animation: lvupOut .3s ease-in forwards; }
    @keyframes lvupOut { to { opacity: 0; } }
    /* 扩散光环 */
    .lvup-ring { position: absolute; left: 50%; top: 46%; width: 220px; height: 220px; margin: -110px 0 0 -110px;
      border-radius: 50%; border: 3px solid rgba(255,213,79,0.85); animation: ringOut 1.5s cubic-bezier(.2,.6,.3,1) infinite; }
    .lvup-ring:nth-of-type(2) { animation-delay: .5s; }
    .lvup-ring:nth-of-type(3) { animation-delay: 1s; }
    @keyframes ringOut {
      0% { opacity: .9; transform: scale(.35); }
      100% { opacity: 0; transform: scale(2.6); }
    }
    /* 光柱 */
    .lvup-beam { position: absolute; left: 50%; bottom: 46%; width: 190px; margin-left: -95px; height: 62vh;
      background: linear-gradient(to top, rgba(255,224,130,0.5), rgba(255,224,130,0)); filter: blur(14px);
      animation: beamPulse 1.6s ease-in-out infinite; }
    @keyframes beamPulse { 0%,100% { opacity: .45; transform: scaleX(.85); } 50% { opacity: .8; transform: scaleX(1.08); } }
    /* 星屑上升 */
    .lvup-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #FFE082;
      box-shadow: 0 0 10px rgba(255,224,130,0.9); animation: sparkUp linear forwards; }
    @keyframes sparkUp {
      0% { opacity: 0; transform: translateY(0) scale(.4); }
      18% { opacity: 1; }
      100% { opacity: 0; transform: translateY(-58vh) scale(1.1); }
    }
    /* 主体卡片 */
    .lvup-card { position: relative; z-index: 2; text-align: center; padding: 30px 46px 26px; border-radius: 26px;
      background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,250,240,0.95));
      box-shadow: 0 26px 70px rgba(0,0,0,0.36), 0 0 0 4px rgba(255,213,79,0.35) inset;
      animation: lvupCardPop .6s cubic-bezier(.18,1.5,.4,1); min-width: 320px; }
    @keyframes lvupCardPop {
      0% { transform: scale(.5) rotate(-6deg); opacity: 0; }
      60% { transform: scale(1.06) rotate(2deg); opacity: 1; }
      100% { transform: scale(1) rotate(0); }
    }
    .lvup-title { font-size: 15px; font-weight: 700; color: #B8860B; letter-spacing: 2px; }
    .lvup-name { font-size: 22px; font-weight: 800; color: #1f2937; margin-top: 2px; }
    .lvup-pet { margin: 8px auto 2px; position: relative; display: inline-block;
      filter: drop-shadow(0 10px 22px rgba(255,180,0,0.5)); animation: petLvBounce 1.1s ease-in-out infinite; }
    @keyframes petLvBounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-9px) scale(1.03); } }
    /* 等级徽章翻牌 */
    .lvup-lv { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
    .lvup-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; height: 40px;
      padding: 0 14px; border-radius: 12px; background: linear-gradient(180deg,#FFD166,#FF9F43); color: #fff;
      font-size: 20px; font-weight: 800; box-shadow: 0 6px 16px rgba(255,159,67,0.5);
      animation: badgeFlip .8s cubic-bezier(.2,1.4,.4,1) .15s both; }
    @keyframes badgeFlip {
      0% { transform: rotateY(90deg) scale(.6); opacity: 0; }
      100% { transform: rotateY(0) scale(1); opacity: 1; }
    }
    .lvup-arrow { font-size: 20px; color: #FF9F43; font-weight: 800; }
    .lvup-badge.old { background: linear-gradient(180deg,#E5E7EB,#CBD5E1); box-shadow: none; font-size: 16px; min-width: 56px; height: 34px; animation: none; opacity: .95; }
    .lvup-lvname { font-size: 26px; font-weight: 800; margin-top: 12px;
      background: linear-gradient(90deg,#FF9F43,#FFD166,#FF7BA8,#9B7BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .lvup-sub { font-size: 13px; color: #6b7280; margin-top: 6px; }
    .lvup-btn { margin-top: 18px; }
    /* 彩带 */
    .lvup-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
    .lvup-confetti i { position: absolute; top: -16px; width: 9px; height: 15px; border-radius: 2px; opacity: .95;
      animation: cineFall linear infinite; }

    /* ===== 浮窗按钮 ===== */
    .fab { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; background: var(--ot-text); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.15); transition: transform .2s; z-index: 50; cursor: pointer; }
    .fab:hover { transform: scale(1.1); }
    .fab svg { width: 22px; height: 22px; }

    /* ===== 弹窗 ===== */
    .modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; animation: fadeIn .15s; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .modal { background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideUp .2s ease; overflow: hidden; }
    .modal.wide { max-width: 720px; }
    .modal.rule-mgr-modal { max-width: 1200px; width: 96vw; }
    .rm-class-filter { display: flex; align-items: center; gap: 6px; padding: 0 4px 12px; font-size: 13px; color: var(--ot-text-sec); }
    .rm-class-filter select { padding: 6px 10px; border: 1px solid var(--ot-border); border-radius: 8px; font-size: 13px; background: #fff; color: var(--ot-text); }
    .modal-head { padding: 18px 20px; border-bottom: 1px solid var(--ot-border); display: flex; align-items: center; justify-content: space-between; }
    .modal-head h3 { font-size: 16px; font-weight: 600; }
    .modal-head .close { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ot-text-sec); }
    .modal-head .close:hover { background: var(--ot-bg); color: var(--ot-text); }
    .modal-body { padding: 20px; overflow-y: auto; flex: 1; }
    .modal-foot { padding: 14px 20px; border-top: 1px solid var(--ot-border); display: flex; justify-content: flex-end; gap: 8px; }
    .btn { padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; }
    .btn.primary { background: var(--ot-blue); color: #fff; }
    .btn.primary:hover { background: var(--ot-blue-dark); }
    .btn.ghost { background: var(--ot-bg); color: var(--ot-text-sec); }
    .btn.ghost:hover { background: #ebeef3; }

    .form-row { margin-bottom: 16px; }
    .form-row label { display: block; font-size: 12px; color: var(--ot-text-sec); margin-bottom: 6px; font-weight: 500; }
    .form-row input, .form-row select, .form-row textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--ot-border); border-radius: 8px; font-size: 13px; outline: none; transition: border .15s; }
    .form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--ot-blue); box-shadow: 0 0 0 3px rgba(74,124,255,0.12); }


    /* ===== 领养品格精灵弹窗 ===== */
    .adopt-modal { max-width: 1320px; width: 96vw; height: 80vh; display: flex; flex-direction: column; }
    .adopt-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
    .adopt-head-left { display: flex; align-items: center; gap: 12px; }
    .adopt-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #FFE8A3, #FF9F43); display: flex; align-items: center; justify-content: center; overflow: hidden; }
    .adopt-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .adopt-title { font-size: 16px; font-weight: 600; }
    .adopt-title strong { color: var(--ot-blue); }
    .adopt-sub { font-size: 12px; color: var(--ot-text-third); margin-top: 2px; }
    .adopt-head-right { display: flex; align-items: center; gap: 12px; }
    .adopt-archive-btn { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid #FF9F43; color: #FF9F43; border-radius: 999px; font-size: 12px; font-weight: 500; background: #FFF7E8; cursor: pointer; transition: all .15s; }
    .adopt-archive-btn:hover { background: #FF9F43; color: #fff; }
    .adopt-body { padding: 0 24px 12px; display: flex; flex-direction: column; gap: 10px; }
    .adopt-tabs { display: none; }
    .adopt-tab { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; background: #F4F8FF; color: var(--ot-text-sec); font-size: 13px; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
    .adopt-tab:hover { background: #E8F0FF; }
    .adopt-tab.active { background: linear-gradient(90deg, #FFD166, #FF7A38); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(255,159,67,0.3); }
    .adopt-tab .num { font-size: 11px; opacity: 0.85; }
    .adopt-tab .emoji { font-size: 14px; }
    .adopt-tip { display: flex; align-items: center; padding: 10px 14px; background: linear-gradient(90deg, #F3EEFF, #FFF6FB); border: 1px solid #E8D9FF; border-radius: 10px; font-size: 12px; color: var(--ot-text-sec); }
    .adopt-main { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 16px; flex: 1; min-height: 0; }
    .adopt-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 10px; height: 100%; min-height: 0; overflow-y: auto; padding-right: 4px; }
    .adopt-card { background: #fff; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .15s; display: flex; flex-direction: column; min-height: 0; }
    .adopt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #FFD9B0; }
    .adopt-card.selected { border-color: var(--ot-blue); box-shadow: 0 0 0 3px rgba(74,124,255,0.18); }
    .adopt-card-img { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
    .adopt-card-img img { max-width: 80%; max-height: 92%; width: auto; height: auto; object-fit: contain; }
    .adopt-tag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; background: rgba(0,0,0,0.5); color: #fff; font-size: 10px; border-radius: 999px; backdrop-filter: blur(2px); }
    .adopt-card-foot { padding: 4px 6px 8px; text-align: center; flex: none; }
    .adopt-card-name { display: block; font-size: 12px; font-weight: 600; color: var(--ot-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .adopt-preview { background: linear-gradient(180deg, #FAFBFF 0%, #F4F8FF 100%); border-radius: 14px; padding: 18px; display: flex; align-items: center; justify-content: center; }
    .adopt-preview-inner { text-align: center; }
    .preview-avatar { width: 96px; height: 96px; border-radius: 50%; background: #fff; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.06); overflow: hidden; }
    .preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .preview-title { font-size: 16px; font-weight: 600; color: var(--ot-text); margin-bottom: 4px; }
    .preview-sub { font-size: 12px; color: var(--ot-text-third); }
    .adopt-foot { display: flex; gap: 10px; justify-content: flex-end; }
    .adopt-foot .btn.primary[disabled] { background: #C9CDD4; cursor: not-allowed; }

    .adopt-section-title { font-size: 15px; font-weight: 600; color: var(--ot-text); margin-bottom: 2px; }
    .random-pick-btn { align-self: flex-start; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 0; background: linear-gradient(90deg, #FFD166, #FF7A38); border: none; box-shadow: 0 4px 12px rgba(255,159,67,0.25); }
    .random-pick-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,159,67,0.35); }
    .rule-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
    .rule-item { padding: 8px 12px; border-radius: 10px; font-size: 13px; cursor: pointer; border: 1px solid transparent; display: flex; align-items: center; justify-content: space-between; transition: all .15s; }
    .rule-item.plus { background: rgba(62,207,142,0.1); color: var(--ot-green); }
    .rule-item.minus { background: rgba(255,123,168,0.1); color: var(--ot-pink); }
    .rule-item .delta { font-weight: 700; }
    .rule-item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

    /* ===== 加减分指标管理 ===== */
    .rule-manager { display: flex; flex-direction: column; gap: 14px; }
    .rm-header { display: flex; align-items: flex-start; justify-content: space-between; }
    .rm-title { font-size: 18px; font-weight: 700; color: var(--ot-text); display: flex; align-items: center; gap: 8px; }
    .rm-subtitle { font-size: 12px; color: var(--ot-text-third); margin-top: 4px; }
    .rm-body { display: grid; grid-template-columns: 160px 1fr; gap: 16px; min-height: 0; }
    .rm-sidebar { display: flex; flex-direction: column; gap: 8px; }
    .rm-sidebar-title { font-size: 12px; color: var(--ot-text-third); font-weight: 600; margin-bottom: 4px; }
    .rm-cat-btn { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--ot-text-sec); transition: all .15s; }
    .rm-cat-btn:hover { background: var(--ot-blue-light); }
    .rm-cat-btn.active { background: #F4F8FF; border-color: var(--ot-blue); color: var(--ot-blue); font-weight: 600; }
    .rm-cat-btn .count { font-size: 11px; color: var(--ot-text-third); margin-left: 6px; }
    .rm-cat-btn.active .count { color: var(--ot-blue); }
    .rm-cat-actions { display: none; gap: 6px; margin-left: auto; }
    .rm-cat-btn:hover .rm-cat-actions { display: flex; }
    .rm-cat-actions span { font-size: 11px; color: var(--ot-text-third); cursor: pointer; padding: 2px 4px; border-radius: 4px; }
    .rm-cat-actions span:hover { color: var(--ot-blue); background: var(--ot-blue-light); }
    .rm-cat-actions span.danger:hover { color: var(--ot-pink); background: rgba(255,123,168,0.1); }
    .rm-add-cat { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--ot-blue); cursor: pointer; border: 1px dashed var(--ot-blue); background: #F7FAFF; transition: all .15s; }
    .rm-add-cat:hover { background: #E8F0FF; }
    .rm-main { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
    .rm-toolbar { display: flex; align-items: center; gap: 10px; }
    .rm-search { flex: 1; padding: 8px 12px; border: 1px solid var(--ot-border); border-radius: 8px; font-size: 13px; outline: none; }
    .rm-search:focus { border-color: var(--ot-blue); box-shadow: 0 0 0 3px rgba(74,124,255,0.12); }
    .rm-add-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; background: var(--ot-blue); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
    .rm-add-btn:hover { background: #3a6fe6; }
    .rm-form { display: none; grid-template-columns: 1fr 100px 100px; gap: 8px; align-items: center; background: #F7FAFF; padding: 12px; border-radius: 10px; border: 1px dashed var(--ot-blue); }
    .rm-form.active { display: grid; }
    .rm-form input, .rm-form select { padding: 8px 10px; border: 1px solid var(--ot-border); border-radius: 8px; font-size: 13px; outline: none; }
    .rm-form input:focus, .rm-form select:focus { border-color: var(--ot-blue); box-shadow: 0 0 0 3px rgba(74,124,255,0.12); }
    .rm-form-actions { display: flex; gap: 8px; grid-column: 1 / -1; justify-content: flex-end; }
    .rm-form-actions .btn { padding: 6px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; }
    .rm-form-actions .btn.primary { background: var(--ot-blue); color: #fff; }
    .rm-form-actions .btn.ghost { background: #fff; color: var(--ot-text-sec); border: 1px solid var(--ot-border); }
    .rm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
    .rm-card { background: #fff; border: 1px solid var(--ot-border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: all .15s; }
    .rm-card:hover { border-color: var(--ot-blue); box-shadow: 0 4px 12px rgba(74,124,255,0.08); }
    .rm-card-top { display: flex; align-items: center; justify-content: space-between; }
    .rm-card-cat { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #F4F8FF; color: var(--ot-blue); }
    .rm-card-delta { font-size: 14px; font-weight: 700; }
    .rm-card-delta.plus { color: var(--ot-green); }
    .rm-card-delta.minus { color: var(--ot-pink); }
    .rm-card-name { font-size: 14px; font-weight: 600; color: var(--ot-text); flex: 1; }
    .rm-card-actions { display: flex; gap: 8px; }
    .rm-card-actions button { background: none; border: none; font-size: 12px; color: var(--ot-text-third); cursor: pointer; padding: 4px; transition: color .15s; }
    .rm-card-actions button:hover { color: var(--ot-blue); }
    .rm-card-actions button.danger:hover { color: var(--ot-pink); }
    .rm-card-sort { display: flex; gap: 6px; }
    .rm-card-sort button { background: #F7F8FA; border: none; border-radius: 6px; font-size: 11px; color: var(--ot-text-third); padding: 4px 8px; cursor: pointer; }
    .rm-card-sort button:hover { background: var(--ot-blue-light); color: var(--ot-blue); }
    .rm-card-sort button:disabled { opacity: .4; cursor: not-allowed; }
    /* 规则归属（统一/自定义） */
    .rm-scope-row { display: flex; gap: 8px; margin-bottom: 12px; }
    .rm-scope-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ot-border); background: #fff; font-size: 12px; color: var(--ot-text-sec); cursor: pointer; }
    .rm-scope-btn .count { font-size: 11px; color: var(--ot-text-third); }
    .rm-scope-btn.active { background: var(--ot-blue); border-color: var(--ot-blue); color: #fff; }
    .rm-scope-btn.active .count { color: rgba(255,255,255,0.85); }
    .rm-scope-badge { font-size: 10px; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
    .rm-scope-badge.unified { background: #FFF4E5; color: #C77700; }
    .rm-scope-badge.mine { background: #EBF7EF; color: #1F9D55; }
    .rm-scope-hint { font-size: 11px; color: var(--ot-text-third); }
    .rm-unified-box { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ot-text-sec); cursor: pointer; margin-right: auto; }
    .rm-card-actions button:disabled { opacity: .35; cursor: not-allowed; }
    .rm-card-top .rm-scope-badge { margin-left: 6px; }
    .rm-stats { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--ot-border); }
    .rm-stat { text-align: center; }
    .rm-stat .num { font-size: 18px; font-weight: 700; color: var(--ot-text); }
    .rm-stat .num.plus { color: var(--ot-green); }
    .rm-stat .num.minus { color: var(--ot-pink); }
    .rm-stat .label { font-size: 11px; color: var(--ot-text-third); }
    .rm-empty { text-align: center; padding: 40px; color: var(--ot-text-third); font-size: 13px; }

    .student-row { display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
    .student-row:hover, .student-row.selected { background: var(--ot-blue-light); }
    .student-row .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ot-blue-light); display: flex; align-items: center; justify-content: center; color: var(--ot-blue); font-weight: 600; font-size: 12px; margin-right: 12px; flex-shrink: 0; }
    .student-row .name { flex: 1; font-size: 13px; font-weight: 500; }
    .student-row .meta { font-size: 11px; color: var(--ot-text-third); }


    /* ===== 班级管理弹窗 ===== */
    .class-mgmt-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
    .class-mgmt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 0; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
    .class-mgmt-btn.primary { background: var(--ot-green); color: #fff; }
    .class-mgmt-btn.primary:hover { background: #35b37d; }
    .class-mgmt-btn.ghost { background: #F4F8FF; color: var(--ot-blue); border-color: #D6E4FF; }
    .class-mgmt-btn.ghost:hover { background: #E8F0FF; }
    .class-mgmt-section-title { font-size: 13px; color: var(--ot-orange); font-weight: 600; margin-bottom: 10px; }
    .class-mgmt-section-title .sub { font-size: 11px; color: var(--ot-text-third); font-weight: 400; margin-left: 6px; }
    .cls-badge { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; font-weight: 500; }
    .cls-badge.owner { background: #EAF3FF; color: #2B5EE6; }
    .cls-badge.taught { background: #FFF4E5; color: #C77700; }
    .cls-badge.current { background: #EBF7EF; color: #1F9D55; }
    .class-action-hint { font-size: 11px; color: var(--ot-text-third); }
    .class-empty { padding: 18px; text-align: center; font-size: 12px; color: var(--ot-text-third); background: #FAFBFC; border: 1px dashed var(--ot-border); border-radius: 10px; }
    .class-list { display: flex; flex-direction: column; gap: 10px; }
    .class-item { display: flex; align-items: center; padding: 14px; border: 2px solid var(--ot-border); border-radius: 12px; cursor: pointer; transition: all .15s; background: #fff; }
    .class-item:hover, .class-item.active { border-color: var(--ot-blue); background: #F7FAFF; }
    .class-check { width: 22px; height: 22px; border-radius: 50%; background: var(--ot-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; margin-right: 10px; flex-shrink: 0; }
    .class-item:not(.active) .class-check { background: transparent; }
    .class-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ot-blue-light); color: var(--ot-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-right: 12px; flex-shrink: 0; }
    .class-info { flex: 1; min-width: 0; }
    .class-name { font-size: 14px; font-weight: 600; color: var(--ot-text); margin-bottom: 2px; }
    .class-meta { font-size: 12px; color: var(--ot-text-third); }
    .class-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
    .class-action-link { background: none; border: none; color: var(--ot-text-sec); font-size: 12px; cursor: pointer; padding: 4px; transition: color .15s; }
    .class-action-link:hover { color: var(--ot-blue); }
    .class-action-link.danger:hover { color: var(--ot-pink); }

    /* ===== 学生花名册弹窗 ===== */
    .roster-toolbar { margin-bottom: 16px; }
    .roster-add { display: flex; gap: 8px; margin-bottom: 16px; }
    .roster-add input { flex: 1; padding: 8px 12px; border: 1px solid var(--ot-border); border-radius: 8px; font-size: 13px; outline: none; }
    .roster-add input:focus { border-color: var(--ot-blue); box-shadow: 0 0 0 3px rgba(74,124,255,0.12); }
    .roster-import { background: var(--ot-bg); padding: 14px; border-radius: 10px; }
    .roster-import label { display: block; font-size: 12px; color: var(--ot-text-sec); margin-bottom: 6px; font-weight: 500; }
    .roster-import textarea { width: 100%; padding: 8px 12px; border: 1px solid var(--ot-border); border-radius: 8px; font-size: 13px; outline: none; resize: vertical; margin-bottom: 10px; }
    .roster-import textarea:focus { border-color: var(--ot-blue); box-shadow: 0 0 0 3px rgba(74,124,255,0.12); }
    .roster-count { font-size: 12px; color: var(--ot-text-third); margin-bottom: 8px; }
    .roster-row { position: relative; }
    .roster-del { background: rgba(255,123,168,0.1); color: var(--ot-pink); border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .15s; }
    .roster-row:hover .roster-del { opacity: 1; }
    .roster-del:hover { background: var(--ot-pink); color: #fff; }

    /* ===== AI 助手面板 ===== */
    .ai-panel { position: fixed; bottom: 84px; right: 24px; width: 360px; height: 520px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 60; display: flex; flex-direction: column; transform: translateY(20px) scale(.95); opacity: 0; pointer-events: none; transition: all .2s ease; overflow: hidden; }
    .ai-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
    .ai-head { padding: 14px 16px; border-bottom: 1px solid var(--ot-border); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--ot-blue-light), #fff); }
    .ai-head .title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
    .ai-head .title .ico { width: 24px; height: 24px; border-radius: 50%; background: var(--ot-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
    .ai-head .close { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ot-text-sec); }
    .ai-head .close:hover { background: var(--ot-bg); }
    .ai-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--ot-bg); }
    .ai-msg { margin-bottom: 12px; max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; word-wrap: break-word; white-space: pre-wrap; }
    .ai-msg.user { background: var(--ot-blue); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
    .ai-msg.bot { background: #fff; color: var(--ot-text); border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
    .ai-foot { padding: 12px; border-top: 1px solid var(--ot-border); display: flex; gap: 8px; }
    .ai-foot input { flex: 1; padding: 8px 12px; border: 1px solid var(--ot-border); border-radius: 999px; outline: none; font-size: 13px; }
    .ai-foot input:focus { border-color: var(--ot-blue); }
    .ai-foot button { padding: 8px 16px; background: var(--ot-blue); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; }
    .ai-foot button:disabled { background: #c0c4cc; cursor: not-allowed; }
    .quick-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; background: var(--ot-bg); }
    .quick-prompts button { padding: 4px 10px; background: #fff; border: 1px solid var(--ot-border); border-radius: 999px; font-size: 11px; color: var(--ot-text-sec); cursor: pointer; }
    .quick-prompts button:hover { border-color: var(--ot-blue); color: var(--ot-blue); }

    /* ===== Toast ===== */
    .toast-stack { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
    .toast { padding: 10px 16px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-md); font-size: 13px; display: flex; align-items: center; gap: 8px; animation: toastIn .25s ease; pointer-events: auto; }
    @keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .toast.success { border-left: 3px solid var(--ot-green); }
    .toast.info { border-left: 3px solid var(--ot-blue); }
    .toast.warn { border-left: 3px solid var(--ot-orange); }

    /* ===== 全局视图 ===== */
    .view-overlay { position: fixed; inset: 0; background: var(--ot-bg); z-index: 80; padding: 32px; overflow-y: auto; }
    .view-card { max-width: 960px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow-sm); }
    .view-card h2 { font-size: 22px; margin-bottom: 16px; }
    .view-card .sub { color: var(--ot-text-sec); font-size: 13px; margin-bottom: 24px; }
    .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
    .stat-box { padding: 20px; border-radius: 12px; background: var(--ot-bg); }
    .stat-box .label { font-size: 12px; color: var(--ot-text-sec); margin-bottom: 8px; }
    .stat-box .value { font-size: 28px; font-weight: 700; color: var(--ot-blue); }

    .rank-list { display: flex; flex-direction: column; gap: 8px; }
    .rank-row { display: flex; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--ot-bg); }
    .rank-row .idx { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-right: 12px; font-size: 13px; }
    .rank-row:nth-child(1) .idx { background: linear-gradient(135deg, #FFD166, #FF9F43); color: #fff; }
    .rank-row:nth-child(2) .idx { background: linear-gradient(135deg, #C9DDFF, #9B7BFF); color: #fff; }
    .rank-row:nth-child(3) .idx { background: linear-gradient(135deg, #FFD6E7, #FF7BA8); color: #fff; }
    .rank-row:nth-child(n+4) .idx { background: #fff; color: var(--ot-text-sec); }
    .rank-row .info { flex: 1; }
    .rank-row .info .n { font-weight: 600; font-size: 13px; }
    .rank-row .info .m { font-size: 11px; color: var(--ot-text-third); }
    .rank-row .score { font-weight: 700; color: var(--ot-orange); }

    .record-list { display: flex; flex-direction: column; gap: 8px; }
    .record-row { display: flex; align-items: center; padding: 10px 14px; border-radius: 10px; background: var(--ot-bg); font-size: 13px; }
    .record-row .delta-tag { width: 50px; text-align: center; font-weight: 700; border-radius: 6px; padding: 2px 0; font-size: 12px; }
    .record-row .delta-tag.plus { background: rgba(62,207,142,0.15); color: var(--ot-green); }
    .record-row .delta-tag.minus { background: rgba(255,123,168,0.15); color: var(--ot-pink); }
    .record-row .who { flex: 1; padding-left: 12px; font-weight: 500; }
    .record-row .why { color: var(--ot-text-sec); margin-right: 12px; }
    .record-row .when { color: var(--ot-text-third); font-size: 11px; }

    .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .shop-card { padding: 12px; border-radius: 12px; background: var(--ot-bg); text-align: center; cursor: pointer; transition: all .2s; }
    .shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
    .shop-card .ico { width: 60px; height: 60px; margin: 0 auto 8px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
    .shop-card .name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
    .shop-card .price { font-size: 11px; color: var(--ot-orange); font-weight: 600; }

    .qe-card { padding: 12px; border: 2px solid transparent; border-radius: 12px; background: var(--ot-bg); cursor: pointer; text-align: center; transition: all .15s; }
    .qe-card:hover { background: var(--ot-blue-light); }

    @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
    /* ===== 小组视图 ===== */
    .group-card { background:#fff;border-radius:16px;box-shadow:var(--shadow-sm);padding:16px;display:flex;flex-direction:column;gap:12px;min-height:260px; }
    .group-head { display:flex;align-items:center;justify-content:space-between; }
    .group-title { display:flex;align-items:center;gap:10px; }
    .group-name { font-size:16px;font-weight:600;color:var(--ot-text); }
    .group-count { font-size:12px;color:var(--ot-text-third);background:var(--ot-bg);padding:2px 8px;border-radius:999px; }
    .group-score-btn { padding:6px 14px;background:var(--ot-yellow);color:#fff;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s; }
    .group-score-btn:hover { transform:translateY(-1px);box-shadow:0 4px 10px rgba(255,209,102,0.35); }
    /* 小组排行榜 */
    .grp-lb { grid-column:1/-1;background:#fff;border-radius:16px;box-shadow:var(--shadow-sm);padding:16px 20px;animation:fadeInUp .25s ease both; }
    .grp-lb-head { display:flex;align-items:baseline;gap:10px;margin-bottom:12px;flex-wrap:wrap; }
    .grp-lb-title { font-size:15px;font-weight:800;color:var(--ot-text); }
    .grp-lb-sub { font-size:11px;color:var(--ot-text-third); }
    .grp-lb-tabs { display:flex;gap:4px;margin-left:auto;flex-wrap:wrap; }
    .grp-lb-tab { border:1px solid var(--ot-border);background:var(--ot-bg);border-radius:999px;padding:3px 14px;font-size:12px;color:var(--ot-text-sec);cursor:pointer;transition:all .15s;white-space:nowrap; }
    .grp-lb-tab:hover { border-color:var(--ot-blue);color:var(--ot-blue); }
    .grp-lb-tab.on { background:#4E8CFF;border-color:#4E8CFF;color:#fff;font-weight:700; }
    .grp-lb-list { display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:10px 28px; }
    .grp-lb-item { display:flex;align-items:center;gap:10px;min-width:0; }
    .grp-lb-medal { flex:0 0 30px;text-align:center;font-size:13px;font-weight:700;color:var(--ot-text-third); }
    .grp-lb-item.top .grp-lb-medal { font-size:18px; }
    .grp-lb-name { flex:0 0 84px;font-size:13px;font-weight:600;color:var(--ot-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    .grp-lb-bar { flex:1;height:10px;background:var(--ot-bg);border-radius:5px;overflow:hidden; }
    .grp-lb-bar i { display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#9BB8F5,#BFD3F9);transition:width .4s ease; }
    .grp-lb-item:nth-child(1) .grp-lb-bar i { background:linear-gradient(90deg,#FFB300,#FFD54F); }
    .grp-lb-item:nth-child(2) .grp-lb-bar i { background:linear-gradient(90deg,#9EA7B3,#C6CDD6); }
    .grp-lb-item:nth-child(3) .grp-lb-bar i { background:linear-gradient(90deg,#E0965A,#F0BC8B); }
    .grp-lb-score { flex:0 0 52px;text-align:right;font-size:14px;font-weight:800;color:#4E8CFF; }
    .grp-rank-medal { margin-right:4px;font-size:13px; }
    .group-score-chip { padding:2px 10px;border-radius:20px;background:rgba(78,140,255,.1);color:#4E8CFF;font-size:12px;font-weight:700;white-space:nowrap; }
    .grp-lb-tip { margin-top:12px;padding:8px 12px;background:rgba(78,140,255,.06);border-radius:10px;font-size:12px;color:var(--ot-text-sec); }
    .group-body { display:flex;flex-wrap:wrap;gap:10px;padding:10px;border:1px dashed var(--ot-border);border-radius:12px;min-height:120px;transition:all .2s; }
    .group-body.drag-over { background:var(--ot-blue-light);border-color:var(--ot-blue); }
    .group-member-card { display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;background:var(--ot-bg);cursor:grab;transition:all .15s;white-space:nowrap; }
    .group-member-card:hover { transform:translateY(-1px);box-shadow:0 3px 8px rgba(0,0,0,0.06); }
    .group-member-card.egg { background:#FFFBF0; }
    .gm-avatar { width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden;flex-shrink:0; }
    .gm-name { font-size:13px;font-weight:600;color:var(--ot-text);white-space:nowrap; }
    .gm-info { min-width:0; }
    .gm-meta { font-size:11px;color:var(--ot-text-third);margin-top:2px;white-space:nowrap; }
    .group-empty { width:100%;text-align:center;color:var(--ot-text-third);padding:30px 0;font-size:13px; }
    /* 小组管理弹窗 */
    .group-mgmt { display:flex;flex-direction:column;gap:16px; }
    .group-mgmt-row { display:flex;align-items:center;gap:10px; }
    .group-mgmt-row label { font-size:13px;color:var(--ot-text-sec); }
    .group-mgmt-row input { width:80px;padding:6px 10px;border:1px solid var(--ot-border);border-radius:8px;font-size:13px;outline:none; }
    .group-mgmt-row input:focus { border-color:var(--ot-blue);box-shadow:0 0 0 3px rgba(74,124,255,0.12); }
    .group-mgmt-cols { display:grid;grid-template-columns:repeat(2,1fr);gap:14px;max-height:460px;overflow-y:auto;padding-right:4px; }
    .group-mgmt-card { background:var(--ot-bg);border-radius:12px;padding:12px;min-height:180px; }
    .group-mgmt-card.empty { background:#fff;border:1px dashed var(--ot-border); }
    .group-mgmt-card-head { display:flex;align-items:center;justify-content:space-between;margin-bottom:10px; }
    .group-mgmt-card-head input { font-weight:600;color:var(--ot-text);background:transparent;border:none;border-bottom:1px solid transparent;padding:2px 4px;width:120px; }
    .group-mgmt-card-head input:focus { border-bottom-color:var(--ot-blue);outline:none; }
    .group-mgmt-card-head .count { font-size:12px;color:var(--ot-text-third); }
    .group-mgmt-list { display:flex;flex-direction:column;gap:6px;min-height:100px; }
    .group-mgmt-list.drag-over { background:var(--ot-blue-light);border-radius:8px; }
    .group-mgmt-member { display:flex;align-items:center;gap:8px;padding:6px 8px;background:#fff;border-radius:8px;cursor:grab;box-shadow:0 1px 3px rgba(0,0,0,0.04); }
    .group-mgmt-member:hover { box-shadow:0 2px 6px rgba(0,0,0,0.08); }
    .group-mgmt-member .gm-name { font-size:13px; }
    .group-mgmt-member .del { margin-left:auto;font-size:12px;color:var(--ot-text-third);cursor:pointer; }
    .group-mgmt-member .del:hover { color:#ff4d4f; }
    .group-mgmt-empty { text-align:center;color:var(--ot-text-third);padding:24px 0;font-size:12px; }
    .group-pool { background:#fff;border:1px dashed var(--ot-border);border-radius:12px;padding:12px; }
    .group-pool-title { font-size:12px;color:var(--ot-text-third);margin-bottom:8px; }
    .group-pool-chips { display:flex;flex-wrap:wrap;gap:6px; }
    .group-pool-chip { display:inline-flex;align-items:center;gap:4px;padding:4px 10px;background:var(--ot-bg);border-radius:999px;font-size:12px;cursor:grab; }

    @keyframes fadeInUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

    /* ===== 学生个人页 ===== */
    .stu-app { flex:1; overflow:auto; padding:24px 20px 40px; }
    .stu-wrap { max-width:900px; margin:0 auto; }
    .stu-hello { text-align:center; margin-bottom:20px; }
    .stu-hello .hi { font-size:22px; font-weight:700; }
    .stu-hello .sub { font-size:13px; color:var(--ot-text-third); margin-top:4px; }
    .stu-hero { display:flex; gap:20px; align-items:center; background:linear-gradient(135deg,#F4F8FF 0%,#FAF7FF 100%); border:1px solid #E4ECFF; border-radius:18px; padding:22px 24px; box-shadow:var(--shadow-sm); }
    .stu-hero .pet-big { width:120px; height:120px; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:#fff; border-radius:16px; box-shadow:var(--shadow-sm); }
    .stu-hero .info { flex:1; min-width:0; }
    .stu-hero .pet-title { font-size:19px; font-weight:700; }
    .stu-hero .badge-line { font-size:12px; color:var(--ot-text-sec); margin-top:4px; }
    .stu-rings { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
    .stu-ring { flex:1 1 90px; background:#fff; border-radius:12px; padding:10px 12px; text-align:center; box-shadow:var(--shadow-sm); }
    .stu-ring .v { font-size:19px; font-weight:700; }
    .stu-ring .k { font-size:11px; color:var(--ot-text-third); margin-top:2px; }
    .stu-prog { margin-top:14px; }
    .stu-prog .bar { height:8px; background:#fff; border-radius:999px; overflow:hidden; box-shadow:inset 0 0 0 1px var(--ot-border); }
    .stu-prog .fill { height:100%; background:linear-gradient(90deg,var(--ot-purple),var(--ot-blue)); border-radius:999px; transition:width .8s ease; }
    .stu-prog .txt { display:flex; justify-content:space-between; font-size:11px; color:var(--ot-text-third); margin-bottom:6px; }
    .stu-cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; margin-top:20px; }
    @media (max-width:780px) { .stu-cols { grid-template-columns:1fr; } .stu-hero { flex-direction:column; text-align:center; } }
    .stu-card { background:#fff; border:1px solid var(--ot-border); border-radius:14px; padding:16px; box-shadow:var(--shadow-sm); }
    .stu-card h3 { font-size:14px; font-weight:700; margin-bottom:12px; display:flex; align-items:center; gap:6px; }
    .stu-rec { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px dashed #F0F1F4; font-size:13px; }
    .stu-rec:last-child { border-bottom:none; }
    .stu-rec .t { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .stu-rec .d { font-weight:700; }
    .stu-rec .d.plus { color:var(--ot-green); }
    .stu-rec .d.minus { color:var(--ot-orange); }
    .stu-rec .ago { font-size:11px; color:var(--ot-text-third); }
    .stu-rank-row { display:flex; align-items:center; gap:10px; padding:7px 0; font-size:13px; }
    .stu-rank-row.me { background:var(--ot-blue-light); border-radius:8px; padding:7px 8px; font-weight:700; }
    .stu-rank-row .no { width:22px; text-align:center; color:var(--ot-text-third); font-size:12px; }
    .stu-rank-row .no.top { color:var(--ot-orange); font-weight:700; }
    .stu-rank-row .nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .stu-rank-row .ex { color:var(--ot-text-sec); font-size:12px; }
    .stu-actions { display:flex; gap:10px; justify-content:center; margin-top:22px; }
    .stu-actions button { padding:9px 22px; border-radius:999px; font-size:13px; font-weight:600; }

    /* ===== 全屏登录页（参考校园风设计稿） ===== */
    .login-screen { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px;
      background:
        radial-gradient(500px 220px at 14% 12%, rgba(255,255,255,0.8), transparent 70%),
        radial-gradient(600px 260px at 86% 18%, rgba(255,255,255,0.65), transparent 70%),
        radial-gradient(800px 340px at 50% 115%, rgba(111,187,255,0.55), transparent 72%),
        linear-gradient(165deg, #9FD4FF 0%, #C9E9FF 40%, #EAF7FF 100%);
    }
    .login-brand { display:flex; align-items:center; gap:12px; position:absolute; top:26px; left:32px; }
    .login-brand .brand-logo { width: 46px; height: 46px; font-size: 24px; border-radius: 14px; }
    .login-brand .brand-name { font-size: 19px; }
    .login-hero { max-width: 520px; margin-right: 60px; color: #17456E; }
    .login-hero .slogan-big { font-size: 40px; font-weight: 900; line-height: 1.3; letter-spacing: 2px;
      background: linear-gradient(90deg, #1F6BE0, #3D8BFF 55%, #6FBBFF); -webkit-background-clip: text; background-clip: text; color: transparent;
      text-shadow: 0 2px 0 rgba(255,255,255,0.45); }
    .login-hero .slogan-sub { margin-top: 12px; font-size: 16px; font-weight: 600; color: #2C6DB4; }
    .login-hero .slogan-tip { margin-top: 22px; display: inline-block; padding: 8px 18px; background: rgba(255,255,255,0.75); border-radius: 999px; font-size: 13px; color: #1F6BE0; font-weight: 600; box-shadow: 0 4px 14px rgba(31,107,224,0.12); }
    .login-mascot { font-size: 64px; margin-top: 26px; filter: drop-shadow(0 8px 14px rgba(31,107,224,0.25)); }
    .login-card { width: 380px; background: rgba(255,255,255,0.96); border-radius: 24px; padding: 36px 34px 30px; box-shadow: 0 24px 60px rgba(23,80,153,0.22); }
    .login-card h2 { text-align: center; font-size: 22px; font-weight: 800; color: var(--ot-text); }
    .login-card .sub { text-align: center; font-size: 12px; color: var(--ot-text-third); margin-top: 6px; margin-bottom: 22px; }
    .login-field { margin-bottom: 14px; }
    .login-field label { display: block; font-size: 12px; color: var(--ot-text-sec); margin-bottom: 6px; font-weight: 600; }
    .login-field input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--ot-border); border-radius: 12px; font-size: 14px; outline: none; transition: all .2s; background: #F8FBFF; }
    .login-field input:focus { border-color: var(--ot-blue); box-shadow: 0 0 0 4px rgba(61,139,255,0.14); background: #fff; }
    .login-err { display: none; margin: 4px 0 10px; padding: 10px 12px; background: #FFF1F0; color: #B7322B; border-radius: 10px; font-size: 13px; }
    .login-submit { width: 100%; margin-top: 8px; padding: 12px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #3D8BFF, #6FBBFF); box-shadow: 0 8px 20px rgba(61,139,255,0.4); transition: all .2s; }
    .login-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(61,139,255,0.5); }
    .login-submit:disabled { opacity: .6; transform: none; }
    .login-foot { text-align: center; font-size: 12px; color: var(--ot-text-third); margin-top: 16px; line-height: 1.7; }
    @media (max-width: 900px) { .login-hero { display: none; } }
    @media (max-width: 620px) { .login-brand { left: 20px; } .login-card { width: 100%; max-width: 400px; } }

    /* ===== 学生个人页（校园卡通风） ===== */
    .stu-app { background: transparent; }
    .stu-wrap { max-width: 960px; }
    .stu-hello { text-align: center; margin-bottom: 18px; }
    .stu-hello .hi { font-size: 24px; font-weight: 900; color: #17456E; }
    .stu-hello .sub { font-size: 13px; color: var(--ot-text-sec); margin-top: 4px; }
    .stu-hero { display: flex; gap: 22px; align-items: center; border-radius: 22px; padding: 26px 28px; color: #fff;
      background: linear-gradient(120deg, #3D8BFF 0%, #5FA8FF 55%, #7FC4FF 100%);
      box-shadow: 0 16px 40px rgba(31,107,224,0.28); position: relative; overflow: hidden; }
    .stu-hero::after { content: '⭐'; position: absolute; right: 18px; top: 12px; font-size: 22px; opacity: .8; }
    .stu-hero::before { content: ''; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.14); }
    .stu-hero .pet-big { width: 128px; height: 128px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.95); border-radius: 20px; box-shadow: 0 8px 20px rgba(15,60,120,0.25); }
    .stu-hero .info { flex: 1; min-width: 0; position: relative; z-index: 1; }
    .stu-hero .pet-title { font-size: 21px; font-weight: 800; }
    .stu-hero .badge-line { font-size: 12px; opacity: .92; margin-top: 4px; }
    .stu-hero .stu-ring { background: rgba(255,255,255,0.92); border-radius: 14px; }
    .stu-hero .stu-ring .k { color: var(--ot-text-third); }
    .stu-hero .stu-prog .bar { background: rgba(255,255,255,0.35); box-shadow: none; }
    .stu-hero .stu-prog .txt { color: rgba(255,255,255,0.95); }
    .stu-rings { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
    .stu-ring { flex: 1 1 90px; background: #fff; border-radius: 12px; padding: 10px 12px; text-align: center; box-shadow: 0 3px 10px rgba(31,107,224,0.10); }
    .stu-ring .v { font-size: 19px; font-weight: 800; }
    .stu-ring .k { font-size: 11px; color: var(--ot-text-third); margin-top: 2px; }
    .stu-prog { margin-top: 14px; }
    .stu-prog .bar { height: 9px; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--ot-border); }
    .stu-prog .fill { height: 100%; background: linear-gradient(90deg, #FFD166, #FFB03D); border-radius: 999px; transition: width .8s ease; }
    .stu-prog .txt { display: flex; justify-content: space-between; font-size: 11px; color: var(--ot-text-third); margin-bottom: 6px; }
    .stu-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
    @media (max-width:780px) { .stu-cols { grid-template-columns:1fr; } .stu-hero { flex-direction:column; text-align:center; } }
    .stu-card { background: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.9); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-md); }
    .stu-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; color: #17456E; }
    .stu-rec { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #E8F0FA; font-size: 13px; }
    .stu-rec:last-child { border-bottom: none; }
    .stu-rec .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .stu-rec .d { font-weight: 800; }
    .stu-rec .d.plus { color: #12B76A; }
    .stu-rec .d.minus { color: #F07E22; }
    .stu-rec .ago { font-size: 11px; color: var(--ot-text-third); }
    .stu-rank-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
    .stu-rank-row.me { background: linear-gradient(90deg, #EAF3FF, #F5FAFF); border-radius: 10px; padding: 7px 10px; font-weight: 800; border: 1px solid #CFE4FF; }
    .stu-rank-row .no { width: 24px; text-align: center; color: var(--ot-text-third); font-size: 12px; }
    .stu-rank-row .no.top { color: var(--ot-orange); font-weight: 800; }
    .stu-rank-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .stu-rank-row .ex { color: var(--ot-text-sec); font-size: 12px; }
    .stu-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
    .stu-actions .btn.primary { background: linear-gradient(90deg, #3D8BFF, #6FBBFF); box-shadow: 0 6px 16px rgba(61,139,255,0.35); border-radius: 999px; }

    /* ===== 数据大屏 ===== */
    .ds-screen { position: fixed; inset: 0; z-index: 2500; overflow: auto; padding: 18px 22px 26px;
      background:
        radial-gradient(520px 240px at 12% 6%, rgba(255,255,255,0.7), transparent 70%),
        radial-gradient(600px 260px at 88% 10%, rgba(255,255,255,0.55), transparent 70%),
        radial-gradient(900px 380px at 50% 118%, rgba(111,187,255,0.5), transparent 72%),
        linear-gradient(160deg, #A6D8FF 0%, #CCEAFF 45%, #EAF7FF 100%); }
    .ds-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 14px; }
    .ds-title { text-align: center; flex: 1; }
    .ds-title h1 { font-size: 30px; font-weight: 900; letter-spacing: 4px; color: #17456E;
      background: linear-gradient(90deg, #1F6BE0, #3D8BFF 55%, #2C86E8); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .ds-title .sub { font-size: 13px; color: #2C6DB4; font-weight: 600; margin-top: 2px; }
    .ds-close { padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,0.9); color: #1F6BE0; font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px rgba(31,107,224,0.15); flex-shrink: 0; }
    .ds-grid { display: grid; grid-template-columns: 300px 1fr 300px; gap: 16px; align-items: start; max-width: 1440px; margin: 0 auto; }
    @media (max-width: 1100px) { .ds-grid { grid-template-columns: 1fr; } }
    .ds-card { background: rgba(255,255,255,0.94); border-radius: 18px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(23,80,153,0.14); }
    .ds-card h3 { font-size: 15px; font-weight: 800; color: #17456E; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
    .ds-card h3 .tag { margin-left: auto; font-size: 11px; font-weight: 700; color: #1F6BE0; background: var(--ot-blue-light); padding: 2px 10px; border-radius: 999px; }
    .ds-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 13px; }
    .ds-row:nth-child(odd) { background: #F5FAFF; }
    .ds-row .no { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; background: #EDF3FB; color: #6A87A3; flex-shrink: 0; }
    .ds-row .no.g1 { background: linear-gradient(135deg,#FFD166,#FFB03D); color: #fff; }
    .ds-row .no.g2 { background: linear-gradient(135deg,#C7DCEf,#9FB9D8); color: #fff; }
    .ds-row .no.g3 { background: linear-gradient(135deg,#FFB68A,#F98F4E); color: #fff; }
    .ds-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #23486B; }
    .ds-row .cls { font-size: 11px; color: #7C97B2; flex-shrink: 0; }
    .ds-row .val { font-weight: 900; color: #FF8A1E; font-variant-numeric: tabular-nums; flex-shrink: 0; }
    .ds-hero { text-align: center; padding: 26px 18px 18px; background: linear-gradient(120deg, #3D8BFF, #5FA8FF 55%, #7FC4FF); border-radius: 18px; color: #fff; box-shadow: 0 14px 36px rgba(31,107,224,0.28); position: relative; overflow: hidden; margin-bottom: 16px; }
    .ds-hero::before { content: ''; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,0.16); }
    .ds-hero .big { font-size: 24px; font-weight: 900; letter-spacing: 3px; text-shadow: 0 2px 8px rgba(15,60,120,0.3); }
    .ds-hero .slogan { margin-top: 6px; font-size: 13px; opacity: 0.95; }
    .ds-hero .mascot { font-size: 46px; margin-top: 8px; filter: drop-shadow(0 6px 10px rgba(15,60,120,0.3)); }
    .ds-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .ds-stat { background: #F5FAFF; border-radius: 14px; padding: 12px 8px; text-align: center; }
    .ds-stat .v { font-size: 22px; font-weight: 900; color: #1F6BE0; font-variant-numeric: tabular-nums; }
    .ds-stat .v.warm { color: #FF8A1E; }
    .ds-stat .v.green { color: #12B76A; }
    .ds-stat .k { font-size: 11px; color: #7C97B2; margin-top: 2px; }
    .ds-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
    @media (max-width: 760px) { .ds-two { grid-template-columns: 1fr; } }
    .ds-recent { max-height: 220px; overflow: auto; }
    .ds-recent .it { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 4px; border-bottom: 1px dashed #E8F0FA; }
    .ds-recent .it:last-child { border-bottom: none; }
    .ds-recent .who { font-weight: 700; color: #23486B; flex-shrink: 0; }
    .ds-recent .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #56728E; }
    .ds-recent .d { font-weight: 800; flex-shrink: 0; }
    .ds-recent .d.plus { color: #12B76A; }
    .ds-recent .d.minus { color: #F07E22; }
    .ds-empty { text-align: center; color: #7C97B2; font-size: 12px; padding: 24px 0; }
    /* ===== 领养开盒动画（全屏视频 + 精灵揭示） ===== */
    .cine-mask { position: fixed; inset: 0; z-index: 3000; background: transparent; display: flex; align-items: center; justify-content: center; animation: cineFade .25s ease; }
    @keyframes cineFade { from { opacity: 0; } to { opacity: 1; } }
    .cine-stage { position: relative; width: min(92vw, 640px); text-align: center; }
    .cine-video { width: min(92vw, 640px); border-radius: 20px; box-shadow: 0 18px 48px rgba(61,102,204,0.3); background: #f4f6f8; display: block; }
    .cine-video.wipe { animation: cineWipe .45s ease forwards; }
    @keyframes cineWipe { to { opacity: 0; transform: scale(1.06); } }
    .cine-skip { position: absolute; top: 14px; right: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.85); color: #4E5969; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.08); user-select: none; }
    .cine-skip:hover { background: #fff; color: #2B5EE6; }
    .cine-reveal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,0.88); backdrop-filter: blur(6px); border-radius: 20px; }
    .cine-pet { width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 12px 28px rgba(255,159,67,0.45)); animation: petPop .7s cubic-bezier(.2,1.6,.4,1) both; }
    .cine-pet img { width: 100%; height: 100%; object-fit: contain; }
    @keyframes petPop { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 60% { transform: scale(1.25) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
    .cine-title { font-size: 26px; font-weight: 800; color: #1D3A6E; animation: cineUp .5s .25s ease both; }
    .cine-sub { font-size: 15px; color: #56728E; animation: cineUp .5s .4s ease both; }
    .cine-btn { margin-top: 10px; padding: 11px 34px; border-radius: 999px; font-size: 15px; background: linear-gradient(90deg,#3D8BFF,#6FBBFF); box-shadow: 0 8px 22px rgba(61,139,255,0.4); animation: cineUp .5s .55s ease both; }
    @keyframes cineUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
    .cine-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
    .cine-confetti i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: cineFall linear infinite; }
    @keyframes cineFall { to { transform: translateY(110vh) rotate(660deg); } }

    /* ===== 更多功能增强（v2026091516）：页签 / 小卖部 / 记录撤回 ===== */
    .seg-tabs { display: inline-flex; background: var(--ot-bg); border-radius: 999px; padding: 3px; gap: 2px; margin-bottom: 12px; }
    .seg-tab { padding: 7px 16px; border: none; background: none; border-radius: 999px; font-size: 13px; color: var(--ot-text-sec); cursor: pointer; transition: all .15s; white-space: nowrap; }
    .seg-tab:hover { color: var(--ot-blue); }
    .seg-tab.active { background: #fff; color: var(--ot-blue); font-weight: 600; box-shadow: 0 1px 4px rgba(31,107,224,0.15); }

    .rec-undo { border: none; background: rgba(255,123,168,0.1); color: var(--ot-pink); border-radius: 6px; padding: 3px 10px; font-size: 11px; cursor: pointer; margin-left: 10px; flex-shrink: 0; transition: all .15s; }
    .rec-undo:hover { background: var(--ot-pink); color: #fff; }
    .rec-undo:disabled { opacity: .45; cursor: default; }

    .shop-buy-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
    .shop-coin { font-size: 13px; color: var(--ot-text-sec); }
    .shop-card.buy .ico { pointer-events: none; }
    .shop-card.buy:hover .price { transform: scale(1.06); }

    .shop-form { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
    .shop-form input { padding: 8px 10px; border: 1px solid var(--ot-border); border-radius: 8px; font-size: 13px; outline: none; }
    .shop-form input:focus { border-color: var(--ot-blue); box-shadow: 0 0 0 3px rgba(74,124,255,0.12); }
    .shop-manage-list { display: flex; flex-direction: column; gap: 8px; }
    .shop-manage-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 10px; background: var(--ot-bg); font-size: 13px; }
    .shop-manage-row .ico { font-size: 18px; width: 26px; text-align: center; }
    .shop-manage-row .nm { flex: 1; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .shop-manage-row .pr { color: var(--ot-orange); font-weight: 600; }
    .shop-manage-row .stk { color: var(--ot-text-third); font-size: 11px; width: 70px; text-align: right; }
    .mini { border: 1px solid var(--ot-border); background: #fff; border-radius: 6px; padding: 3px 10px; font-size: 11px; color: var(--ot-text-sec); cursor: pointer; transition: all .15s; }
    .mini:hover { border-color: var(--ot-blue); color: var(--ot-blue); }
    .mini.danger { color: var(--ot-pink); border-color: rgba(255,123,168,0.4); }
    .mini.danger:hover { background: var(--ot-pink); color: #fff; border-color: var(--ot-pink); }


    /* ===== 7 级等级体系（v2026091521）：1级100 / 2级300 / 3级600 / 4级1000 / 5级1500 / 6级2100 / 7级2800 ===== */
    .lv-tag.maxed { background: linear-gradient(135deg, #FFB020, #FF7A45); box-shadow: 0 2px 8px rgba(255,122,69,0.35); }
    .lv-tag.zero { background: #E6EBF2; color: var(--ot-text-third); }
    .lv-ladder { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
    .lv-ladder-item { padding: 3px 10px; border-radius: 999px; background: var(--ot-bg); color: var(--ot-text-sec); font-size: 11px; white-space: nowrap; }
    .lv-ladder-item.zero { background: #EDF1F7; color: var(--ot-text-third); }
    .lv-ladder-item.max { background: linear-gradient(135deg, #FFB020, #FF7A45); color: #fff; }
    .lv-ladder-note { font-size: 11px; color: var(--ot-text-third); }
    .stu-prog .txt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

    /* ===== 课堂互动工具 ===== */
    .tool-card { cursor: pointer; }
    .tool-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(31,41,55,.12); }
    .bz-team.armed { animation: bzPulse 1.1s ease-in-out infinite; border-color: #4E8CFF !important; }
    @keyframes bzPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(78,140,255,.35); }
      50% { box-shadow: 0 0 0 10px rgba(78,140,255,0); }
    }
    .btn.ghost.active { border-color: #4E8CFF; color: #4E8CFF; background: rgba(78,140,255,.08); }

    /* 幸运大转盘 */
    .whl-wheel { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 6px 24px rgba(31,41,55,.22), inset 0 0 0 6px #fff; transition: transform 4.6s cubic-bezier(.15,.85,.25,1); }
    .whl-label { position: absolute; left: 50%; top: 50%; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

    /* ===== 学生成长档案（点击头像/姓名/精灵进入） ===== */
    .pet-card .pet-img-wrap[data-growth] { cursor: pointer; }
    .pet-card .pet-img-wrap[data-growth]:hover { transform: translateY(-2px); }
    .pet-card .pet-img-wrap[data-growth]::after {
      content: '成长档案'; position: absolute; right: 6px; bottom: 5px; padding: 1px 6px; border-radius: 6px;
      background: rgba(61,139,255,.92); color: #fff; font-size: 9px; opacity: 0; transition: opacity .2s; pointer-events: none;
    }
    .pet-card .pet-img-wrap[data-growth]:hover::after { opacity: 1; }
    .pet-card .student-name[data-growth] { cursor: pointer; transition: color .15s; }
    .pet-card .student-name[data-growth]:hover { color: var(--ot-blue); text-decoration: underline; text-underline-offset: 3px; }
    .group-member-card .gm-avatar[data-growth] { cursor: pointer; }
    .group-member-card .gm-name[data-growth] { cursor: pointer; }
    .group-member-card:hover .gm-name[data-growth] { color: var(--ot-blue); text-decoration: underline; text-underline-offset: 3px; }
    .roster-row .avatar[data-growth] { cursor: pointer; transition: all .15s; }
    .roster-row .avatar[data-growth]:hover { background: var(--ot-blue); color: #fff; }
    .roster-row .name[data-growth] { cursor: pointer; }
    .roster-row .name[data-growth]:hover { color: var(--ot-blue); text-decoration: underline; text-underline-offset: 3px; }

    .view-overlay.gd-overlay { z-index: 150; }
    .growth-wrap { max-width: 1040px; margin: 0 auto; }
    .growth-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
    .growth-top .t { font-size: 17px; font-weight: 800; }
    .growth-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #fff;
      border: 1px solid var(--ot-border); cursor: pointer; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); transition: all .15s; }
    .growth-back:hover { border-color: var(--ot-blue); color: var(--ot-blue); }
    .growth-ladder { background: #fff; border: 1px solid var(--ot-border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); margin-top: 16px; }
    .gd-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
    .gd-title .gd-sub { font-size: 11px; font-weight: 400; color: var(--ot-text-third); }
    .gd-lvs { display: flex; gap: 8px; flex-wrap: wrap; }
    .gd-lv { padding: 6px 12px; border-radius: 999px; background: var(--ot-bg); font-size: 12px; color: var(--ot-text-sec); border: 1px solid transparent; }
    .gd-lv.done { background: rgba(62,207,142,.12); color: var(--ot-green); }
    .gd-lv.on { background: linear-gradient(135deg, var(--ot-purple), var(--ot-blue)); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(61,139,255,.3); }
    .stu-hero .stu-ring .v .sm { font-size: 12px; color: var(--ot-text-third); font-weight: 500; }
    .gd-chart { display: flex; align-items: flex-end; gap: 8px; height: 158px; }
    .gd-bar { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
    .gd-bar .v { font-size: 11px; font-weight: 700; color: var(--ot-blue); height: 14px; line-height: 14px; }
    .gd-bar .colwrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
    .gd-bar .col { width: 60%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #8FBBFF, var(--ot-blue)); transition: height .5s ease; }
    .gd-bar .d { font-size: 11px; color: var(--ot-text-third); height: 14px; line-height: 14px; }
    .gd-stat { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #F0F1F4; font-size: 13px; }
    .gd-stat:last-child { border-bottom: none; }
    .gd-stat .k { color: var(--ot-text-sec); }
    .gd-stat .v { font-weight: 700; }
    .gd-scroll { max-height: 320px; overflow-y: auto; }
    .gd-rec { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #F0F1F4; font-size: 13px; }
    .gd-rec:last-child { border-bottom: none; }
    .gd-rec .d { width: 46px; text-align: center; font-weight: 700; border-radius: 6px; padding: 2px 0; font-size: 12px; flex-shrink: 0; }
    .gd-rec .d.plus { background: rgba(62,207,142,0.15); color: var(--ot-green); }
    .gd-rec .d.minus { background: rgba(255,123,168,0.15); color: var(--ot-pink); }
    .gd-rec .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gd-rec .by { font-size: 11px; color: var(--ot-text-third); flex-shrink: 0; }
    .gd-rec .ago { font-size: 11px; color: var(--ot-text-third); flex-shrink: 0; }

    /* ===== 班级弹窗按年级折叠 ===== */
    .grade-block { margin-bottom: 10px; }
    .grade-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: #fff;
      border: 1px solid var(--ot-border); border-radius: 12px; cursor: pointer; user-select: none;
      box-shadow: var(--shadow-sm); transition: all .15s; }
    .grade-head:hover { border-color: var(--ot-blue); transform: translateY(-1px); }
    .grade-head .grade-arrow { color: var(--ot-blue); font-size: 13px; width: 14px; text-align: center; transition: transform .2s; }
    .grade-head .grade-name { font-weight: 800; font-size: 15px; }
    .grade-head.has-current .grade-name { color: var(--ot-blue); }
    .grade-head .grade-count { margin-left: auto; font-size: 12px; color: var(--ot-text-third); }
    .grade-block .class-list { margin-top: 8px; }

    /* ===== 课间挑战发星（智趣·课间） ===== */
    .fr-note { font-size:12px; color:var(--ot-text-sec); background:#FFFBF0; border:1px solid #FFE9C2; border-radius:10px; padding:10px 12px; line-height:1.7; margin-bottom:14px; }
    .fr-note b { color:#B37B00; }
    .fr-games { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
    .fr-game { padding:7px 14px; border-radius:999px; background:#fff; border:1px solid var(--ot-border); font-size:12px; color:var(--ot-text-sec); cursor:pointer; transition:all .16s; }
    .fr-game:hover { border-color:var(--ot-blue); color:var(--ot-blue); }
    .fr-game.on { background:#FFF6E0; border-color:var(--ot-yellow); color:#B37B00; font-weight:700; }
    .fr-search { width:100%; padding:9px 14px; border:1px solid var(--ot-border); border-radius:10px; font-size:13px; outline:none; margin-bottom:12px; font-family:inherit; }
    .fr-search:focus { border-color:var(--ot-blue); box-shadow:0 0 0 3px rgba(74,124,255,0.12); }
    .fr-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(104px, 1fr)); gap:8px; max-height:290px; overflow-y:auto; padding:2px; }
    .fr-stu { padding:9px 8px; border-radius:10px; background:var(--ot-bg); border:1.5px solid transparent; text-align:center; cursor:pointer; transition:all .15s; }
    .fr-stu:hover { background:var(--ot-blue-light); border-color:var(--ot-blue); transform:translateY(-1px); }
    .fr-stu .nm { font-size:13px; font-weight:600; color:var(--ot-text); }
    .fr-stu .st { font-size:10px; color:var(--ot-text-third); margin-top:3px; }
    .fr-stu.done { background:#F2FBF7; border-color:var(--ot-green); cursor:default; }
    .fr-stu.done:hover { transform:none; }
    .fr-stu.done .st { color:#12A96E; font-weight:600; }
    .fr-today { margin-top:16px; border-top:1px solid var(--ot-border); padding-top:12px; }
    .fr-today-head { font-size:12px; font-weight:700; color:var(--ot-text-sec); margin-bottom:8px; }
    .fr-today-list { display:flex; flex-direction:column; gap:6px; max-height:180px; overflow-y:auto; }
    .fr-row { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:10px; background:var(--ot-bg); font-size:12px; }
    .fr-row-name { font-weight:600; color:var(--ot-text); min-width:64px; }
    .fr-row-txt { color:#B37B00; flex:1; }
    .fr-row-time { color:var(--ot-text-third); font-variant-numeric:tabular-nums; }
    .fr-undo { font-size:11px; color:#E8833A; background:#FFF3E8; padding:3px 10px; border-radius:999px; cursor:pointer; }
    .fr-undo:hover { background:#FFE6CE; }
    .fr-empty { grid-column:1 / -1; padding:18px; text-align:center; color:var(--ot-text-third); font-size:12px; }

    /* ===== 手机端适配（≤820px） ===== */
    @media (max-width: 820px) {
      .app { height: 100vh; height: 100dvh; }
      /* 顶栏：第一行 品牌+用户，第二行 工具条横向滑动 */
      /* 顶栏整体压成一行横向滑动（一排显示）：品牌/班级/工具/用户徽章全部内联，左右滑动查看 */
      .topbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px 12px; gap: 8px; min-height: 0; scrollbar-width: none; }
      .topbar::-webkit-scrollbar { display: none; }
      .brand { flex: none; min-width: 0; max-width: none; flex-wrap: nowrap; row-gap: 0; }
      .brand > div { flex-shrink: 0; }
      .brand-logo { width: 32px; height: 32px; border-radius: 9px; }
      .brand-name { font-size: 13px; white-space: nowrap; line-height: 1.25; }
      .brand .crumb-sep { display: none; }
      .crumb { font-size: 12px; }
      .topbar-right { gap: 8px; margin-left: 0; flex: none; }
      .user-chip { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      .tool-row { order: 0; flex: none; flex-basis: auto; justify-content: flex-start; gap: 6px; padding-bottom: 0; overflow: visible; }
      .tool-sep { display: none; }
      .capsule { padding: 6px 10px; font-size: 11.5px; }
      .capsule svg { width: 12px; height: 12px; }
      .toggle button { padding: 4px 10px; }
      .cta-pill { padding: 6px 12px; white-space: nowrap; }
      /* 内容网格：更小卡片、2列起步 */
      .content { padding: 12px; }
      .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
      .pet-card { max-width: 200px; min-height: 0; min-width: 0; padding: 8px 6px; }
      .pet-img { width: 96px; height: 96px; }
      .pet-img-wrap { height: 100px; }
      .student-name { font-size: 14px; }
      /* 触控目标加大 */
      .quick-actions { gap: 4px; }
      .quick-actions button { min-height: 32px; font-size: 13px; }
      .side-plus { width: 20px; height: 40px; }
      .badge-change { padding: 4px 10px; }
      /* 弹窗贴合适屏 */
      .modal-mask { padding: 10px; }
      .modal { max-height: 92dvh; border-radius: 14px; }
      .modal.wide { max-width: 100%; }
      .modal.rule-mgr-modal { max-width: 100%; }
      .adopt-main { grid-template-columns: 1fr; }
      .adopt-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); height: auto; max-height: 46dvh; }
      .rm-body { grid-template-columns: 1fr; }
    }

    /* 小屏手机（≤400px）进一步收紧 */
    @media (max-width: 400px) {
      .brand-name { font-size: 13px; }
      .capsule { padding: 5px 8px; font-size: 11px; }
      .grid { grid-template-columns: repeat(2, 1fr); }
      .pet-card { max-width: none; }
    }

/* ===== 加减分指标管理（新版 2026-09-28） ===== */
.rule-manager{font-size:13px;}
.rm-header{padding:2px 2px 10px;}
.rm-title{font-size:15px;font-weight:500;color:var(--ot-text,#1F2D3D);}
.rm-subtitle{font-size:12px;color:var(--ot-text-third,#8AA0B8);margin-top:3px;}
.rm-tabs{display:flex;align-items:center;gap:4px;border-bottom:1px solid var(--ot-line,#E3EDF7);padding:0 0 0 2px;}
.rm-tab{background:none;border:none;border-bottom:2px solid transparent;padding:8px 12px 10px;font-size:13px;color:var(--ot-text-third,#8AA0B8);cursor:pointer;font-family:inherit;}
.rm-tab.active{color:#3D8BFF;border-bottom-color:#3D8BFF;font-weight:500;}
.rm-tabcnt{font-size:11px;color:var(--ot-text-third,#8AA0B8);margin-left:3px;}
.rm-tabs-right{margin-left:auto;display:flex;align-items:center;gap:8px;padding:6px 0;}
.rm-search{height:32px;padding:0 12px;border:1.5px solid var(--ot-line,#E3EDF7);border-radius:999px;font-size:13px;width:160px;outline:none;font-family:inherit;}
.rm-search:focus{border-color:#3D8BFF;}
.rm-class-filter{display:flex;align-items:center;gap:8px;padding:8px 2px 0;font-size:12px;color:var(--ot-text-third,#8AA0B8);}
.rm-class-filter select{height:30px;border:1.5px solid var(--ot-line,#E3EDF7);border-radius:8px;padding:0 8px;font-size:13px;font-family:inherit;}
.rm-chips{display:flex;flex-wrap:wrap;gap:6px;padding:10px 2px 0;}
.rm-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:5px 11px;border-radius:999px;border:1px solid var(--ot-line,#E3EDF7);background:#fff;color:var(--ot-text,#1F2D3D);cursor:pointer;font-family:inherit;}
.rm-chip b{font-weight:500;color:var(--ot-text-third,#8AA0B8);font-size:11px;}
.rm-chip.active{border-color:#3D8BFF;background:#EAF3FF;color:#2B6BDD;}
.rm-chip.active b{color:#2B6BDD;}
.rm-dot{width:8px;height:8px;border-radius:50%;display:inline-block;}
.rm-signfilter{display:flex;gap:4px;padding:8px 2px 0;}
.rm-sf{background:none;border:1px solid var(--ot-line,#E3EDF7);border-radius:8px;font-size:12px;padding:4px 10px;cursor:pointer;color:var(--ot-text-third,#8AA0B8);font-family:inherit;}
.rm-sf.active{background:#F2F8FF;border-color:#3D8BFF;color:#2B6BDD;}
.rm-quickadd{display:flex;gap:8px;padding:12px 2px 0;}
.rm-quickadd input{flex:1;height:36px;border:1.5px solid var(--ot-line,#E3EDF7);border-radius:10px;padding:0 12px;font-size:13px;outline:none;font-family:inherit;}
.rm-quickadd input:focus{border-color:#3D8BFF;}
.rm-quickadd select{height:36px;border:1.5px solid var(--ot-line,#E3EDF7);border-radius:10px;padding:0 8px;font-size:13px;font-family:inherit;}
.rm-add{height:36px;padding:0 18px;border:none;border-radius:10px;background:#3D8BFF;color:#fff;font-size:13px;cursor:pointer;font-family:inherit;white-space:nowrap;}
.rm-list{max-height:46vh;overflow-y:auto;padding:10px 2px 0;}
.rm-gh{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:500;color:var(--ot-text,#1F2D3D);margin:12px 0 6px;}
.rm-gh:first-child{margin-top:0;}
.rm-gh-cnt{font-size:11px;color:var(--ot-text-third,#8AA0B8);font-weight:400;}
.rm-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--ot-line,#E3EDF7);border-radius:10px;margin-bottom:6px;background:#fff;}
.rm-row:hover{background:#F7FAFF;}
.rm-delta{min-width:40px;text-align:center;font-size:12px;font-weight:500;padding:3px 0;border-radius:7px;}
.rm-delta.plus{background:#EAF3DE;color:#3B6D11;}
.rm-delta.minus{background:#FCEBEB;color:#A32D2D;}
.rm-name{flex:1;font-size:13px;color:var(--ot-text,#1F2D3D);}
.rm-cat-tag{font-size:11px;white-space:nowrap;}
.rm-row-act{display:flex;gap:4px;opacity:0;transition:opacity .12s;}
.rm-row:hover .rm-row-act{opacity:1;}
.rm-row-act button{background:none;border:1px solid var(--ot-line,#E3EDF7);border-radius:7px;font-size:11px;padding:3px 8px;cursor:pointer;color:var(--ot-text,#1F2D3D);font-family:inherit;white-space:nowrap;}
.rm-row-act button.danger{color:#D8504A;}
.rm-row-act button:disabled{opacity:.4;cursor:not-allowed;}
.rm-lock{margin-left:auto;font-size:11px;color:var(--ot-text-third,#8AA0B8);display:flex;align-items:center;gap:5px;}
.rm-empty{padding:30px 0;text-align:center;color:var(--ot-text-third,#8AA0B8);font-size:13px;}
.rm-form{background:#F7FAFF;border:1px solid var(--ot-line,#E3EDF7);border-radius:12px;padding:12px;margin:12px 2px 0;display:none;}
.rm-form.active{display:block;}
.rm-form input,.rm-form select{height:34px;border:1.5px solid var(--ot-line,#E3EDF7);border-radius:8px;padding:0 10px;font-size:13px;margin-right:8px;font-family:inherit;}
.rm-form input#ruleFormText{width:240px;}
.rm-form-actions{margin-top:10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.rm-unified-box{font-size:12px;color:var(--ot-text,#1F2D3D);display:flex;align-items:center;gap:5px;cursor:pointer;}
.rm-stats{display:flex;gap:10px;padding:14px 2px 0;}
.rm-stat{flex:1;text-align:center;background:#F4F8FD;border-radius:12px;padding:10px;}
.rm-stat .num{font-size:20px;font-weight:500;color:var(--ot-text,#1F2D3D);}
.rm-stat .num.plus{color:#3B6D11;}
.rm-stat .num.minus{color:#A32D2D;}
.rm-stat .label{display:block;font-size:11px;color:var(--ot-text-third,#8AA0B8);margin-top:2px;}

/* ===== 弹窗尺寸固定：筛选/切换时窗口大小一致、不跳动（2026-09-29） ===== */
/* ===== 弹窗放大 + 无内部滚动条（2026-09-28 改） ===== */
.modal.rule-mgr-modal{ max-width: 1680px; width: 96vw; max-height: none; }
.rule-mgr-modal .modal-body{ display:block; height:auto; overflow:visible; max-height:none; padding:20px; }
.rule-mgr-modal .rule-manager{ display:block; }
.rule-mgr-modal .rm-list{ overflow:visible; max-height:none; flex:none; }
.rule-mgr-modal .rm-stats{ flex:none; }
.rule-mgr-modal .rm-row{ padding:7px 10px; }
.rule-mgr-modal .rm-gh{ margin:9px 0 5px; }
/* 整窗超高时在遮罩内滚动（非列表内部），保持顶部/底部可触达 */
.rm-mask-scroll{ align-items: flex-start; overflow-y: auto; padding-top:28px; padding-bottom:28px; }
.rm-mask-scroll .modal.rule-mgr-modal{ margin: 0 auto; }

/* ===== 五育板块横排（含「其它」，随弹窗宽度自适应列数；2026-09-30 加宽） ===== */
.rm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;padding-top:14px;align-items:start;}
.rm-col{border:1px solid var(--ot-line,#E3EDF7);border-top:3px solid #ccc;border-radius:12px;padding:10px 10px 6px;background:#fff;min-width:0;}
.rm-col-full{max-width:820px;}
.rm-col-h{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;margin-bottom:8px;min-width:0;}
.rm-col-t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rm-col .rm-row{position:relative;padding:6px 8px;margin-bottom:4px;border-radius:8px;gap:7px;}
.rm-col .rm-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:4px;}
.rm-col .rm-row-act{position:absolute;right:5px;top:50%;transform:translateY(-50%);background:linear-gradient(90deg,rgba(247,250,255,0),#F7FAFF 26%);padding-left:16px;border-radius:8px;}
.rm-col .rm-row-act button{padding:2px 6px;font-size:12px;}
.rm-col .rm-lock{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;}

/* ===== 行内原地编辑态（2026-09-28 23:16） ===== */
.rm-row.rm-editing{display:block;background:#F2F8FF;border-color:#3D8BFF;}
.rm-editing .rm-einput{width:100%;height:30px;border:1.5px solid #BFD9FF;border-radius:8px;padding:0 8px;font-size:13px;font-family:inherit;outline:none;box-sizing:border-box;background:#fff;color:var(--ot-text,#1F2D3D);}
.rm-editing .rm-einput:focus{border-color:#3D8BFF;}
.rm-ebar{display:flex;gap:6px;margin-top:6px;align-items:center;}
.rm-ebar .rm-edelta{width:60px;flex:none;}
.rm-ebar select.rm-einput{flex:1;min-width:0;}
.rm-ebar .btn{height:28px;padding:0 14px;font-size:12px;flex:none;}
.rm-ebar .rm-unified-box{font-size:12px;white-space:nowrap;cursor:pointer;}

/* ===== 列标题「＋」直接新增（2026-09-28 23:20） ===== */
.rm-col-add{margin-left:auto;width:20px;height:20px;flex:none;border:1px dashed currentColor;border-radius:6px;background:transparent;color:inherit;font-size:14px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0;opacity:.5;transition:all .15s;font-family:inherit;}
.rm-col-add:hover{opacity:1;border-style:solid;background:rgba(61,139,255,.08);}
.rm-row.rm-newrow{border:1.5px dashed #BFD9FF;background:#F7FAFF;}

/* ===== 打分弹窗：五育分组布局（2026-09-28 23:34） ===== */
.sm-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;align-items:start;}
.sm-grid .rm-col{padding:10px 10px 6px;}
.sm-sub{font-size:11px;color:var(--ot-text-third,#8A97A8);margin:2px 0 4px;}
.rule-item.sm-row{display:flex;align-items:center;gap:7px;justify-content:flex-start;background:#F7FAFF;border:1px solid var(--ot-border,#E7EEF7);border-radius:8px;padding:6px 8px;margin-bottom:4px;font-size:13px;color:var(--ot-text,#1F2D3D);transform:none;box-shadow:none;}
.rule-item.sm-row:hover{background:#EFF6FF;border-color:#BFD9FF;transform:none;box-shadow:none;}
.rule-item.sm-row .sm-delta{flex:none;font-size:11px;font-weight:700;border-radius:6px;padding:1px 6px;}
.rule-item.sm-row.plus .sm-delta{background:rgba(62,207,142,.14);color:var(--ot-green);}
.rule-item.sm-row.minus .sm-delta{background:rgba(255,123,168,.14);color:var(--ot-pink);}
.rule-item.sm-row .sm-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media (max-width:900px){ .sm-grid{grid-template-columns:repeat(2,1fr);} }

/* 批量操作 · 学生网格（2026-10-15）：学号+名字小方框，横向铺满、整屏放得下 */
.modal.batch-modal { max-width: 1500px; width: 96vw; }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; border: 1px solid var(--ot-border); border-radius: 10px; padding: 10px; margin-bottom: 16px; }
.batch-chip { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px; cursor: pointer; background: var(--ot-bg); border: 1px solid transparent; transition: background .15s, border-color .15s; min-width: 0; }
.batch-chip:hover { background: var(--ot-blue-light); border-color: var(--ot-blue); }
.batch-chip.selected { background: rgba(224,69,62,0.07); border-color: #e0453e; }
.batch-chip.selected .bc-no { color: #e0453e; }
.batch-chip .bc-no { font-size: 11px; font-weight: 700; color: var(--ot-blue); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.batch-chip .bc-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 批量操作五列规则：1500px 宽度下文字单行显示（同快速操作弹窗） */
.batch-modal .rule-item.sm-row .sm-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 620px) { .batch-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 5px; } }

/* 2026-10-15 快速操作弹窗加宽 + 规则名换行完整显示 */
.modal.quick-modal{ max-width:1500px; width:96vw; }
.quick-modal .sm-name{ white-space:normal; overflow:visible; text-overflow:clip; }
.quick-modal .sm-grid{ grid-template-columns:repeat(5,1fr); }

/* ===== 手机端打分弹窗修复 phone-score-modal-fix（2026-10-15） ===== */
/* rule-mgr-modal 全局 max-height:none + body overflow:visible 导致手机端弹窗撑出屏幕且无法滚动 */
@media (max-width:900px){
  .modal.rule-mgr-modal{ max-height: 92dvh; }
  .rule-mgr-modal .modal-body{ overflow-y:auto; }
}
@media (max-width:620px){
  /* 手机竖屏五列放不下：单列堆叠，规则文字换行完整显示 */
  .rule-mgr-modal .sm-grid{ grid-template-columns:1fr; }
  .rule-mgr-modal .rule-item.sm-row .sm-name{ white-space:normal; overflow:visible; text-overflow:clip; }
}

/* ===== 手机端规则名完整显示（批量操作/快速操作弹窗，2026-10-15） ===== */
/* ≤900px 下两个弹窗统一 2 列五育分组，规则名允许换行，不再省略号截断 */
@media (max-width:900px){
  .batch-modal .rule-item.sm-row .sm-name,
  .quick-modal .rule-item.sm-row .sm-name { white-space: normal; overflow: visible; text-overflow: clip; }
  .batch-modal .sm-grid,
  .quick-modal .sm-grid { grid-template-columns: 1fr; }
}

/* ===== 20261118 brand logo full (菱乐芸科技): override square logo ===== */
.brand-logo { width:auto !important; height:30px !important; background:none !important; box-shadow:none !important; border-radius:0 !important; }
.brand-logo img { width:auto !important; height:100% !important; object-fit:contain !important; background:transparent !important; border-radius:0 !important; }
.brand .brand-name { display:none !important; }
@media(max-width:1500px){ .brand-logo { height:26px !important; } }
@media(max-width:900px){ .brand-logo { height:22px !important; } }
