* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background: #f5f7fb;
    color: #1f2d3d;
}

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

.landing {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 45%, #e8f0ff 100%);
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 80px;
}

.brand {
    font-weight: 600;
    font-size: 20px;
    color: #1b4cff;
}

.nav-links {
    display: flex;
    gap: 28px;
    color: #56627a;
    font-size: 14px;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    padding: 40px 80px 80px;
    align-items: center;
}

.hero-left h1 {
    font-size: 38px;
    margin-bottom: 16px;
}

.hero-left p {
    font-size: 15px;
    color: #607089;
    margin-bottom: 24px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #1b4cff;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero-illustration {
    margin-top: 20px;
    height: 280px;
    border-radius: 20px;
    background: radial-gradient(circle at top, #d8e4ff 0%, #f4f7ff 55%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7690d6;
    font-size: 14px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(21, 52, 101, 0.1);
}

.login-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.login-card p {
    font-size: 12px;
    color: #7f8da5;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #73809a;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    font-size: 14px;
}

.btn-primary {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: #1b4cff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.login-extra {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: #7b879d;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.page {
    max-width: 1400px;
    width: calc(100% - 32px);
    margin: 16px auto;
    background: #fff;
    border: 1px solid #e8edf3;
    overflow-x: hidden;
}

.sidebar {
    width: 220px;
    background: #0f1c2e;
    color: #c9d3e7;
    padding: 24px 16px;
}

.sidebar-logo {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 24px;
    padding-left: 8px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    padding: 10px 12px;
    border-radius: 8px;
    color: #c9d3e7;
    font-size: 14px;
}

.sidebar-link.active {
    background: rgba(27, 76, 255, 0.2);
    color: #fff;
}

.sidebar-link.disabled {
    opacity: 0.5;
    cursor: default;
}

.sidebar-title {
    padding: 12px 12px 4px;
    font-size: 12px;
    color: #6f7c91;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: #fff;
    padding: 16px 28px;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar .user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #5b6a84;
}

.content {
    padding: 24px 28px 40px;
    background: #f5f7fb;
}

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 28, 46, 0.06);
}

.panel-title {
    font-size: 15px;
    margin-bottom: 12px;
}

.banner {
    background: linear-gradient(135deg, #0c2340, #1a4ca0);
    color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.banner h2 {
    font-size: 20px;
}

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

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 28, 46, 0.06);
}

.stat-card h4 {
    font-size: 13px;
    color: #7a879d;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 24px;
    color: #1b4cff;
    font-weight: 600;
}

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

.table th,
.table td {
    padding: 10px 8px;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
}

.table th {
    color: #607089;
    font-weight: 500;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #eaf0ff;
    color: #1b4cff;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    background: #1b4cff;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.btn-secondary {
    background: #6f7c91;
}

.btn-outline {
    background: #fff;
    color: #1b4cff;
    border: 1px solid #1b4cff;
}

.btn-info {
    background: #1677ff;
}

.btn-success {
    background: #2fb56e;
}

.form-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    font-size: 14px;
}

.empty {
    text-align: center;
    color: #8a97ad;
    padding: 24px 0;
}

.enroll-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf3;
}

.enroll-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #edf1f7;
    gap: 12px;
    flex-wrap: wrap;
}

.enroll-toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.enroll-toolbar-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.enroll-title {
    font-size: 16px;
    font-weight: 600;
}

.enroll-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e9f8ef;
    color: #1f7a4f;
    border-radius: 14px;
    font-size: 12px;
}

.enroll-section {
    padding: 16px 20px 8px;
}

.enroll-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    color: #fff;
}

.enroll-section-title.green {
    background: #1f9d55;
}

.enroll-section-title.blue {
    background: #1e88e5;
}

.enroll-section-title.orange {
    background: #f59f00;
}

.enroll-section-line {
    height: 2px;
    margin-top: -2px;
}

.enroll-section-line.green {
    background: #19a974;
}

.enroll-section-line.blue {
    background: #1e88e5;
}

.enroll-section-line.orange {
    background: #f59f00;
}

.enroll-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
    padding: 14px 0 10px;
}

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

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

.form-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-item label {
    width: 72px;
    font-size: 13px;
    color: #2f3b52;
    white-space: nowrap;
    flex-shrink: 0;
}

.form-item label .req {
    color: #ff4d4f;
    margin-right: 4px;
}

.input,
.select,
.date {
    flex: 1;
    border: 1px solid #d8dee9;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    background: #fff;
}

.input.gray {
    background: #f6f7f9;
}

.inline-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle {
    display: inline-flex;
    border: 1px solid #d8dee9;
    border-radius: 4px;
    overflow: hidden;
}

.toggle button {
    padding: 6px 10px;
    font-size: 12px;
    border: none;
    background: #fff;
    cursor: pointer;
}

.toggle button.active {
    background: #1677ff;
    color: #fff;
}

.photo-box {
    width: 92px;
    height: 92px;
    border: 1px dashed #d0d7e2;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8693a6;
    font-size: 12px;
}

.photo-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.photo-actions .photo-btn {
    flex: 1;
    border: 1px solid #d0d7e2;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    background: #fff;
}

.inline-note {
    font-size: 12px;
    color: #6b778c;
}

.fee-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #2f3b52;
    margin-top: 8px;
    flex-wrap: wrap;
}

.fee-summary span strong {
    color: #0f172a;
}

.pay-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr);
    gap: 12px;
    margin-top: 12px;
    align-items: start;
}

.pay-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-select {
    min-width: 92px;
    padding: 6px 8px;
    border: 1px solid #d8dee9;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.fee-table th,
.fee-table td {
    border: 1px solid #edf1f7;
    padding: 8px;
    font-size: 12px;
    text-align: left;
}

.fee-table th {
    background: #f7f9fc;
    color: #5c6c82;
    font-weight: 500;
}

.fee-table input,
.fee-table select {
    width: 100%;
    border: 1px solid #d8dee9;
    border-radius: 4px;
    padding: 6px;
    font-size: 12px;
}

.add-row {
    text-align: center;
    padding: 10px 0 16px;
    color: #1677ff;
    font-size: 13px;
}

.tab-bar {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #edf1f7;
    margin-bottom: 16px;
}

.tab {
    padding: 10px 4px;
    font-size: 14px;
    color: #5b6a84;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #1677ff;
    border-bottom-color: #1677ff;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 8px 0 16px;
}

.filter-row .form-control {
    flex: 1 1 220px;
    max-width: 320px;
    height: 36px;
}

.filter-row .btn {
    height: 36px;
    padding: 0 16px;
}

.filter-row .btn:last-child {
    margin-left: auto;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 12px;
}

.table-wrapper {
    border: 1px solid #edf1f7;
    border-radius: 8px;
    overflow: hidden;
}

.table-compact th,
.table-compact td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf1f7;
    font-size: 13px;
}

.switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 22px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    background: #c7cbd6;
}

.switch.on {
    background: #1677ff;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 0 4px;
    color: #6b778c;
    font-size: 12px;
}

.pager {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pager-btn {
    min-width: 30px;
    height: 28px;
    border: 1px solid #dfe5ef;
    border-radius: 4px;
    background: #fff;
    color: #5b6a84;
    cursor: pointer;
}

.pager-btn.active {
    background: #1677ff;
    color: #fff;
    border-color: #1677ff;
}

.page-size {
    max-width: 120px;
}

.settings-form {
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(15, 28, 46, 0.04);
}

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

.settings-grid .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.settings-grid .form-group label {
    font-size: 14px;
    color: #5b6a84;
    font-weight: 500;
}

.settings-grid .form-group.full-width {
    grid-column: span 2;
}

.settings-grid .form-control {
    height: 40px;
    min-width: 0;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    transition: all 0.2s;
}

.settings-grid .form-control:focus {
    border-color: #1b4cff;
    box-shadow: 0 0 0 2px rgba(27, 76, 255, 0.1);
    outline: none;
}

.settings-grid select.form-control {
    width: 100%;
    padding-right: 32px;
    color: #2f3b52;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235B6A84' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    appearance: none;
    -webkit-appearance: none;
}

.alert {
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
}

.inline-form {
    display: inline-flex;
}

.table-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.link-btn {
    border: none;
    background: none;
    color: #1677ff;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

.cover-thumb {
    width: 36px;
    height: 36px;
    background: #f5f7fb;
    border: 1px solid #e1e7f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1280px) {
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .settings-grid .form-group.full-width {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .filter-row {
        flex-direction: row;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 1280px) {
    .enroll-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .pay-select {
        min-width: 84px;
    }
}

@media (max-width: 1024px) {
    .enroll-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .form-item {
        align-items: flex-start;
    }
    .form-item label {
        width: 88px;
    }
    .pay-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .enroll-grid,
    .enroll-grid.two,
    .enroll-grid.three {
        grid-template-columns: 1fr;
    }
    .pay-methods {
        gap: 6px;
    }
}
