/* 产教融合招生推广平台 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* 通用容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 顶部导航 */
.top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-nav .logo {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-nav .logo-icon {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.top-nav .nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.top-nav .nav-links a {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    transition: color 0.2s;
    padding: 6px 0;
    position: relative;
}
.top-nav .nav-links a:hover,
.top-nav .nav-links a.active {
    color: #fff;
}
.top-nav .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}
.top-nav .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-nav .user-info .avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.top-nav .user-info .btn-logout {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.top-nav .user-info .btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* 主内容区 */
.main-content {
    padding: 20px 0;
    min-height: calc(100vh - 120px);
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-secondary {
    background: #f0f2f5;
    color: #666;
}
.btn-secondary:hover { background: #e8eaed; }
.btn-info {
    background: #1890ff;
    color: #fff;
}
.btn-info:hover { background: #40a9ff; }
.btn-success { background: #52c41a; color: #fff; }
.btn-success:hover { background: #47b318; }
.btn-warning { background: #faad14; color: #fff; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* 表单样式 */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}
.form-label .required { color: #ff4d4f; margin-left: 2px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* 数据表格 */
.table-wrapper,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
}
.data-table th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}
.data-table tr:hover { background: #f9fafb; }

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.badge-success { background: #f6ffed; color: #52c41a; }
.badge-warning { background: #fffbe6; color: #faad14; }
.badge-danger { background: #fff2f0; color: #ff4d4f; }
.badge-info { background: #e6f7ff; color: #1890ff; }
.badge-default { background: #f0f0f0; color: #666; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pagination a {
    padding: 8px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    transition: all 0.2s;
}
.pagination a:hover { border-color: #667eea; color: #667eea; }
.pagination a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}
.stat-card .stat-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}
.stat-card .stat-value .unit {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 4px;
}
.stat-card .stat-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    opacity: 0.1;
}

/* 底部 */
.footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}
.login-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-box .logo-area {
    text-align: center;
    margin-bottom: 30px;
}
.login-box .logo-area h1 {
    font-size: 24px;
    color: #333;
    margin-top: 10px;
}
.login-box .logo-area .logo-icon-big {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}
.login-box .tab-switch {
    display: flex;
    margin-bottom: 25px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
}
.login-box .tab-switch button {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}
.login-box .tab-switch button.active {
    background: #fff;
    color: #333;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.login-box .register-tip {
    text-align: center;
    margin-top: 20px;
    color: #999;
    font-size: 13px;
}
.login-box .register-tip a {
    color: #667eea;
}

/* 侧边栏布局 */
.sidebar-layout {
    display: flex;
    gap: 20px;
}
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    padding: 15px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    height: fit-content;
    position: sticky;
    top: 80px;
}
.sidebar .sidebar-title {
    padding: 10px 20px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
}
.sidebar .sidebar-menu {
    list-style: none;
}
.sidebar .sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #555;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar .sidebar-menu li a:hover {
    background: #f5f7fa;
    color: #667eea;
}
.sidebar .sidebar-menu li a.active {
    background: rgba(102,126,234,0.08);
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 500;
}
.sidebar .sidebar-menu li a .menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.sidebar-content {
    flex: 1;
    min-width: 0;
}

/* 项目卡片 */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.project-card .project-cover {
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    position: relative;
}
.project-card .project-cover .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}
.project-card .project-body {
    padding: 15px;
}
.project-card .project-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.project-card .project-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    min-height: 40px;
}
.project-card .project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.project-card .commission-info {
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 600;
}

/* 二维码展示 */
.qr-code-box {
    text-align: center;
    padding: 20px;
}
.qr-code-box .qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    position: relative;
    overflow: hidden;
}
.qr-code-box .qr-code img { width: 100%; height: 100%; object-fit: contain; }
.qr-code-box .qr-tip {
    color: #666;
    font-size: 13px;
    margin-top: 10px;
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 15px;
}
.form-row .form-group { flex: 1; }

/* 月份统计数据（用于各角色后台本月数据） */
.month-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}
.month-stat-item {
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}
.month-stat-item:hover { background: #f7f9fc; }
.month-stat-item .month-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    line-height: 1.2;
}
.month-stat-item .month-label {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

/* 两列布局 */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 操作栏 */
.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.action-bar .search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 250px;
}
.action-bar .search-box input {
    flex: 1;
}

/* Tab切换 */
.tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
    gap: 25px;
    overflow-x: auto;
}
.tabs .tab-item {
    padding: 12px 0;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: all 0.2s;
}
.tabs .tab-item.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 500;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-state .empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}
.empty-state .empty-text {
    font-size: 14px;
}

/* 消息提示 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.alert-error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.alert-warning { background: #fffbe6; color: #faad14; border: 1px solid #ffe58f; }
.alert-info { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }

/* 模态框 */
.modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 16px;
    color: #333;
}
.modal-header .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}
.modal-body { padding: 20px; }
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 落地页样式 */
.landing-page {
    background: #fff;
    min-height: 100vh;
}
.landing-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}
.landing-header .promoter-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}
.landing-header .promoter-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.landing-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}
.enroll-form-box {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    margin-top: -30px;
    position: relative;
}
.enroll-type-switch {
    display: flex;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}
.enroll-type-switch button {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}
.enroll-type-switch button.active {
    background: #fff;
    color: #333;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 排行榜 */
.leaderboard {
    list-style: none;
}
.leaderboard li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.leaderboard li:last-child { border-bottom: none; }
.leaderboard .rank {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    flex-shrink: 0;
}
.leaderboard li:nth-child(1) .rank { background: #ffd700; color: #fff; }
.leaderboard li:nth-child(2) .rank { background: #c0c0c0; color: #fff; }
.leaderboard li:nth-child(3) .rank { background: #cd7f32; color: #fff; }
.leaderboard .user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.leaderboard .user-info { flex: 1; min-width: 0; }
.leaderboard .user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.leaderboard .user-desc {
    font-size: 12px;
    color: #999;
}
.leaderboard .score {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 15px;
    flex-shrink: 0;
}

/* 响应式 - 平板 */
@media (max-width: 1024px) {
    .sidebar { width: 180px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .top-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 15px;
        gap: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .top-nav .nav-links.show { display: flex; }
    .top-nav .nav-links a { padding: 12px 0; font-size: 15px; }
    .mobile-menu-btn { display: block; }
    
    .sidebar-layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        position: static;
        padding: 10px;
    }
    .sidebar .sidebar-title { display: none; }
    .sidebar .sidebar-menu {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    .sidebar .sidebar-menu li a {
        padding: 8px 14px;
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        font-size: 13px;
    }
    .sidebar .sidebar-menu li a.active {
        border-left: none;
        border-bottom-color: #667eea;
    }
    .sidebar .sidebar-menu li a .menu-icon { display: none; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 15px; }
    .stat-card .stat-value { font-size: 22px; }
    .stat-card .stat-label { font-size: 12px; }
    .stat-card .stat-icon { font-size: 28px; }
    
    .project-list { grid-template-columns: 1fr; }
    
    .form-row { flex-direction: column; gap: 18px; }
    .form-row .form-group { margin-bottom: 0; }
    
    .login-box { padding: 30px 20px; }
    .login-box .logo-area h1 { font-size: 20px; }
    
    .card { padding: 15px; border-radius: 10px; }
    .card-title { font-size: 15px; padding-bottom: 10px; }
    
    .data-table { font-size: 12px; }
    .data-table th, .data-table td { padding: 8px 10px; }
    
    .btn { padding: 8px 16px; font-size: 13px; }
    .btn-lg { padding: 12px 20px; font-size: 15px; }
    
    .main-content { padding: 15px 0; }
    
    .action-bar { gap: 8px; }
    .action-bar .search-box { min-width: 100%; order: -1; }

    .tabs { gap: 15px; }
    .tabs .tab-item { font-size: 13px; padding: 10px 0; }

    .modal-box { max-width: calc(100vw - 40px); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card .stat-value { font-size: 20px; }
    .top-nav .logo { font-size: 16px; }
    .top-nav .logo-icon { width: 28px; height: 28px; font-size: 16px; }

    .modal-box { max-width: calc(100vw - 30px); border-radius: 10px; }
    .modal-header { padding: 15px; }
    .modal-body { padding: 15px; }
    .modal-footer { padding: 12px 15px; flex-direction: column-reverse; }
    .modal-footer .btn { width: 100%; }

    .btn,
    .btn-sm {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .pagination { gap: 5px; }
    .pagination a { padding: 10px 14px; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

    .action-bar { flex-direction: column; align-items: stretch; }
    .action-bar .btn,
    .action-bar .search-box,
    .action-bar .search-box input,
    .action-bar select { width: 100%; }

    .form-row { flex-direction: column; gap: 18px; }
    .form-row .form-group { margin-bottom: 0; }
    .month-stats { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .month-stat-item .month-value { font-size: 20px; }
    .two-col-grid { grid-template-columns: 1fr; gap: 15px; }
}

/* 响应式 - 小屏手机 (iPhone 6/7/8 Plus) */
@media (max-width: 414px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-card .stat-value { font-size: 18px; }
    .stat-card .stat-label { font-size: 11px; }
    .stat-card .stat-icon { font-size: 24px; }
    .month-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .month-stat-item .month-value { font-size: 18px; }
}

/* 响应式 - 普通手机 (iPhone 6/7/8) */
@media (max-width: 375px) {
    .container { padding: 0 10px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 10px; }
    .stat-card .stat-value { font-size: 17px; }
    .stat-card .stat-label { font-size: 11px; }
    .stat-card .stat-icon { font-size: 22px; }
    .card { padding: 12px; }
    .card-title { font-size: 14px; }
    .month-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .month-stat-item { padding: 8px 5px; }
    .month-stat-item .month-value { font-size: 17px; }
    .month-stat-item .month-label { font-size: 12px; }
    .data-table th, .data-table td { padding: 6px 8px; font-size: 11px; }
}

/* 响应式 - 极小屏手机 */
@media (max-width: 360px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: 12px; }
    .stat-card .stat-value { font-size: 18px; }
    .stat-card .stat-label { font-size: 11px; }
    .card { padding: 12px; }
    .card-title { font-size: 14px; }
    .modal-box { max-width: calc(100vw - 20px); margin: 10px; }
    .modal-header h3 { font-size: 15px; }
    .sidebar .sidebar-menu li a { padding: 6px 10px; font-size: 12px; }
    .login-box { padding: 20px 15px; }
    .login-box .logo-area h1 { font-size: 18px; }
    .month-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .month-stat-item .month-value { font-size: 16px; }
}

/* 响应式 - 超小屏手机 (iPhone SE 等) */
@media (max-width: 320px) {
    body { font-size: 13px; }
    .container { padding: 0 8px; }
    .stats-grid { grid-template-columns: 1fr; gap: 8px; }
    .stat-card { padding: 10px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-label { font-size: 12px; }
    .card { padding: 10px; border-radius: 8px; }
    .card-title { font-size: 13px; }
    .month-stats { grid-template-columns: 1fr 1fr; gap: 6px; }
    .month-stat-item { padding: 6px 4px; }
    .month-stat-item .month-value { font-size: 15px; }
    .month-stat-item .month-label { font-size: 11px; }
    .btn, .btn-sm { min-height: 40px; padding: 8px 12px; font-size: 13px; }
    .top-nav .logo { font-size: 14px; }
    .top-nav .logo-icon { width: 24px; height: 24px; font-size: 14px; }
    .data-table th, .data-table td { padding: 5px 6px; font-size: 11px; }
}

/* ========== 动态效果与移动端增强 ========== */

/* 全局平滑滚动 */
html { scroll-behavior: smooth; }

/* 页面加载渐入动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 卡片统一入场动画 */
.card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }

/* 统计卡片动态增强 */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}
.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.18);
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.stat-card:hover::after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}
.stat-card .stat-icon {
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
}
.stat-card:hover .stat-icon {
    transform: translateY(-50%) scale(1.15);
    opacity: 0.18;
}

/* 项目卡片动态增强 */
.project-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.project-card .project-cover {
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

/* 按钮点击反馈与波纹 */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}
.btn:active::after {
    width: 200%;
    height: 200%;
}
.btn:active {
    transform: scale(0.97);
}

/* 触控设备禁用部分元素长按选中 */
@media (pointer: coarse) {
    .btn, .sidebar .sidebar-menu li a, .tabs .tab-item, .top-nav .nav-links a, .enroll-type-switch button, .login-box .tab-switch button {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
}

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

/* 主要按钮呼吸效果 */
.btn-primary {
    background-size: 200% 200%;
    animation: gradientMove 4s ease infinite;
}
.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

/* 表单焦点动态光环 */
.form-control:focus {
    box-shadow: 0 0 0 4px rgba(102,126,234,0.12);
    transform: translateY(-1px);
}

/* 顶部导航毛玻璃效果 */
.top-nav, .admin-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 侧边栏菜单动态 */
.sidebar .sidebar-menu li a {
    position: relative;
    overflow: hidden;
}
.sidebar .sidebar-menu li a::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(102,126,234,0.08), transparent);
    transition: width 0.3s;
}
.sidebar .sidebar-menu li a:hover::before {
    width: 100%;
}

/* ========== 移动端侧边栏抽屉菜单 ========== */
@media (max-width: 768px) {
    .sidebar.sidebar-drawer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        max-width: 80vw !important;
        z-index: 1001 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 20px 0 !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        display: block !important;
    }
    .sidebar.sidebar-drawer.show {
        transform: translateX(0);
    }
    .sidebar.sidebar-drawer .sidebar-title {
        display: block !important;
        padding: 15px 20px;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 10px;
    }
    .sidebar.sidebar-drawer .sidebar-menu {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        gap: 0;
    }
    .sidebar.sidebar-drawer .sidebar-menu li a {
        padding: 14px 20px;
        border-left: 3px solid transparent;
        border-bottom: none;
        white-space: normal;
        font-size: 14px;
    }
    .sidebar.sidebar-drawer .sidebar-menu li a.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    .sidebar.sidebar-drawer .sidebar-menu li a .menu-icon { display: inline-block; }

    .sidebar-drawer-mask {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    .sidebar-drawer-mask.show {
        opacity: 1;
        visibility: visible;
    }

    /* 移动端登录页增强 */
    .login-page {
        padding: 15px;
        background-size: 200% 200%;
        animation: gradientMove 8s ease infinite;
    }
    .login-box {
        border-radius: 20px;
        padding: 32px 24px;
        box-shadow: 0 25px 70px rgba(0,0,0,0.25);
    }
    .login-box .logo-area .logo-icon-big {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        font-size: 34px;
    }
    .login-box .logo-area h1 { font-size: 22px; margin-top: 14px; }
    .login-box .form-group { margin-bottom: 20px; }
    .login-box .form-control {
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 15px;
    }
    .login-box .btn-lg {
        padding: 16px;
        font-size: 16px;
        border-radius: 10px;
        min-height: 52px;
    }
    .login-box .register-tip {
        font-size: 14px;
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 28px 20px;
        border-radius: 18px;
    }
    .login-box .logo-area .logo-icon-big {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 30px;
    }
    .login-box .logo-area h1 { font-size: 20px; }
}

@media (max-width: 375px) {
    .login-box {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .login-box .logo-area .logo-icon-big {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
    .login-box .logo-area h1 { font-size: 18px; }
}

/* 移动端菜单滑入动画 */
.top-nav .nav-links {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}
.top-nav .nav-links.show {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

/* 加载骨架屏 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* 空状态动画 */
.empty-state {
    animation: fadeIn 0.6s ease-out;
}
.empty-state .empty-icon {
    animation: float 3s ease-in-out infinite;
}

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

/* Tab 切换下划线滑动效果 */
.tabs .tab-item {
    position: relative;
}
.tabs .tab-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: all 0.3s;
    transform: translateX(-50%);
}
.tabs .tab-item.active::after,
.tabs .tab-item:hover::after {
    width: 100%;
}

/* 徽章脉冲 */
.badge-danger, .audit-badge.audit-pending {
    animation: pulse 2s infinite;
}

/* 数据表格行滑入 */
.data-table tbody tr {
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}
.data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.25s; }

/* 移动端专属增强 */
@media (max-width: 768px) {
    /* 手机端卡片更大气的间距与圆角 */
    .card {
        border-radius: 16px;
        padding: 18px;
        margin-bottom: 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }

    /* 统计卡片手机端 2x2 大气布局 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card {
        padding: 18px 14px;
        border-radius: 14px;
        min-height: 110px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .stat-card .stat-value {
        font-size: 26px;
        font-weight: 700;
    }
    .stat-card .stat-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .stat-card .stat-icon {
        font-size: 40px;
        right: 10px;
    }

    /* 手机端按钮更大更易点击 */
    .btn {
        min-height: 46px;
        padding: 10px 18px;
        font-size: 15px;
    }
    .btn-lg {
        min-height: 52px;
        font-size: 16px;
        font-weight: 600;
    }
    .btn-block {
        border-radius: 12px;
    }

    /* 表单控件手机端加大 */
    .form-control {
        padding: 12px 14px;
        font-size: 16px; /* 防止 iOS 自动缩放 */
        min-height: 46px;
        border-radius: 10px;
    }
    .form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    /* 手机端侧边栏横向滚动增强 */
    .sidebar {
        border-radius: 14px;
        padding: 12px;
        margin-bottom: 16px;
    }
    .sidebar .sidebar-menu {
        gap: 8px;
        padding-bottom: 4px;
    }
    .sidebar .sidebar-menu li a {
        padding: 10px 16px;
        border-radius: 20px;
        background: #f7f9fc;
        font-size: 13px;
        border-bottom: none;
    }
    .sidebar .sidebar-menu li a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        box-shadow: 0 4px 12px rgba(102,126,234,0.25);
    }

    /* 项目卡片手机端全宽大气 */
    .project-list {
        gap: 16px;
    }
    .project-card .project-cover {
        height: 170px;
    }
    .project-card .project-body {
        padding: 18px;
    }
    .project-card .project-title {
        font-size: 17px;
    }

    /* 表格卡片化显示 */
    .data-table th,
    .data-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    /* 操作栏按钮撑满 */
    .action-bar .btn {
        flex: 1;
        min-height: 44px;
    }

    /* 模态框手机端更大气 */
    .modal-box {
        border-radius: 16px;
        max-height: 85vh;
    }
    .modal-header { padding: 18px; }
    .modal-body { padding: 18px; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .main-content { padding: 12px 0; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 16px 12px;
        min-height: 100px;
    }
    .stat-card .stat-value { font-size: 22px; }
    .stat-card .stat-label { font-size: 12px; }
    .stat-card .stat-icon { font-size: 32px; }

    .card { padding: 16px; border-radius: 14px; }
    .card-title { font-size: 15px; padding-bottom: 12px; }

    /* 底部按钮固定适配 */
    .btn-lg {
        min-height: 50px;
        font-size: 15px;
    }

    /* 顶部标题更紧凑 */
    .top-nav .logo { font-size: 15px; }
    .top-nav .logo-icon { width: 26px; height: 26px; font-size: 14px; }
}

@media (max-width: 360px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: auto; }
    .stat-card .stat-value { font-size: 24px; }
}
