:root {
    --bg: #f3f6f6;
    --surface: #ffffff;
    --surface-2: #e9f0ee;
    --ink: #122623;
    --muted: #60736f;
    --line: #d8e2df;
    --brand: #087f68;
    --brand-dark: #056451;
    --brand-soft: #def2ea;
    --attention: #d87813;
    --attention-soft: #fff0dc;
    --danger: #bf3f45;
    --danger-soft: #fde8e9;
    --shadow: 0 20px 48px rgba(19, 45, 40, 0.08);
    --radius: 18px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--bg);
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
p { color: var(--muted); line-height: 1.65; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
h2 { font-size: 19px; }
small { color: var(--muted); }
code { padding: 2px 5px; border-radius: 5px; background: var(--surface-2); }

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 72px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    flex-shrink: 0;
}

.brand:hover { color: var(--ink); }

.brand-mark {
    display: grid;
    place-items: center;
    height: 42px;
    width: 42px;
    color: #fff;
    font-weight: 700;
    border-radius: 13px;
    background: var(--brand);
}

.brand strong { display: block; font-size: 16px; }
.brand small { display: block; margin-top: 1px; font-size: 11px; }

.nav-links, .public-nav, .account-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links { flex: 1; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.public-nav { margin-left: auto; }
.account-menu { margin-left: auto; gap: 15px; color: var(--muted); font-size: 14px; }
.account-name { padding-right: 15px; border-right: 1px solid var(--line); }

.notification-link { position: relative; }

.badge-count {
    position: absolute;
    top: -10px;
    right: -15px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 12px;
    background: var(--attention);
    color: #fff;
    font-size: 11px;
}

.page { min-height: calc(100vh - 140px); padding: 34px 0 64px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    color: #fff;
    font: inherit;
    font-weight: 600;
    border: 1px solid var(--brand);
    border-radius: 12px;
    background: var(--brand);
    cursor: pointer;
    transition: background .18s, transform .18s, border-color .18s;
}

.button:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.button.secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.button.secondary:hover { color: var(--ink); border-color: #bccdca; background: #f9fbfa; }
.button.attention { border-color: var(--attention); background: var(--attention); }
.button.success { border-color: var(--brand); background: var(--brand); }
.button.small { min-height: 38px; padding: 0 15px; font-size: 14px; }
.button.wide { width: 100%; }

.link-button, .link-danger {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.link-danger { color: var(--danger); }

.hero {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 70px;
    align-items: center;
    padding: 58px 0 65px;
}

.eyebrow {
    margin-bottom: 13px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hero h1 { margin-bottom: 18px; font-size: clamp(43px, 5vw, 58px); }
.lead { max-width: 535px; margin: 0 0 34px; font-size: 18px; }
.hero-actions { display: flex; gap: 14px; }
.fine-print { margin: 26px 0 0; font-size: 13px; }

.hero-panel {
    padding: 24px;
    border: 1px solid #e4ecea;
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-header, .card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-header { margin-bottom: 18px; color: var(--muted); font-size: 14px; }

.route-card, .slot-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px;
    margin-bottom: 12px;
    border-radius: 15px;
}

.route-card { background: #f6f9f8; border: 1px solid var(--line); }
.route-card strong, .route-card span { display: block; }
.route-card span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.slot-card { flex-direction: column; align-items: flex-start; background: var(--attention-soft); }
.slot-card strong { font-size: 21px; }
.slot-card span:last-child { color: #82501f; font-size: 14px; }

.pulse {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 8px var(--brand-soft);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pill.success { color: var(--brand-dark); background: var(--brand-soft); }
.pill.attention { color: #975309; background: var(--attention-soft); }
.pill.danger { color: var(--danger); background: var(--danger-soft); }
.pill.large { padding: 9px 16px; font-size: 14px; }

.step-list {
    display: grid;
    gap: 14px;
    margin: 22px 4px 5px;
    color: var(--muted);
    font-size: 14px;
}

.step-list span { display: flex; align-items: center; gap: 13px; }
.step-list b {
    display: grid;
    place-items: center;
    height: 28px;
    width: 28px;
    color: var(--brand);
    border-radius: 50%;
    background: var(--brand-soft);
    font-size: 11px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-grid article, .content-card, .form-card {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feature-grid p { margin: 11px 0 0; font-size: 14px; }

.auth-wrap {
    display: grid;
    grid-template-columns: minmax(360px, 475px) 360px;
    justify-content: center;
    gap: 30px;
    padding-top: 34px;
}

.auth-card, .auth-aside {
    padding: 35px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.auth-card h1 { margin-bottom: 28px; font-size: 32px; }
.auth-aside { align-self: start; background: #ecf5f2; }
.auth-aside h2 { margin-bottom: 11px; }
.auth-aside p { margin: 0; }

.form-stack { display: grid; gap: 19px; }
.form-stack.small-gap { gap: 13px; }

label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
label span b { color: var(--danger); }
label small { font-size: 12px; }

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    color: var(--ink);
    font: inherit;
    border: 1px solid #cbd7d4;
    border-radius: 10px;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(8, 127, 104, .18);
    border-color: var(--brand);
}

textarea { resize: vertical; }
.form-footer { margin: 23px 0 0; text-align: center; font-size: 14px; }

.plain-steps {
    display: grid;
    gap: 14px;
    padding-left: 20px;
    margin: 20px 0 0;
    color: var(--muted);
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 10px 0 27px;
}

.page-heading p { margin: 9px 0 0; }
.page-heading.compact { justify-content: flex-start; margin-bottom: 25px; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; gap: 12px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    margin-bottom: 23px;
}

.stats-grid.four { grid-template-columns: repeat(4, 1fr); }

.stat-card {
    display: grid;
    gap: 8px;
    padding: 23px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.stat-card span { color: var(--muted); font-size: 14px; }
.stat-card strong { font-size: 36px; }
.stat-card.highlighted { border-color: #bbded5; background: #e9f7f2; }

.content-card { margin-bottom: 22px; }
.content-card.emphasized { border-color: #baddd4; background: #f1faf7; }
.content-card h2 { margin-bottom: 17px; }
.card-title-row h2 { margin: 0; }
.card-title-row { margin-bottom: 19px; }

.empty-state {
    padding: 46px 16px;
    text-align: center;
}

.empty-state p { margin: 10px 0 22px; }

.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    padding: 0 14px 14px;
    color: var(--muted);
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.data-table td {
    padding: 16px 14px;
    border-top: 1px solid var(--line);
    vertical-align: middle;
}

.data-table td:first-child { padding-left: 14px; }
.data-table td strong { display: block; margin-bottom: 4px; }
.data-table td small { display: block; }

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.vehicle-card {
    padding: 22px;
    border-radius: 14px;
    background: #f7faf9;
    border: 1px solid var(--line);
}

.vehicle-card dl, .details-list {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px 16px;
    margin: 20px 0;
    font-size: 14px;
}

.vehicle-card dt, .details-list dt { color: var(--muted); }
.vehicle-card dd, .details-list dd { margin: 0; }
.card-actions { display: flex; align-items: center; gap: 17px; margin-top: 20px; }

.form-card { max-width: 860px; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; padding-top: 8px; }

.notice {
    padding: 14px 16px;
    color: #745022;
    border-radius: 10px;
    background: var(--attention-soft);
    font-size: 13px;
    line-height: 1.6;
}

.official-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 22px 27px;
    margin-bottom: 22px;
    border: 1px solid #f1d1a6;
    border-radius: var(--radius);
    background: var(--attention-soft);
}

.official-launch h2 { margin-bottom: 7px; }
.official-launch p { max-width: 610px; margin: 0; color: #6f4b20; }

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 365px;
    gap: 20px;
}

.action-column .content-card { margin-bottom: 18px; }
.action-column p { margin: 0 0 18px; font-size: 14px; }
.task-actions { display: flex; align-items: center; gap: 17px; margin-top: 25px; }

.two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.timeline-entry {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.timeline-entry span { color: var(--muted); }
.muted-text { margin: 0; }

.notification-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.notification-item:first-child { border-top: 0; }
.notification-item.unread { background: linear-gradient(90deg, #edf8f4 0, transparent 65%); }
.notification-item h2 { margin: 0 0 6px; font-size: 16px; }
.notification-item p { margin: 0 0 6px; }
.notification-item time { color: var(--muted); font-size: 12px; }

.admin-task-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.admin-task-row:first-child { padding-top: 0; border-top: 0; }
.admin-task-info p { margin: 8px 0; font-size: 13px; }
.inline-report-form { display: flex; align-items: end; gap: 9px; }
.inline-report-form label { gap: 5px; font-size: 12px; }
.inline-report-form input { width: 125px; padding: 9px; font-size: 13px; }

.alert {
    padding: 15px 18px;
    margin-bottom: 23px;
    border-radius: 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--surface);
}

.alert.success { color: var(--brand-dark); border-color: #bbded5; background: var(--brand-soft); }
.alert.warning { color: #855014; border-color: #f0d1ab; background: var(--attention-soft); }
.alert.danger { color: var(--danger); border-color: #efc7c9; background: var(--danger-soft); }

.toast-region {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 100;
    display: grid;
    gap: 10px;
}

.toast {
    width: min(360px, calc(100vw - 40px));
    padding: 15px 17px;
    color: #fff;
    border-radius: 12px;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.toast strong { display: block; margin-bottom: 4px; }
.toast span { color: #d2e0dc; font-size: 13px; }

.error-page {
    max-width: 500px;
    padding: 90px 0;
    margin: 0 auto;
    text-align: center;
}

.error-page p { margin: 15px 0 27px; }

.site-footer {
    min-height: 68px;
    padding: 22px 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.footer-row { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 950px) {
    .navbar { gap: 14px; }
    .nav-links { gap: 13px; }
    .account-name { display: none; }
    .hero, .auth-wrap, .detail-layout { grid-template-columns: 1fr; gap: 28px; }
    .feature-grid, .vehicle-grid, .stats-grid.four { grid-template-columns: repeat(2, 1fr); }
    .admin-task-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1180px); }
    .site-header, .navbar { height: auto; min-height: 66px; }
    .navbar { flex-wrap: wrap; padding: 12px 0; }
    .nav-links { order: 3; flex-basis: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
    .hero { padding-top: 30px; }
    .hero h1 { font-size: 39px; }
    .feature-grid, .vehicle-grid, .stats-grid, .stats-grid.four, .two-column, .form-grid { grid-template-columns: 1fr; }
    .page-heading, .official-launch { align-items: flex-start; flex-direction: column; }
    .heading-actions { flex-direction: column; width: 100%; }
    .inline-report-form { flex-wrap: wrap; }
    .footer-row { flex-direction: column; }
}
