:root {
    --bg: #f6f3ee;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-solid: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(175, 143, 89, 0.26);
    --text: #171a22;
    --muted: #727784;
    --accent: #af8f59;
    --accent-deep: #8c7045;
    --dark: #151922;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top left, rgba(207, 185, 148, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(18, 24, 32, 0.05), transparent 34%),
        var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input,
select,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 52px;
}

.hero-card,
.drawer-box,
.list-card,
.quota-box,
input,
select,
.choice-body,
.station-table-head,
.compact-row {
    border: 1px solid var(--line);
    background: var(--panel);
}

.hero-card,
.drawer-box,
.list-card {
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card,
.drawer-box,
.list-card {
    padding: 24px;
}

.hero-top,
.list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.hero-top {
    margin-bottom: 18px;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.drawer-head span,
.list-head span,
.quota-label,
.quota-box em,
.field-box span,
.choice-title,
.row-workspace span,
.row-times span,
.row-meta span,
.form-result {
    color: var(--muted);
}

.hero-kicker {
    font-size: 12px;
    letter-spacing: 0.2em;
}

.hero-copy h1,
.drawer-head h2,
.list-head h2 {
    margin: 0;
    font-weight: 600;
}

.hero-copy h1 {
    margin-top: 8px;
    font-size: 36px;
    line-height: 1.08;
}

.hero-copy p,
.form-result,
.empty-box p {
    margin: 12px 0 0;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn,
.submit-btn,
.switch-btn,
.pager-btn {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.action-btn {
    background: linear-gradient(135deg, #151922, #313948);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(21, 25, 34, 0.14);
}

.action-btn.secondary {
    background: linear-gradient(135deg, #a8844c, #c39b62);
}

.action-btn:hover,
.submit-btn:hover,
.switch-btn:hover,
.pager-btn:hover {
    transform: translateY(-1px);
}

.action-btn.is-active {
    box-shadow: 0 20px 38px rgba(21, 25, 34, 0.18);
}

.quota-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.quota-box {
    min-height: 130px;
    padding: 18px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quota-box strong {
    font-size: 38px;
    line-height: 1;
    color: var(--dark);
}

.quota-box em {
    font-style: normal;
    font-size: 13px;
}

.drawer-box,
.list-card {
    margin-top: 18px;
}

.drawer-box.is-hidden {
    display: none;
}

.drawer-head {
    margin-bottom: 16px;
}

.drawer-head h2,
.list-head h2 {
    margin-top: 8px;
    font-size: 22px;
}

input,
select {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    padding: 0 16px;
    color: var(--text);
    outline: none;
}

input::placeholder {
    color: #9ca3af;
}

input:focus,
select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 5px rgba(175, 143, 89, 0.08);
}

.purchase-form {
    display: grid;
    gap: 18px;
}

.field-row,
.field-box,
.choice-section {
    display: grid;
    gap: 10px;
}

.choice-grid {
    display: grid;
    gap: 12px;
}

.package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-body {
    min-height: 92px;
    border-radius: 18px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.choice-body small,
.choice-body em {
    color: var(--muted);
}

.choice-body strong {
    font-size: 22px;
    color: var(--dark);
}

.payment-card .choice-body {
    min-height: 80px;
}

.payment-card .choice-body strong {
    font-size: 18px;
}

.choice-card input:checked + .choice-body {
    border-color: var(--line-strong);
    box-shadow: 0 12px 24px rgba(175, 143, 89, 0.12);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
}

.purchase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.purchase-submit {
    min-width: 148px;
}

.line-form {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.9fr) 150px;
    gap: 14px;
}

.submit-btn,
.switch-btn,
.pager-btn {
    background: rgba(175, 143, 89, 0.12);
    color: var(--accent-deep);
}

.compact-head {
    margin-bottom: 14px;
}

.list-badge {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(175, 143, 89, 0.1);
    color: var(--accent-deep);
    white-space: nowrap;
    font-size: 13px;
}

.station-table-head,
.compact-row {
    display: grid;
    grid-template-columns: 54px 1.1fr 1.4fr 1.9fr 120px 110px 120px;
    gap: 10px;
    align-items: center;
    border-radius: 18px;
}

.station-table-head {
    min-height: 44px;
    padding: 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.compact-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.compact-row {
    min-height: 88px;
    padding: 12px 14px;
    background: var(--panel-solid);
}

.row-index {
    color: var(--muted);
    font-weight: 600;
}

.row-workspace,
.row-times,
.row-meta,
.row-action,
.row-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.row-workspace strong,
.row-email,
.row-meta strong {
    color: var(--dark);
}

.row-workspace strong {
    font-size: 16px;
    line-height: 1.35;
}

.row-workspace span,
.row-times span,
.row-email,
.row-meta span,
.row-meta strong {
    font-size: 13px;
    line-height: 1.55;
}

.row-times {
    gap: 2px;
}

.row-email {
    word-break: break-all;
}

.status-pill {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.status-normal {
    color: #1f7d5d;
    background: rgba(213, 237, 228, 0.9);
}

.status-stopped {
    color: #c77434;
    background: rgba(251, 233, 215, 0.92);
}

.compact-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
}

.switch-btn.is-disabled,
.pager-btn.is-disabled {
    cursor: default;
    background: rgba(17, 24, 39, 0.06);
    color: #8a909b;
    pointer-events: none;
}

.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pager-btn {
    min-width: 48px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pager-btn.is-current {
    background: linear-gradient(135deg, #151922, #313948);
    color: #ffffff;
}

.empty-box {
    min-height: 220px;
    border-radius: 24px;
    background: rgba(246, 243, 238, 0.74);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.empty-box span {
    font-size: 22px;
    font-weight: 600;
}

@media (max-width: 1160px) {
    .hero-top,
    .list-head,
    .purchase-footer {
        flex-direction: column;
    }

    .hero-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .hero-actions .action-btn {
        flex: 1 1 220px;
    }

    .station-table-head {
        display: none;
    }

    .compact-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .row-index {
        display: none;
    }
}

@media (max-width: 920px) {
    .page-shell {
        width: min(100% - 24px, 1240px);
        padding-top: 16px;
    }

    .quota-row,
    .package-grid,
    .payment-grid,
    .line-form {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .drawer-box,
    .list-card {
        padding: 18px;
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .hero-copy h1 {
        font-size: 28px;
    }

    .quota-box {
        min-height: 120px;
    }

    .quota-box strong {
        font-size: 34px;
    }
}