/* 部门页面专用样式 */

/* 部门页面布局 */
.department-page {
    min-height: 100vh;
    padding-top: 70px;
}

/* 部门标题区域 */
.department-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
}

.department-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.department-header .container {
    position: relative;
    z-index: 2;
}

.department-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.department-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.department-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
}

/* 部门内容区域 */
.department-content {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

.back-button {
    margin-bottom: 40px;
}

.back-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.back-button .btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* 部门成员展示 */
.department-members {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.loading {
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 成员卡片样式 */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.member-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e74c3c, #f39c12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    font-weight: 600;
}

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.member-position {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 15px;
}

.member-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 部门职责说明 */
.department-info {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.department-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.department-info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.department-info ul {
    list-style: none;
    padding: 0;
}

.department-info li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.department-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* 联系方式 */
.department-contact {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.department-contact h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.contact-icon {
    color: #e74c3c;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .department-title {
        font-size: 2.2rem;
    }
    
    .department-subtitle {
        font-size: 1.1rem;
    }
    
    .department-icon {
        font-size: 3rem;
    }
    
    .department-header {
        padding: 60px 0;
    }
    
    .department-content {
        padding: 40px 0;
    }
    
    .department-members {
        padding: 25px;
    }
    
    .member-grid {
        grid-template-columns: 1fr;
    }
    
    .department-info {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .department-title {
        font-size: 1.8rem;
    }
    
    .department-icon {
        font-size: 2.5rem;
    }
    
    .member-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .back-button .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    color: #888;
    line-height: 1.6;
}

/* 错误状态样式 */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
}

.error-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.error-state p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.retry-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 部门特色样式 */
.department-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e74c3c;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* 部门活动时间线 */
.department-timeline {
    margin: 40px 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.timeline-date {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    height: fit-content;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}



/* 会长和副会长布局 */
.president-section, .vice-president-section {
    margin-bottom: 2rem;
}

.position-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.president-row {
    justify-content: center;
}

.vice-president-row {
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

/* 理事网格布局 */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.directors-section {
    margin-bottom: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .position-title {
        font-size: 1rem;
    }
    
    .directors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }
    
    .vice-president-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .president-row {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .directors-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .vice-president-row {
        gap: 0.5rem;
    }
}