/* 
 * 拓智赢智能教育系统 - 前端样式
 * style.css - 学生端、家长端、教练端共用样式
 */

/* ===== 基础样式重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

:root {
    /* 主色调 */
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #0ea5e9;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --light-gray: #e2e8f0;
    --text-light: #cbd5e1;
    --text-dark: #1e293b;
    
    /* 渐变背景 */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--secondary));
    --gradient-dark: linear-gradient(135deg, var(--darker), var(--dark));
    
    /* 状态色 */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 过渡效果 */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* 边框圆角 */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

body {
    background: var(--gradient-dark);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== 背景特效 ===== */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(124, 58, 237, 0.15) 0%, transparent 40%);
    z-index: -2;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* ===== 容器布局 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ===== 头部样式 ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: var(--radius);
    object-fit: cover;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(to right, #e0e7ff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info span {
    color: var(--text-light);
    font-size: 15px;
}

.header-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ===== 公告栏 ===== */
.announcement-bar {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    border-radius: var(--radius);
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.announcement-content i {
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
    overflow: hidden;
}

.announcement-item {
    margin-bottom: 5px;
    line-height: 1.5;
    font-size: 14px;
}

.announcement-item strong {
    color: #c7d2fe;
    font-weight: 600;
}

.announcement-item:last-child {
    margin-bottom: 0;
}

.close-announcement {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 10px;
}

.close-announcement:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===== 认证页面样式 ===== */
.auth-container {
    max-width: 500px;
    margin: 40px auto;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-xl);
    padding: 35px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 12px 25px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: white;
    border-bottom-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.auth-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(to right, #c7d2fe, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 14px;
}

.form-group label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 4px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

input, select, textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.form-check label {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.form-help {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

/* ===== 按钮样式 ===== */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transform: scale(1);
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: linear-gradient(to right, var(--success), #34d399);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-danger {
    background: linear-gradient(to right, var(--danger), #f87171);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-warning {
    background: linear-gradient(to right, var(--warning), #fbbf24);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.train-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.train-btn:hover {
    gap: 15px;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px) scale(1.05);
}

.train-btn.locked {
    background: linear-gradient(to right, #64748b, #475569);
    cursor: not-allowed;
}

.train-btn.locked:hover {
    gap: 10px;
    transform: none;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.lock-icon {
    margin-left: 5px;
}

/* ===== 警告框 ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.4s ease;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

/* ===== 模块卡片 ===== */
.modules {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #c7d2fe, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 17px;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.module-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.module-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    z-index: -1;
    border-radius: calc(var(--radius-xl) + 2px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.module-card:hover::before {
    opacity: 1;
}

.module-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: var(--transition);
}

.module-card:hover .module-icon {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.module-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.module-card p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
    flex-grow: 1;
}

.module-features {
    list-style: none;
    margin-bottom: 25px;
}

.module-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.module-features li i {
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
}

.module-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.learn-more {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.learn-more:hover {
    color: white;
    gap: 10px;
}

/* ===== 信息卡片 ===== */
.info-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item strong {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14px;
}

.info-item span {
    color: white;
    font-size: 15px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== 进度条 ===== */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.progress-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.progress-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.progress-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-card p {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* ===== 评论/批注样式 ===== */
.comments-section {
    margin-top: 50px;
}

.comments-list {
    margin-top: 20px;
}

.comment-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.comment-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-date {
    color: #94a3b8;
    font-size: 13px;
}

.comment-item p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 14px;
    margin: 0;
}

/* ===== 仪表盘概览 ===== */
.dashboard-overview {
    margin-bottom: 40px;
}

.welcome-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 35px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.welcome-card h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: white;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

/* ===== 教练界面样式 ===== */
.coach-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.coach-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.class-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.class-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}

.class-card p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
}

.class-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* ===== 学生表格 ===== */
.students-table {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.students-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.students-table th,
.students-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.students-table th {
    background: rgba(30, 41, 59, 0.8);
    font-weight: 600;
    color: #cbd5e1;
    font-size: 14px;
    white-space: nowrap;
}

.students-table td {
    color: #cbd5e1;
    vertical-align: middle;
}

.students-table tr:hover {
    background: rgba(30, 41, 59, 0.4);
}

/* ===== 训练内容列表 ===== */
.training-list {
    margin-top: 20px;
}

.training-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.training-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.training-info {
    flex: 1;
}

.training-info h4 {
    font-size: 17px;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
}

.training-info p {
    color: #94a3b8;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 14px;
}

.training-date {
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.training-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ===== 模态框样式 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-xl);
    padding: 35px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.4s ease;
    backdrop-filter: blur(10px);
}

.modal-content .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
}

.modal-content .close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ===== 无数据状态 ===== */
.no-data {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #64748b;
}

.no-student {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .container {
        padding: 20px 30px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 20px 25px;
    }
    
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding-bottom: 25px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .auth-container {
        padding: 30px 20px;
        margin: 30px auto;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .coach-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coach-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .training-item {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .training-actions {
        align-self: flex-end;
    }
    
    .class-actions {
        flex-direction: column;
    }
    
    .students-table {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 15px;
    }
    
    .module-card {
        padding: 25px 20px;
    }
    
    .modal-content {
        padding: 25px 20px;
        width: 95%;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .auth-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .announcement-bar,
    .header-links,
    .btn,
    .train-btn,
    .close-announcement,
    .modal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .module-card,
    .info-card,
    .progress-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
}