/* ============================================================
   校培宝 - 教务管理系统
   设计系统：UI UX Pro Max — 教育青绿色主题
   ============================================================ */

/* ==================== 设计变量 ==================== */
:root {
    /* 主色调 - 教育青绿色 */
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #F0FDFA;
    --primary-border: #5EEAD4;
    /* 辅助色 */
    --secondary: #2DD4BF;
    --accent: #D97706;
    --accent-dark: #B45309;
    /* 中性色 */
    --background: #F8FAFC;
    --foreground: #0F172A;
    --card: #FFFFFF;
    --surface: #FFFFFF;
    --card-foreground: #0F172A;
    --muted: #E8F1F4;
    --muted-foreground: #475569;
    --border: #E2E8F0;
    --border-light: #F1F5F9; 
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    /* 状态色 */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #DC2626;
    --info: #0EA5E9;
    /* 交互 */
    --ring: #0D9488;
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    /* 间距 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    /* 圆角 */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    /* 字体 */
    --font-xs: 12px;
    --font-sm: 13px;
    --font-base: 14px;
    --font-md: 15px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 20px;
    --font-3xl: 24px;
    --font-4xl: 28px;
    /* Z-index */
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-modal-backdrop: 30;
    --z-modal: 50;
    --z-toast: 100;
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: var(--background);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: var(--font-base);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.15s ease;
}
a:hover { color: var(--primary-dark); }

input, select, textarea {
    font-family: inherit;
    font-size: var(--font-md);
}

/* ==================== 登录页 ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    background: linear-gradient(160deg, #0D9488 0%, #0F766E 40%, #134E4A 100%);
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.12);
    pointer-events: none;
}
.login-page::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.08);
    pointer-events: none;
}

.login-box {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-8);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.2);
}

.logo-icon {
    font-size: 48px;
    margin-bottom: var(--space-3);
    display: inline-block;
}

.login-box h1 {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--space-1);
    letter-spacing: -0.02em;
}

.login-box .subtitle {
    color: var(--muted-foreground);
    font-size: var(--font-base);
    margin-bottom: var(--space-8);
}

.error-msg {
    background: #FEF2F2;
    color: var(--danger);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    margin-bottom: var(--space-4);
    text-align: left;
    border: 1px solid #FECACA;
}

.login-box .form-group {
    text-align: left;
    margin-bottom: var(--space-4);
}

.login-box .form-group label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 6px;
}

.login-box .form-group input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    background: var(--card);
    color: var(--foreground);
}
.login-box .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.login-box .form-group input::placeholder {
    color: #94A3B8;
}

.login-btn {
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-lg);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    margin-top: var(--space-2);
    letter-spacing: 0.02em;
}
.login-btn:hover {
    background: var(--primary-dark);
}
.login-btn:active {
    transform: scale(0.98);
}
.login-btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* 机构选择 */
.org-select-item {
    display: flex;
    flex-direction: column;
    padding: var(--space-4) var(--space-5);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    background: var(--card);
}
.org-select-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow);
}
.org-select-item:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}
.org-select-item .org-name {
    font-weight: 600;
    font-size: var(--font-md);
    color: var(--foreground);
}
.org-select-item .org-role {
    font-size: var(--font-sm);
    color: var(--muted-foreground);
    margin-top: 2px;
}
.org-select-item.org-expired {
    cursor: not-allowed;
    opacity: 0.65;
    background: #f3f4f6;
    border-color: var(--border);
}
.org-select-item.org-expired:hover {
    border-color: var(--border);
    background: #f3f4f6;
    box-shadow: none;
}
.org-select-item.org-expired .org-name {
    color: var(--muted-foreground);
}
.org-expired-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: #EF4444;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: middle;
}

/* ==================== 页面头部 ==================== */
.page-header {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    gap: var(--space-3);
    backdrop-filter: blur(8px);
}

.page-header h1 {
    flex: 1;
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.01em;
    line-height: 1.3;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    min-width: 0;
    flex-shrink: 0;
    margin-left: auto;
}

.back-arrow {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--foreground);
    background: transparent;
    transition: background 0.15s ease, transform 0.1s ease;
    cursor: pointer;
}
.back-arrow:hover {
    background: var(--muted);
}
.back-arrow:active {
    transform: scale(0.95);
}
.back-arrow svg {
    width: 18px;
    height: 18px;
}

.org-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--primary-border);
}

.org-switcher {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    background: var(--card);
    outline: none;
    color: var(--foreground);
    cursor: pointer;
    transition: border-color 0.15s ease;
}
.org-switcher:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.logout-btn {
    color: var(--muted-foreground);
    font-size: var(--font-sm);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    cursor: pointer;
    background: transparent;
}
.logout-btn:hover {
    background: #FEF2F2;
    color: var(--danger);
    border-color: #FECACA;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-base);
    font-weight: 600;
}

/* ==================== 容器 ==================== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-4);
    padding-bottom: 80px;
}
.container.wide {
    max-width: 800px;
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-4);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-light);
}
.card-header h2 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}

.info-card {
    background: var(--primary-light);
    border-color: var(--primary-border);
}
.info-card h2 {
    font-size: var(--font-md);
    color: var(--primary-dark);
}
.info-text {
    font-size: var(--font-sm);
    color: var(--primary-dark);
    margin-top: var(--space-1);
    padding: var(--space-3) var(--space-4);
    background: var(--primary-light);
    border-radius: var(--radius);
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.stats-grid.two-col { grid-template-columns: 1fr 1fr; }
.stats-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.stats-grid.four-col { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 600px) {
    .stats-grid.four-col { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-light);
    cursor: default;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-card[style*="cursor:pointer"]:hover {
    border-color: var(--primary-border);
}

.stat-number {
    font-size: var(--font-3xl);
    color: var(--foreground);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.stat-desc {
    font-size: var(--font-xs);
    color: var(--muted-foreground);
    margin-top: var(--space-1);
    font-weight: 500;
}

.text-green { color: var(--success); }
.text-orange { color: var(--warning); }
.text-red { color: var(--danger); }
.text-blue { color: var(--info); }
.text-gray { color: var(--muted-foreground); }

/* ==================== 快捷入口 ==================== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease;
    padding: var(--space-2);
    border-radius: var(--radius);
}
.quick-item:hover {
    transform: translateY(-2px);
}
.quick-item:active {
    transform: scale(0.96);
}

.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: box-shadow 0.15s ease;
}
.quick-item:hover .quick-icon {
    box-shadow: var(--shadow);
}

.quick-item span {
    font-size: var(--font-xs);
    color: var(--muted-foreground);
    font-weight: 500;
}

/* ==================== 欢迎卡片（家长端） ==================== */
.welcome-card {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 60%, #134E4A 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-6);
    color: white;
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
    position: relative;
    overflow: hidden;
}
.welcome-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.welcome-greeting {
    font-size: var(--font-sm);
    opacity: 0.85;
    font-weight: 500;
}
.welcome-child {
    font-size: 22px;
    font-weight: 700;
    margin: var(--space-1) 0;
    letter-spacing: -0.01em;
}
.welcome-course {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-top: var(--space-2);
}
.welcome-meta {
    font-size: var(--font-sm);
    opacity: 0.85;
    margin-top: var(--space-1);
}

/* ==================== 生日祝福动画 (Premium) ==================== */
.bday-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #1a1035 0%, #2d1b69 40%, #4a1d8a 100%);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: var(--space-4);
    overflow: hidden;
    animation: bday-fadeInUp .7s cubic-bezier(.23,1,.32,1) both;
    box-shadow: 0 8px 32px rgba(74, 29, 138, .25);
}
.bday-banner-today {
    background: linear-gradient(135deg, #4a0e2e 0%, #8b1a5c 40%, #c2185b 100%);
    box-shadow: 0 8px 40px rgba(194, 24, 91, .35);
}
@keyframes bday-fadeInUp {
    0% { opacity: 0; transform: translateY(20px) scale(.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 浮动粒子背景 */
.bday-particles {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.bday-dot {
    position: absolute;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    animation: bday-float linear infinite;
}
.bday-d1  { left:5%;  top:80%; width:3px;height:3px; animation-duration:6s; animation-delay:0s; }
.bday-d2  { left:15%; top:90%; width:5px;height:5px; animation-duration:8s; animation-delay:.5s; background:rgba(251,191,36,.5); }
.bday-d3  { left:25%; top:85%; animation-duration:7s; animation-delay:1s; }
.bday-d4  { left:35%; top:95%; width:6px;height:6px; animation-duration:9s; animation-delay:.3s; background:rgba(244,114,182,.4); }
.bday-d5  { left:45%; top:88%; animation-duration:6.5s; animation-delay:.8s; }
.bday-d6  { left:55%; top:92%; width:3px;height:3px; animation-duration:7.5s; animation-delay:1.2s; background:rgba(251,191,36,.4); }
.bday-d7  { left:65%; top:82%; animation-duration:8.5s; animation-delay:.2s; }
.bday-d8  { left:75%; top:90%; width:5px;height:5px; animation-duration:6s; animation-delay:.7s; background:rgba(244,114,182,.5); }
.bday-d9  { left:85%; top:86%; animation-duration:7s; animation-delay:1.5s; }
.bday-d10 { left:92%; top:94%; width:4px;height:4px; animation-duration:9s; animation-delay:.4s; background:rgba(251,191,36,.3); }
.bday-d11 { left:10%; top:70%; width:3px;height:3px; animation-duration:10s; animation-delay:2s; }
.bday-d12 { left:80%; top:75%; width:4px;height:4px; animation-duration:8s; animation-delay:1.8s; background:rgba(244,114,182,.35); }
@keyframes bday-float {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-220px) rotate(360deg); opacity: 0; }
}

/* 蛋糕图标区域 */
.bday-icon-wrap {
    position: relative;
    width: 72px; height: 72px;
    flex: none;
    display: flex; align-items: center; justify-content: center;
}
.bday-glow {
    position: absolute;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251,191,36,.35) 0%, transparent 70%);
    animation: bday-glowPulse 2.5s ease-in-out infinite;
}
@keyframes bday-glowPulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50% { transform: scale(1.25); opacity: 1; }
}
.bday-cake-icon {
    width: 56px; height: 56px;
    position: relative; z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(251,191,36,.4));
    animation: bday-cakeFloat 3s ease-in-out infinite;
}
@keyframes bday-cakeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.bday-flame {
    transform-origin: center bottom;
    animation: bday-flameFlicker .5s ease-in-out infinite alternate;
}
.bday-flame2 { animation-delay: .15s; }
.bday-flame3 { animation-delay: .3s; }
@keyframes bday-flameFlicker {
    0%   { transform: scaleY(1) scaleX(1); opacity: .9; }
    100% { transform: scaleY(1.3) scaleX(.85); opacity: 1; }
}

/* 文字内容 */
.bday-content {
    flex: 1; min-width: 0;
    position: relative; z-index: 1;
}
.bday-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(251,191,36,.9);
    background: rgba(251,191,36,.12);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.bday-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
    text-shadow: 0 1px 8px rgba(0,0,0,.15);
}
.bday-detail {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    letter-spacing: .3px;
}

/* 闪烁星星装饰 */
.bday-sparkles {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.bday-sparkle {
    position: absolute;
    width: 12px; height: 12px;
    color: rgba(251,191,36,.6);
    animation: bday-sparklePop 2.5s ease-in-out infinite;
}
.bday-s1 { top: 12%; right: 10%; width: 10px; height: 10px; animation-delay: 0s; }
.bday-s2 { top: 55%; right: 5%; width: 8px; height: 8px; animation-delay: .8s; color: rgba(244,114,182,.5); }
.bday-s3 { top: 20%; right: 25%; width: 6px; height: 6px; animation-delay: 1.6s; color: rgba(255,255,255,.4); }
@keyframes bday-sparklePop {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
}

/* ==================== 列表容器 ==================== */
.list-container {}

.list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    gap: var(--space-3);
    transition: background 0.1s ease;
}
.list-item:last-child {
    border-bottom: none;
}
.list-item:hover {
    background: var(--background);
}

.performance-card-wrapper {
    padding: var(--space-4);
}
.performance-card-wrapper .performance-item {
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-3);
    padding: var(--space-4);
}
.performance-card-wrapper .performance-item:last-child {
    margin-bottom: 0;
}
.performance-card-wrapper .performance-item:hover {
    box-shadow: var(--shadow);
}

.list-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-item-title {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.4;
}

.list-item-sub {
    font-size: var(--font-sm);
    color: var(--muted-foreground);
    line-height: 1.5;
}

.list-item-time {
    font-size: var(--font-xs);
    color: #94A3B8;
    line-height: 1.4;
}

.list-item-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    margin-top: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 未读通知 */
.notif-item.unread {
    background: var(--primary-light);
}
.notif-icon-badge {
    font-size: var(--font-2xl);
    flex-shrink: 0;
}

/* 任务展开 */
.task-expand {
    display: none;
    padding: 0 var(--space-4) var(--space-4);
    background: var(--background);
}

.ai-suggestion {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-sm);
    color: #92400E;
    margin: var(--space-3) 0;
}

.task-actions {
    display: flex;
    gap: var(--space-2);
}

/* ==================== 标签 & 徽章 ==================== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.6;
}

.tag-green {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}
.tag-red {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
.tag-orange {
    background: #FFF7ED;
    color: #9A3412;
    border: 1px solid #FED7AA;
}
.tag-blue {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}
.tag-gray {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
}
.badge-green {
    background: #ECFDF5;
    color: #065F46;
}
.badge-blue {
    background: #EFF6FF;
    color: #1E40AF;
}

/* ==================== 余额 ==================== */
.balance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}
.balance-item:last-child {
    border-bottom: none;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.balance-name {
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--foreground);
}
.balance-detail {
    font-size: var(--font-xs);
    color: var(--muted-foreground);
}

.balance-remaining {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--success);
    letter-spacing: -0.02em;
}
.balance-remaining .unit {
    font-size: var(--font-xs);
    font-weight: 400;
    color: var(--muted-foreground);
    margin-left: 2px;
}
.balance-remaining.low {
    color: var(--danger);
}

/* ==================== 点名 ==================== */
.attendance-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
}

.attendance-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
    transition: all 0.2s ease;
    background: var(--card);
}
.attendance-card.present {
    border-color: var(--success);
    background: #F0FDF4;
}
.attendance-card.absent {
    border-color: var(--danger);
    background: #FEF2F2;
}
.attendance-card.leave {
    border-color: var(--warning);
    background: #FFFBEB;
}

.att-name {
    font-size: var(--font-md);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-2);
    color: var(--foreground);
}

.att-buttons {
    display: flex;
    gap: var(--space-2);
}

.att-btn {
    flex: 1;
    padding: var(--space-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    background: var(--card);
    transition: all 0.15s ease;
    color: var(--muted-foreground);
    min-height: 44px;
}
.att-btn:hover {
    border-color: var(--muted-foreground);
}
.att-btn.present.active {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.att-btn.absent.active {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.att-btn.leave.active {
    background: var(--warning);
    color: white;
    border-color: var(--warning);
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: var(--space-4);
}
.form-group label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-md);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--card);
    color: var(--foreground);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94A3B8;
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.form-hint {
    font-size: var(--font-xs);
    color: var(--muted-foreground);
    margin-top: var(--space-1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-base);
    font-weight: 400;
    padding: var(--space-1) 0;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* ==================== 按钮系统 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    gap: var(--space-1);
    min-height: 36px;
}
.btn:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 主要按钮 */
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}
.btn-primary:active {
    transform: scale(0.97);
}

/* 次要按钮 */
.btn-secondary {
    background: var(--muted);
    color: var(--foreground);
}
.btn-secondary:hover {
    background: #D5E3E8;
}

/* 灰色按钮 */
.btn-gray {
    background: #F1F5F9;
    color: var(--muted-foreground);
}
.btn-gray:hover {
    background: #E2E8F0;
    color: var(--foreground);
}

/* 轮廓按钮 */
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
}

/* 文本按钮 */
.btn-text {
    background: transparent;
    color: var(--primary);
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-sm);
    min-height: auto;
}
.btn-text:hover {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}
.btn-text.text-danger,
.btn-text.text-red {
    color: var(--danger);
}
.btn-text.text-danger:hover,
.btn-text.text-red:hover {
    background: #FEF2F2;
    color: #B91C1C;
}

/* 危险按钮 */
.btn-danger {
    background: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FECACA;
}
.btn-danger:hover {
    background: #FEE2E2;
}

/* 尺寸 */
.btn-sm {
    padding: 5px 12px;
    font-size: var(--font-sm);
    min-height: 32px;
}
.btn-block {
    width: 100%;
    padding: 14px;
    font-size: var(--font-lg);
    min-height: 48px;
}

/* ==================== 弹窗 ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
    padding: var(--space-5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.2s ease-out;
    border: 1px solid var(--border-light);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-light);
}
.modal-header h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--foreground);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted-foreground);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.modal-close:hover {
    background: var(--muted);
    color: var(--foreground);
}

.modal-body {
    padding: var(--space-5);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-light);
    background: var(--background);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.modal-content.modal-lg {
    max-width: 560px;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    color: var(--muted-foreground);
}
.empty-icon {
    font-size: 40px;
    margin-bottom: var(--space-3);
    display: block;
    opacity: 0.7;
}
.empty-state p {
    font-size: var(--font-base);
    color: var(--muted-foreground);
}

.empty-state-sm {
    padding: var(--space-6) var(--space-4);
    text-align: center;
    color: var(--muted-foreground);
    font-size: var(--font-base);
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    z-index: var(--z-sticky);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    cursor: pointer;
    transition: color 0.15s ease;
    color: var(--muted-foreground);
    border-radius: var(--radius);
    min-width: 56px;
    min-height: 44px;
    justify-content: center;
}
.nav-item:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: var(--font-2xl);
}
.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-lg);
    font-size: var(--font-md);
    z-index: var(--z-toast);
    display: none;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    max-width: 280px;
    text-align: center;
}
.toast.show {
    display: block;
    animation: toastFadeIn 0.25s ease;
}
.toast.success {
    background: rgba(16, 185, 129, 0.95);
}
.toast.error {
    background: rgba(220, 38, 38, 0.95);
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==================== 搜索选择组件 ==================== */
.search-results {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-md);
    display: none;
}
.search-results:not(:empty) {
    display: block;
}

.search-item {
    padding: 10px 14px;
    font-size: var(--font-base);
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s ease;
    color: var(--foreground);
}
.search-item:last-child {
    border-bottom: none;
}
.search-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.search-item.selected {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
}
.search-empty {
    padding: var(--space-3);
    color: var(--muted-foreground);
    font-size: var(--font-base);
    text-align: center;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
    margin-top: 6px;
    border: 1px solid var(--primary-border);
}
.selected-tag a {
    cursor: pointer;
    color: var(--danger);
    font-weight: 700;
    margin-left: 4px;
}

.selected-students {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

/* ==================== 订单总价 ==================== */
.total-display {
    padding: var(--space-4);
    background: var(--primary-light);
    border-radius: var(--radius);
    text-align: center;
    margin-top: var(--space-4);
    border: 1px solid var(--primary-border);
}
.total-display strong {
    font-size: var(--font-2xl);
    color: var(--primary-dark);
    font-weight: 800;
}

/* ==================== Profile ==================== */
.profile-card {
    text-align: center;
    padding: var(--space-6);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-3xl);
    font-weight: 700;
    margin: 0 auto var(--space-3);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.profile-role {
    color: var(--muted-foreground);
    font-size: var(--font-base);
    margin-top: var(--space-1);
}
.profile-org {
    color: var(--muted-foreground);
    font-size: var(--font-sm);
    margin-top: 2px;
}

/* ==================== Schedule status ==================== */
.schedule-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-size: var(--font-xs);
    font-weight: 500;
}
.schedule-status.scheduled {
    background: #EFF6FF;
    color: #1E40AF;
}
.schedule-status.completed {
    background: #ECFDF5;
    color: #065F46;
}
.schedule-status.cancelled {
    background: #FEF2F2;
    color: #991B1B;
}

/* ==================== 表单行 ==================== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.form-row > .form-group {
    flex: 1;
    min-width: 180px;
}
.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}
.form-row.two-col .form-group {
    margin-bottom: 0;
}

/* Radio & Checkbox inline */
.radio-inline,
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: var(--space-3);
    cursor: pointer;
    font-size: var(--font-sm);
    line-height: 1.4;
    padding: 6px 10px;
    background: var(--muted);
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}
.radio-inline:hover,
.checkbox-inline:hover {
    background: #D5E3E8;
}
.radio-inline input,
.checkbox-inline input {
    margin: 0;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* ==================== Alert Banners ==================== */
.alert-banner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    font-size: var(--font-sm);
    line-height: 1.5;
}
.alert-banner-icon {
    font-size: var(--font-2xl);
    flex-shrink: 0;
}
.alert-banner-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.alert-banner-content strong {
    font-size: var(--font-base);
}

.alert-warning {
    background: #FFFBEB;
    border-left: 4px solid var(--warning);
    color: #92400E;
}
.alert-info {
    background: #F0F9FF;
    border-left: 4px solid var(--info);
    color: #075985;
}
.alert-danger {
    background: #FEF2F2;
    border-left: 4px solid var(--danger);
    color: #991B1B;
}

/* ==================== 经营待办 ==================== */
.todo-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-3) var(--space-4) 6px;
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--muted-foreground);
    border-top: 1px solid var(--border-light);
}
.todo-section-header:first-child {
    border-top: none;
    padding-top: var(--space-1);
}
.todo-section-icon {
    font-size: var(--font-md);
}

.todo-item {
    padding: var(--space-3) var(--space-4);
}
.todo-item-top {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}
.todo-item-time {
    font-size: var(--font-xs);
    color: var(--muted-foreground);
    font-weight: 500;
}

/* ==================== 学员排课详情弹窗 ==================== */
.schedule-filter-bar {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
}
.schedule-filter-bar .btn-sm {
    padding: 4px 12px;
    font-size: var(--font-xs);
}

.schedule-list {
    max-height: 360px;
    overflow-y: auto;
}
.schedule-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
}
.schedule-item:last-child {
    border-bottom: none;
}
.schedule-item input[type="checkbox"] {
    margin: 0;
}
.schedule-item-main {
    flex: 1;
}
.schedule-item-title {
    font-weight: 600;
    font-size: var(--font-base);
    color: var(--foreground);
}
.schedule-item-sub {
    font-size: var(--font-xs);
    color: var(--muted-foreground);
    margin-top: 2px;
}

/* ==================== 班级管理 ==================== */
.class-info-row {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}
.class-info-item {
    flex: 1;
    min-width: 140px;
    background: var(--background);
    padding: 10px 12px;
    border-radius: var(--radius);
}
.class-info-label {
    font-size: var(--font-xs);
    color: var(--muted-foreground);
    margin-bottom: 2px;
}
.class-info-value {
    font-weight: 600;
    font-size: var(--font-base);
    color: var(--foreground);
}

/* ==================== 列表项内样式 ==================== */
.list-item-main strong {
    font-weight: 600;
}
.list-item-main .text-green {
    color: var(--success);
    font-weight: 700;
}
.list-item-main .text-red {
    color: var(--danger);
    font-weight: 600;
    font-size: var(--font-xs);
}

/* ==================== 读取状态 ==================== */
.read-status {
    font-weight: 600;
    color: #94A3B8;
}
.notif-item.unread .read-status {
    color: var(--primary-dark);
}

/* ==================== 最小高度 ==================== */
#students-list-container .list-container,
#leaves-list-container .list-container,
#orders-list-container .list-container {
    min-height: 120px;
}

/* ==================== Leave item ==================== */
.leave-item {
    cursor: default;
}

/* ==================== Hint text ==================== */
.hint-text {
    font-size: var(--font-xs);
    color: var(--muted-foreground);
    margin-top: var(--space-1);
}

/* ==================== 响应式布局 ==================== */

/* 移动端优化 */
@media (max-width: 480px) {
    .container {
        padding: var(--space-3);
        padding-bottom: 80px;
    }
    .page-header {
        padding: var(--space-3) var(--space-4);
    }
    .page-header h1 {
        font-size: var(--font-lg);
    }
    .stat-number {
        font-size: var(--font-2xl);
    }
    .quick-grid {
        gap: var(--space-2);
        padding: var(--space-3);
    }
    .quick-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .quick-item span {
        font-size: 11px;
    }
    .list-item {
        padding: var(--space-3);
    }
    .list-item-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }
    .modal-body {
        padding: var(--space-4);
    }
    .modal-footer {
        padding: var(--space-3) var(--space-4);
    }
    .form-row.two-col {
        grid-template-columns: 1fr;
    }
    .stats-grid.three-col {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2);
    }
    .stat-card {
        padding: var(--space-3);
    }
}

/* 平板适配 */
@media (min-width: 768px) {
    .container {
        max-width: 640px;
    }
    .container.wide {
        max-width: 960px;
    }
}

/* 桌面适配 */
@media (min-width: 1024px) {
    .container {
        max-width: 720px;
    }
    .container.wide {
        max-width: 1080px;
    }
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ==================== 焦点可见性 (无障碍) ==================== */
*:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* ==================== 禁用状态 ==================== */
[disabled],
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==================== 过渡动画 ==================== */
.card,
.stat-card,
.btn,
.tag,
.list-item,
.quick-item {
    transition: all 0.15s ease;
}

/* ==================== 打印优化 ==================== */
@media print {
    .page-header,
    .bottom-nav,
    .btn,
    .modal-overlay {
        display: none !important;
    }
    .container {
        padding: 0;
        max-width: 100%;
    }
}


/* ==================== SVG 图标系统 ==================== */
.svg-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    flex-shrink: 0;
}
.svg-icon-sm {
    width: 16px;
    height: 16px;
}
.svg-icon-lg {
    width: 48px;
    height: 48px;
}
.logo-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
}
.quick-icon .svg-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-dark);
}
.page-header h1 .svg-icon {
    width: 22px;
    height: 22px;
    margin-right: 4px;
    color: var(--primary);
}
.empty-icon .svg-icon {
    width: 40px;
    height: 40px;
    color: var(--muted-foreground);
    opacity: 0.5;
}
.todo-section-icon .svg-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}
.alert-banner-icon .svg-icon {
    width: 20px;
    height: 20px;
}
.notif-icon-badge .svg-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}
.notif-main {
    flex: 1;
    min-width: 0;
}
.notif-content-preview {
    cursor: pointer;
}
.notif-content-full {
    white-space: pre-wrap;
    line-height: 1.6;
    padding: 8px 0;
    color: var(--foreground);
}
.notif-actions {
    flex-shrink: 0;
}
.notif-item .action-dropdown {
    margin-left: 8px;
}
.welcome-meta .svg-icon {
    width: 14px;
    height: 14px;
}

/* ==================== 自定义下拉框 ==================== */
.org-dropdown {
    position: relative;
    display: inline-block;
}
.org-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--card);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--foreground);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.org-dropdown-trigger:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.org-dropdown.open .org-dropdown-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.org-dropdown-trigger .svg-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.org-dropdown.open .org-dropdown-trigger .svg-icon {
    transform: rotate(180deg);
}
.org-dropdown-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.org-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    overflow: hidden;
}
.org-dropdown.open .org-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.org-dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}
.org-dropdown-item:last-child {
    border-bottom: none;
}
.org-dropdown-item:hover {
    background: var(--primary-light);
}
.org-dropdown-item.active {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}
.org-dropdown-item-name {
    display: block;
    font-weight: 600;
    font-size: var(--font-sm);
    color: var(--foreground);
}
.org-dropdown-item-detail {
    display: block;
    font-size: var(--font-xs);
    color: var(--muted-foreground);
    margin-top: 2px;
}

/* ==================== 通知Badge ==================== */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    animation: pulse-badge 2s ease-in-out infinite;
    border: 2px solid var(--card);
}
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==================== Tab 切换 ==================== */
.tab-buttons {
    display: flex;
    gap: 0;
    background: var(--muted);
    border-radius: var(--radius);
    padding: 3px;
}
.tab-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tab-btn:hover {
    color: var(--foreground);
}
.tab-btn.active {
    background: var(--card);
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tab-panel {
    animation: fadeIn 0.3s ease;
}

/* ==================== 日历视图 ==================== */
.view-toggle-bar {
    display: flex;
    gap: 0;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--muted);
}
.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--muted-foreground);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.view-toggle-btn:hover {
    color: var(--foreground);
    background: rgba(255,255,255,0.5);
}
.view-toggle-btn.active {
    background: var(--card);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow);
}
.view-toggle-btn .svg-icon {
    width: 16px;
    height: 16px;
}
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.calendar-week-label {
    font-weight: 600;
    font-size: var(--font-md);
    color: var(--foreground);
}
.week-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 12px;
    min-height: 420px;
    height: calc(100vh - 280px);
}
.week-calendar-day {
    background: var(--card);
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.week-calendar-day.today {
    background: var(--primary-light);
}
.week-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-light);
    background: var(--muted);
}
.week-calendar-day.today .week-day-header {
    background: rgba(13, 148, 136, 0.08);
}
.week-day-name {
    font-size: 11px;
    color: var(--muted-foreground);
    font-weight: 500;
}
.week-day-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.2;
}
.week-day-num.today-num {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.week-day-courses {
    flex: 1;
    padding: 4px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cal-course-card {
    padding: 4px 6px;
    border-radius: var(--radius-xs);
    font-size: 10px;
    line-height: 1.3;
    border-left: 3px solid var(--primary);
    background: rgba(13, 148, 136, 0.06);
}
.cal-course-card.cal-type-makeup {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.06);
}
.cal-course-card.cal-type-trial {
    border-left-color: var(--info);
    background: rgba(14, 165, 233, 0.06);
}
.cal-course-time {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 9px;
}
.cal-course-name {
    font-weight: 600;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-course-class {
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-course-teacher {
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-leave-stamp {
    position: absolute;
    right: 4px;
    top: 4px;
    background: var(--warning);
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: var(--radius-xs);
    transform: rotate(-8deg);
    opacity: 0.95;
    pointer-events: none;
}
.cal-complete-stamp {
    position: absolute;
    right: 4px;
    top: 4px;
    background: var(--success);
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: var(--radius-xs);
    transform: rotate(-8deg);
    opacity: 0.95;
    pointer-events: none;
}
.cal-makeup-stamp {
    position: absolute;
    right: 4px;
    top: 4px;
    background: #7C3AED;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: var(--radius-xs);
    transform: rotate(-8deg);
    opacity: 0.95;
    pointer-events: none;
}
.cal-course-card {
    position: relative;
}

/* 移动端日历 */
@media (max-width: 600px) {
    .week-calendar {
        grid-template-columns: 1fr;
        margin: 8px;
    }
    .week-calendar-day {
        min-height: auto;
        flex-direction: row;
        border-bottom: 1px solid var(--border-light);
    }
    .week-day-header {
        width: 60px;
        min-width: 60px;
        border-bottom: none;
        border-right: 1px solid var(--border-light);
        padding: 8px;
    }
    .week-day-courses {
        flex: 1;
        flex-direction: row;
        overflow-x: auto;
        padding: 6px;
    }
    .cal-course-card {
        min-width: 120px;
        flex-shrink: 0;
    }
}

/* ==================== 公告已读/未读姓名 ==================== */
.notice-names-inline {
    font-size: 11px;
    color: var(--muted-foreground);
    line-height: 1.4;
    max-width: 180px;
    word-break: break-all;
}
.notice-names-label {
    font-weight: 600;
    color: var(--foreground);
}

/* ==================== 动画系统 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-visible, .animate-on-scroll {
    /* Will be set by JS intersection observer */
}
.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
/* Fallback: show all animations after brief delay */
.card, .stat-card {
    animation: fadeInUp 0.4s ease both;
}
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }

/* 按钮hover微动效 */
.btn {
    transition: all 0.2s ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* 列表项进入动画 */
.list-item {
    transition: background 0.15s ease, transform 0.15s ease;
}
.list-item:hover {
    background: rgba(13, 148, 136, 0.02);
}

/* 统计数字计数动画由JS控制 */
/* .stat-number { transition: all 0.3s ease; } */

/* ==================== 响应式优化 ==================== */
@media (max-width: 480px) {
    .tab-buttons {
        width: 100%;
    }
    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* ==================== 操作下拉菜单 (⋯) ==================== */
.action-dropdown {
    position: relative;
    display: inline-block;
    z-index: 9999;
}
.action-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 4px 10px;
    font-size: 18px;
    color: var(--muted-foreground);
    line-height: 1;
    transition: all 0.15s ease;
    letter-spacing: 1px;
}
.action-btn:hover {
    background: var(--muted);
    color: var(--foreground);
    border-color: var(--primary-border);
}
.action-menu {
    display: none;
    position: fixed;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 130px;
    z-index: 99999;
    overflow: hidden;
    margin-top: 0;
    animation: menuFadeIn 0.15s ease;
}
@keyframes menuFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.action-menu.show { display: block; }
.action-menu-item {
    display: block;
    width: 100%;
    padding: 9px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: var(--font-sm);
    color: var(--foreground);
    transition: background 0.1s ease;
    white-space: nowrap;
}
.action-menu-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.action-menu-item.danger {
    color: var(--danger);
}
.action-menu-item.danger:hover {
    background: #FEF2F2;
}
.action-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 2px 0;
}

/* ==================== 学员分组折叠 (排课列表) ==================== */
.student-group {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}
.student-group:hover {
    box-shadow: var(--shadow);
}
.student-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--primary-light);
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}
.student-group-header:hover {
    background: #E6FAF5;
}
.student-group-header .group-title {
    font-weight: 600;
    font-size: var(--font-md);
    color: var(--foreground);
}
.student-group-header .group-count {
    font-size: var(--font-xs);
    color: var(--primary);
    background: rgba(13,148,136,0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.student-group-header .group-arrow {
    transition: transform 0.2s ease;
    color: var(--muted-foreground);
    font-size: 12px;
}
.student-group.open .group-arrow {
    transform: rotate(90deg);
}
.student-group-body {
    display: none;
    padding: 4px 0;
}
.student-group.open .student-group-body {
    display: block;
}
.student-group-body .list-item {
    border-top: 1px solid var(--border-light);
    border-radius: 0;
    margin: 0;
}

/* ==================== 学员名标签 ==================== */
.student-name-tag {
    display: inline;
    font-size: var(--font-xs);
    color: var(--primary-dark);
    background: rgba(13,148,136,0.08);
    padding: 1px 6px;
    border-radius: var(--radius-xs);
    margin-left: 4px;
    font-weight: 500;
}

/* ==================== 课时详情弹窗 ==================== */
.hours-detail-modal .modal-content {
    max-width: 640px;
}
.hours-filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.hours-filter-bar label {
    font-size: var(--font-sm);
    color: var(--muted-foreground);
}
.hours-filter-bar input[type="date"] {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
}
.hours-summary-bar {
    display: flex;
    gap: 16px;
    padding: 10px 14px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: var(--font-sm);
}
.hours-summary-bar .summary-item {
    display: flex;
    gap: 4px;
    align-items: center;
}
.hours-summary-bar .summary-value {
    font-weight: 700;
    color: var(--primary-dark);
}
.hours-list-container {
    max-height: 400px;
    overflow-y: auto;
}

/* ==================== 退费弹窗 ==================== */
.refund-info-card {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}
.refund-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: var(--font-base);
}
.refund-info-row.total {
    border-top: 1px dashed var(--primary-border);
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 700;
    font-size: var(--font-lg);
    color: var(--danger);
}

/* ==================== 退费标签 ==================== */
.tag-orange {
    background: #FFF7ED;
    color: #C2410C;
}
.tag-purple {
    background: #F3E8FF;
    color: #7C3AED;
}
.tag-pink {
    background: #FDF2F8;
    color: #BE185D;
    border: 1px solid #FBCFE8;
}

/* ==================== 快捷入口增强 ==================== */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}
.quick-item {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quick-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ==================== 按钮增强 ==================== */
.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: var(--font-sm);
    color: var(--primary);
    border-radius: var(--radius-xs);
    transition: background 0.1s ease;
}
.btn-text:hover {
    background: var(--primary-light);
}
.btn-text.text-danger, .btn-text.text-red {
    color: var(--danger);
}
.btn-text.text-danger:hover, .btn-text.text-red:hover {
    background: #FEF2F2;
}

/* ==================== 响应式下拉菜单适配 ==================== */
@media (max-width: 480px) {
    .action-menu {
        right: -8px;
        min-width: 120px;
    }
    .hours-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .refund-info-row {
        font-size: var(--font-sm);
    }
    .student-group-header {
        padding: 10px 12px;
    }
}


/* ==================== Task 15: Course Balance Ring Chart ==================== */
.course-balance-ring {
    width: 120px;
    height: 120px;
    margin: 16px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-balance-ring svg {
    transform: rotate(-90deg);
    width: 120px;
    height: 120px;
}
.course-balance-ring .ring-bg {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 8;
}
.course-balance-ring .ring-progress {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: ringPulse 2s ease-in-out infinite alternate;
}
@keyframes ringPulse {
    0% { filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.3)); }
    100% { filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6)); }
}
.course-balance-ring .ring-label {
    position: absolute;
    text-align: center;
    line-height: 1.2;
}
.course-balance-ring .ring-count {
    font-size: 28px;
    font-weight: 700;
    color: #1E40AF;
    display: block;
}
.course-balance-ring .ring-unit {
    font-size: 11px;
    color: #64748B;
    display: block;
}

/* ==================== Task 8: Mobile Date Range Responsive ==================== */
@media (max-width: 600px) {
    .date-range-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .date-range-selector input[type="date"] {
        width: 100%;
        box-sizing: border-box;
    }
    .date-range-selector .date-range-label {
        white-space: nowrap;
        font-size: 12px;
    }
    .date-range-selector .btn {
        width: 100%;
        box-sizing: border-box;
    }
    .schedule-list-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .schedule-list-header .header-left {
        flex: 1 1 100%;
    }
    .schedule-list-header .header-right {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ==================== Task 13: Org Address Footer ==================== */
.org-address-footer {
    text-align: center;
    padding: 12px 16px 4px;
    font-size: 11px;
    color: #94A3B8;
    letter-spacing: 0.3px;
}

/* ==================== Task 17: Notification Center Improvements ==================== */
.notif-content-preview {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.5em;
    line-height: 1.5;
}
.notif-item.unread .list-item-title {
    font-weight: 600;
}

/* ==================== Task 10 & 16: Leave Status Badge ==================== */
.leave-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.6;
    background: #FEF3C7;
    color: #92460B;
    border: 1px solid #f4d765;
}

/* ==================== Task 5: Schedule Date Range Selector ==================== */
.schedule-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.schedule-date-range input[type="date"] {
    padding: 6px 10px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 13px;
    color: #1E293B;
    background: #F8FAFC;
    min-width: 0;
}
.schedule-date-range .date-sep {
    color: #94A3B8;
    font-size: 13px;
}

/* ==================== Task 19: UI Beautification Enhancements ==================== */
/* Login page gradient animation */
.login-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
    animation: loginGradientMove 15s ease-in-out infinite alternate;
    z-index: 0;
}
@keyframes loginGradientMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, 5%) rotate(3deg); }
    100% { transform: translate(5%, -5%) rotate(-3deg); }
}

/* Card hover effects */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

/* Button micro-interactions */
.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:active {
    transform: scale(0.97);
}

/* Tag animations */
.tag {
    transition: all 0.15s ease;
}
.tag:hover {
    filter: brightness(0.95);
}

/* Modal enter animation */
.modal-overlay {
    animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    animation: modalSlideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Schedule card improvements */
.schedule-card {
    transition: box-shadow 0.2s ease;
}
.schedule-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* List item hover */
.list-item:hover {
    background: #F8FAFC;
}

/* Empty state animation */
.empty-state {
    animation: emptyFadeIn 0.4s ease-out;
}
@keyframes emptyFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alert/Toast animation */
.alert-card {
    animation: alertSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section header styling */
.section-header {
    margin-bottom: 12px;
}
.section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    letter-spacing: 0.2px;
}

/* Tab pill hover */
.tab-pill:hover {
    background: #F1F5F9;
    color: #1E40AF;
}

/* Calendar cell hover */
.calendar-cell.today:hover {
    background: rgba(99, 102, 241, 0.15);
}

/* Improved scrollbar for mobile */
@media (max-width: 600px) {
    .header-right {
        scrollbar-width: none;
    }
    .header-right::-webkit-scrollbar {
        display: none;
    }
}

/* Select institution page enhancements */
@media (max-width: 600px) {
    .org-card {
        padding: 16px;
    }
    .org-card-logo {
        width: 44px;
        height: 44px;
    }
}

/* Course group collapsible */
.course-group-header {
    cursor: pointer;
    user-select: none;
}
.course-group-header .collapse-icon {
    transition: transform 0.2s ease;
    display: inline-block;
}
.course-group-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}
.course-group-content {
    transition: max-height 0.3s ease, opacity 0.2s ease;
    overflow: hidden;
}
.course-group-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
}

/* ==================== 微信登录入口 ==================== */
.wx-login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 14px;
    color: #94A3B8;
    font-size: 13px;
}
.wx-login-divider::before,
.wx-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}
.wx-login-divider span {
    padding: 0 12px;
}
.wx-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #07C160;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}
.wx-login-btn:hover {
    background: #06AD56;
    color: #fff;
}
.wx-login-btn:active {
    transform: scale(0.98);
}
.wx-login-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.wx-login-btn.disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}
.wx-login-btn.disabled:hover {
    background: #9CA3AF;
}
.phone-check-msg {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
}
.phone-check-msg.success {
    color: #07C160;
}
.phone-check-msg.error {
    color: #EF4444;
}

/* ==================== 开关按钮（机构微信登录） ==================== */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E1;
    border-radius: 24px;
    transition: 0.2s;
}
.switch-toggle .slider::before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}
.switch-toggle input:checked + .slider {
    background-color: #10B981;
}
.switch-toggle input:checked + .slider::before {
    transform: translateX(20px);
}


/* ==================== 修复增强：动画与响应式 ==================== */

/* 页面加载淡入 */
.container {
    animation: fadeInUp 0.35s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片与列表项悬停微交互 */
.card, .list-item, .quick-item, .stat-card {
    transition: box-shadow 0.2s ease, background 0.15s ease;
}
.card:hover, .list-item:hover, .quick-item:hover, .stat-card:hover {
    box-shadow: var(--shadow-md);
}

/* 按钮点击反馈 */
.btn, .action-btn, .att-btn, .tab-btn, .view-toggle-btn {
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active, .action-btn:active, .att-btn:active, .tab-btn:active, .view-toggle-btn:active {
    transform: scale(0.97);
}

/* 加载态 */
.loading-state {
    text-align: center;
    padding: 32px;
    color: var(--muted-foreground);
    font-size: var(--font-sm);
}
.loading-state::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态图标动画 */
.empty-icon {
    opacity: 0.6;
    transform: scale(0.95);
    animation: emptyPulse 2s ease-in-out infinite;
}
@keyframes emptyPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* 表单焦点环统一 */
input[type="text"]:focus, input[type="date"]:focus, input[type="tel"]:focus,
input[type="number"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    outline: none;
}

/* 移动端表格/列表不溢出 */
@media (max-width: 640px) {
    .container { padding: var(--space-3); }
    .card { border-radius: var(--radius-lg); }
    .list-item { padding: var(--space-3); }
    .list-item-title { font-size: var(--font-md); }
    .hours-filter-bar { flex-direction: column; align-items: stretch; }
    .hours-filter-bar input[type="date"], .hours-filter-bar button { width: 100%; }
    .date-range-filter input[type="date"], .date-range-filter button { width: 100%; }
    .modal-content { margin: 12px; max-height: calc(100vh - 24px); }
    .page-header { flex-wrap: wrap; gap: var(--space-2); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid.four-col { grid-template-columns: repeat(2, 1fr); }
    .week-calendar { grid-template-columns: 1fr; }
    .cal-course-card { min-height: auto; }
    .action-menu { min-width: 140px; }
}

/* 小屏下课时详情弹窗日期选择器自适应 */
#teacher-hours-modal .hours-filter-bar,
#parent-hours-modal .hours-filter-bar,
#teacher-hours-modal .hours-filter-bar,
#makeup-modal .hours-filter-bar {
    flex-wrap: wrap;
}

/* 模态框平滑出现 */
.modal-overlay {
    animation: modalBackdropFade 0.2s ease;
}
.modal-content {
    animation: modalContentSlide 0.25s ease;
}
@keyframes modalBackdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalContentSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 标签/tag 微动效 */
.tag {
    transition: background 0.15s ease, color 0.15s ease;
}

/* 统计数字计数器默认 */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ==================== 演出管理 ==================== */
.performance-list .list-item-title { font-weight: 600; }
.performance-item .list-item-right { align-items: flex-end; }
.tag-blue { background: #E0F2FE; color: #0369A1; }
.tag-green { background: #DCFCE7; color: #166534; }
.tag-gray { background: #F1F5F9; color: #64748B; }
.btn-text { background: transparent; border: none; color: #3B82F6; padding: 4px 8px; font-size: 14px; cursor: pointer; }
.btn-text.text-danger { color: #EF4444; }
.performance-dashboard-card { margin-top: 16px; }
.performance-dashboard-card .list-item { cursor: pointer; }
.performance-dashboard-card .chevron { color: #94A3B8; font-size: 20px; margin-left: 8px; }
.performance-detail { line-height: 1.6; }
.pd-row { display: flex; padding: 8px 0; border-bottom: 1px solid #F1F5F9; }
.pd-row:last-child { border-bottom: none; }
.pd-label { width: 80px; color: #64748B; font-size: 14px; flex-shrink: 0; }
.pd-value { color: #1E293B; flex: 1; }
.pd-section-title { font-weight: 600; margin-top: 16px; margin-bottom: 10px; color: #1E293B; }
.participant-detail-list { display: flex; flex-direction: column; gap: 10px; }
.participant-detail-item { background: #F8FAFC; border-radius: 8px; padding: 12px; }
.participant-detail-name { font-weight: 600; margin-bottom: 4px; }
.participant-detail-content { color: #475569; font-size: 14px; }
.participant-form { background: #F8FAFC; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.participant-item .list-item-title { font-size: 14px; }

/* ==================== 机构管理配置页 ==================== */
.org-qrcode-card { margin-bottom: 16px; }
.section-toggle-card { padding: 16px 20px; margin-bottom: 12px; }
.section-toggle-label { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; }
.switch-toggle { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.switch-toggle .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #CBD5E1; border-radius: 24px; transition: .3s; }
.switch-toggle .slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .3s; }
.switch-toggle input:checked + .slider { background: #3B82F6; }
.switch-toggle input:checked + .slider:before { transform: translateX(22px); }
.op-section-card { margin-bottom: 16px; }
.op-dynamic-item { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.op-dynamic-item input { flex: 1; }
.op-dynamic-card { background: #F8FAFC; border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.op-dynamic-card .form-group:last-child { margin-bottom: 0; }
.btn-outline { background: #fff; color: #3B82F6; border: 1px solid #3B82F6; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: 10px; }

/* ==================== 公开机构宣传单页 ==================== */
.org-public-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1E293B; line-height: 1.6; }
.org-public-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid #E2E8F0; }
.org-public-header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.org-public-brand { display: flex; align-items: center; gap: 10px; }
.org-public-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.org-public-name { font-weight: 700; font-size: 18px; color: #1E293B; }
.org-public-main { min-height: 60vh; }
.org-public-hero { position: relative; }
.org-public-slider { position: relative; height: 420px; overflow: hidden; }
.org-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.8s ease; }
.org-slide.active { opacity: 1; }
.org-slide-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.6)); }
.org-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; padding: 20px; z-index: 2; }
.org-hero-content h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.org-hero-content p { font-size: 18px; max-width: 600px; margin-bottom: 24px; opacity: 0.95; }
.org-slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.org-slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: .3s; }
.org-slider-dot.active { background: #fff; }
.org-public-hero-simple { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); padding: 80px 20px; text-align: center; color: #fff; }
.org-public-hero-simple h1 { font-size: 36px; font-weight: 800; margin-bottom: 16px; }
.org-public-hero-simple p { font-size: 18px; max-width: 600px; margin: 0 auto 24px; opacity: 0.95; }
.org-public-section { padding: 60px 20px; }
.org-public-section-alt { background: #F8FAFC; }
.org-section-inner { max-width: 1200px; margin: 0 auto; }
.org-section-title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 36px; color: #1E293B; }
.org-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.org-course-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: transform .2s, box-shadow .2s; }
.org-course-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.org-course-image { height: 160px; background-size: cover; background-position: center; }
.org-course-body { padding: 20px; }
.org-course-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.org-course-price { color: #EF4444; font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.org-course-body p { color: #64748B; font-size: 14px; }
.org-teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.org-teacher-card { background: #fff; border-radius: 16px; padding: 24px 16px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.org-teacher-avatar { width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%; background: #E0F2FE; color: #0369A1; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; overflow: hidden; }
.org-teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-teacher-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.org-teacher-card p { color: #64748B; font-size: 13px; }
.org-performance-list { display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.org-performance-card { display: flex; gap: 16px; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.org-performance-date { min-width: 70px; text-align: center; background: #EEF2FF; border-radius: 10px; padding: 12px; color: #4338CA; }
.opd-month { display: block; font-size: 13px; }
.opd-day { display: block; font-size: 28px; font-weight: 800; line-height: 1; }
.org-performance-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.org-performance-info p { color: #64748B; font-size: 14px; margin-bottom: 2px; }
.org-news-list { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.org-news-card { display: flex; gap: 16px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.org-news-image { width: 140px; min-height: 100px; background-size: cover; background-position: center; flex-shrink: 0; }
.org-news-body { padding: 16px; flex: 1; }
.org-news-date { color: #64748B; font-size: 13px; margin-bottom: 6px; }
.org-news-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.org-news-body p { color: #475569; font-size: 14px; }
.org-public-cta { background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%); color: #fff; text-align: center; }
.org-public-cta h2 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.org-public-cta p { opacity: 0.85; margin-bottom: 24px; }
.org-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.org-public-cta .btn-outline { border-color: #fff; color: #fff; background: transparent; }
.org-contact-info p { margin: 4px 0; font-size: 14px; opacity: 0.85; }
.org-booking-qr { margin: 24px auto 0; max-width: 180px; }
.org-booking-qr img { width: 100%; max-width: 160px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.org-booking-qr p { margin-top: 8px; font-size: 13px; opacity: 0.85; }
.org-public-footer { background: #0F172A; color: #94A3B8; text-align: center; padding: 24px 20px; font-size: 13px; }
@media (max-width: 640px) {
    .org-public-slider { height: 320px; }
    .org-hero-content h1, .org-public-hero-simple h1 { font-size: 24px; }
    .org-hero-content p { font-size: 15px; }
    .org-news-card { flex-direction: column; }
    .org-news-image { width: 100%; height: 160px; }
    .org-public-section { padding: 40px 16px; }
}

/* ==================== UI/UX Pro Max 全面优化（2026） ==================== */

/* 平滑滚动与触控优化 */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* 页面标题副标题 */
.page-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
.page-title-wrap h1 {
    justify-content: center;
}
.page-subtitle {
    font-size: var(--font-sm);
    color: var(--muted-foreground);
    font-weight: 400;
    margin-top: 2px;
}

/* 按钮层级统一 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.4;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.25);
}
.btn-secondary {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-border);
}
.btn-secondary:hover {
    background: #CCFBF1;
    border-color: #2DD4BF;
}
.btn-outline {
    background: #fff;
    color: var(--muted-foreground);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border-color: transparent;
}
.btn-ghost:hover {
    background: var(--muted);
    color: var(--foreground);
}
.btn-sm { padding: 6px 12px; font-size: var(--font-xs); border-radius: var(--radius-sm); }
.btn-lg { padding: 12px 24px; font-size: var(--font-md); border-radius: var(--radius-md); }

/* 卡片：更克制的阴影与悬停 */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}
.card-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--foreground);
}
.card-body {
    padding: var(--space-5);
}

/* 列表项优化 */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background: var(--card);
    border-bottom: 1px solid var(--border-light);
    gap: var(--space-3);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #FAFAFA; }
.list-item-left { display: flex; align-items: center; gap: var(--space-3); min-width: 0; flex: 1; }
.list-item-right { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.list-item-title { font-size: var(--font-md); font-weight: 500; color: var(--foreground); margin-bottom: 2px; }
.list-item-desc { font-size: var(--font-sm); color: var(--muted-foreground); line-height: 1.4; }

/* 空状态统一 */
.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    color: var(--muted-foreground);
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: var(--space-3);
    opacity: 0.5;
}
.empty-state-title { font-size: var(--font-md); font-weight: 500; color: var(--foreground); margin-bottom: var(--space-1); }
.empty-state-desc { font-size: var(--font-sm); }

/* 表单与输入框 */
.form-group { margin-bottom: var(--space-4); }
.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-md);
    color: var(--foreground);
    background: var(--card);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    outline: none;
}
.form-control:disabled { background: var(--muted); color: var(--muted-foreground); cursor: not-allowed; }

/* 标签与徽章 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: var(--font-xs);
    font-weight: 500;
    line-height: 1.4;
}
.tag-primary { background: var(--primary-light); color: var(--primary-dark); }
.tag-success { background: #DCFCE7; color: #166534; }
.tag-warning { background: #FEF3C7; color: #92400E; }
.tag-danger { background: #FEF2F2; color: #991B1B; }
.tag-info { background: #E0F2FE; color: #075985; }

/* Toast 与提示 */
.edu-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: var(--font-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}
.edu-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 底部导航安全区（校长端/教师端/家长端） */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: var(--z-sticky);
    backdrop-filter: blur(8px);
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--muted-foreground);
    font-size: 11px;
    transition: color 0.15s ease;
    cursor: pointer;
}
.bottom-nav-item.active { color: var(--primary); }
.bottom-nav-item svg { width: 22px; height: 22px; }

/* 主内容区为底部导航留空 */
.has-bottom-nav .container { padding-bottom: calc(var(--space-10) + env(safe-area-inset-bottom, 0px)); }

/* 响应式表格卡片化 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--font-sm); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
.table th { font-weight: 600; color: var(--muted-foreground); background: #F8FAFC; font-size: var(--font-xs); text-transform: uppercase; letter-spacing: 0.02em; }
.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover { background: #FAFAFA; }

/* 模态框焦点管理 */
.modal-content:focus { outline: none; }
.modal-close { transition: transform 0.15s ease, color 0.15s ease; }
.modal-close:hover { transform: rotate(90deg); color: var(--danger); }

/* 统计卡片 */
.stat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-label { font-size: var(--font-sm); color: var(--muted-foreground); margin-bottom: var(--space-2); }
.stat-number { font-size: var(--font-3xl); font-weight: 700; color: var(--foreground); letter-spacing: -0.02em; }
.stat-unit { font-size: var(--font-sm); color: var(--muted-foreground); margin-left: 2px; }

/* 页面切换淡入 */
.page-transition {
    animation: fadeInUp 0.3s ease;
}

/* 搜索栏与过滤器 */
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}
.search-bar input {
    width: 100%;
    padding-left: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--card);
}
.search-bar svg {
    position: absolute;
    left: 12px;
    color: var(--muted-foreground);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* 减小不必要的巨大点击区域 */
.btn-text {
    padding: 4px 6px;
    font-size: var(--font-sm);
    border-radius: var(--radius-sm);
}

/* 移动端微调 */
@media (max-width: 640px) {
    .page-header { padding: var(--space-3) var(--space-4); }
    .page-header h1 { font-size: var(--font-lg); justify-content: flex-start; }
    .header-right { gap: var(--space-2); }
    .card-body { padding: var(--space-4); }
    .list-item { padding: var(--space-3) var(--space-4); flex-wrap: wrap; }
    .list-item-right {justify-content: flex-end; margin-top: var(--space-2); }
    .stat-number { font-size: var(--font-2xl); }
    .modal-content { border-radius: var(--radius-lg); }
    .btn { padding: 8px 14px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   UI/UX Pro Max 设计系统增强（2026 升级）
   ============================================================ */

/* 滚动渐入动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 卡片悬停提升 */
.card-hover-lift {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* 按钮缩放反馈 */
.btn:active {
    transform: scale(0.97);
}

/* 骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    border-radius: var(--radius);
    animation: skeleton-loading 1.2s infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 全局 Toast */
#edu-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.edu-toast-item {
    pointer-events: auto;
    min-width: 220px;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--foreground);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.edu-toast-item.show {
    opacity: 1;
    transform: translateX(0);
}
.edu-toast-item.success { border-left-color: var(--success); }
.edu-toast-item.error { border-left-color: var(--danger); }
.edu-toast-item.warning { border-left-color: var(--warning); }
.edu-toast-item.info { border-left-color: var(--info); }
.edu-toast-item::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    mask-size: 14px;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: 14px;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}
.edu-toast-item.success::before { background: var(--success); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); }
.edu-toast-item.error::before { background: var(--danger); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E"); }
.edu-toast-item.warning::before { background: var(--warning); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E"); }
.edu-toast-item.info::before { background: var(--info); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E"); }

/* 公开机构单页现代卡片布局增强 */
.org-public-page {
    --op-primary: var(--primary);
    --op-primary-light: var(--primary-light);
    --op-radius: var(--radius-lg);
    background: var(--background);
}
.org-public-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.org-public-hero {
    border-radius: var(--op-radius);
    overflow: hidden;
    margin: 24px auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
}
.org-public-hero-simple {
    background: linear-gradient(135deg, var(--op-primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--op-radius);
}
.org-public-section {
    padding: 60px 20px;
}
.org-section-card {
    background: var(--surface);
    border-radius: var(--op-radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.org-section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.org-section-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 10px;
}
.org-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    margin-left: 8px;
}
.org-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.org-stat-card {
    background: var(--surface);
    border-radius: var(--op-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.org-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.org-stat-card .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--op-primary);
    margin-bottom: 4px;
}
.org-stat-card .label {
    color: var(--muted-foreground);
    font-size: var(--font-sm);
}
.org-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.org-course-card {
    background: var(--surface);
    border-radius: var(--op-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-light);
}
.org-course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.org-course-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.org-course-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%);
}
.org-course-body { padding: 24px; }
.org-course-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.org-course-price {
    display: inline-block;
    background: var(--op-primary-light);
    color: var(--op-primary);
    padding: 4px 10px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}
.org-course-body p { color: var(--muted-foreground); font-size: 14px; }
.org-teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.org-teacher-card {
    background: var(--surface);
    border-radius: var(--op-radius);
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-light);
}
.org-teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.org-teacher-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--op-primary-light);
    color: var(--op-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    overflow: hidden;
    border: 2px solid var(--border-light);
}
.org-performance-list { display: flex; flex-direction: column; gap: 16px; }
.org-performance-card {
    display: flex;
    gap: 18px;
    background: var(--surface);
    border-radius: var(--op-radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-light);
    cursor: pointer;
}
.org-performance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.org-performance-date {
    min-width: 74px;
    text-align: center;
    background: var(--op-primary-light);
    border-radius: var(--radius-md);
    padding: 14px;
    color: var(--op-primary);
}
.org-news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.org-news-card {
    background: var(--surface);
    border-radius: var(--op-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--border-light);
}
.org-news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.org-news-image { width: 100%; height: 180px; background-size: cover; background-position: center; }
.org-news-body { padding: 22px; }
.org-news-date {
    display: inline-block;
    background: var(--op-primary-light);
    color: var(--op-primary);
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}
.org-public-cta {
    background: linear-gradient(135deg, var(--foreground) 0%, #1e293b 100%);
    color: #fff;
    border-radius: var(--op-radius);
    padding: 60px 24px;
    margin: 24px auto;
    max-width: 1200px;
    text-align: center;
}
.org-public-cta .btn-primary {
    background: var(--op-primary);
    border-color: var(--op-primary);
    color: #fff;
}
.org-public-cta .btn-primary:hover {
    background: var(--op-primary);
    border-color: var(--op-primary);
    filter: brightness(0.92);
}
.org-public-header .btn-primary {
    background: var(--op-primary);
    border-color: var(--op-primary);
    color: #fff;
}
.org-public-header .btn-primary:hover {
    background: var(--op-primary);
    filter: brightness(0.92);
    border-color: var(--op-primary);
}
.org-public-footer {
    background: var(--op-primary);
    color: #fff;
    text-align: center;
    padding: 28px 20px;
    font-size: 13px;
}

/* 生日提醒独立卡片 */
.birthday-card {
    background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
    border: 1px solid #fce7f3;
}
.birthday-card .card-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9d174d;
}
.birthday-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.birthday-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.birthday-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.birthday-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.birthday-info {
    flex: 1;
    min-width: 0;
}
.birthday-name {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 4px;
}
.birthday-age {
    font-size: 12px;
    color: var(--muted-foreground);
    font-weight: 400;
}
.birthday-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted-foreground);
}

.org-theme-swatch {
    padding: 6px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}
.org-theme-swatch:hover {
    background: rgba(0,0,0,0.03);
}
.org-theme-swatch-color {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.org-theme-swatch-active .org-theme-swatch-color {
    position: relative;
    transform: scale(1.15);
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--op-primary, var(--primary));
}
.org-theme-swatch-active .org-theme-swatch-color::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
}
.org-theme-swatch-color svg {
    position: absolute;
    z-index: 1;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* 标签色扩展 */
.tag-blue { background: #E0F2FE; color: #075985; }
.tag-green { background: #DCFCE7; color: #166534; }
.tag-orange { background: #FEF3C7; color: #92400E; }
.tag-red { background: #FEF2F2; color: #991B1B; }
.tag-pink { background: #FCE7F3; color: #9D174D; }
.tag-purple { background: #F3E8FF; color: #6B21A8; }
.tag-day-3 { background: #EEF2FF; color: #3730A3; }

@media (max-width: 640px) {
    .org-public-hero { margin: 16px; border-radius: var(--radius-md); }
    .org-public-section { padding: 40px 16px; }
    .org-section-card { padding: 22px; }
    .org-course-grid,
    .org-news-list { grid-template-columns: 1fr; }
}

.org-public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}
.org-public-cta .btn-outline {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    background: transparent;
}
.org-public-cta .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}
.btn {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: scale(0.97);
}

/* ==================== 作业图片上传美化 ==================== */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px dashed var(--primary-border);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.file-upload-btn:hover {
    background: var(--primary);
    color: #fff;
    border-style: solid;
    border-color: var(--primary);
}
.file-upload-btn .svg-icon {
    width: 16px;
    height: 16px;
}
.file-upload-hint {
    font-size: var(--font-sm);
    color: var(--muted-foreground);
}
.hw-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.hw-preview-item {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--background);
}
.hw-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 附件管理 ==================== */
.upload-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background: #F8FAFC;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: #4F46E5;
    background: #EEF2FF;
}
.upload-zone-placeholder .upload-icon {
    color: #94A3B8;
    margin-bottom: 10px;
}
.upload-zone-placeholder p {
    margin: 0 0 6px;
    font-weight: 500;
    color: #334155;
}
.upload-zone-placeholder .upload-hint {
    font-size: 12px;
    color: #64748B;
}
.upload-zone-file {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: #334155;
}
#attachment-file-size {
    color: #64748B;
    font-size: 12px;
}
.upload-progress {
    margin-top: 12px;
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
}
.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: #4F46E5;
    transition: width 0.3s ease;
}
.student-select-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    overflow: hidden;
}
.student-select-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--foreground);
}
.student-select-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--primary-light);
    border-bottom: 1px solid var(--border);
}
.student-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}
.student-select-count {
    font-size: var(--font-sm);
    color: var(--muted-foreground);
}
.student-select-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 4px;
}
.student-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin: 2px 0;
    transition: background 0.12s ease;
}
.student-select-item:hover {
    background: var(--primary-light);
}
.student-select-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}
.student-select-name {
    flex: 1;
    min-width: 0;
    color: var(--foreground);
    font-weight: 500;
}
.student-select-phone {
    color: var(--muted-foreground);
    font-size: var(--font-sm);
    flex-shrink: 0;
}
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.attachment-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}
.attachment-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.attachment-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #EEF2FF;
    color: #4F46E5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.attachment-item-icon svg {
    width: 24px;
    height: 24px;
}
.attachment-item-info {
    flex: 1;
    min-width: 0;
}
.attachment-item-title {
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.attachment-item-meta {
    font-size: 12px;
    color: #64748B;
}
.attachment-item-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.attachment-item-download svg {
    width: 16px;
    height: 16px;
}
@media (max-width: 640px) {
    .attachment-item {
        flex-wrap: wrap;
    }
    .attachment-item-download {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}


/* ============================================================
   反馈中心 - Feedback Center
   ============================================================ */

/* 学员端反馈入口按钮（固定在底部导航右侧） */
.feedback-entry-btn {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.feedback-entry-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}
.feedback-entry-btn:active {
    transform: scale(0.95);
}
.feedback-entry-btn svg {
    width: 26px;
    height: 26px;
}

/* 反馈页面 */
.feedback-page .feedback-intro {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    color: var(--primary-dark);
    font-size: var(--font-sm);
    line-height: 1.7;
}
.feedback-form-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.feedback-form-card .form-group {
    margin-bottom: var(--space-4);
}
.feedback-form-card .form-group label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 8px;
}
.feedback-form-card textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--font-md);
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feedback-form-card textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* 图片上传区域 - 复用并扩展机构管理样式 */
.fb-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    text-align: center;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.fb-upload-zone:hover,
.fb-upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.fb-upload-zone svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
    margin-bottom: var(--space-2);
}
.fb-upload-zone p {
    color: var(--muted-foreground);
    font-size: var(--font-sm);
    margin-bottom: var(--space-2);
}
.fb-upload-zone .fb-upload-hint {
    display: block;
    font-size: var(--font-xs);
    color: #94A3B8;
}
.fb-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* 图片预览网格 */
.fb-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-4);
}
.fb-preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #F8FAFC;
}
.fb-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fb-preview-item .fb-remove-img {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.fb-preview-item .fb-remove-img:hover {
    background: rgba(220, 38, 38, 0.85);
}

/* 反馈列表 */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.feedback-item {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}
.feedback-item:hover {
    box-shadow: var(--shadow-md);
}
.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3);
    gap: var(--space-3);
}
.feedback-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.feedback-item-author {
    font-weight: 600;
    font-size: var(--font-md);
    color: var(--foreground);
}
.feedback-item-time {
    font-size: var(--font-xs);
    color: #94A3B8;
}
.feedback-item-status {
    flex-shrink: 0;
}
.feedback-item-content {
    color: var(--card-foreground);
    font-size: var(--font-base);
    line-height: 1.7;
    margin-bottom: var(--space-3);
    white-space: pre-wrap;
}
.feedback-item-images {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}
.feedback-item-images a {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #F8FAFC;
}
.feedback-item-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feedback-item-reply {
    background: #F0FDFA;
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    margin-top: var(--space-3);
}
.feedback-item-reply-label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.feedback-item-reply-content {
    font-size: var(--font-sm);
    color: var(--foreground);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* 管理端反馈列表增强 */
.feedback-admin-filters {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}
.feedback-admin-filters .filter-btn {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted-foreground);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.feedback-admin-filters .filter-btn.active,
.feedback-admin-filters .filter-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}
.feedback-detail-modal .feedback-detail-section {
    margin-bottom: var(--space-4);
}
.feedback-detail-modal .feedback-detail-section-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: var(--space-2);
}
.feedback-detail-modal .feedback-detail-content {
    padding: var(--space-3);
    background: #F8FAFC;
    border-radius: var(--radius-md);
    font-size: var(--font-base);
    line-height: 1.7;
    white-space: pre-wrap;
}

@media (max-width: 640px) {
    .feedback-entry-btn {
        width: 48px;
        height: 48px;
        right: 14px;
        bottom: 82px;
    }
    .feedback-entry-btn svg {
        width: 22px;
        height: 22px;
    }
    .feedback-form-card {
        padding: var(--space-4);
    }
    .fb-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    }
}

/* 反馈中心旧类名兼容（HTML 中使用） */
.feedback-image-preview,
.fb-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.feedback-preview-item,
.fb-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #F8FAFC;
}
.feedback-preview-item img,
.fb-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feedback-image-grid,
.fb-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-2);
}
.feedback-image-item,
.fb-image-item {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #F8FAFC;
}
.feedback-image-item img,
.fb-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.feedback-image-item:hover img,
.fb-image-item:hover img {
    transform: scale(1.05);
}
.feedback-list-item {
    cursor: pointer;
}

/* ============================================================
   V2.1.0 UI 增强：短信登录、表单分区、动画与微交互
   ============================================================ */

/* 短信验证码 */
.sms-code-group {
    animation: fadeIn 0.25s ease-out;
}
.sms-code-wrap {
    display: flex;
    gap: 10px;
}
.sms-code-wrap input {
    flex: 1;
    letter-spacing: 4px;
    font-weight: 600;
    text-align: center;
}
.sms-send-btn {
    flex-shrink: 0;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.sms-send-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}
.sms-send-btn:active {
    transform: translateY(0);
}
.sms-send-btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.sms-timer {
    margin-top: 6px;
    font-size: var(--font-xs);
    color: var(--muted-foreground);
}

/* 表单分区标题 */
.form-section-title {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--foreground);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

/* 通用微交互动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes press {
    0% { transform: scale(1); }
    50% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

.card, .stat-card, .info-card, .feature-card, .accordion-item, .table-wrap {
    animation: slideUp 0.35s ease-out both;
}
.card:nth-child(1), .stat-card:nth-child(1) { animation-delay: 0ms; }
.card:nth-child(2), .stat-card:nth-child(2) { animation-delay: 40ms; }
.card:nth-child(3), .stat-card:nth-child(3) { animation-delay: 80ms; }
.card:nth-child(4), .stat-card:nth-child(4) { animation-delay: 120ms; }
.card:nth-child(5), .stat-card:nth-child(5) { animation-delay: 160ms; }
.card:nth-child(6), .stat-card:nth-child(6) { animation-delay: 200ms; }

/* 卡片悬浮提升 */
.card:hover, .stat-card:hover, .info-card:hover, .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* 按钮按压反馈 */
.btn:active, .login-btn:active, .sms-send-btn:active, .att-btn:active {
    animation: press 0.15s ease;
}

/* 表格优化 */
.table-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--card);
}
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table thead th {
    background: var(--background);
    color: var(--muted-foreground);
    font-weight: 600;
    font-size: var(--font-sm);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    transition: background 0.15s ease;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr:hover td {
    background: var(--primary-light);
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--muted-foreground);
    text-align: center;
    animation: fadeIn 0.4s ease;
}
.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.45;
    color: var(--primary);
}
.empty-state p {
    font-size: var(--font-md);
    margin-bottom: 16px;
}

/* 标签样式统一 */
.badge, .tag, .feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    line-height: 1.4;
}
.badge-success { background: rgba(16,185,129,0.12); color: #059669; }
.badge-warning { background: rgba(245,158,11,0.12); color: #D97706; }
.badge-danger { background: rgba(220,38,38,0.10); color: #DC2626; }
.badge-info { background: rgba(14,165,233,0.12); color: #0284C7; }
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    vertical-align: middle;
}
.badge-status svg { width: 12px; height: 12px; fill: currentColor; }
.badge-status-wechat { background: #07C160; color: #fff; }
.badge-status-notify { background: #10B981; color: #fff; }
.badge-status-sms { background: #3B82F6; color: #fff; }
.badge-status-face { background: #8B5CF6; color: #fff; }
.badge-status-expired { background: #EF4444; color: #fff; }
.badge-wxpay { background: #07C160; color: #fff; }

/* 响应式优化 */
@media (max-width: 640px) {
    .sms-code-wrap input {
        text-align: left;
        letter-spacing: 2px;
    }
    .sms-send-btn {
        padding: 0 12px;
        font-size: var(--font-xs);
    }
}

/* 焦点环 */
*:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* 加载骨架屏 */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.2s ease-in-out infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 图片预览灯箱 */
.edu-img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: lightboxFadeIn 0.2s ease-out;
}
.edu-img-lightbox.active { display: flex; }
.edu-img-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    cursor: default;
    animation: lightboxZoomIn 0.2s ease-out;
}
.edu-img-lightbox .lb-close {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 1;
}
.edu-img-lightbox .lb-close:hover { background: rgba(255,255,255,0.3); }
.edu-img-lightbox .lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 1;
}
.edu-img-lightbox .lb-nav:hover { background: rgba(255,255,255,0.25); }
.edu-img-lightbox .lb-prev { left: 16px; }
.edu-img-lightbox .lb-next { right: 16px; }
@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightboxZoomIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ==================== 折叠卡片 ==================== */
.card.collapsed .card-body {
    display: none;
}
.card .collapse-toggle {
    white-space: nowrap;
}

/* ==================== 微信支付平台配置 ==================== */
.wxpay-section .form-group {
    margin-bottom: var(--space-4);
}
.wxpay-section .form-group label {
    display: block;
    font-weight: 500;
    font-size: var(--font-sm);
    color: var(--card-foreground);
    margin-bottom: var(--space-2);
}
.wxpay-section .form-group input[type="text"],
.wxpay-section .form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--font-base);
    background: var(--background);
    color: var(--card-foreground);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wxpay-section .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.wxpay-callback-box {
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-4);
    font-size: var(--font-sm);
    color: var(--card-foreground);
}
.wxpay-callback-box strong {
    display: block;
    margin-bottom: var(--space-3);
    font-size: var(--font-base);
}
.wxpay-callback-box p {
    margin: 0 0 var(--space-3);
    color: var(--muted-foreground);
}
.wxpay-callback-box .callback-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-2);
}
.wxpay-callback-box .callback-row span {
    font-weight: 500;
    color: var(--muted-foreground);
}
.wxpay-callback-box .callback-row code {
    display: inline-block;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-all;
    color: var(--primary-dark);
}
.badge-wxpay {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 6px;
    background: #07C160;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.6;
}

/* ==================== 响应式表单辅助类 ==================== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.form-row > .form-col {
    flex: 1 1 calc(50% - var(--space-2));
    min-width: 220px;
}
.form-row > .form-col .form-group {
    margin-bottom: 0;
}
@media (max-width: 640px) {
    .form-row > .form-col {
        flex: 1 1 100%;
    }
    .form-row {
        gap: 0;
    }
}

/* 机构单页表单入口 */
.org-form-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.org-form-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--border-light, #E2E8F0); border-radius: var(--radius-lg, 12px); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.05)); transition: transform .2s ease, box-shadow .2s ease; text-decoration: none; color: inherit; }
.org-form-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.08)); }
.org-form-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(13,148,136,0.1); color: var(--op-primary, #0D9488); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.org-form-icon .svg-icon { width: 22px; height: 22px; }
.org-form-body { flex: 1; min-width: 0; }
.org-form-body h3 { font-size: 16px; margin: 0 0 4px; color: #0F172A; }
.org-form-body p { font-size: 13px; color: #64748B; margin: 0; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.org-form-arrow { font-size: 22px; color: var(--op-primary, #0D9488); }
@media (max-width: 640px) { .org-form-list { grid-template-columns: 1fr; } }

/* =========================================================
   学员端独立抽奖页面 / 机构单页抽奖弹窗共享样式
   ========================================================= */
.parent-lottery-page { padding-bottom: 32px; }
.parent-lottery-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.parent-lottery-card { background: #fff; border: 1px solid var(--border-light, #E2E8F0); border-radius: var(--radius-lg, 12px); padding: 20px; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.05)); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.parent-lottery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.08)); }
.parent-lottery-card h3 { margin: 0 0 8px; font-size: 16px; color: #0F172A; }
.parent-lottery-card p { margin: 0; font-size: 13px; color: #64748B; line-height: 1.5; }
.parent-lottery-card .tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(13,148,136,0.1); color: var(--op-primary, #0D9488); font-size: 12px; font-weight: 600; }

.org-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.5);
    z-index: 1100; justify-content: center; align-items: center; padding: 16px;
    backdrop-filter: blur(4px);
}
.org-modal-overlay.active { display: flex; }
.org-modal {
    background: #fff; border-radius: 20px; width: 100%; max-width: 560px;
    max-height: 85vh; overflow: hidden; display: flex; flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.org-modal-header {
    padding: 16px 20px; border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between; flex: none;
}
.org-modal-header h3 { margin: 0; font-size: 18px; font-weight: 600; color: #0f172a; }
.org-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #64748b; padding: 4px; line-height: 1; }
.org-modal-body { padding: 20px; overflow-y: auto; }
.org-empty-msg { text-align: center; padding: 32px 16px; color: #64748b; }
.org-success-msg { text-align: center; padding: 28px 16px; }
.org-success-msg svg { width: 56px; height: 56px; color: #22c55e; margin-bottom: 12px; }
.org-success-msg h4 { font-size: 18px; margin-bottom: 6px; color: #0f172a; }
.org-success-msg p { color: #64748b; font-size: 14px; }
.org-error-msg { text-align: center; padding: 28px 16px; color: #ef4444; }
.org-btn-block { width: 100%; padding: 12px; border: none; border-radius: 12px; background: var(--op-primary, #6366f1); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .2s; }
.org-btn-block:hover { opacity: .92; }
.org-btn-block:disabled { background: #94a3b8; cursor: not-allowed; }

.edu-lottery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 0 auto; }
.edu-lottery-cell { aspect-ratio: 1; border-radius: 14px; background: #f1f5f9; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; text-align: center; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; }
.edu-lottery-cell.active { border-color: var(--op-primary, #6366f1); background: #eef2ff; box-shadow: 0 0 0 4px rgba(99,102,241,0.15); transform: scale(1.03); }
.edu-lottery-cell .prize-icon { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.edu-lottery-cell .prize-name { font-size: 12px; color: #334155; font-weight: 600; line-height: 1.2; }
.edu-lottery-start { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(135deg, var(--op-primary, #6366f1), #8b5cf6); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; cursor: pointer; border: none; box-shadow: 0 8px 20px rgba(99,102,241,0.35); transition: transform .15s; }
.edu-lottery-start:hover { transform: scale(1.04); }
.edu-lottery-start:disabled { background: #94a3b8; box-shadow: none; cursor: not-allowed; transform: none; }
