* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #1f2933;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #102a43;
    color: #fff;
}

.site-header.admin {
    background: #243b53;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 24px;
}

.brand {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.nav nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.nav nav a {
    color: #d9e2ec;
}

.page {
    padding: 32px 0 56px;
}

.hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 48px;
    color: #fff;
    background: linear-gradient(135deg, #102a43, #0f766e);
    border-radius: 8px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 40px;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #d9e2ec;
}

.grid {
    display: grid;
    gap: 20px;
    margin-top: 24px;
}

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

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

.grid > div,
.login-box,
.form,
section:not(.hero) {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 20px;
}

h1,
h2 {
    margin-top: 0;
}

.form {
    max-width: 720px;
}

.form label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #bcccdc;
    border-radius: 6px;
    font: inherit;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.btn.primary {
    color: #fff;
    background: #0f766e;
}

.list,
.list-item {
    display: grid;
    gap: 10px;
}

.list-item {
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.list-item.block {
    padding: 16px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
}

.list-item span,
.muted,
small {
    color: #627d98;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f0f4f8;
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chips span,
.pan-grid div {
    padding: 10px 12px;
    background: #f0f4f8;
    border-radius: 6px;
}

.pan-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.pan-grid div {
    display: grid;
    place-items: center;
    min-height: 72px;
}

pre {
    overflow: auto;
    padding: 16px;
    background: #102a43;
    color: #f0f4f8;
    border-radius: 8px;
}

.stat-grid strong {
    display: block;
    font-size: 36px;
}

.alert {
    padding: 10px 12px;
    color: #7f1d1d;
    background: #fee2e2;
    border-radius: 6px;
}

.liuren-classic {
    width: 920px;
    margin: 0;
    padding: 0 0 32px;
    overflow-x: auto;
    color: #050505;
    background: #fff;
    font-family: "Songti SC", "SimSun", "Microsoft YaHei", serif;
    font-weight: 700;
}

.liuren-classic section {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.classic-meta {
    font-size: 30px;
    line-height: 1.45;
}

.classic-meta p {
    margin: 0;
}

.classic-meta span {
    margin-right: 18px;
}

.orange {
    color: #f39800;
}

.red,
.is-day {
    color: #f00;
}

.is-hour {
    color: #b000b8;
}

.is-sky {
    color: #04f;
}

.classic-main {
    width: 430px;
    margin-left: 64px;
    padding-top: 48px;
}

.classic-transmission {
    display: grid;
    gap: 4px;
    width: 230px;
    font-size: 30px;
    line-height: 1.3;
}

.transmission-line {
    display: grid;
    grid-template-columns: 92px 72px 52px;
    align-items: baseline;
}

.transmission-line em {
    color: #050505;
    font-style: normal;
}

.classic-lessons {
    display: grid;
    grid-template-columns: repeat(4, 64px);
    width: 256px;
    margin-top: 50px;
    text-align: center;
    font-size: 30px;
    line-height: 1.25;
}

.lesson-line {
    display: grid;
    grid-template-rows: repeat(3, 38px);
}

.lesson-line b {
    color: #050505;
}

.classic-board {
    width: 320px;
    margin-top: 58px;
    font-size: 30px;
    line-height: 1.15;
}

.board-top-name,
.board-top-sky,
.board-bottom-sky,
.board-bottom-name {
    display: grid;
    grid-template-columns: repeat(4, 64px);
    width: 256px;
    margin-left: 0;
    text-align: center;
}

.board-top-sky {
    margin-top: 2px;
}

.board-side-line {
    display: flex;
    justify-content: space-between;
    width: 320px;
    margin-top: 34px;
}

.board-side-line.second {
    margin-top: 26px;
}

.side-pair {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
}

.side-pair em {
    color: #050505;
    font-style: normal;
}

.side-pair strong,
.side-pair em {
    min-width: 32px;
}

.board-bottom-sky {
    margin-top: 36px;
}

.classic-shensha,
.liuren-debug {
    padding-top: 28px;
    font-size: 28px;
    line-height: 1.45;
}

.classic-shensha h2 {
    margin: 0;
    font-size: 30px;
}

.classic-shensha p {
    margin: 0;
}

.liuren-debug details {
    margin-top: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
}

@media (max-width: 760px) {
    .nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 16px 0;
    }

    .nav nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
        font-size: 14px;
    }

    .hero {
        padding: 28px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .grid.two,
    .grid.three,
    .pan-grid {
        grid-template-columns: 1fr;
    }

    .wrap {
        width: 100%;
    }

    .page {
        padding-top: 0;
    }
}
