@font-face { font-family: "Linxi Kit Sans"; src: url("/assets/fonts/kit-sans.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root { color-scheme: dark; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; --bg: #081118; --panel: #111d26; --line: #263744; --ink: #edf5fa; --muted: #90a5b4; --blue: #43b1ff; background: var(--bg); color: var(--ink); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button, input, textarea, select { border-radius: 9px; }
button { border: 0; }
button:disabled { opacity: .5; cursor: wait; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: #09151e; color: var(--ink); outline: none; }
textarea { resize: vertical; line-height: 1.9; }
input::placeholder, textarea::placeholder { color: #657d8f; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
label { display: grid; gap: 9px; font-size: 13px; font-weight: 600; }
label small, .muted { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; }
.primary, .secondary, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 0 20px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.primary { background: var(--blue); color: #032335; }
.primary:hover { background: #7dcaff; }
.secondary { background: #182b39; border: 1px solid #365265; color: #dceaf4; }
.secondary:hover { background: #213b4d; }
.danger { background: #e35763; color: #fff; }
.text-button, .icon-button { color: var(--muted); background: transparent; }
.text-button { padding: 10px 8px; font-size: 13px; }
.text-button:hover, .icon-button:hover { color: var(--ink); background: #ffffff08; }
.icon-button { width: 36px; height: 36px; font-size: 24px; }
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand > span { display: grid; gap: 5px; font-family: "Linxi Kit Sans", sans-serif; font-size: 27px; }
.brand small { font-family: "PingFang SC", sans-serif; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .14em; }
.eyebrow { color: #78a6c0; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.boot { padding: 80px; text-align: center; color: var(--muted); }
.auth-wrap { display: grid; place-items: center; min-height: 100svh; padding: 36px 24px; background: radial-gradient(ellipse at 50% 0, #17384f66, transparent 65%), url("/assets/kit-grain.svg"); }
.auth-card { width: min(100%, 450px); padding: 36px; border: 1px solid #345267; border-radius: 20px; background: #0c1a24e6; box-shadow: 0 24px 80px #0003; }
.auth-card .brand { margin-bottom: 42px; }
.auth-card h1 { margin: 12px 0; font-size: 28px; }
.auth-card > p { margin: 0 0 30px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-card form { display: grid; gap: 18px; }
.auth-card .primary { width: 100%; justify-content: space-between; }
.error { color: #ff9ca4; font-size: 13px; line-height: 1.7; }
.error:empty { margin: 0; }
.back-home { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 12px; }
.workspace { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 230px; padding: 34px 22px 22px; border-right: 1px solid var(--line); background: #0b1720; }
.sidebar .brand { margin-bottom: 48px; }
.sidebar-section { margin: 0 14px 16px; color: #668299; font-size: 11px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 6px; color: var(--muted); font-size: 13px; text-align: left; background: transparent; border-radius: 10px; }
.sidebar-link.active { background: #43b1ff15; color: #6fc4ff; }
.sidebar-link:hover { background: #43b1ff10; }
.sidebar-link > span:first-child { font-size: 20px; line-height: 1; }
.sidebar-count { margin-left: auto; color: #86cfff; font-size: 11px; }
.sidebar-note { margin-top: auto; padding: 60px 14px 28px; color: #6d889c; font-size: 11px; line-height: 2.2; }
.sidebar-note strong { font-weight: 400; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #6dcbb0; }
.status-dot.draft { background: #d0ad68; }
.admin-identity { display: flex; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-identity img { width: 34px; height: 34px; }
.admin-identity div { display: grid; gap: 5px; flex: 1; min-width: 0; }
.admin-identity strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.admin-identity span { color: #6d889c; font-size: 10px; }
.admin-main { margin-left: 230px; padding: 46px clamp(24px, 4vw, 64px); max-width: 1900px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.page-heading h1 { margin: 14px 0 12px; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.list-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.list-summary strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.export { margin-left: auto; color: #a8bac9; font-size: 12px; }
.export:hover { color: var(--blue); }
.list-toolbar { display: flex; gap: 10px; margin: 24px 0; }
.list-toolbar select { width: 142px; font-size: 12px; }
.search-label { display: flex; align-items: center; flex: 1; min-width: 120px; gap: 10px; border: 1px solid var(--line); padding: 0 14px; border-radius: 9px; background: #09151e; }
.search-label span { font-size: 25px; color: var(--muted); }
.search-label input { min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 12px; outline: none; }
.search-label:focus-within { border-color: var(--blue); }
.article-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #101d27; }
.table-heading, .article-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 100px 100px; gap: 24px; align-items: center; padding: 16px 24px; }
.table-heading { background: #13232f; font-size: 11px; color: var(--muted); }
.article-row { min-height: 118px; border-top: 1px solid #21323f; transition: background .18s; }
.article-row:hover { background: #162833; }
.row-article { display: flex; align-items: center; gap: 18px; min-width: 0; }
.row-article img, .row-cover-empty { width: 102px; aspect-ratio: 1.65; object-fit: cover; flex-shrink: 0; border-radius: 8px; background: #1f3544; }
.row-cover-empty { display: grid; place-items: center; color: #657d8f; font-size: 10px; }
.row-copy { min-width: 0; }
.row-title { display: block; padding: 0; text-align: left; background: none; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.7; }
.row-title:hover { color: var(--blue); }
.row-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: #7d97aa; font-size: 10px; }
.featured-mark { color: #f3c873; }
.status-chip { width: fit-content; padding: 5px 9px; border-radius: 6px; font-size: 11px; background: #6dcbb012; color: #7bd7bd; }
.status-chip.draft { color: #dab97e; background: #c49b4b14; }
.row-date { color: #7d97aa; font-size: 11px; }
.row-actions { display: flex; gap: 8px; }
.row-actions button { padding: 6px 0; background: transparent; color: #93bfd9; font-size: 12px; }
.row-actions .remove { margin-left: auto; color: #a0858c; }
.row-actions .remove:hover { color: #ff9ca4; }
.empty { padding: 64px 24px; text-align: center; }
.empty p { color: var(--muted); font-size: 13px; }
.empty .secondary { margin-top: 18px; }
.list-footnote { margin-top: 22px; font-size: 11px; color: #668299; }
.editor-heading { display: flex; justify-content: space-between; align-items: center; margin: -12px 0 24px; }
.save-state { color: var(--muted); font-size: 12px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
.editor-content { min-width: 0; }
.title-label, .excerpt-label { margin-bottom: 12px; color: #9db8cc; }
.editor-title { padding: 16px 0; margin-bottom: 26px; border: 0; border-bottom: 1px solid #365265; border-radius: 0; background: transparent; font-size: 25px; font-weight: 700; }
.editor-title:focus { border-color: var(--blue); }
.excerpt-label { font-size: 12px; }
.body-heading { display: flex; align-items: baseline; gap: 14px; margin: 32px 0 18px; }
.body-heading h2 { margin: 0; font-size: 16px; }
.body-heading span { color: var(--muted); font-size: 11px; }
.section-editor { margin-bottom: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #101e28; }
.section-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-number { color: #668ca5; font-size: 11px; }
.section-controls { display: flex; gap: 8px; }
.section-controls button { min-width: 28px; height: 28px; padding: 0 6px; background: #ffffff06; color: #8ca7ba; font-size: 12px; }
.section-controls button:hover { background: #ffffff12; color: #fff; }
.section-editor label + label { margin-top: 18px; }
.section-editor label { font-size: 12px; }
.section-editor textarea { min-height: 160px; }
.add-section { width: 100%; padding: 16px; border: 1px dashed #365265; background: transparent; color: #8fc6e8; font-size: 13px; }
.add-section:hover { background: #43b1ff08; }
.editor-meta { display: flex; flex-direction: column; gap: 18px; }
.meta-panel { border: 1px solid var(--line); border-radius: 12px; background: #101e28; padding: 22px; }
.meta-panel h2 { margin: 0 0 22px; font-size: 14px; }
.meta-panel label { margin-top: 18px; font-size: 12px; }
.meta-panel input { font-size: 12px; padding: 10px 12px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--blue); }
.cover-preview { display: grid; place-items: center; aspect-ratio: 1.8; overflow: hidden; border: 1px dashed #365265; border-radius: 8px; background: #09151e; color: #607f95; font-size: 11px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.meta-panel .upload-button { display: block; margin: 14px 0 9px; padding: 11px; border: 1px solid #365265; border-radius: 8px; text-align: center; color: #bbdced; cursor: pointer; }
.upload-button:hover { background: #1e3545; }
.upload-hint { color: #6c879b; font-size: 10px; }
.upload-status { font-size: 11px; color: #9db8cc; line-height: 1.7; }
.editor-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 32px -12px -46px; padding: 20px 12px; border-top: 1px solid var(--line); background: #081118f5; backdrop-filter: blur(16px); }
.editor-actions p { flex: 1; min-width: 150px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.editor-actions p.is-error { color: #ff9ca4; }
.editor-actions > div { display: flex; gap: 10px; }
dialog { border: 1px solid #365265; border-radius: 16px; background: #101e28; color: var(--ink); padding: 24px; }
dialog::backdrop { background: #02080ebd; backdrop-filter: blur(6px); }
.preview-dialog { width: min(1200px, 96vw); height: 90svh; max-height: 95svh; padding: 0; }
.preview-dialog header { height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line); }
.preview-dialog strong { font-size: 14px; }
.preview-dialog small { margin-left: 12px; color: var(--muted); font-size: 11px; font-weight: 400; }
.preview-dialog iframe { width: 100%; height: calc(100% - 60px); border: 0; background: #f5f5f7; }
.delete-dialog { width: min(440px, 90vw); }
.delete-dialog h2 { margin: 4px 0 20px; font-size: 20px; }
.delete-dialog p { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.delete-dialog > div { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.toast { position: fixed; z-index: 200; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 14px 24px; border: 1px solid #426782; border-radius: 10px; background: #163043; color: #d1edff; font-size: 13px; box-shadow: 0 8px 32px #0005; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1150px) { .sidebar { width: 200px; padding-inline: 16px; } .admin-main { margin-left: 200px; padding-inline: 28px; } .table-heading, .article-row { gap: 16px; padding-inline: 18px; grid-template-columns: minmax(0, 1fr) 70px 80px 80px; } .row-article img, .row-cover-empty { width: 80px; } .editor-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; } }
@media (max-width: 900px) { .sidebar { position: static; width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 24px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar .brand { margin: 0 auto 0 0; } .sidebar-section, .sidebar-note, .sidebar > a.sidebar-link { display: none; } .sidebar-link { width: auto; margin: 0; } .admin-identity { padding: 0; border: 0; } .admin-identity img, .admin-identity div { display: none; } .admin-main { margin: 0; padding: 30px 24px; } .editor-actions { margin-bottom: -30px; } .editor-grid { grid-template-columns: minmax(0, 1fr); } .editor-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sidebar { padding: 14px 16px; } .brand img { width: 36px; height: 36px; } .brand > span { font-size: 24px; } .sidebar-link { padding: 10px; font-size: 12px; } .sidebar-link > span:first-child { display: none; } .admin-main { padding: 28px 16px; } .page-heading { flex-wrap: wrap; gap: 20px; margin-bottom: 24px; } .page-heading .primary { min-height: 40px; } .list-summary { gap: 16px; } .export { margin-left: 0; } .list-toolbar { flex-wrap: wrap; } .search-label { flex-basis: 100%; } .list-toolbar select { flex: 1; } .table-heading { display: none; } .article-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px 14px; } .row-article { grid-column: 1 / -1; gap: 12px; } .row-article img, .row-cover-empty { width: 85px; } .row-title { font-size: 13px; } .row-date { display: none; } .row-actions { gap: 20px; } .status-chip { margin-left: 97px; } .editor-heading { gap: 12px; } .editor-grid { gap: 24px; } .editor-title { font-size: 22px; } .body-heading { flex-wrap: wrap; gap: 10px; } .section-editor { padding: 16px; } .editor-meta { grid-template-columns: minmax(0, 1fr); } .editor-actions { margin: 28px 0 -28px; } .editor-actions > div { width: 100%; justify-content: flex-end; gap: 8px; } .editor-actions .primary, .editor-actions .secondary { padding: 0 14px; font-size: 12px; } .preview-dialog small { display: none; } .auth-card { padding: 28px 24px; } .toast { max-width: calc(100% - 32px); width: max-content; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.data-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.data-controls > p { margin: 0; color: var(--muted); font-size: 12px; }
.range-buttons { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #0d1a23; }
.range-buttons button { padding: 9px 16px; color: var(--muted); background: transparent; font-size: 12px; }
.range-buttons button[aria-pressed="true"] { color: #8ad0ff; background: #43b1ff18; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #101e28; }
.metric-grid article > span { display: flex; justify-content: space-between; gap: 8px; color: #aec5d5; font-size: 12px; }
.metric-grid small { color: #62859c; font-size: 10px; }
.metric-grid strong { display: block; margin: 18px 0 10px; color: #ecf7ff; font-family: "Linxi Kit Sans", sans-serif; font-weight: 500; font-size: 40px; }
.metric-grid p { margin: 0; color: #7894a8; font-size: 10px; line-height: 1.7; }
.data-panel { min-width: 0; margin-bottom: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #101e28; }
.data-panel > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 24px 24px 20px; }
.data-panel h2 { margin: 0; font-size: 15px; }
.data-panel header > span { color: var(--muted); font-size: 11px; }
.visits-chart { padding: 0 24px 20px; }
.visits-chart > svg { display: block; width: 100%; height: auto; }
.chart-grid line { stroke: #2c4150; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-grid text { fill: #7592a8; font-size: 11px; font-family: "PingFang SC", sans-serif; }
.chart-pv, .chart-uv { fill: none; stroke: #43b1ff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-uv { stroke: #a698ef; stroke-width: 2; stroke-dasharray: 5 4; }
.chart-area { fill: #43b1ff0d; }
.chart-points { fill: #73c5ff; }
.chart-legend { display: flex; gap: 18px; color: var(--muted); font-size: 11px; }
.chart-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #43b1ff; }
.chart-legend .uv { background: #a698ef; }
.chart-details { margin-top: 14px; color: var(--muted); font-size: 11px; }
.chart-details summary { cursor: pointer; }
.chart-details .data-table-wrap { max-height: 260px; margin-top: 14px; overflow-y: auto; }
.data-split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.data-table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.data-table th { padding: 14px 24px; background: #142431; color: #86a3b8; font-size: 11px; font-weight: 500; white-space: nowrap; }
.data-table td { padding: 17px 24px; border-top: 1px solid #243642; color: #b6cad8; line-height: 1.6; }
.data-table td strong { display: block; color: #daeaf5; font-size: 12px; font-weight: 500; }
.data-table td small { display: block; margin-top: 4px; color: #6d8da4; font-size: 10px; overflow-wrap: anywhere; }
.data-table td a:hover strong { color: var(--blue); }
.data-table .data-empty, .data-empty { padding: 38px 24px; text-align: center; color: #7994a7; font-size: 12px; line-height: 1.9; }
.data-panel .data-empty { margin: 0; }
.visit-sources { padding: 0 24px 24px; }
.source-row { margin-top: 16px; }
.source-row:first-child { margin-top: 0; }
.source-row > div { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 10px; color: #a8c0d1; font-size: 11px; }
.source-row span { overflow-wrap: anywhere; }
.source-row strong { font-weight: 500; }
.source-row progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 4px; overflow: hidden; background: #223746; }
.source-row progress::-webkit-progress-bar { background: #223746; }
.source-row progress::-webkit-progress-value { background: #559cce; }
.source-row progress::-moz-progress-bar { background: #559cce; }
.visits-table td:first-child, .visits-table td:nth-last-child(2) { white-space: nowrap; }
.data-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.data-pagination > div { display: flex; gap: 8px; }
.data-pagination button { min-height: 32px; padding: 0 12px; font-size: 11px; }
.data-note { color: #7190a5; font-size: 11px; line-height: 1.9; }
.user-cell { display: flex; align-items: center; gap: 12px; }
.user-cell img { width: 32px; height: 32px; object-fit: contain; }
.user-cell small { min-width: 125px; }
.users-table td:nth-child(2), .users-table td:nth-child(3), .users-table td:nth-child(4) { white-space: nowrap; }
.users-table .text-button { color: #8dc6eb; font-size: 11px; white-space: nowrap; }
.status-chip.member { background: #43b1ff10; color: #86b7d5; }
.user-visits-dialog { width: min(950px, 94vw); max-height: 85svh; padding: 0; }
.user-visits-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; }
.user-visits-dialog h2 { margin: 0; font-size: 19px; }
.user-visits-dialog header p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.user-visits-dialog > .error { padding-inline: 24px; }
@media (max-width: 1150px) { .metric-grid article { padding: 20px 16px; } .data-table th, .data-table td { padding-inline: 16px; } .data-split { gap: 18px; } }
@media (max-width: 900px) {
  .sidebar > .brand { order: 0; flex: 1 0 calc(100% - 50px); margin: 0; }
  .sidebar > .admin-identity { order: 1; }
  .sidebar > button[data-view] { order: 2; flex: 1; justify-content: center; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 600px) {
  .metric-grid { gap: 10px; }
  .metric-grid article { padding: 18px 14px; }
  .metric-grid strong { font-size: 32px; }
  .metric-grid article > span { font-size: 11px; }
  .data-panel > header { padding: 20px 16px; }
  .visits-chart { padding-inline: 12px; }
  .visits-chart > svg { min-height: 150px; }
  .users-table, .visits-table { min-width: 620px; }
  .data-pagination { flex-wrap: wrap; padding: 16px; }
  .data-pagination > div { margin-left: auto; }
  .range-buttons button { padding-inline: 14px; }
  .user-visits-dialog > header { padding: 20px 16px; }
  .visit-sources { padding-inline: 16px; }
}
