/* ===== 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;
}

.card.hoverable {
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.card.hoverable:hover {
  background-color: #f6f7ff;          /* 轻微底色 */
  box-shadow: 0 6px 16px rgba(48, 47, 47, 0.12);
  transform: translateY(-1px);
}
.card.hoverable:hover { border-color:#4F46E5; }

/* ===== 页面容器宽度 ===== */
.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;
}

.menu-item-small {
    text-align: center;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    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-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
    border-color: rgb(63, 81, 181);
}

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

.menu-item-small img.menu-icon {
  width: 60px;      /* 统一图片宽度 */
  height: 60px;     /* 统一图片高度 */
  object-fit: contain; /* 图片自适应不拉伸 */
  margin-bottom: 6px;
}

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

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

.menu-item-small{ position: relative; }
.menu-item-small .corner-check{
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 18px;        /* 勾号大小 */
  color: #22c55e;         /* 绿色 */
  background: #fff;       /* 增强对比，可去掉 */
  border-radius: 9999px;
  padding: 2px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  display: none;  
}
.menu-item-small.is-checked .corner-check { display: block; }

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

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

.section-title{
  margin: 18px auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: .95rem; 
  line-height: 1.2;
}
.section-title::before,
.section-title::after{
  content: "";
  flex: 1;
  border-top: 1px solid #ddd;  /* 左右横线 */
}

.clock{
    margin-top: -20px;
  font-weight: 600;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums; /* 等宽数字，时间更稳 */
}