:root {
    --ink: #172033;
    --muted: #667085;
    --line: #e6eaf0;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --accent: #c2410c;
    --bg: #f6f8fb;
    --panel: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: var(--bg);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px max(24px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
}

.brand img {
    width: 334px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #344054;
    font-size: 15px;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 13px;
    color: #0f172a;
    background: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.user-menu-trigger::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: none;
    min-width: 150px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.user-menu:hover .user-menu-panel,
.user-menu.open .user-menu-panel {
    display: grid;
    gap: 4px;
}

.user-menu-panel a {
    padding: 10px 12px;
    color: #344054;
    border-radius: 6px;
    font-weight: 800;
    white-space: nowrap;
}

.user-menu-panel a:hover {
    color: var(--brand-dark);
    background: #ecfdf5;
}

.nav a:hover,
.more:hover,
.source-card h3 a:hover,
.latest-item h3 a:hover {
    color: var(--brand);
}

.hero {
    background:
        linear-gradient(115deg, rgba(15, 118, 110, .94), rgba(23, 32, 51, .90)),
        url("/static/images/d1a9a2849d26af0a517ec0e8a228d9.jpg") center/cover;
    color: #fff;
}

.hero-content {
    width: min(1180px, calc(100% - 48px));
    min-height: 430px;
    margin: 0 auto;
    padding: 76px 0 58px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #a7f3d0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: 50px;
    line-height: 1.12;
}

.hero-text {
    max-width: 620px;
    margin-bottom: 28px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.search {
    display: flex;
    width: min(720px, 100%);
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}

.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 16px;
    font-size: 16px;
    outline: 0;
}

.search button {
    border: 0;
    border-radius: 6px;
    padding: 14px 24px;
    color: #fff;
    background: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.category-links a {
    padding: 8px 13px;
    color: #ecfeff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
}

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

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    font-size: 28px;
}

.more {
    color: var(--muted);
    font-weight: 700;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.featured-groups {
    display: grid;
    gap: 28px;
}

.featured-group {
    display: grid;
    gap: 14px;
}

.group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.group-head h3 {
    margin: 0;
    font-size: 22px;
}

.group-head a {
    color: var(--brand-dark);
    font-weight: 800;
}

.source-card,
.help-panel {
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cover {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef2f6;
}

.cover img,
.latest-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 18px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.source-card h3,
.latest-item h3 {
    margin-bottom: 9px;
    font-size: 18px;
    line-height: 1.45;
}

.source-card p,
.latest-item p,
.help-list span {
    color: var(--muted);
    line-height: 1.7;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.card-foot strong,
.latest-item > strong {
    color: var(--accent);
    font-size: 18px;
}

.card-foot span {
    color: var(--muted);
    font-size: 13px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    padding-bottom: 54px;
}

.latest-list {
    display: grid;
    gap: 14px;
}

.latest-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.latest-item img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    background: #eef2f6;
}

.latest-item p {
    margin-bottom: 0;
}

.help-panel {
    align-self: start;
    padding: 22px;
}

.help-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.help-actions a {
    padding: 12px 8px;
    text-align: center;
    border-radius: 6px;
    background: #ecfdf5;
    color: var(--brand-dark);
    font-weight: 800;
}

.help-list {
    display: grid;
    gap: 12px;
}

.help-list a {
    display: grid;
    gap: 5px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

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

.help-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.help-card h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
}

.help-card h2 a:hover {
    color: var(--brand);
}

.help-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.help-detail-head {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 24px;
}

.help-detail-head h1 {
    margin-bottom: 16px;
    font-size: 38px;
}

.help-detail-head p {
    max-width: 780px;
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.8;
}

.side-links {
    display: grid;
    gap: 12px;
}

.side-links a {
    padding-bottom: 12px;
    color: #344054;
    border-bottom: 1px solid var(--line);
    line-height: 1.6;
}

.side-links a:hover {
    color: var(--brand);
}

.footer {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 28px 24px;
    color: var(--muted);
    background: #fff;
    border-top: 1px solid var(--line);
}

.detail-page {
    padding-bottom: 54px;
}

.detail-hero,
.detail-layout {
    display: grid;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    gap: 24px;
}

.detail-hero {
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr) 320px;
    align-items: start;
    padding: 38px 0 28px;
}

.detail-cover,
.buy-panel,
.content-panel,
.side-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-media {
    display: grid;
    gap: 12px;
}

.preview-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}

.preview-thumb {
    flex: 0 0 82px;
    width: 82px;
    height: 60px;
    overflow: hidden;
    padding: 0;
    background: #eef2f6;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.preview-thumb:hover,
.preview-thumb:focus-visible {
    border-color: var(--brand);
    outline: 0;
}

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

.viewer-open {
    overflow: hidden;
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 28px;
    background: rgba(15, 23, 42, .82);
}

.image-viewer.active {
    display: grid;
}

.image-viewer img {
    max-width: min(1080px, 100%);
    max-height: 88vh;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.image-viewer-close {
    position: fixed;
    top: 20px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.image-viewer-close:hover,
.image-viewer-close:focus-visible {
    background: var(--accent);
    outline: 0;
}

.school-dialog {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .62);
}

.school-dialog.active {
    display: grid;
}

.school-dialog-panel {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(420px, 100%);
    padding: 26px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
}

.school-dialog-panel h2,
.school-dialog-panel p {
    margin: 0;
}

.school-dialog-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.school-dialog-panel label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}

.school-dialog-panel input {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    font: inherit;
}

.school-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    color: #667085;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.school-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.image-viewer-nav {
    position: fixed;
    top: 50%;
    z-index: 101;
    display: grid;
    place-items: center;
    width: 52px;
    height: 72px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(15, 23, 42, .58);
    font-size: 56px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.image-viewer-prev {
    left: 24px;
}

.image-viewer-next {
    right: 24px;
}

.image-viewer-nav:hover,
.image-viewer-nav:focus-visible {
    background: var(--accent);
    outline: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-summary h1 {
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.25;
}

.detail-summary p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.tag-list span {
    padding: 7px 11px;
    color: var(--brand-dark);
    background: #ecfdf5;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.detail-stats span {
    padding: 9px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.buy-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.price-row span,
.download-box span,
.download-box small {
    color: var(--muted);
}

.price-row strong {
    color: var(--accent);
    font-size: 30px;
}

.market-price {
    margin-top: -12px;
    color: var(--muted);
    text-decoration: line-through;
}

.qr-box {
    display: grid;
    gap: 10px;
    padding: 16px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    margin: 0 auto;
    color: var(--brand-dark);
    border: 10px solid #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    font-weight: 800;
}

.qr-placeholder[hidden],
.pay-qrcode[hidden] {
    display: none;
}

.pay-qrcode {
    width: 168px;
    height: 168px;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
    border: 10px solid #fff;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--line);
}

.pay-order-info {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.pay-order-info strong {
    color: var(--accent);
    font-size: 20px;
}

.qr-box p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.download-box {
    display: grid;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.download-box div {
    display: grid;
    gap: 4px;
}

.download-box strong {
    word-break: break-all;
}

.primary-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 13px 16px;
    color: #fff;
    background: var(--accent);
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.muted-btn {
    background: #475467;
}

button.primary-btn:disabled {
    cursor: not-allowed;
    opacity: .85;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
}

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

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

.download-records {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.record-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.empty-records {
    padding: 18px;
    color: var(--muted);
}

.record-school {
    overflow: hidden;
    padding: 11px 12px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-panel,
.side-panel {
    padding: 26px;
}

.content-panel h2,
.side-panel h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.rich-content {
    color: #344054;
    line-height: 1.9;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
}

.rich-content th,
.rich-content td {
    padding: 10px;
    border: 1px solid var(--line);
}

.empty-content {
    padding: 20px;
    color: var(--muted);
    background: #f8fafc;
    border-radius: 8px;
}

.empty-content p:last-child {
    margin-bottom: 0;
}

.side-panel ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.9;
}

.related-section {
    padding-top: 36px;
}

.download-title {
    margin-bottom: 16px;
    font-size: 30px;
}

.package-code {
    overflow-x: auto;
    padding: 16px;
    color: #344054;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.inline-btn {
    width: fit-content;
    min-width: 150px;
    margin-top: 16px;
}

.auth-page {
    display: grid;
    place-items: start center;
    min-height: calc(100vh - 68px);
    padding: 54px 24px;
}

.auth-panel {
    width: min(440px, 100%);
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;
    background: #f1f5f9;
    border-radius: 8px;
}

.auth-tabs button {
    border: 0;
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--muted);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.auth-tabs button.active {
    color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.auth-pane {
    display: none;
}

.auth-pane.active {
    display: block;
}

.auth-panel h1 {
    margin-bottom: 10px;
    font-size: 30px;
}

.auth-panel p {
    color: var(--muted);
    line-height: 1.7;
}

.auth-error {
    margin: 18px 0;
    padding: 12px 14px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

.auth-success {
    margin: 18px 0;
    padding: 12px 14px;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 700;
}

.auth-form .remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.auth-form .remember-row input {
    width: 16px;
    height: 16px;
    padding: 0;
}

.auth-form input,
.auth-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    outline: 0;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.auth-form button {
    border: 0;
    border-radius: 6px;
    padding: 13px 16px;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.auth-links {
    margin-top: 18px;
    color: var(--brand-dark);
    font-weight: 700;
    text-align: center;
}

.list-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 46px 0 14px;
}

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

.list-hero p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.7;
}

.list-search {
    display: flex;
    min-width: min(420px, 100%);
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.list-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 12px;
    outline: 0;
}

.list-search button {
    border: 0;
    border-radius: 6px;
    padding: 11px 18px;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.list-section {
    padding-top: 26px;
    padding-bottom: 54px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-bar a,
.detail-link {
    padding: 8px 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.filter-bar a.active,
.filter-bar a:hover,
.detail-link:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

@media (max-width: 900px) {
    .site-header,
    .section-head,
    .list-hero,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
        gap: 18px;
    }

    h1 {
        font-size: 38px;
    }

    .featured-grid,
    .help-grid,
    .split-section,
    .detail-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .latest-item {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .latest-item > strong {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .hero-content,
    .section {
        width: min(100% - 28px, 1180px);
    }

    .hero-content {
        min-height: 0;
        padding: 48px 0;
    }

    h1 {
        font-size: 30px;
    }

    .search {
        display: grid;
        gap: 8px;
    }

    .search input {
        min-height: 46px;
    }

    .latest-item {
        grid-template-columns: 1fr;
    }

    .latest-item > strong {
        grid-column: auto;
    }

    .help-actions {
        grid-template-columns: 1fr;
    }

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

    .detail-hero,
    .detail-layout,
    .download-records-section {
        width: min(100% - 28px, 1180px);
    }

    .detail-summary h1 {
        font-size: 28px;
    }

    .image-viewer {
        padding: 18px;
    }

    .image-viewer-nav {
        width: 42px;
        height: 58px;
        font-size: 44px;
    }

    .image-viewer-prev {
        left: 10px;
    }

    .image-viewer-next {
        right: 10px;
    }
}
.admin-login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
    background: #eef2f7;
}

.admin-login-panel {
    width: min(420px, 100%);
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .10);
}

.admin-login-head {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.admin-login-head strong {
    font-size: 24px;
}

.admin-login-head span {
    color: var(--muted);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px max(24px, calc((100vw - 1180px) / 2));
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.admin-page {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0 54px;
}

.admin-title {
    margin-bottom: 24px;
}

.admin-title h1 {
    margin-bottom: 10px;
    font-size: 34px;
}

.admin-title p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.admin-stat-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-stat-card span {
    color: var(--muted);
    font-weight: 700;
}

.admin-stat-card strong {
    color: var(--brand-dark);
    font-size: 32px;
}

@media (max-width: 900px) {
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

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

@media (max-width: 560px) {
    .admin-page {
        width: min(100% - 28px, 1180px);
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }
}
.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    gap: 24px;
}

.admin-sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
    display: grid;
    gap: 6px;
    margin-top: 38px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-sidebar a {
    padding: 10px 12px;
    color: #344054;
    border-radius: 6px;
    font-weight: 700;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    color: #fff;
    background: var(--brand);
}

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

.admin-btn,
.admin-toolbar button,
.admin-actions button {
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
    cursor: pointer;
}

.admin-btn.muted {
    background: #475467;
}

.admin-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-toolbar input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-config-table input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.admin-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: #344054;
    background: #f8fafc;
    font-size: 14px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.admin-actions a {
    color: var(--brand-dark);
    font-weight: 800;
}

.admin-actions form {
    margin: 0;
}

.admin-actions button {
    background: #b42318;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-form label,
.admin-field > label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 700;
}

.admin-field {
    display: grid;
    gap: 8px;
}

.admin-field.wide,
.admin-form-actions {
    grid-column: 1 / -1;
}

.admin-form textarea {
    min-height: 140px;
    resize: vertical;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px;
}

.admin-config-table input {
    min-width: 160px;
}

.admin-settings-panel {
    display: grid;
    gap: 16px;
}

.admin-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .86);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.admin-settings-tabs button {
    border: 0;
    border-radius: 7px;
    padding: 10px 14px;
    color: #475467;
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.admin-settings-tabs button.active,
.admin-settings-tabs button:hover {
    color: #0f172a;
    background: #e6fffb;
    box-shadow: inset 0 -2px 0 var(--brand);
}

.admin-settings-pane {
    display: none;
}

.admin-settings-pane.active {
    display: grid;
    gap: 12px;
}

.admin-settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .86);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.admin-settings-head h2 {
    margin: 0;
    font-size: 20px;
}

.admin-settings-head span {
    padding: 6px 10px;
    color: var(--brand-dark);
    background: #ecfdf5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 16px;
    color: #475467;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .86);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.admin-pagination div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 34px;
    padding: 0 11px;
    color: #475467;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 800;
}

.admin-pagination a.active,
.admin-pagination a:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.front-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 14px 16px;
    color: #475467;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .86);
    border-radius: 8px;
}

.front-pagination div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.front-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 34px;
    padding: 0 11px;
    color: #475467;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 800;
}

.front-pagination a.active,
.front-pagination a:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.admin-richtext {
    display: grid;
    gap: 0;
}

.admin-richtext-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #d8e0ea;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.admin-richtext-toolbar button {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 7px 10px;
    color: #344054;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.admin-richtext-toolbar button:hover {
    color: var(--brand-dark);
    border-color: #99f6e4;
    background: #ecfdf5;
}

.admin-richtext-editor {
    min-height: 260px;
    padding: 14px;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 0 0 8px 8px;
    line-height: 1.8;
    outline: 0;
}

.admin-richtext-editor:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.admin-richtext-source {
    display: none;
}

@media (max-width: 900px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-pagination,
    .front-pagination {
        align-items: flex-start;
        flex-direction: column;
    }
}

[v-cloak] {
    display: none;
}

.admin-app,
.admin-login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, .12), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px max(24px, calc((100vw - 1280px) / 2));
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(203, 213, 225, .78);
    box-shadow: 0 12px 36px rgba(15, 23, 42, .06);
    backdrop-filter: blur(18px);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.admin-brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #334155);
    border-radius: 8px;
    font-size: 16px;
}

.admin-topnav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-topnav a {
    padding: 9px 12px;
    color: #475467;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
}

.admin-topnav a:hover {
    color: #0f766e;
    background: #ecfdf5;
    border-color: #ccfbf1;
}

.admin-shell {
    align-items: start;
    padding: 26px 0 54px;
}

.admin-sidebar {
    top: 86px;
    margin-top: 0;
    padding: 10px;
    background: rgba(255, 255, 255, .92);
    border-color: rgba(203, 213, 225, .9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 11px 13px;
    color: #475467;
    border-radius: 8px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    color: #0f172a;
    background: #e6fffb;
    box-shadow: inset 3px 0 0 #0f766e;
}

.admin-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

.admin-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(203, 213, 225, .86);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.admin-title h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 30px;
}

.admin-title .eyebrow {
    color: #0f766e;
}

.admin-stat-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    padding: 22px;
    border-color: rgba(203, 213, 225, .86);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
}

.admin-stat-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -28px;
    width: 92px;
    height: 92px;
    background: #ecfdf5;
    border-radius: 50%;
}

.admin-stat-card strong {
    position: relative;
    z-index: 1;
    color: #0f172a;
    font-size: 38px;
}

.admin-stat-card em {
    position: relative;
    z-index: 1;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-toolbar {
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .86);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.admin-toolbar input,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-config-table input,
.auth-form input,
.auth-form select {
    min-height: 42px;
    border-color: #d8e0ea;
    border-radius: 8px;
}

.admin-toolbar input:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-config-table input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
    outline: 0;
}

.admin-btn,
.admin-toolbar button,
.admin-actions button,
.auth-form button {
    min-height: 40px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}

.admin-btn:disabled,
.auth-form button:disabled {
    cursor: wait;
    opacity: .72;
}

.admin-table-wrap,
.admin-form {
    border-color: rgba(203, 213, 225, .86);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
}

.admin-table th {
    padding: 14px;
    color: #475467;
    background: #f8fafc;
    font-size: 13px;
    letter-spacing: 0;
}

.admin-table td {
    padding: 15px 14px;
    color: #334155;
}

.admin-table tbody tr:hover {
    background: #fbfdff;
}

.admin-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    background: #ecfdf5;
    border-radius: 7px;
}

.admin-link-danger {
    border: 0;
    padding: 8px 10px;
    color: #b42318;
    background: #fef3f2;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
}

.admin-form {
    padding: 24px;
}

.admin-form-actions {
    padding: 6px 0 0;
}

.admin-login-page {
    background:
        radial-gradient(circle at 20% 10%, rgba(15, 118, 110, .18), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(194, 65, 12, .10), transparent 28%),
        linear-gradient(135deg, #f8fafc, #e8eef5);
}

.admin-login-panel {
    padding: 34px;
    border-color: rgba(203, 213, 225, .9);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .14);
}

.admin-login-head strong {
    color: #0f172a;
    font-size: 28px;
}

@media (max-width: 900px) {
    .admin-header {
        position: static;
    }

    .admin-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 18px;
    }

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

    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .admin-toolbar,
    .admin-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-sidebar {
        grid-template-columns: 1fr;
    }
}
