/* ===== 布局样式 ===== */

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30, 60, 114, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

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

.username {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.btn-logout {
    color: #fff;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-1px);
}

/* 主内容区 */
.main {
    min-height: calc(100vh - 64px - 60px); /* 减去 header 和 footer 高度 */
    padding: 32px 0;
    background: #f7f9fc;
}

/* 页脚 */
.footer {
    background: #fff;
    padding: 24px 0;
    text-align: center;
    color: #888;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}
