/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header h1 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

header h1 i {
    color: #667eea;
    margin-right: 10px;
}



nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.nav-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 主内容区域 */
main {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.tab-content {
    display: none;
}

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

/* 首页样式 */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    max-width: 900px;
    max-height: 50vh;
    margin: 0 auto;
    padding: 15px;
}

.left-modules {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
}

.left-modules .card {
    flex: 1;
    min-height: 12px;
}

.right-module {
    display: flex;
    align-items: stretch;
}

.right-module .calendar-card {
    height: 100%;
    min-height: 50px;
    width: 100%;
}

.mini-calendar {
    width: 100%;
    max-width: none;
}

.card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 6px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 28px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #495057;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.card h3 i {
    color: #667eea;
}

.no-data {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex: 1;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.btn-success {
    background: #38a169;
    color: white;
}

.btn-success:hover {
    background: #2f855a;
}

/* 区域头部 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    color: #2d3748;
    font-size: 1.5rem;
}

/* 筛选器样式 */
.filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filters select {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    outline: none;
    min-width: 120px;
}

.filters select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.filters select:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.filters select option {
    background: white;
    color: #333;
    padding: 8px 12px;
    border: none;
}

.filters select option:hover {
    background: #f8f9fa;
}

/* 筛选器标签 */
.filter-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-label i {
    color: #667eea;
}

/* 社团网格 */
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.club-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.club-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.club-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

.club-type {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.club-info {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

/* 课程安排样式 */
.schedule-container {
    overflow-x: auto;
}

.week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    min-width: 800px;
}

.day-column {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    min-height: 400px;
}

.day-column h3 {
    text-align: center;
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.class-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.class-item:hover {
    transform: translateX(5px);
}

.class-name {
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

.class-time {
    color: #667eea;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.class-location {
    color: #6c757d;
    font-size: 0.8rem;
}

/* 作业列表样式 */
.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #4a5568;
}

.assignments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.assignment-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.assignment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.assignment-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d3748;
}

.assignment-club {
    color: #667eea;
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background: #fed7d7;
    color: #c53030;
}

.status-submitted {
    background: #c6f6d5;
    color: #2f855a;
}

.status-overdue {
    background: #feebc8;
    color: #dd6b20;
}

.assignment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

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

.info-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: bold;
}

.info-value {
    color: #2d3748;
}

/* 社团作业模块样式 */
.club-assignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.club-assignment-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.club-assignment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.club-assignment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.club-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.club-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.club-header h3 i {
    color: #667eea;
    font-size: 1.1rem;
}

.club-type {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.assignment-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.assignment-stats .stat-item {
    text-align: center;
    padding: 16px 8px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.assignment-stats .stat-item:hover {
    background: #e9ecef;
}

.assignment-stats .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.assignment-stats .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.assignment-actions {
    display: flex;
    gap: 12px;
}

.assignment-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.assignment-actions .btn-primary {
    background: #667eea;
    color: white;
    border: none;
}

.assignment-actions .btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.assignment-actions .btn-secondary {
    background: #f8f9fa;
    color: #2d3748;
    border: 1px solid #dee2e6;
}

.assignment-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    color: #2d3748;
    margin: 0;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e53e3e;
}

/* 表单样式 */
form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* 状态样式 */
.club-status, .class-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    margin-top: 5px;
    display: inline-block;
}

.club-status.active, .class-status.active {
    background: #48bb78;
    color: white;
}

.club-status.pending, .class-status.pending {
    background: #ed8936;
    color: white;
}

.club-status.expired, .class-status.expired {
    background: #e53e3e;
    color: white;
}

.class-item.expired {
    opacity: 0.6;
    background: #f7fafc;
}

.class-item.pending {
    border-left: 4px solid #ed8936;
}

.class-item.active {
    border-left: 4px solid #48bb78;
}

.class-period {
    font-size: 11px;
    color: #718096;
    margin-top: 5px;
}

/* 社团主题样式 */
.theme-academic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-sports {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.theme-arts {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.theme-technology {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.theme-volunteer {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.theme-default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 主题过渡动画 */
body {
    transition: background 0.5s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        padding: 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav {
        gap: 5px;
    }
    
    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    main {
        padding: 20px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        max-width: 100%;
        padding: 10px;
    }
    
    .left-modules {
        gap: 10px;
    }
    
    .left-modules .card {
        min-height: 100px;
    }
    
    .right-module .calendar-card {
        min-height: 300px;
    }
    
    .clubs-grid {
        grid-template-columns: 1fr;
    }
    
    .week-view {
        grid-template-columns: 1fr;
        min-width: auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .assignment-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .assignment-info {
        grid-template-columns: 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 视图控制样式 */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}







.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* 作业详情样式 */
.assignment-details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.assignment-detail-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #667eea;
    transition: background-color 0.2s ease;
}

.assignment-detail-item:hover {
    background: #e9ecef;
}

.assignment-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.assignment-detail-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
}

.assignment-detail-meta {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.assignment-detail-meta i {
    color: #667eea;
}

/* 日历组件样式 */
.calendar-card {
    min-height: 200px;
}
}

.mini-calendar {
    width: 100%;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
}

.calendar-nav {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.calendar-nav:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.calendar-month {
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5px;
    margin-bottom: 1px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 8px 4px;
    background: #f8f9fa;
    border-radius: 4px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    background: #ffffff;
    color: #495057;
    border: 1px solid #e9ecef;
    min-height: 32px;
}

.calendar-day:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #adb5bd;
    background: #f1f3f4;
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.calendar-day.today:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .view-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        max-width: 100%;
        padding: 15px;
    }
    
    .calendar-card {
        min-height: 320px;
    }
    
    .mini-calendar {
        max-width: 100%;
    }
    
    .calendar-nav {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .calendar-month {
        font-size: 1rem;
    }
    
    .weekday {
        font-size: 0.75rem;
        padding: 6px 2px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
        min-height: 32px;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .assignment-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
 
}

/* 作业详情操作按钮样式 */
.assignment-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-end;
}

.btn-edit {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-edit i,
.btn-delete i {
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .assignment-actions {
        justify-content: center;
        margin-top: 15px;
    }
    
    .btn-edit,
    .btn-delete {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}