:root {
    --page-bg-1: #f7fafc;
    --page-bg-2: #edf2f7;
    --card-bg: #ffffff;
    --line-soft: #d8e0ea;
    --line-strong: #c7d1dd;
    --text-main: #1d2939;
    --text-muted: #4a5568;
    --head-bg: #f1f5f9;
    --accent: #0b6ef3;
    --focus: #1254be;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 10% 20%, rgba(130, 170, 255, 0.12), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(0, 180, 120, 0.09), transparent 35%),
        linear-gradient(170deg, var(--page-bg-1), var(--page-bg-2));
    min-height: 100vh;
}

.page-shell {
    width: min(1180px, 94vw);
    margin: 2.25rem auto;
    animation: fade-slide-in 420ms ease-out both;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.page-title {
    margin: 0;
    font-size: clamp(1.35rem, 1.8vw, 1.9rem);
    letter-spacing: 0.02em;
}

.page-subtitle {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.header-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.meta-chip {
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.88);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.32rem 0.68rem;
    letter-spacing: 0.01em;
}

.table-card {
    background: var(--card-bg);
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.excel-scroll {
    max-height: 620px;
    overflow: auto;
}

.excel-table {
    margin: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.excel-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    border: 1px solid var(--line-strong);
    background: var(--head-bg);
    text-align: center;
    font-weight: 700;
    color: #243447;
    letter-spacing: 0.01em;
}

.excel-table td,
.excel-table th {
    padding: 0.25rem;
    vertical-align: middle;
    border-color: var(--line-soft);
}

.excel-table tbody tr {
    background: #ffffff;
}

.excel-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.excel-table tbody tr:hover {
    background: #f0f7ff;
}

.w-id {
    width: 70px;
}

.w-name {
    width: 220px;
}

.w-age {
    width: 120px;
}

.w-dept {
    width: 190px;
}

.w-salary {
    width: 180px;
}

.w-status {
    width: 160px;
}

.excel-table input,
.excel-table select {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    background: transparent;
    padding: 0.28rem 0.5rem;
    color: var(--text-main);
    font-size: 0.84rem;
    transition: border-color 160ms ease, background-color 160ms ease;
}

.excel-table input:focus,
.excel-table select:focus {
    outline: none;
    border-color: var(--focus);
    background: #eef5ff;
}

.excel-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: #344054;
}

@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .page-shell {
        width: 96vw;
        margin: 1.1rem auto;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-meta {
        justify-content: flex-start;
    }

    .excel-scroll {
        max-height: 72vh;
    }
}