/* ============================================
   教师工作台 - 全局样式
   配色参照原图：暖白底 + 柔和绿 + 米棕强调
   ============================================ */

:root {
    --bg-primary: #F7F4EF;
    --bg-sidebar: #F0EBE3;
    --bg-card: #FFFFFF;
    --bg-warm: #FAF8F5;

    --color-primary: #6B9B7A;
    --color-primary-dark: #5A8568;
    --color-primary-light: #E8F3EC;

    --color-accent: #D97A5E;
    --color-accent-light: #F5E0D8;

    --color-text: #3D3D3D;
    --color-text-secondary: #8C8C8C;
    --color-text-muted: #B0B0B0;

    --color-border: #E8E4DE;
    --color-border-light: #F0EDE8;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);

    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background: var(--bg-primary);
    color: var(--color-text);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

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

/* ============================================
   布局框架
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* 左侧边栏 */
.sidebar {
    width: 200px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.sidebar-brand h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.sidebar-brand .sub {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
}

.nav-section {
    margin-bottom: 16px;
}

.nav-section-title {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 8px;
    margin-bottom: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    background: rgba(107, 155, 122, 0.08);
    color: var(--color-text);
}

.nav-item.active {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 500;
}

.nav-item .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    opacity: 0.8;
}

.nav-item.active .icon { opacity: 1; }

.nav-badge {
    position: absolute;
    right: 10px;
    background: var(--color-accent);
    color: white;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--color-border-light);
}

.sidebar-footer .hint {
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 8px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.top-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--color-border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-left h2 {
    font-size: 16px;
    font-weight: 600;
}

.top-bar-left .motto {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 提示条 */
.notice-bar {
    background: linear-gradient(90deg, var(--color-primary-light), #F0F7F2);
    border-bottom: 1px solid var(--color-border-light);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.notice-bar .notice-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-bar .notice-icon {
    color: var(--color-primary);
}

/* 内容容器 */
.content-body {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    max-width: 1200px;
}

/* ============================================
   卡片组件
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 16px 20px 20px;
}

/* ============================================
   问候语 + 下一节课卡片
   ============================================ */
.welcome-card {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF0E8 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217, 122, 94, 0.1);
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97A5E' stroke-width='1' opacity='0.08'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.welcome-sub {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.class-switcher {
    display: flex;
    gap: 8px;
}

.class-tag {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--color-border);
    background: var(--bg-card);
    color: var(--color-text-secondary);
}

.class-tag.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.class-tag:hover:not(.active) {
    background: var(--bg-warm);
}

/* 下一节课 */
.next-class-box {
    background: rgba(255,255,255,0.7);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(8px);
}

.next-class-badge {
    background: var(--color-accent);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.next-class-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.next-class-info .time {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.btn-record {
    margin-left: auto;
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(217, 122, 94, 0.3);
}

.btn-record:hover {
    background: #C86A4E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 122, 94, 0.35);
}

/* ============================================
   快捷入口网格
   ============================================ */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.system-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.system-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.system-card .sys-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 20px;
}

.system-card .sys-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 4px;
}

.system-card .sys-desc {
    font-size: 11px;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.system-card .sys-status {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

.system-card .sys-status.no-config {
    background: var(--color-text-muted);
}

/* 添加入口 */
.system-card.add-new {
    border-style: dashed;
    color: var(--color-text-muted);
}

.system-card.add-new:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   待办列表
   ============================================ */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.todo-item:hover {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.todo-item.done {
    opacity: 0.6;
}

.todo-item.done .todo-title {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.todo-check {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.todo-check:hover {
    border-color: var(--color-primary);
}

.todo-check.checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.todo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-meta {
    font-size: 12px;
    color: var(--color-text-muted);
}

.todo-date {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
}

.todo-date.overdue {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.todo-date.normal {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.todo-action {
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-text-secondary);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.todo-action:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   右侧边栏 - 今日节奏
   ============================================ */
.rhythm-card {
    text-align: center;
    padding: 20px;
}

.rhythm-date {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-warm);
    border: 2px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.rhythm-date .day {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.rhythm-date .month {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.rhythm-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rhythm-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
}

.rhythm-stat-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.rhythm-stat-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.rhythm-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-light);
    font-size: 12px;
    color: var(--color-text-muted);
}

/* 提示卡片 */
.hint-card {
    background: linear-gradient(135deg, #FFF8F0, #FFF0E8);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hint-card .icon {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ============================================
   补测列表
   ============================================ */
.makeup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.makeup-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border-light);
}

.makeup-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.makeup-info {
    flex: 1;
    min-width: 0;
}

.makeup-name {
    font-size: 13px;
    font-weight: 500;
}

.makeup-content {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.makeup-btn {
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 12px;
    color: var(--color-text-secondary);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.makeup-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.makeup-btn.passed {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-light);
}

/* ============================================
   按钮
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--bg-warm);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border-light);
}

.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-lg { padding: 10px 24px; font-size: 15px; }

/* ============================================
   表单
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-card);
    color: var(--color-text);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 155, 122, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ============================================
   表格
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.data-table th {
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--bg-warm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-table tr:hover td {
    background: var(--bg-warm);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

.data-table .actions button {
    padding: 4px 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--bg-card);
    font-size: 12px;
    cursor: pointer;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.data-table .actions button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   模态框
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-warm);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--color-border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================
   登录页
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0EBE3 0%, #E8F3EC 50%, #F5E8E0 100%);
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-logo {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.login-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-card .subtitle {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

.login-form .form-group {
    text-align: left;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.login-btn:hover {
    background: var(--color-primary-dark);
}

.login-hint {
    margin-top: 20px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ============================================
   后台管理页
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--color-border);
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.admin-sidebar .brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 16px;
}

.admin-sidebar .brand h2 {
    font-size: 16px;
    font-weight: 600;
}

.admin-sidebar .brand .ver {
    font-size: 11px;
    color: var(--color-text-muted);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--color-text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(107, 155, 122, 0.06);
    color: var(--color-text);
}

.admin-nav-item.active {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border-left-color: var(--color-primary);
    font-weight: 500;
}

.admin-nav-item .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.admin-main {
    flex: 1;
    margin-left: 220px;
    padding: 24px 32px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 700;
}

/* 标签页 */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
    padding-bottom: 1px;
}

.tab-item {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
}

.tab-item:hover {
    color: var(--color-text);
}

.tab-item.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 500;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ============================================
   跳转页
   ============================================ */
.jump-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
}

.jump-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
}

.jump-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--color-border-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.jump-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.jump-desc {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.jump-manual {
    padding: 16px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.jump-manual .field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.jump-manual .field:last-child {
    border-bottom: none;
}

.jump-manual .label {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.jump-manual .value {
    font-size: 13px;
    font-weight: 500;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    padding: 2px 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--bg-card);
    font-size: 12px;
    cursor: pointer;
    color: var(--color-text-secondary);
}

.copy-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 14px;
}

/* ============================================
   Toast 提示
   ============================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    border-left: 4px solid var(--color-primary);
    animation: slideIn 0.3s ease;
}

.toast.success { border-left-color: var(--color-primary); }
.toast.error { border-left-color: var(--color-accent); }
.toast.info { border-left-color: #6B8CEF; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .sidebar { width: 180px; }
    .main-content { margin-left: 180px; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 200;
    }
    .admin-main {
        margin-left: 0;
    }
}

/* 隐藏类 */
.hidden { display: none !important; }
