/* ===== Sticky Footer 基础布局 ===== */
html,
body {
    height: 100%;
}

body {
    margin: 0;
    background-color: #f4f0ff;
    font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 0.88rem;
}

main {
    flex: 1 1 auto;
    min-height: 0;
}

/* ===== Footer ===== */
.site-footer {
    margin-top: auto;
    /* 关键：贴底 */
    /* background: indigo; */
    background: rgb(63, 81, 181);
    color: #fff;
    padding: 1rem 0;
}

.site-footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.footer-copy {
    opacity: .85;
    font-size: .9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    padding: 6px 12px;
}

.footer-link:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
}

@media (max-width: 576px) {
    .site-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ===== Header ===== */
.header {
    background-color: rgb(63, 81, 181);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h4 {
    margin: 0;
}

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

.username {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.user-icon {
    width: 22px;
    height: 22px;
    fill: white;
}

.icon-button {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: white;
    transition: color .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    color: #ddd;
}

.icon-button svg {
    width: 22px;
    height: 22px;
}

/* 让按钮里的 SVG 用按钮文字色来填充 */
.icon-button svg {
    fill: currentColor;
}

/* 如果你希望 hover 仍是白色，不变灰，把这行一起改 */
.icon-button:hover {
    color: #fff;   /* 现在是 #ddd，会变成灰色图标 */
}

/* ===== 按钮 ===== */
.btn-indigo {
    background-color: rgb(63, 81, 181);
    color: #fff;
    border: none;
}

.btn-indigo:hover {
    background-color: #4b0082;
    color: #fff;
}

/* 标题条上的轻量按钮（可选） */
.btn-ghost-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
    color: #fff;
}

/* ===== 通用卡片 ===== */
.card-box {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    padding: 1.25rem;
}

/* ===== 页面容器宽度 ===== */
.menu-container {
    max-width: 800px;
    margin: 50px auto;
}

.settings-container {
    max-width: 900px;
    margin: 0 auto 72px;
}

/* 底部留白，避免贴着footer */
.content-container {
    max-width: 800px;
    margin: 50px auto;
}

/* ===== 页面标题头部 ===== */
.page-header {
    background: linear-gradient(90deg, rgb(63, 81, 181), #4b0082);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin: 32px auto 20px;
    /* 与内容区距离更舒适 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    max-width: 900px;
}

.page-header h4 {
    margin: 0;
    font-weight: 700;
}

.page-header .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Login ===== */
.auth-main {
    /* 仅登录页：让卡片在可视区中间 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.login-container {
    /* 复用卡片风格 + 限宽 */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    padding: 1.25rem;
    width: 100%;
    max-width: 420px;
}

.forgot-password {
    font-size: .9rem;
}


/* ===== 菜单卡片 ===== */
.menu-item {
    text-align: center;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
    border-color: rgb(63, 81, 181);
}

.menu-item:active {
    transform: translateY(0);
}

.menu-item i {
    font-size: 40px;
    color: rgb(63, 81, 181);
    margin-bottom: 10px;
}

.menu-item p {
    margin: 0;
    font-weight: 600;
    font-size: 1.05rem;
    color: #333;
}

/* ===== 表格风格 ===== */
.table-indigo thead {
    background-color: rgb(63, 81, 181);
    color: #fff;
}

.table-soft-hover tbody tr:hover {
    background-color: #f3f0ff;
}

/* ===== Profile ===== */
.profile-wrapper {
    max-width: 900px;
    margin: 0 auto 50px;
}

.profile-card {
    text-align: left;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgb(63, 81, 181);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.profile-department {
    color: #6c757d;
}

.info-row {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #555;
}

/* ===== Calendar ===== */
.calendar-container {
    max-width: 1100px;
    margin: 40px auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-title {
    margin: 0;
    font-weight: 700;
}

.calendar-table {
    table-layout: fixed;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.calendar-table thead {
    background: linear-gradient(90deg, rgb(63, 81, 181), #4b0082);
    color: #fff;
}

.calendar-table th,
.calendar-table td {
    text-align: center;
    padding: 10px;
    height: 80px;
    vertical-align: top;
}

.calendar-table td:hover {
    background-color: #f0f8ff;
    cursor: pointer;
}

.calendar-today {
    background-color: #d1ecf1;
}

.calendar-selected {
    background-color: #c3e6cb !important;
}

@media (max-width: 576px) {
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}