/* 首页 · 登录 & 工作台 */

/* ── 登录 ── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--page);
}

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-brand-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 12px 0 0;
    text-align: center;
}

.login-footer {
    text-align: center;
    font-size: 13px;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.theme-float-btn {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
}

/* ── 工作台（间距见 ep-pages-layout.css） ── */
.home-dashboard {
    display: flex;
    flex-direction: column;
}

.home-panel-head .welcome-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}

.home-panel-head #currentDate {
    margin: 0;
    font-size: 13px;
    color: var(--ink-muted);
}

.welcome-greeting {
    font-size: 12px;
    color: var(--ink-subtle);
    margin: 0 0 4px;
}

.welcome-weekday {
    margin-top: 2px !important;
    font-size: 13px !important;
    color: var(--ink-subtle) !important;
}

/* 今日状态 */
.home-today-section {
    transition: background 0.2s;
}

.home-today-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-today-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.home-today-text {
    flex: 1;
    min-width: 0;
}

.home-today-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 2px;
}

.home-today-text p {
    font-size: 13px;
    color: var(--ink-subtle);
    margin: 0;
}

#todayStatusCard.status-done {
    border-color: #e1f3d8;
    background: linear-gradient(90deg, var(--surface) 0%, var(--success-soft, #f0f9eb) 100%);
}

#todayStatusCard.status-done .home-today-icon {
    background: var(--success-soft, #f0f9eb);
}

#todayStatusCard.status-pending .home-today-icon {
    background: var(--warning-soft, #fdf6ec);
}

#todayStatusCard.status-draft .home-today-icon {
    background: var(--accent-soft);
}

/* 快捷入口 */
.home-quick-grid {
    gap: 16px;
}

.home-quick-card {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.home-quick-card:hover {
    border-color: #c6e2ff;
    box-shadow: 0 2px 8px rgba(64, 158, 255, 0.1);
}

.home-quick-desc {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-muted);
}

/* 最近报告 */
.home-reports-card {
    padding: 20px 24px 16px;
}

.home-reports-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.home-reports-more {
    font-size: 13px;
    font-weight: 400;
    color: var(--accent);
    text-decoration: none;
}

.home-reports-more:hover {
    text-decoration: underline;
}

.home-reports-table-wrap {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.home-reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.home-reports-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.home-reports-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--ink);
    vertical-align: middle;
}

.home-reports-table .home-report-row {
    cursor: pointer;
    transition: background 0.15s;
}

.home-reports-table .home-report-row:hover {
    background: var(--accent-soft);
}

.home-reports-table .col-title {
    width: 22%;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-reports-table .col-type { width: 8%; }
.home-reports-table .col-status { width: 10%; }

.home-reports-table .col-time {
    width: 14%;
    color: var(--ink-muted);
    white-space: nowrap;
}

.home-reports-table .col-preview {
    width: 46%;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-reports-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--ink-subtle);
    font-size: 13px;
}

.home-reports-empty p {
    margin: 0 0 6px;
    color: var(--ink-muted);
    font-size: 14px;
}

@media (max-width: 992px) {
    .home-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-today-inner {
        flex-wrap: wrap;
    }

    .home-reports-table .col-preview,
    .home-reports-table thead th:nth-child(5) {
        display: none;
    }

    .home-reports-table .col-title {
        width: 36%;
    }
}
