/* ==========================================================================
   像素童趣 UI Kit —— 学员管理系统
   暖色基底 + 8-bit 街机词汇
   色板：珊瑚橙 #FF6B3D · 阳光黄 #FFC93C · 草地绿 #3FB87A
        天空蓝 #3D9BE9 · 浆果粉 #F2688F · 墨棕 #2B2118
   ========================================================================== */

:root {
    /* ---- 设计规范色板 ---- */
    --coral: #FF6B3D;
    --coral-dark: #E85526;
    --coral-soft: #FFF0EA;
    --sun: #FFC93C;
    --sun-soft: #FFF6DF;
    --grass: #3FB87A;
    --grass-soft: #E7F7EF;
    --sky: #3D9BE9;
    --sky-soft: #E8F3FD;
    --berry: #F2688F;
    --berry-soft: #FDECF1;
    --ink: #2B2118;
    --ink-2: #6B5B4C;
    --ink-3: #A2917F;
    --side: #241C14;
    --bg: #FDF6EE;
    --bg-2: #F7EBDE;
    --card: #FFFFFF;
    --line: #F1E5D8;
    --danger: #E5484D;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 6px 20px rgba(43, 33, 24, .06);
    --shadow-lg: 0 18px 44px rgba(43, 33, 24, .14);

    /* ---- 兼容旧变量名 ---- */
    --brand: var(--coral);
    --brand-dark: var(--coral-dark);
    --text: var(--ink);
    --muted: var(--ink-3);
    --border: var(--line);
    --green: var(--grass);
    --red: var(--danger);
    --blue: var(--sky);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; color: var(--ink); }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(255, 107, 61, .22); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #E7D6C5; border-radius: 999px;
    border: 3px solid transparent; background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #D8C2AC; background-clip: content-box; }

/* ==========================================================================
   应用外壳
   ========================================================================== */
.layout { min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 236px; z-index: 30;
    background: var(--side);
    padding: 18px 14px 16px;
    display: flex; flex-direction: column;
    overflow-y: auto; overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); background-clip: content-box; }

.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 20px; }
.brand-logo {
    width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--coral), var(--sun));
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
    gap: 3px; padding: 9px;
    box-shadow: 0 6px 16px rgba(255, 107, 61, .32);
}
.brand-logo i { display: block; background: rgba(255, 255, 255, .95); border-radius: 2px; }
.brand-logo i:nth-child(2) { opacity: .45; }
.brand-logo i:nth-child(3) { opacity: .7; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.brand-text span { color: rgba(255, 255, 255, .4); font-size: 11.5px; }

.side-nav { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.menu-item {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 11px 12px; margin: 0;
    border: 0; border-radius: 12px; background: none;
    font-family: inherit; font-size: 14px; font-weight: 500;
    color: rgba(255, 255, 255, .72);
    cursor: pointer; text-align: left;
    transition: background .15s, color .15s;
}
.menu-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.menu-item.active { background: rgba(255, 107, 61, .16); color: var(--coral); font-weight: 600; }
.menu-icon { width: 20px; height: 20px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.menu-icon svg { width: 20px; height: 20px; display: block; }
.menu-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.side-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.energy-card { background: rgba(255, 107, 61, .14); border-radius: 16px; padding: 14px; margin-bottom: 8px; }
.energy-label { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .5); }
.energy-num {
    display: block; font-size: 23px; font-weight: 800; color: var(--coral);
    line-height: 1.35; letter-spacing: -.3px; font-variant-numeric: tabular-nums;
}
.energy-num i { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 2px; }
.energy-card .progress { background: rgba(255, 255, 255, .14); margin-top: 8px; height: 6px; }
.energy-card .progress > i { background: linear-gradient(90deg, var(--coral), var(--sun)); }
.energy-tip { display: block; margin-top: 8px; font-size: 11px; color: rgba(255, 255, 255, .38); line-height: 1.5; }

/* ---------- 顶栏 ---------- */
.main { margin-left: 236px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    position: sticky; top: 0; z-index: 20;
    height: 68px; padding: 0 28px;
    display: flex; align-items: center; justify-content: flex-end; gap: 14px;
    background: rgba(253, 246, 238, .88);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(241, 229, 216, .9);
}
.brand { display: none; }
.top-right { display: flex; align-items: center; gap: 12px; }
.user-name { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.points-pill {
    background: var(--sun-soft); color: #A5751A;
    border: 1px solid #FBE6B0; border-radius: 999px;
    padding: 5px 14px; font-size: 12.5px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.icon-btn {
    width: 38px; height: 38px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-2);
    cursor: pointer; padding: 0;
    font-family: inherit; font-size: 20px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--coral-soft); color: var(--coral); border-color: #FFD9C9; }
.icon-btn svg { width: 20px; height: 20px; }
.avatar-wrap { position: relative; }
.avatar-btn {
    width: 40px; height: 40px; border: 0; border-radius: 13px; cursor: pointer;
    background: linear-gradient(135deg, var(--sun), var(--coral));
    color: #fff; font-family: inherit; font-size: 15px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(255, 107, 61, .28);
}
.dropdown {
    position: absolute; right: 0; top: 50px; min-width: 190px; z-index: 40;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 6px; box-shadow: var(--shadow-lg);
}
.dropdown .dd-head { padding: 10px 12px 9px; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.dropdown .dd-name { font-weight: 700; font-size: 14px; }
.dropdown .dd-role { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.dropdown button {
    width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
    padding: 9px 12px; border-radius: 10px; font-family: inherit;
    font-size: 13.5px; color: var(--ink);
}
.dropdown button:hover { background: var(--coral-soft); color: var(--coral); }

.content { padding: 22px 28px 48px; width: 100%; max-width: 1320px; }

/* ---------- 页头 ---------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.page-head .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ==========================================================================
   通用组件
   ========================================================================== */
.card {
    background: var(--card); border: 1px solid rgba(241, 229, 216, .75);
    border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; letter-spacing: -.2px; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > * { flex: 1 1 150px; }
.empty { text-align: center; color: var(--ink-3); padding: 34px 0; font-size: 13px; }
.tip { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.tip.success { color: #2C8C5B; }
.plus { color: #2C8C5B; font-weight: 700; }
.minus { color: #D2385F; font-weight: 700; }
.price { color: var(--coral); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 12px; padding: 11px 20px;
    font-family: inherit; font-size: 14px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--coral), #FF8A4C);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(255, 107, 61, .25);
    transition: transform .12s, box-shadow .12s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(255, 107, 61, .3); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.small { padding: 7px 13px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn.full { width: 100%; }
.btn.ghost {
    background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
.btn.ghost:hover { background: var(--coral-soft); color: var(--coral); border-color: #FFD9C9; }
.link {
    background: none; border: 0; color: var(--ink-2); cursor: pointer;
    font-family: inherit; font-size: 13px; padding: 3px 7px; border-radius: 8px;
}
.link:hover { background: var(--coral-soft); color: var(--coral); }
.link.danger { color: #D2385F; }
.link.danger:hover { background: var(--berry-soft); color: #C22C52; }

/* ---------- 表单 ---------- */
input, textarea, select {
    width: 100%; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: 12px;
    font-size: 14px; font-family: inherit; outline: none;
    background: #fff; color: var(--ink); margin-top: 4px;
    transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #C4B5A6; }
input:focus, textarea:focus, select:focus {
    border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 107, 61, .12);
}
textarea { resize: vertical; }
label { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; margin: 0; }
input[type="file"] { padding: 9px; background: #FDF8F2; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--coral); }
select {
    appearance: none; padding-right: 34px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A2917F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; background-size: 16px;
}

/* ---------- 标签 ---------- */
.tag {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    background: #F4EBE1; color: var(--ink-2);
}
.tag.green { background: var(--grass-soft); color: #2C8C5B; }
.tag.red { background: var(--berry-soft); color: #D2385F; }
.tag.blue { background: var(--sky-soft); color: #2A78BE; }
.tag.gray { background: #F4EBE1; color: var(--ink-3); }

/* ---------- 列表 ---------- */
.list-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 0;
    border-bottom: 1px dashed var(--line); flex-wrap: wrap;
}
.list-item:last-child { border-bottom: 0; }
.item-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- 进度条 ---------- */
.progress { height: 8px; background: #F3E7DA; border-radius: 999px; overflow: hidden; margin-top: 10px; }
.progress > i {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--coral), var(--sun));
    transition: width .3s;
}

/* ---------- 表格 ---------- */
.search-row { display: flex; gap: 10px; margin-bottom: 14px; }
.search-row input { margin-top: 0; border-radius: 999px; padding-left: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 13.5px; }
th, td { padding: 12px 14px; text-align: left; white-space: nowrap; }
th { color: var(--ink-3); font-weight: 600; font-size: 12.5px; letter-spacing: .3px; padding-top: 0; padding-bottom: 4px; }
tbody tr { background: #FDF8F3; transition: background .15s; }
tbody tr:hover { background: var(--coral-soft); }
tbody td { border-top: 1px solid rgba(241, 229, 216, .8); border-bottom: 1px solid rgba(241, 229, 216, .8); }
tbody td:first-child { border-left: 1px solid rgba(241, 229, 216, .8); border-radius: 14px 0 0 14px; }
tbody td:last-child { border-right: 1px solid rgba(241, 229, 216, .8); border-radius: 0 14px 14px 0; }
td.ops { white-space: nowrap; }

/* ---------- 弹窗 ---------- */
.modal-mask {
    position: fixed; inset: 0; z-index: 99; padding: 20px;
    background: rgba(36, 28, 20, .52);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
}
.modal {
    background: #fff; border-radius: 22px; width: 100%; max-width: 460px;
    max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.modal.wide { max-width: 760px; }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--line);
    font-weight: 700; font-size: 16px;
}
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-body label:first-child { margin-top: 0; }
.modal-foot {
    padding: 14px 22px; border-top: 1px solid var(--line);
    display: flex; justify-content: flex-end; gap: 10px;
    background: #FAF6F0;
}
.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

/* ---------- 上课凭证弹窗 ---------- */
.classroom-modal .modal-body { padding: 22px 24px; }
.cm-row { margin-bottom: 18px; }
.cm-row:last-child { margin-bottom: 0; }
.cm-label {
    font-size: 12.5px; color: var(--ink-2); opacity: .85;
    margin-bottom: 8px; font-weight: 600; letter-spacing: .3px;
}
.cm-value {
    font-size: 22px; font-weight: 700; color: var(--ink);
    letter-spacing: 1.5px;
}
.cm-highlight {
    background: linear-gradient(118deg, #EFF6FF, #DBEAFE);
    border: 1px solid #BFDBFE; border-radius: 14px;
    padding: 14px 16px;
}
.cm-password-row {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.cm-password {
    flex: 1 1 auto; min-width: 0;
    font-size: 30px; font-weight: 800; color: #1D4ED8;
    letter-spacing: 6px;
    background: #fff;
    padding: 14px 18px; border-radius: 12px;
    border: 1px dashed #93C5FD;
    text-align: center;
    box-shadow: inset 0 0 0 2px rgba(147, 197, 253, .25);
}
.cm-copy { flex: 0 0 auto; white-space: nowrap; }
.cm-tip {
    margin-top: 18px; padding: 14px 16px;
    background: #FEF3C7; border-radius: 12px;
    border: 1px solid #FDE68A;
}
.cm-tip-title { font-size: 13px; font-weight: 700; color: #92400E; margin-bottom: 6px; }
.cm-tip ol {
    margin: 0; padding-left: 22px;
    font-size: 13px; color: #78350F; line-height: 1.85;
}
.cm-tip ol strong { color: #1D4ED8; font-family: 'JetBrains Mono', Menlo, Consolas, monospace; }
.cm-warning {
    margin-top: 14px; padding: 10px 14px;
    background: #FEF2F2; border-left: 3px solid #EF4444;
    border-radius: 8px;
    font-size: 12.5px; color: #991B1B; line-height: 1.6;
}
.cm-note {
    margin-top: 14px; padding: 10px 14px;
    background: #ECFDF5; border-left: 3px solid #10B981;
    border-radius: 8px;
    font-size: 13px; color: #065F46; line-height: 1.6;
}

/* ---------- 通用表格 ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl {
    width: 100%; border-collapse: collapse;
    font-size: 13px;
}
.tbl th, .tbl td {
    padding: 10px 12px; text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.tbl th {
    font-weight: 600; color: var(--ink-2);
    background: #FAF6F0; font-size: 12.5px;
    white-space: nowrap;
}
.tbl tr:hover td { background: #FDFAF5; }
.tbl .mono { font-size: 12.5px; }
.pwd-cell {
    background: #EFF6FF; color: #1D4ED8;
    padding: 3px 8px; border-radius: 6px;
    font-weight: 600; font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
}
.stat-pill {
    background: #FAF6F0; border-radius: 999px;
    padding: 6px 14px; font-size: 13px; color: var(--ink-2);
    border: 1px solid var(--line);
}
.stat-pill b { color: var(--ink); font-size: 15px; margin: 0 3px; }

/* ---------- 会议室配置卡片 ---------- */
.cc-grid { display: flex; flex-direction: column; gap: 12px; }
.cc-row {
    padding: 12px 14px; border-radius: 12px;
    background: #FAF6F0; border: 1px solid var(--line);
}
.cc-row.cc-highlight {
    background: linear-gradient(118deg, #EFF6FF, #DBEAFE);
    border-color: #BFDBFE;
}
.cc-label {
    font-size: 12px; color: var(--ink-2); opacity: .85;
    margin-bottom: 6px; font-weight: 600;
}
.cc-value { font-size: 18px; font-weight: 700; color: var(--ink); }
.cc-password {
    font-size: 22px; color: #1D4ED8;
    letter-spacing: 4px;
}

/* ---------- 提示条 ---------- */
.toast {
    position: fixed; left: 50%; top: 22px; transform: translateX(-50%);
    background: var(--ink); color: #fff; padding: 11px 22px;
    border-radius: 14px; font-size: 13.5px; font-weight: 500;
    z-index: 200; box-shadow: 0 10px 26px rgba(43, 33, 24, .28);
}
.toast.success { background: var(--grass); }
.toast.error { background: var(--danger); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
    border: 1px solid var(--line); background: #fff; border-radius: 999px;
    padding: 8px 18px; font-size: 13.5px; font-weight: 600; font-family: inherit;
    cursor: pointer; color: var(--ink-2);
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.tabs button:hover { border-color: #FFD9C9; color: var(--coral); }
.tabs button.active {
    background: var(--coral); border-color: var(--coral); color: #fff;
    box-shadow: 0 6px 14px rgba(255, 107, 61, .25);
}

/* ==========================================================================
   业务组件
   ========================================================================== */

/* ---------- Hero 卡（橙色渐变 + 像素角色） ---------- */
.hero-card {
    position: relative; overflow: hidden;
    background: linear-gradient(118deg, #FF8340 0%, #FF6B3D 42%, #FFC93C 128%);
    color: #fff; border-radius: 22px;
    padding: 26px 148px 26px 28px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    box-shadow: 0 14px 34px rgba(255, 107, 61, .28);
}
.hero-card::after {
    content: ''; position: absolute; right: 30px; bottom: 0;
    width: 92px; height: 92px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45' shape-rendering='crispEdges'%3E%3Crect x='12' y='3' width='21' height='6' fill='%23FF6B3D'/%3E%3Crect x='6' y='9' width='33' height='3' fill='%23E85526'/%3E%3Crect x='12' y='12' width='21' height='15' fill='%23FFC93C'/%3E%3Crect x='15' y='15' width='4' height='6' fill='%232B2118'/%3E%3Crect x='26' y='15' width='4' height='6' fill='%232B2118'/%3E%3Crect x='12' y='27' width='21' height='9' fill='%233D9BE9'/%3E%3Crect x='6' y='27' width='6' height='6' fill='%23FFC93C'/%3E%3Crect x='33' y='27' width='6' height='6' fill='%23FFC93C'/%3E%3Crect x='15' y='36' width='6' height='6' fill='%232B2118'/%3E%3Crect x='24' y='36' width='6' height='6' fill='%232B2118'/%3E%3Crect x='12' y='42' width='9' height='3' fill='%23FF6B3D'/%3E%3Crect x='24' y='42' width='9' height='3' fill='%23FF6B3D'/%3E%3C/svg%3E");
    background-size: contain; background-repeat: no-repeat;
    opacity: .95; pointer-events: none;
}
.hero-left { position: relative; z-index: 1; min-width: 0; }
.hero-points { position: relative; z-index: 1; text-align: right; flex: 0 0 auto; }
.hello { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.hero-sub { font-size: 13.5px; opacity: .92; margin-top: 6px; }
.points-num { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.points-label { font-size: 12.5px; opacity: .9; margin-top: 4px; }
.hero-card .btn { background: #fff; color: var(--coral); box-shadow: 0 8px 18px rgba(120, 50, 10, .16); margin-top: 16px; }
.hero-card .btn:hover { background: #FFF6F1; }
.hero-card .btn.ghost { background: rgba(255, 255, 255, .2); color: #fff; border: 0; }
.hero-card .progress { background: rgba(255, 255, 255, .28); max-width: 420px; }
.hero-card .progress > i { background: #fff; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .22);
    border-radius: 999px; padding: 4px 13px;
    font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.hero-stats div { font-size: 12.5px; opacity: .92; }
.hero-stats b { display: block; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 学员上课（腾讯会议）大卡片 ---------- */
.classroom-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 18px;
    background: linear-gradient(118deg, #2563EB 0%, #3B82F6 50%, #60A5FA 128%);
    color: #fff; border-radius: 22px;
    padding: 22px 24px; margin-bottom: 18px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .28);
    transition: transform .12s, box-shadow .12s;
    -webkit-user-select: none; user-select: none;
}
.classroom-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(37, 99, 235, .34); }
.classroom-card:active { transform: translateY(0); }
.classroom-card.disabled { opacity: .72; cursor: progress; }
.classroom-card::before {
    content: ''; position: absolute; right: -46px; top: -46px;
    width: 170px; height: 170px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%);
    pointer-events: none;
}
.classroom-art {
    flex: 0 0 auto;
    width: 64px; height: 64px; border-radius: 18px;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
    position: relative; z-index: 1;
}
.classroom-art svg { width: 38px; height: 38px; display: block; }
.classroom-info { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.classroom-title { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.classroom-sub { font-size: 13px; opacity: .92; margin-top: 4px; }
.classroom-meta { font-size: 12px; opacity: .82; margin-top: 6px; }
.classroom-meta.muted { opacity: .72; }
.classroom-cta {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 999px;
    background: #fff; color: #2563EB; font-weight: 700; font-size: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    transition: transform .12s;
    position: relative; z-index: 1;
}
.classroom-card:hover .classroom-cta { transform: translateX(2px); }
.cta-arrow { font-size: 20px; line-height: 1; margin-top: -3px; font-weight: 600; }

/* 表格里的头像方块 */
.row-avatar {
    width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 13px;
    background: linear-gradient(135deg, #FFD24A, #FF6B3D);
    margin-right: 9px; vertical-align: middle;
}
.cell-user { display: flex; align-items: center; }
tbody tr:nth-child(5n+1) .row-avatar { background: linear-gradient(135deg, #FFD24A, #FF6B3D); }
tbody tr:nth-child(5n+2) .row-avatar { background: linear-gradient(135deg, #5ECB96, #3FB87A); }
tbody tr:nth-child(5n+3) .row-avatar { background: linear-gradient(135deg, #5FB0F0, #3D9BE9); }
tbody tr:nth-child(5n+4) .row-avatar { background: linear-gradient(135deg, #F58BA9, #F2688F); }
tbody tr:nth-child(5n+5) .row-avatar { background: linear-gradient(135deg, #C9A06A, #8A6B45); }

/* ---------- 快捷入口 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.quick-item {
    background: #fff; border: 1px solid rgba(241, 229, 216, .75);
    border-radius: var(--radius); padding: 18px 10px; text-align: center;
    cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink);
    box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s;
}
.quick-item:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(43, 33, 24, .1); }
.quick-icon { font-size: 26px; line-height: 1; margin-bottom: 9px; }

/* ---------- 统计卡 ---------- */
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid rgba(241, 229, 216, .75);
    border-radius: var(--radius); padding: 20px 20px 20px 24px;
    box-shadow: var(--shadow);
}
.stat-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: var(--coral); border-radius: 0 4px 4px 0;
}
.stat-card:nth-child(4n+2)::before { background: var(--sky); }
.stat-card:nth-child(4n+3)::before { background: var(--grass); }
.stat-card:nth-child(4n+4)::before { background: var(--sun); }
.stat-num {
    font-size: 30px; font-weight: 800; color: var(--ink);
    line-height: 1.15; letter-spacing: -.6px; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

/* ---------- 视频 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.video-card {
    background: #fff; border: 1px solid rgba(241, 229, 216, .75);
    border-radius: var(--radius); overflow: hidden; cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(43, 33, 24, .12); }
.video-thumb {
    height: 122px; color: #fff; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #FF8340, #FFC93C);
}
.video-grid .video-card:nth-child(4n+2) .video-thumb { background: linear-gradient(135deg, #4FA8EE, #3D9BE9); }
.video-grid .video-card:nth-child(4n+3) .video-thumb { background: linear-gradient(135deg, #4AC78A, #3FB87A); }
.video-grid .video-card:nth-child(4n+4) .video-thumb { background: linear-gradient(135deg, #F583A6, #F2688F); }
.video-info { padding: 14px; }
.video-player { width: 100%; max-height: 70vh; background: var(--side); border-radius: 16px; }

/* ---------- 作业 ---------- */
.hw-content { margin: 10px 0; padding: 13px 15px; background: #FDF8F2; border-radius: 14px; font-size: 13.5px; }
.grade-box { margin-top: 10px; padding: 13px 15px; background: var(--grass-soft); border-radius: 14px; font-size: 13.5px; color: #2C8C5B; }
.submit-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sub-item { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.sub-item:last-child { border-bottom: 0; }
.sub-content { margin-top: 8px; font-size: 13.5px; background: #FDF8F2; padding: 11px 13px; border-radius: 12px; }

/* ---------- 积分商城 ---------- */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.goods-card {
    background: #fff; border: 1px solid rgba(241, 229, 216, .75);
    border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
    transition: transform .12s, box-shadow .12s;
}
.goods-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(43, 33, 24, .1); }
.goods-img { width: 100%; height: 128px; object-fit: cover; border-radius: 14px; background: var(--bg-2); }
.goods-img.placeholder {
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-3); font-size: 13px;
}
.deliver { margin-top: 10px; padding: 10px 12px; background: var(--sky-soft); border-radius: 12px; font-size: 13px; color: #2A78BE; }

/* ---------- 连通性测试结果 ---------- */
.test-result {
    margin-top: 14px; padding: 14px; border-radius: 14px;
    background: #FDF8F2; border: 1px solid var(--line);
}
.test-result.ok { background: var(--grass-soft); border-color: #C6EBD8; }
.test-result.bad { background: var(--berry-soft); border-color: #F8CFDC; }
.test-head { font-weight: 700; margin-bottom: 8px; }
.test-step { font-size: 13px; line-height: 1.9; word-break: break-all; }

/* ---------- 登录 ---------- */
.login-wrap {
    min-height: 100vh; padding: 24px; position: relative;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(1100px 560px at 12% -12%, #FFE2CE 0%, rgba(255, 226, 206, 0) 62%),
        radial-gradient(900px 520px at 102% 104%, #FFF1CB 0%, rgba(255, 241, 203, 0) 58%),
        var(--bg);
}
.login-card {
    position: relative; overflow: hidden;
    background: #fff; border-radius: 24px; padding: 36px 32px 30px;
    width: 100%; max-width: 408px; box-shadow: var(--shadow-lg);
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--coral), var(--sun), var(--grass), var(--sky));
}
.login-title { font-size: 24px; font-weight: 800; text-align: center; letter-spacing: -.4px; }
.login-sub { text-align: center; color: var(--ink-3); font-size: 13px; margin: 8px 0 20px; }
.login-tip { margin-top: 18px; font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.8; }

/* ---------- 问卷表单（管理端编辑器 / 分享） ---------- */
.check-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; }
.check-line input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }
.cover-preview { max-width: 240px; max-height: 160px; border-radius: 14px; border: 1px solid var(--line); }
.q-edit {
    border: 1px solid var(--line); border-radius: 16px;
    padding: 14px 16px; margin-bottom: 12px; background: #FDF8F2;
}
.q-edit .item-title { margin-bottom: 6px; }
.q-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qr-box { margin-top: 14px; display: flex; justify-content: center; }
.qr-box img, .qr-box canvas { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }
.detail-img { max-width: 200px; max-height: 200px; border-radius: 14px; border: 1px solid var(--line); }

/* ==========================================================================
   移动端
   ========================================================================== */
@media (max-width: 900px) {
    .sidebar {
        top: auto; bottom: 0; left: 0; right: 0;
        width: 100%; height: 68px; padding: 6px 8px;
        flex-direction: row; align-items: center;
        overflow-x: auto; overflow-y: hidden;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .side-brand, .side-foot { display: none; }
    .side-nav { flex-direction: row; flex: 1 1 auto; gap: 2px; }
    .menu-item {
        flex: 0 0 auto; flex-direction: column; gap: 3px;
        padding: 6px 13px; font-size: 10.5px; font-weight: 500; border-radius: 12px;
    }
    .menu-icon, .menu-icon svg { width: 20px; height: 20px; }
    .main { margin-left: 0; }
    .topbar { height: 60px; padding: 0 14px; }
    .content { padding: 16px 14px 94px; max-width: 100%; }
    .user-name { display: none; }
    .page-head { margin-bottom: 14px; }
    .page-head h2 { font-size: 20px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-row { gap: 12px; }
    .stat-num { font-size: 25px; }
    .hero-card { padding: 20px 118px 20px 20px; border-radius: 18px; }
    .hero-card::after { width: 74px; height: 74px; right: 18px; }
    .hello { font-size: 19px; }
    .hero-sub { font-size: 12.5px; }
    .points-num { font-size: 26px; }
    .card { padding: 16px; border-radius: 16px; }
    .modal { border-radius: 18px; }
    .modal-head { padding: 15px 18px; }
    .modal-body { padding: 16px 18px; }
}

@media (max-width: 520px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: 1fr; }
    .search-row { flex-wrap: wrap; }
    .hero-card { padding: 18px 18px 18px; }
    .hero-card::after { display: none; }
}

/* ==========================================================================
   宠物伴侣
   常驻右下角的像素宠物：点击随机做动作或跑到屏幕任意位置
   动画沿用《宠物动效规范》：8 FPS 质感、steps() 逐帧硬切、CSS 驱动
   ========================================================================== */

.pet-home {
    position: fixed; z-index: 60; cursor: pointer;
    display: flex; flex-direction: column; align-items: center;
    -webkit-user-select: none; user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: left 1.1s linear, top 1.1s linear;
}
.pet-home .pet-stage {
    position: relative; display: flex; align-items: flex-end; justify-content: center;
    transition: width .45s ease, height .45s ease;
}
.pet-home .pet-anim {
    position: relative; width: 100%; height: 100%;
    display: flex; align-items: flex-end; justify-content: center;
    transform-origin: 50% 100%; will-change: transform;
}
.pet-home .pet-body, .pet-home .pet-fx {
    display: flex; align-items: flex-end; justify-content: center;
}
.pet-home svg {
    width: 100%; height: 100%; display: block;
    image-rendering: pixelated; shape-rendering: crispEdges;
}
.pet-home .pet-fx {
    position: absolute; left: 50%; top: 50%;
    width: 124%; height: 124%; opacity: 0; pointer-events: none;
    transform: translate(-50%, -50%);
}

/* SVG 尺寸链：确保 viewBox 图形按容器等比缩放，不会撑成默认大小 */
.pet-home .pet-body { width: 100%; height: 100%; }
.pet-home svg { max-width: 100%; max-height: 100%; }

/* ① 待机呼吸：四帧循环，上下起伏 + 轻微压扁（8FPS 硬切质感） */
.pet-home .act-idle { animation: petIdle 1.4s steps(1) infinite; }
@keyframes petIdle {
    0%   { transform: translateY(0) scaleY(1) scaleX(1); }
    25%  { transform: translateY(-3px) scaleY(1.04) scaleX(.98); }
    50%  { transform: translateY(0) scaleY(1) scaleX(1); }
    75%  { transform: translateY(5px) scaleY(.94) scaleX(1.05); }
    100% { transform: translateY(0) scaleY(1) scaleX(1); }
}

/* ② 跑动：左右摇摆 + 大步弹跳 */
.pet-home .act-run { animation: petRun .44s steps(1) infinite; }
@keyframes petRun {
    0%   { transform: translateY(0) rotate(-7deg); }
    25%  { transform: translateY(-10px) rotate(7deg); }
    50%  { transform: translateY(0) rotate(-7deg); }
    75%  { transform: translateY(-10px) rotate(7deg); }
    100% { transform: translateY(0) rotate(-7deg); }
}

/* ③ 庆祝：下蹲蓄力 → 高高跳起 → 落地压扁 → 回弹 */
.pet-home .act-celebrate { animation: petJump 1.5s steps(1) 1; }
@keyframes petJump {
    0%   { transform: translateY(0) scaleY(1) scaleX(1); }
    8%   { transform: translateY(8px) scaleY(.82) scaleX(1.14); }
    20%  { transform: translateY(-30px) scaleY(1.1) scaleX(.9); }
    40%  { transform: translateY(-32px) scaleY(1.06) scaleX(.95); }
    52%  { transform: translateY(0) scaleY(.84) scaleX(1.12); }
    64%  { transform: translateY(-12px) scaleY(1.05) scaleX(.97); }
    78%  { transform: translateY(0) scaleY(.95) scaleX(1.04); }
    90%  { transform: translateY(-4px) scaleY(1.02) scaleX(.99); }
    100% { transform: translateY(0) scaleY(1) scaleX(1); }
}
.pet-home .act-celebrate .pet-fx { animation: petStars 1.5s steps(1) 1; }
@keyframes petStars {
    0%, 16% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
    26%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    58%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    68%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2); }
}

/* ④ 技能：缩身聚气 → 抖动 → 起跳爆发 → 落地 */
.pet-home .act-skill { animation: petCharge 2.4s steps(1) 1; }
@keyframes petCharge {
    0%   { transform: scale(1) translateX(0); }
    12%  { transform: scale(.84) translateX(0); }
    18%  { transform: scale(.84) translateX(-5px); }
    24%  { transform: scale(.84) translateX(5px); }
    30%  { transform: scale(.84) translateX(-4px); }
    36%  { transform: scale(.84) translateX(4px); }
    46%  { transform: scale(1.08) translateX(0); }
    58%  { transform: scale(1) translateX(0); }
    70%  { transform: scale(1.04) translateY(-8px); }
    82%  { transform: scale(1) translateY(0); }
    100% { transform: scale(1) translateX(0); }
}
.pet-home .act-skill .pet-fx { animation: petBurst 2.4s steps(12) 1; }
@keyframes petBurst {
    0%, 24% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
    30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
    55%  { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
    72%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* ⑤ 小跳：待机时自娱自乐 */
.pet-home .act-hop { animation: petHop .7s steps(1) 1; }
@keyframes petHop {
    0%   { transform: translateY(0) scaleY(1) scaleX(1); }
    18%  { transform: translateY(6px) scaleY(.86) scaleX(1.1); }
    38%  { transform: translateY(-20px) scaleY(1.09) scaleX(.93); }
    60%  { transform: translateY(0) scaleY(.88) scaleX(1.08); }
    78%  { transform: translateY(-7px) scaleY(1.04) scaleX(.98); }
    100% { transform: translateY(0) scaleY(1) scaleX(1); }
}

/* ⑥ 摇头摆尾 */
.pet-home .act-wiggle { animation: petWiggle .8s steps(1) 1; }
@keyframes petWiggle {
    0%   { transform: translateX(0) rotate(0deg); }
    16%  { transform: translateX(-7px) rotate(-9deg); }
    36%  { transform: translateX(7px) rotate(9deg); }
    56%  { transform: translateX(-5px) rotate(-6deg); }
    76%  { transform: translateX(4px) rotate(5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

/* ⑦ 伸懒腰 */
.pet-home .act-stretch { animation: petStretch .9s steps(1) 1; }
@keyframes petStretch {
    0%   { transform: scale(1, 1) translateY(0); }
    25%  { transform: scale(1.14, .86) translateY(4px); }
    50%  { transform: scale(.92, 1.1) translateY(-7px); }
    75%  { transform: scale(1.05, .97) translateY(1px); }
    100% { transform: scale(1, 1) translateY(0); }
}

/* 气泡台词 */
.pet-bubble {
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%); white-space: nowrap;
    background: rgba(43, 33, 24, .93); color: #fff;
    font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 12px;
    box-shadow: 0 6px 16px rgba(43, 33, 24, .24);
    animation: petBubbleIn .18s ease-out;
}
.pet-bubble::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: rgba(43, 33, 24, .93);
}
@keyframes petBubbleIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pet-level {
    margin-top: 5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
    background: #fff; border: 1px solid var(--line);
    font-size: 11px; font-weight: 700; color: var(--ink-2);
    box-shadow: 0 4px 10px rgba(43, 33, 24, .08);
}
.pet-level.is-max {
    background: linear-gradient(135deg, var(--sun), var(--coral));
    color: #fff; border-color: transparent;
}

/* 领养 / 更换弹窗 */
.pet-modal { max-width: 640px; }
.pet-picker {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    gap: 12px; margin-top: 4px;
}
.pet-pick {
    border: 1.5px solid var(--line); border-radius: 16px; background: #fff;
    padding: 10px 8px; text-align: center; cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.pet-pick:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(43, 33, 24, .1); }
.pet-pick.active {
    border-color: var(--coral); background: var(--coral-soft);
    box-shadow: 0 0 0 3px rgba(255, 107, 61, .14);
}
.pet-pick-art {
    height: 78px; border-radius: 12px; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
}
.pet-pick-art svg {
    width: 64px; height: 64px;
    image-rendering: pixelated; shape-rendering: crispEdges;
}
.pet-pick-art svg { transform-origin: 50% 100%; }
.pet-pick:hover .pet-pick-art svg { animation: petHop .7s steps(1) infinite; }
.pet-pick-name { font-size: 13px; font-weight: 700; margin-top: 8px; }
.pet-pick-tag { font-size: 11px; margin-top: 2px; }
.full-center { text-align: center; }

/* 后台：种类分布与学员选择 */
.pet-stat-row {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 12px; margin-top: 12px;
}
.pet-stat {
    display: flex; align-items: center; gap: 10px;
    background: #FDF8F2; border: 1px solid var(--line);
    border-radius: 14px; padding: 10px 12px;
}
.user-pick {
    margin: 8px 0 16px; max-height: 200px; overflow-y: auto;
    border: 1px solid var(--line); border-radius: 12px;
}
.user-pick-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px; cursor: pointer; font-size: 13.5px;
    border-bottom: 1px solid var(--line);
}
.user-pick-item:last-child { border-bottom: 0; }
.user-pick-item:hover { background: #FDF8F2; }
.user-pick-item.active { background: var(--coral-soft); }
.user-pick-text { flex: 1; min-width: 0; }
.link.danger { color: var(--danger); }

/* 列表 / 后台里的小宠物图标 */
.pet-mini {
    width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
    display: inline-flex; align-items: flex-end; justify-content: center;
    overflow: hidden; padding-bottom: 2px;
}
.pet-mini.lg { width: 56px; height: 56px; border-radius: 14px; }
.pet-mini svg {
    width: 100%; height: 100%;
    image-rendering: pixelated; shape-rendering: crispEdges;
}

/* 学员端：我的宠物卡 */
.pet-card {
    background: linear-gradient(135deg, #FFF1DF, #FFE3CF);
    border: 1px solid #FBDCBF; border-radius: var(--radius);
    padding: 18px 20px; display: flex; align-items: center; gap: 16px;
}
.pet-card .pet-card-art {
    width: 62px; height: 62px; flex: 0 0 auto; border-radius: 16px;
    background: rgba(255, 255, 255, .7);
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
}
.pet-card .pet-card-art svg {
    width: 50px; height: 50px;
    image-rendering: pixelated; shape-rendering: crispEdges;
    transform-origin: 50% 100%;
    animation: petIdle 1.4s steps(1) infinite;
}
.pet-card .pet-card-info { flex: 1; min-width: 0; }
.pet-card .pet-card-title { font-size: 16px; font-weight: 700; }
.pet-card .pet-card-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.pet-card .pet-card-ops { flex: 0 0 auto; display: flex; gap: 8px; }

@media (max-width: 520px) {
    .pet-picker { grid-template-columns: repeat(2, 1fr); }
    .pet-card { flex-wrap: wrap; }
    .pet-card .pet-card-ops { width: 100%; }
}
