/* 古冶职教中心 教师评教系统 - 样式表 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f6fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* 顶部导航 */
.top-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.top-bar nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.2s;
}

.top-bar nav a:hover {
    color: white;
}

/* 主体 */
main {
    flex: 1;
    padding: 30px 0;
}

/* 页脚 */
footer {
    background: white;
    border-top: 1px solid #e8e8e8;
    padding: 15px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* 欢迎区 */
.welcome {
    text-align: center;
    padding: 30px 0 20px;
}

.welcome h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.welcome p {
    color: #666;
    font-size: 15px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dept-card {
    text-align: center;
}

.dept-card .card-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.dept-card h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.dept-card p {
    color: #999;
    margin-bottom: 20px;
}

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    color: #1890ff;
    border: 1px solid #1890ff;
}

.btn-outline:hover {
    background: #e6f7ff;
}

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

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

.btn-sm {
    font-size: 12px;
    padding: 6px 14px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    color: #999;
    margin-bottom: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    .top-bar nav a {
        margin: 0 10px;
    }
}
