/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航栏样式 */
.header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 0 30px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 28px;
    color: #fff;
}

.logo h1 {
    font-size: 22px;
    font-weight: 600;
    color: white;
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.welcome {
    font-size: 14px;
    opacity: 0.9;
}

.date-time {
    font-size: 13px;
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.user-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar i {
    font-size: 32px;
    color: white;
}

.user-name {
    font-weight: 500;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-content a i {
    width: 20px;
    color: #1a73e8;
}

.notification {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

.notification .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4081;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

/* 主内容区域布局 */
.main-content {
    display: flex;
    flex: 1;
}

/* 侧边栏样式 */
.sidebar {
    width: 260px;
    background-color: white;
    border-right: 1px solid #e0e0e0;
    padding: 25px 0;
    overflow-y: auto;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-section {
    padding: 0 20px;
}

.nav-section h3 {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-section h3 i {
    font-size: 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s;
    font-size: 15px;
}

.nav-link:hover {
    background-color: #f0f7ff;
    color: #1a73e8;
}

.nav-link.active {
    background-color: #e3f2fd;
    color: #1a73e8;
    font-weight: 500;
    border-left: 4px solid #1a73e8;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* 主内容区样式 */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: #f5f7fa;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    font-size: 24px;
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background-color: #0d47a1;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f1f3f4;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.btn-secondary:hover {
    background-color: #e8eaed;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #dadce0;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small:hover {
    background-color: #f5f5f5;
}

.btn-icon {
    padding: 6px 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: #5f6368;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #f5f5f5;
    color: #1a73e8;
}

.btn-icon.danger:hover {
    background-color: #ffebee;
    color: #f44336;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #9aa0a6;
}

.search-box input {
    padding: 10px 15px 10px 40px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 14px;
    width: 250px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* 统计卡片样式 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.stat-icon.student {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.stat-icon.teacher {
    background: linear-gradient(135deg, #2196f3, #0d47a1);
}

.stat-icon.key-student {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.stat-icon.course {
    background: linear-gradient(135deg, #9c27b0, #6a1b9a);
}

.stat-info h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 14px;
    color: #666;
}

.stat-change i {
    margin-right: 5px;
}

.stat-change i.fa-arrow-up {
    color: #4caf50;
}

.stat-change i.fa-arrow-down {
    color: #f44336;
}

/* 仪表盘内容样式 */
.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.chart-container, .recent-activity {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-container h3, .recent-activity h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    font-size: 16px;
}

/* 最近活动样式 */
.activity-list {
    list-style: none;
}

.activity-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.activity-icon.add {
    background-color: #e8f5e9;
    color: #4caf50;
}

.activity-icon.edit {
    background-color: #e3f2fd;
    color: #2196f3;
}

.activity-icon.key {
    background-color: #fff3e0;
    color: #ff9800;
}

.activity-icon.stat {
    background-color: #f3e5f5;
    color: #9c27b0;
}

.activity-details p {
    font-weight: 500;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 13px;
    color: #9aa0a6;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.score {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.score.good {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.score.excellent {
    background-color: #e3f2fd;
    color: #1565c0;
}

.score.warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status.warning {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.btn-pagination {
    padding: 8px 16px;
    border: 1px solid #dadce0;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pagination:hover {
    background-color: #f5f5f5;
}

.btn-pagination.active {
    background-color: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* 教师卡片样式 */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.teacher-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.teacher-avatar i {
    font-size: 60px;
    color: #1a73e8;
    margin-bottom: 15px;
}

.teacher-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.teacher-subject {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
}

.teacher-info {
    color: #5f6368;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.teacher-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* 重点学生卡片样式 */
.key-students-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.key-student-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ff9800;
}

.key-student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.key-student-header h3 {
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-level {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.key-level.high {
    background-color: #ffebee;
    color: #c62828;
}

.key-level.medium {
    background-color: #fff3e0;
    color: #ef6c00;
}

.key-student-info p {
    margin-bottom: 12px;
    color: #555;
}

.key-student-info strong {
    color: #333;
    font-weight: 600;
}

.key-student-progress {
    margin-top: 25px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #ffb74d);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* 课程卡片样式 */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.course-card:nth-child(1) .course-icon {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.course-card:nth-child(2) .course-icon {
    background: linear-gradient(135deg, #2196f3, #0d47a1);
}

.course-card:nth-child(3) .course-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.course-info {
    flex: 1;
}

.course-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.course-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.course-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.course-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5f6368;
    font-size: 14px;
}

.course-actions {
    display: flex;
    gap: 10px;
}

/* 底部样式 */
.footer {
    background-color: white;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.footer p {
    margin-bottom: 5px;
}

/* ==================== 班级管理卡片 ==================== */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.class-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.class-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.class-card-header {
    padding: 24px 20px 20px;
    color: white;
    text-align: center;
}

.class-grade-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 10px;
}

.class-card-header h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.class-slogan {
    font-size: 13px;
    opacity: 0.85;
    font-style: italic;
}

.class-card-body {
    padding: 18px 20px;
}

.class-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}

.class-info-row:last-child {
    border-bottom: none;
}

.class-info-row i {
    color: #1a73e8;
    width: 18px;
    text-align: center;
}

.class-card-footer {
    padding: 12px 20px;
    background: #fafafa;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ==================== 班级学生管理 ==================== */
.grade-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.grade-filter-btn {
    padding: 8px 18px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.grade-filter-btn:hover {
    border-color: var(--grade-color, #1a73e8);
    color: var(--grade-color, #1a73e8);
    background: #f0f7ff;
}

.grade-filter-btn.active {
    background: var(--grade-color, #1a73e8);
    color: white;
    border-color: var(--grade-color, #1a73e8);
}

.grade-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 12px;
}

.grade-filter-btn.active .grade-count {
    background: rgba(255, 255, 255, 0.25);
}

/* 年级分组 */
.grade-section {
    margin-bottom: 28px;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.grade-header {
    padding: 16px 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
}

.grade-header:hover {
    opacity: 0.95;
}

.grade-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.grade-arrow {
    font-size: 14px;
    transition: transform 0.3s;
}

.grade-title {
    font-size: 20px;
    font-weight: 700;
}

.grade-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 400;
}

.grade-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-grade-action {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-grade-action:hover {
    background: rgba(255, 255, 255, 0.35);
}

.grade-body {
    display: none;
    padding: 20px;
    background: #fafbfc;
}

.grade-body.expanded {
    display: block;
}

/* 班级卡片网格 */
.class-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 18px;
}

/* 单个班级学生卡片 */
.class-student-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.class-student-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.class-student-card-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
    gap: 10px;
    flex-wrap: wrap;
}

.class-student-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.class-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.class-student-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.class-meta {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.class-stats-mini {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.stat-mini {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.stat-mini.excellent {
    background: #e8f5e9;
    color: #2e7d32;
}

.stat-mini.normal {
    background: #e3f2fd;
    color: #1565c0;
}

.stat-mini.warning {
    background: #fff3e0;
    color: #ef6c00;
}

.stat-mini.score {
    background: #f3e5f5;
    color: #6a1b9a;
}

.stat-mini.total {
    background: #f5f5f5;
    color: #666;
}

/* 学生行 */
.student-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid #f8f8f8;
    transition: background 0.2s;
}

.student-row:last-child {
    border-bottom: none;
}

.student-row:hover {
    background: #f8fafc;
}

.student-row-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.student-no {
    font-size: 12px;
    color: #aaa;
    font-family: monospace;
}

.student-name {
    font-size: 14px;
    color: #333;
}

.student-gender {
    font-size: 12px;
    color: #999;
    padding: 1px 8px;
    background: #f5f5f5;
    border-radius: 8px;
}

.student-remark {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.student-row-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 8px;
}

.class-student-empty {
    text-align: center;
    padding: 30px;
    color: #ccc;
    font-size: 14px;
}

.class-student-list {
    max-height: 360px;
    overflow-y: auto;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .class-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .class-student-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .student-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .student-row-actions {
        align-self: flex-end;
    }
    
    .grade-header {
        padding: 12px 16px;
    }
    
    .grade-title {
        font-size: 17px;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .key-students-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teacher-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }
    
    .header-left, .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-section {
        flex: 1;
        min-width: 150px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card {
        flex-direction: column;
        text-align: center;
    }
    
    .course-details {
        justify-content: center;
    }
    
    .course-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 15px;
    }
    
    .nav-section {
        min-width: 100%;
    }
    
    .section-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
}

/* ==================== 遮罩层 ==================== */
.overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.overlay.active {
    display: block;
}

/* ==================== 弹窗 (Modal) ==================== */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    animation: modalSlideIn 0.3s ease;
}

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-content.modal-lg {
    width: 680px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    font-size: 20px;
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ==================== 表单样式 ==================== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group .required {
    color: #f44336;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

/* ==================== 确认对话框 ==================== */
.confirm-modal .modal-content {
    width: 440px;
}

.confirm-modal .modal-body {
    text-align: center;
    padding: 30px;
}

.confirm-modal .modal-body p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.btn-danger {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-danger:hover {
    background-color: #c62828;
}

.btn-danger-outline {
    background-color: transparent;
    color: #f44336;
    border: 1px solid #f44336;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-danger-outline:hover {
    background-color: #ffebee;
}

.btn-small.danger {
    color: #f44336;
    border-color: #f44336;
}

.btn-small.danger:hover {
    background-color: #ffebee;
}

/* ==================== Toast 通知 ==================== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    min-width: 280px;
    max-width: 420px;
    font-size: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: toastSlideIn 0.35s ease;
    font-weight: 500;
}

.toast-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.toast-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.toast-warning {
    background: #fff3e0;
    color: #ef6c00;
    border-left: 4px solid #ff9800;
}

.toast-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    margin-left: auto;
    font-size: 14px;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== 详情弹窗 ==================== */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-item label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.detail-item span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* ==================== 重点学生操作按钮 ==================== */
.key-student-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* ==================== 重点学生增强卡片 ==================== */
.key-student-card.enhanced {
    border-left-width: 6px;
}

.key-student-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.key-student-header-right {
    display: flex;
    align-items: center;
}

.key-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== 动态跟踪区域 ==================== */
.track-section {
    margin-top: 18px;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.track-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.track-section-header h4 {
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: #e3f2fd;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 600;
}

.track-header-actions {
    display: flex;
    gap: 6px;
}

.btn-primary-sm {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-sm:hover {
    background: #0d47a1;
}

/* ==================== 趋势图 ==================== */
.trend-chart {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e8edf2;
}

.trend-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.trend-svg-container {
    position: relative;
    height: 130px;
    margin-bottom: 8px;
}

.trend-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.trend-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
}

.trend-label {
    font-size: 10px;
    color: #aaa;
    transform: rotate(-30deg);
    transform-origin: top left;
    white-space: nowrap;
}

.trend-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.trend-stat {
    text-align: center;
    background: white;
    border-radius: 8px;
    padding: 10px 6px;
    border: 1px solid #f0f0f0;
}

.trend-stat-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.trend-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.trend-stat-value.highlight {
    color: #1a73e8;
}

.trend-stat-value.positive {
    color: #4caf50;
}

.trend-empty {
    text-align: center;
    padding: 30px;
    color: #bbb;
    font-size: 13px;
}

/* ==================== 时间线 ==================== */
.track-timeline {
    position: relative;
    padding-left: 0;
}

.track-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    position: relative;
    border-bottom: 1px solid #f8f8f8;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.timeline-dot.type-talk { background: #42a5f5; }
.timeline-dot.type-visit { background: #ef5350; }
.timeline-dot.type-psychology { background: #ab47bc; }
.timeline-dot.type-tutor { background: #66bb6a; }
.timeline-dot.type-activity { background: #ff9800; }
.timeline-dot.type-observe { background: #78909c; }
.timeline-dot.type-other { background: #8d6e63; }

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.timeline-date {
    font-size: 12px;
    color: #999;
}

.timeline-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.timeline-type.type-talk { background: #e3f2fd; color: #1976d2; }
.timeline-type.type-visit { background: #ffebee; color: #c62828; }
.timeline-type.type-psychology { background: #f3e5f5; color: #7b1fa2; }
.timeline-type.type-tutor { background: #e8f5e9; color: #2e7d32; }
.timeline-type.type-activity { background: #fff3e0; color: #ef6c00; }
.timeline-type.type-observe { background: #eceff1; color: #455a64; }
.timeline-type.type-other { background: #efebe9; color: #4e342e; }

.timeline-latest {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    background: #ff4081;
    color: white;
    font-weight: 500;
}

.timeline-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
}

.timeline-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

.timeline-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline-more {
    text-align: center;
    padding: 12px;
    color: #1a73e8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.timeline-more:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* ==================== 跟踪记录为空 ==================== */
.track-empty {
    text-align: center;
    padding: 24px;
    color: #ccc;
}

.track-empty i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.track-empty p {
    font-size: 13px;
    margin-bottom: 4px;
}

.track-empty-hint {
    font-size: 12px;
    color: #ddd;
}

/* ==================== 全部跟踪记录视图 ==================== */
.all-records-view {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    grid-column: 1 / -1;
}

.all-records-view h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.all-records-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ==================== 表格底部 ==================== */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    color: #666;
    font-size: 14px;
}

/* ==================== 低风险标签 ==================== */
.key-level.low {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* ==================== 活动日志图标 ==================== */
.activity-icon.danger {
    background-color: #ffebee;
    color: #f44336;
}

/* ==================== 导入弹窗样式 ==================== */
.import-zone {
    width: 100%;
}

.import-drop-area {
    border: 2px dashed #dadce0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.import-drop-area:hover {
    border-color: #1a73e8;
    background: #f0f6ff;
}

.import-preview {
    margin-top: 20px;
}

.import-preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.import-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.import-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.import-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
    cursor: pointer;
}

/* ==================== 成功按钮 ==================== */
.btn-success {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-success:hover {
    background-color: #388e3c;
}

/* ==================== 日常管理样式 ==================== */
.daily-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.daily-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid #1a73e8;
}

.daily-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.daily-stat-card.blue { border-top-color: #2196f3; }
.daily-stat-card.green { border-top-color: #4caf50; }
.daily-stat-card.orange { border-top-color: #ff9800; }
.daily-stat-card.purple { border-top-color: #9c27b0; }
.daily-stat-card.teal { border-top-color: #009688; }

.daily-stat-num {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.2;
}

.daily-stat-label {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.daily-stat-label i {
    font-size: 14px;
    color: #999;
}

/* 日常管理过滤栏 */
.daily-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.daily-filter-btn {
    padding: 8px 18px;
    border: 1px solid #dadce0;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
    font-weight: 500;
}

.daily-filter-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
    background: #f0f7ff;
}

.daily-filter-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* 日常管理分类标签 */
.daily-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.daily-cat-tag i {
    font-size: 12px;
}

/* 来源标签 */
.source-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.source-tag.scan {
    background: #e3f2fd;
    color: #1565c0;
}

.source-tag.admin {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* 日常管理表格操作列 */
#dailyTableBody td:last-child {
    white-space: nowrap;
}

#dailyTableBody td:last-child .btn-icon {
    padding: 4px 8px;
}

/* 日常管理响应式 */
@media (max-width: 992px) {
    .daily-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .daily-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .daily-filter-bar {
        gap: 8px;
    }

    .daily-filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    #dailyTableBody td:nth-child(7),
    .data-table th:nth-child(7) {
        display: none;
    }
}

@media (max-width: 576px) {
    .daily-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .daily-stat-num {
        font-size: 24px;
    }

    .daily-stat-card {
        padding: 14px 10px;
    }
}

/* ==================== 响应式弹窗 ==================== */
@media (max-width: 768px) {
    .modal-content,
    .modal-content.modal-lg {
        width: 92vw;
        max-height: 80vh;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .toast {
        left: 16px;
        right: 16px;
        max-width: none;
        min-width: auto;
    }

    .import-options {
        flex-direction: column;
        gap: 10px;
    }

    .import-drop-area {
        padding: 25px;
    }

    /* 时间线响应式 */
    .trend-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .timeline-dot {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .track-timeline::before {
        left: 15px;
    }
    
    .timeline-actions {
        flex-direction: row;
        align-self: flex-end;
    }
}

/* ==================== 手机扫码按钮 ==================== */
.btn-qr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 16px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.btn-qr:hover {
    background: linear-gradient(135deg, #1557b0, #0a3580);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
    transform: translateY(-1px);
}

.btn-qr i {
    font-size: 18px;
}

/* ==================== 二维码弹窗 ==================== */
.modal-qr {
    max-width: 480px !important;
}

.qr-body {
    text-align: center;
}

.qr-info {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.qr-info i {
    font-size: 28px;
    color: #1a73e8;
    flex-shrink: 0;
    margin-top: 2px;
}

.qr-info p {
    font-size: 14px;
    color: #1976d2;
    line-height: 1.6;
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e8edf2;
    margin-bottom: 16px;
    min-height: 240px;
}

.qr-container canvas,
.qr-container img {
    border-radius: 8px;
}

.qr-loading {
    text-align: center;
    color: #999;
}

.qr-loading i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.qr-loading p {
    font-size: 14px;
}

.qr-url-display {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
    word-break: break-all;
    border: 1px solid #e8edf2;
    display: none;
}

.qr-url-display code {
    color: #1a73e8;
    font-size: 13px;
}

.qr-tips {
    background: #fff8e1;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    border: 1px solid #ffe082;
}

.qr-tips p {
    font-size: 13px;
    color: #e65100;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.qr-tips i {
    color: #ff9800;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== 德育表现 ==================== */
.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.performance-stat-card {
    background: white;
    border-radius: 10px;
    padding: 16px 18px;
    text-align: center;
    border: 1px solid #e8edf2;
    transition: all 0.2s;
}

.performance-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.performance-stat-card.blue { border-top: 3px solid #2196f3; }
.performance-stat-card.green { border-top: 3px solid #4caf50; }
.performance-stat-card.orange { border-top: 3px solid #ff9800; }
.performance-stat-card.purple { border-top: 3px solid #9c27b0; }
.performance-stat-card.teal { border-top: 3px solid #009688; }

.perf-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.perf-stat-label {
    font-size: 12px;
    color: #999;
}

.perf-stat-mini {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.perf-stat-mini span {
    background: #f0f4f8;
    border-radius: 6px;
    padding: 2px 6px;
}

/* 德育表现表格 */
.performance-table th,
.performance-table td {
    text-align: center;
    white-space: nowrap;
}

.perf-score-tag {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    background: #e8f5e9;
    color: #2e7d32;
}

/* 星级评分 */
.perf-dim-item {
    text-align: center;
}

.perf-dim-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.perf-dim-item label i {
    margin-right: 4px;
    color: #1a73e8;
}

.perf-star-group {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.perf-star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.perf-star:hover {
    transform: scale(1.2);
    color: #ffc107;
}

.perf-star.active {
    color: #ff9800;
    text-shadow: 0 1px 4px rgba(255,152,0,0.3);
}

.perf-total-score {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.perf-total-score strong {
    font-size: 26px;
    color: #1a73e8;
}

/* 响应式 */
@media (max-width: 768px) {
    .performance-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .perf-dimensions {
        grid-template-columns: 1fr !important;
    }
}

/* ==================== 视频资源管理 ==================== */

.video-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.video-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}
.video-stat-card:hover {
    transform: translateY(-2px);
}
.video-stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 4px;
}
.video-stat-card.green .video-stat-num { color: #4caf50; }
.video-stat-card.orange .video-stat-num { color: #ff9800; }
.video-stat-card.blue .video-stat-num { color: #2196f3; }
.video-stat-label {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    padding: 4px;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.video-thumb {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    overflow: hidden;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.4);
}
.video-status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}
.video-status.published { background: #4caf50; }
.video-status.draft { background: #999; }

.video-info {
    padding: 12px 14px;
    flex: 1;
}
.video-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-course, .video-grade, .video-duration, .video-views {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.video-views { color: #1a73e8; }
.video-desc {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    line-height: 1.5;
}
.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}
.video-tag {
    padding: 2px 8px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 10px;
    font-size: 11px;
}
.video-card-actions {
    padding: 10px 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
}
/* 视频积分徽章 */
.video-points-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(255,152,0,0.3);
    z-index: 2;
}
/* 二维码生成按钮 */
.qrcode-btn {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9 !important;
}
.qrcode-btn:hover {
    background: #c8e6c9 !important;
}

/* 视频来源切换标签 */
.video-source-tabs {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}
.video-source-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.video-source-tab:not(:last-child) {
    border-right: 1px solid #ddd;
}
.video-source-tab.active {
    background: #1a73e8;
    color: #fff;
}
.video-source-tab:hover:not(.active) {
    background: #e8f0fe;
    color: #1a73e8;
}

/* 百度网盘二维码上传区域 */
.video-qrcode-upload-area {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}
.video-qrcode-upload-area:hover {
    border-color: #e07b22;
    background: #fff8f0;
}

/* 二维码预览区域 */
.video-qrcode-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
}
.video-qrcode-preview img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-shrink: 0;
}
.video-qrcode-preview-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    flex-wrap: wrap;
}
.video-qrcode-preview-info .fa-image {
    color: #e07b22;
    font-size: 18px;
}

/* 视频上传区域 */
.video-upload-area {
    border: 2px dashed #d0d5dd;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
}
.video-upload-area:hover {
    border-color: #1a73e8;
    background: #f0f5ff;
}
.video-upload-icon {
    font-size: 42px;
    color: #1a73e8;
    margin-bottom: 12px;
}
.video-upload-text {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}
.video-upload-text strong {
    color: #1a73e8;
    cursor: pointer;
}
.video-upload-hint {
    font-size: 12px;
    color: #999;
}

/* 视频上传进度条 */
.video-upload-progress {
    margin-top: 12px;
    text-align: center;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e8edf2;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #4caf50);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.progress-text {
    font-size: 12px;
    color: #666;
}

/* 已选文件信息 */
.video-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f0f5ff;
    border: 1px solid #c6d9f7;
    border-radius: 8px;
    font-size: 14px;
    color: #1a73e8;
}
.video-file-info .fa-file-video {
    font-size: 22px;
}
.video-file-size {
    color: #888;
    font-size: 12px;
    margin-left: auto;
}
.btn-remove-file {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 4px;
}
.btn-remove-file:hover {
    color: #f44336;
    background: #fff0f0;
}

/* 视频表单缩略图预览 */
.video-thumb-preview {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background: #f0f0f0;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.video-thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 家长积分统计卡片 ==================== */
.parent-points-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.parent-points-stat-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e8edf2;
    transition: all 0.2s;
}

.parent-points-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.pps-num {
    font-size: 26px;
    font-weight: 700;
    color: #ff9800;
    margin-bottom: 4px;
}

.pps-label {
    font-size: 12px;
    color: #999;
}

/* ==================== 统计报表概览卡片 ==================== */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.overview-stat-card {
    background: white;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e8edf2;
    transition: all 0.2s;
}

.overview-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.ov-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ov-info {
    flex: 1;
    min-width: 0;
}

.ov-num {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.ov-label {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.ov-sub {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

/* ==================== 图表区域 ==================== */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}

.chart-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8edf2;
}

.chart-panel.full-width {
    grid-column: 1 / -1;
}

.chart-panel h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container-bar,
.chart-container-pie {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 条形图 */
.bar-chart {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    font-size: 13px;
    color: #555;
    min-width: 60px;
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 28px;
    background: #f0f4f8;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    min-width: 40px;
    transition: width 0.6s ease;
}

.bar-value {
    color: white;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bar-count {
    font-size: 12px;
    color: #999;
    min-width: 36px;
    text-align: left;
}

/* 饼图 */
.pie-chart-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pie-legend-item {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pie-legend-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.pie-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-center {
    position: absolute;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.pie-center small {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

/* ==================== 按钮样式补充 ==================== */
.btn-warning {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-warning:hover {
    background: #f57c00;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: #1a73e8;
    border: 1px solid #1a73e8;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #e8f0fe;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-small.success:hover {
    background: #c8e6c9;
}

.btn-small.warning {
    background: #fff3e0;
    color: #e65100;
}

.btn-small.warning:hover {
    background: #ffe0b2;
}

.btn-small.danger {
    background: #fce4ec;
    color: #c62828;
}

.btn-small.danger:hover {
    background: #f8bbd0;
}

/* ==================== 报表生成 ==================== */
.report-config {
    background: white;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid #e8edf2;
}

.report-config-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.config-item label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.config-item .form-select,
.config-item .form-input {
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.config-item .form-select:focus,
.config-item .form-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.report-preview-container {
    background: #f0f4f8;
    border-radius: 12px;
    min-height: 400px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    border: 1px solid #e8edf2;
}

.report-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.report-empty-state h3 {
    font-size: 18px;
    color: #999;
    margin: 16px 0 8px;
}

.report-empty-state p {
    font-size: 14px;
    color: #bbb;
    max-width: 500px;
}

.report-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.report-loading i {
    font-size: 48px;
    color: #1a73e8;
    margin-bottom: 16px;
}

.report-loading p {
    font-size: 16px;
    color: #888;
}

/* 报表文档样式 */
.report-document {
    background: white;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 3px solid #1a73e8;
}

.report-header-left h1 {
    font-size: 26px;
    color: #1a73e8;
    margin-bottom: 6px;
}

.report-meta {
    font-size: 13px;
    color: #888;
}

.report-header-right {
    text-align: right;
}

.report-stamp {
    display: inline-block;
    border: 2px solid #c62828;
    color: #c62828;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    opacity: 0.5;
    transform: rotate(-5deg);
}

.report-section {
    margin-bottom: 28px;
    page-break-inside: avoid;
}

.report-section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.report-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.report-card {
    flex: 1;
    min-width: 120px;
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s;
}

.report-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.report-card .rc-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
    line-height: 1.2;
}

.report-card .rc-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.report-card.status-normal .rc-value {
    color: #4caf50;
}

.report-card.status-excellent .rc-value {
    color: #2196f3;
}

.report-card.status-focus .rc-value {
    color: #f44336;
}

/* 报表表格 */
.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.report-table thead th {
    background: #f0f4f8;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #d0d7de;
    white-space: nowrap;
}

.report-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e8edf2;
}

.report-table tbody tr:hover td {
    background: #f8fafc;
}

.report-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

/* 报表进度条 */
.report-progress-bar {
    display: inline-block;
    width: 80px;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 6px;
}

.report-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* 报表页脚 */
.report-footer {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 12px;
    color: #aaa;
}

.report-footer p {
    margin: 4px 0;
}

/* 打印样式 */
@media print {
    body {
        background: white !important;
    }
    .report-document {
        box-shadow: none;
        padding: 20px;
    }
    .report-header {
        border-bottom-color: #000 !important;
    }
    .report-section-title {
        border-bottom-color: #ccc !important;
    }
    .report-table thead th {
        background: #eee !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .report-card {
        border-color: #ccc;
    }
    .section-num {
        background: #1a73e8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ==================== 谦和家校管理 ==================== */
.jiaxiao-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.jiaxiao-stat-card {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.2);
}
.jiaxiao-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #fb8c00, #ffa726);
    box-shadow: 0 4px 12px rgba(251, 140, 0, 0.2);
}
.jiaxiao-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}
.jiaxiao-stat-card i {
    font-size: 32px;
    opacity: 0.8;
}
.jiaxiao-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}
.jiaxiao-stat-card .stat-num {
    font-size: 28px;
    font-weight: 700;
}
.jiaxiao-stat-card .stat-label {
    font-size: 13px;
    opacity: 0.9;
}
.jiaxiao-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.jiaxiao-status.ongoing {
    background: #e8f5e9;
    color: #2e7d32;
}
.jiaxiao-status.upcoming {
    background: #e3f2fd;
    color: #1565c0;
}
.jiaxiao-status.ended {
    background: #f5f5f5;
    color: #9e9e9e;
}
.jiaxiao-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}
.jiaxiao-status.pending {
    background: #fff3e0;
    color: #e65100;
}
.gift-emoji-preview {
    font-size: 60px;
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}
.jiaxiao-qrcode-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.jiaxiao-qrcode-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.jiaxiao-qrcode-info {
    margin-bottom: 24px;
}
.jiaxiao-qrcode-info h3 {
    font-size: 22px;
    color: #2e7d32;
    margin: 12px 0 8px;
}
.jiaxiao-qrcode-info p {
    color: #666;
    font-size: 14px;
    margin: 4px 0;
}
.jiaxiao-qrcode-box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}
.jiaxiao-qrcode-box .qr-loading {
    color: #999;
    text-align: center;
}
.jiaxiao-qrcode-box .qr-loading i {
    font-size: 28px;
    margin-bottom: 8px;
}
.jiaxiao-qrcode-url {
    margin-top: 20px;
    padding: 12px;
    background: #f0f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.jiaxiao-qrcode-url label {
    font-size: 13px;
    color: #666;
}
.jiaxiao-qrcode-url code {
    background: #e8eaed;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #1a73e8;
    word-break: break-all;
}
.jiaxiao-qrcode-tips {
    background: #fff8e1;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #ffecb3;
}
.jiaxiao-qrcode-tips h4 {
    color: #f57f17;
    margin: 0 0 12px;
    font-size: 16px;
}
.jiaxiao-qrcode-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .jiaxiao-qrcode-container {
        grid-template-columns: 1fr;
    }
    .jiaxiao-stats {
        flex-direction: column;
    }
}

/* ==================== 沟通记录卡片 ==================== */
.comm-records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.comm-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important; transform: translateY(-2px) !important; }
.comm-card-risk { border-left-color: #ff4d4f !important; }
@media (max-width: 768px) {
    .comm-records-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 跟踪记录图片上传 ==================== */
.track-image-upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
}
.track-image-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.track-image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.track-image-preview-item:hover {
    transform: scale(1.03);
}
.track-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.track-image-preview-item button {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.track-image-preview-item button:hover {
    background: rgba(220,38,38,0.8);
}