:root { color-scheme: light; --ink: #202127; --muted: #62656c; --line: #dedfe2; --surface: #fafafa; --accent: #b84f11; --accent-hover: #963e0a; --danger: #a82f30; --green: #216345; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
::selection { background: #f8d6bd; color: var(--ink); }
input, textarea { caret-color: var(--accent); }
* { scrollbar-color: #b9bbc0 #f4f4f5; scrollbar-width: thin; }
a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 550; cursor: pointer; line-height: 1.4; transition: background .15s, color .15s; white-space: nowrap; }
button:hover, .button:hover { background: var(--accent-hover); color: white; }
button:disabled { cursor: not-allowed; opacity: .5; }
.secondary { color: var(--ink); background: white; border-color: var(--line); }
.secondary:hover { background: #f1f1f2; color: var(--ink); }
.small { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-height: 36px; padding: 0; background: transparent; color: var(--muted); border: 0; border-radius: 5px; flex: 0 0 36px; }
.icon-button:hover { background: #eeeef0; color: var(--ink); }
.danger { color: var(--danger); }
.danger:hover { color: var(--danger); background: #fceeee; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input:not([type=checkbox]), textarea, select { width: 100%; min-width: 0; min-height: 42px; background: #fff; color: var(--ink); border: 1px solid #cfd0d4; border-radius: 5px; padding: 8px 11px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #72757c; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
textarea { resize: vertical; }
label { display: block; font-weight: 550; margin: 20px 0 7px; }
h1 { margin: 0 0 24px; font-size: 24px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
p { margin: 12px 0; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 10px; background: white; }
.skip:focus { top: 8px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1440px; min-height: 68px; margin: auto; padding: 0 36px; display: flex; align-items: center; gap: 42px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; flex-shrink: 0; }
.brand .icon { color: var(--accent); width: 23px; height: 23px; }
nav { display: flex; align-self: stretch; gap: 26px; }
nav a { display: flex; align-items: center; position: relative; color: var(--muted); padding: 0 2px; }
nav a[aria-current] { color: var(--ink); font-weight: 600; }
nav a[aria-current]::after { content: ""; position: absolute; height: 2px; bottom: 0; left: 0; right: 0; background: var(--accent); }
.account { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.account a { display: flex; align-items: center; gap: 7px; }
.workspace, .wide, .admin-main { margin: 36px auto 64px; padding: 0 36px; max-width: 1360px; }
.workspace { display: grid; grid-template-columns: minmax(0, 640px) minmax(280px, 1fr); gap: 64px; }
.entry-column, .entry-aside { min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 0; }
.page-heading > a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; flex-shrink: 0; }
.segmented { display: flex; gap: 3px; padding: 4px; background: #eeeef0; border-radius: 6px; width: fit-content; margin: 24px 0 8px; }
.segmented button { min-width: 96px; min-height: 34px; padding: 7px 12px; background: transparent; color: var(--muted); font-size: 13px; }
.segmented button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #00000012; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 11px 0; color: var(--muted); }
.status-line a { color: var(--accent); text-decoration: underline; }
.input-action { display: flex; gap: 8px; }
.input-action input { flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.required { color: var(--accent); }
.field-hint { color: var(--danger); font-size: 12px; min-height: 0; margin-top: 5px; overflow-wrap: anywhere; }
.field-hint a { text-decoration: underline; }
.aside-section { margin-bottom: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-heading > span, .section-heading > a { color: var(--muted); font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 16px; padding-top: 4px; }
.category-grid a { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 7px 0; overflow-wrap: anywhere; }
.category-grid small { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.recent-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.recent-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.recent-list a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.recent-list li > span { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; gap: 8px; }
.recent-list time { white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.filters > select { width: auto; min-width: 120px; max-width: 240px; }
.search-field { display: flex; position: relative; min-width: 200px; flex: 1; max-width: 520px; }
.search-field > .icon { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.search-field input { padding-left: 39px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; padding: 20px; min-width: 0; background: #fff; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--accent); font-size: 12px; margin-bottom: 12px; }
.card-meta small { color: var(--muted); font-variant-numeric: tabular-nums; }
.article-card h2 { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.excerpt { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 18px; overflow-wrap: anywhere; }
.card-byline { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 8px; min-height: 26px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; margin-top: 12px; border-top: 1px solid #ececee; font-size: 12px; color: var(--muted); }
.card-footer a, .card-footer span { display: inline-flex; align-items: center; gap: 5px; }
.card-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: #f1f1f3; margin-bottom: 12px; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 13px; }
.button-group, .row-actions { display: flex; align-items: center; gap: 5px; }
.empty { padding: 48px 16px !important; text-align: center; color: var(--muted); grid-column: 1/-1; }
.narrow, .reading { max-width: 760px; padding: 0 28px; margin: 36px auto 64px; }
.reading { max-width: 820px; }
.register-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.reading h1 { font-size: 26px; margin: 15px 0 22px; line-height: 1.55; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.detail-category { color: var(--accent); font-size: 13px; }
.detail-category > span { margin-left: 12px; color: var(--muted); }
.article-meta { display: flex; gap: 16px 28px; flex-wrap: wrap; margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 12px; }
.article-meta dt { color: var(--muted); }
.article-meta dd { margin: 2px 0 0; min-height: 20px; }
.article-text { font: inherit; font-size: 16px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; border-top: 1px solid var(--line); padding-top: 24px; }
.reading-gate { margin-top: 32px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.reading-gate h2 { margin-top: 9px; font-size: 19px; }
.reading-gate p { color: var(--muted); max-width: 520px; margin: 9px auto 20px; }
.gate-mark { color: var(--accent); }
.gate-mark .icon { width: 25px; height: 25px; }
.gate-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; }
.article-images { display: grid; gap: 12px; }
.article-images img { display: block; width: auto; max-width: 100%; margin: auto; height: auto; min-height: 40px; }
.login { max-width: 380px; margin: 74px auto 100px; padding: 0 24px; }
.login h1 { margin-bottom: 24px; }
.login-mark { margin-bottom: 15px; color: var(--accent); }
.login-mark .icon { width: 27px; height: 27px; }
.login button[type=submit] { width: 100%; margin: 28px 0 20px; }
.auth-intro { margin-top: -12px; }
.auth-switch { text-align: center; color: var(--muted); margin: 0 0 28px; }
.auth-switch a { color: var(--accent); text-decoration: underline; }
.account-summary { margin: 0 0 36px; border-top: 1px solid var(--line); }
.account-summary > div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-summary dt { color: var(--muted); }
.account-summary dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.view-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.view-tabs a { padding: 10px 0 13px; display: flex; gap: 8px; align-items: center; color: var(--muted); border-bottom: 2px solid transparent; }
.view-tabs a[aria-current] { color: var(--accent); border-color: var(--accent); }
.bulk-toolbar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.bulk-toolbar > span { font-size: 12px; color: var(--muted); margin-right: 8px; }
.bulk-toolbar > select { width: 120px; min-height: 34px; padding: 5px 8px; }
.table-scroll { overflow: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.content-table { border-collapse: collapse; width: 100%; min-width: 1080px; background: white; text-align: left; font-size: 12px; }
.content-table th { color: var(--muted); font-weight: 550; background: #f4f4f5; white-space: nowrap; }
.content-table td, .content-table th { padding: 13px 12px; border-bottom: 1px solid #e8e8ea; vertical-align: middle; }
.content-table tr:last-child td { border-bottom: 0; }
.content-table tbody tr:hover { background: #fcfcfd; }
.content-table .check-cell { width: 36px; padding-right: 4px; }
.content-table .title-cell { min-width: 250px; max-width: 330px; line-height: 1.8; overflow-wrap: anywhere; }
.content-table .date-cell { white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; }
.row-category select { min-height: 33px; width: 102px; padding: 4px 6px; font-size: 12px; }
.row-actions .icon-button { width: 30px; height: 32px; min-height: 32px; flex-basis: 30px; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.template-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.template-row h2 { margin-bottom: 5px; }
.template-row .muted { font-size: 12px; }
.prompt-step { margin: 24px 0; }
.prompt-step .section-heading { margin: 0; }
.prompt-step label { margin: 0; }
.rewrite-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 48px; }
.rewrite-output { padding-left: 32px; border-left: 1px solid var(--line); min-width: 0; }
.rewrite-output .section-heading { flex-wrap: wrap; }
.rewrite-output .article-text { min-height: 280px; margin-top: 24px; font-size: 14px; }
.section-title { margin-top: 34px; margin-bottom: 14px; }
.history-list { display: grid; gap: 7px; }
.history-list button { display: block; text-align: left; white-space: normal; color: var(--ink); background: white; border-color: var(--line); width: 100%; overflow-wrap: anywhere; font-size: 12px; font-weight: 400; }
.step-result { border-bottom: 1px solid var(--line); padding: 12px 0; }
.step-result summary { cursor: pointer; font-weight: 550; }
.step-result pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; }
.image-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.image-picker label { margin: 0; position: relative; display: block; cursor: pointer; }
.image-picker input { position: absolute; top: 8px; left: 8px; z-index: 1; }
.image-picker img { width: 100%; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); background: white; }
.notice { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 11px 18px; color: #fff; background: var(--green); border-radius: 6px; box-shadow: 0 4px 16px #00000018; z-index: 100; font-size: 13px; overflow-wrap: anywhere; }
.notice.error { background: #922b2e; }
.site-footer { max-width: 1360px; padding: 20px 36px 28px; margin: 0 auto; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
@media (max-width: 1050px) { .workspace { gap: 34px; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); } .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .header-inner { gap: 24px; padding: 0 24px; } nav { gap: 18px; } .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspace, .wide, .admin-main { padding: 0 24px; } }
@media (max-width: 720px) { .header-inner { padding: 14px 18px 0; gap: 0 18px; flex-wrap: wrap; } .brand { font-size: 16px; } nav { order: 3; width: 100%; height: 47px; justify-content: space-between; gap: 18px; } .account { font-size: 12px; } .account > a > span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .account .button { padding: 6px 9px; min-height: 32px; } .workspace { display: block; } .workspace, .wide, .admin-main { margin-top: 26px; padding: 0 18px; } .entry-aside { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); } .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .page-heading { gap: 12px; } h1 { font-size: 22px; } .page-heading > a { font-size: 12px; } .filters { gap: 9px; } .filters .search-field { max-width: none; flex-basis: 100%; } .filters > select { min-width: 0; max-width: none; flex: 1; } .filters > button { flex: 0; } .article-grid { grid-template-columns: minmax(0, 1fr); } .article-card { padding: 18px; } .form-grid { gap: 0 12px; } .form-grid.three { gap: 0 8px; } .form-grid.three label { font-size: 12px; } .narrow, .reading { padding: 0 18px; } .reading h1 { font-size: 23px; } .article-text { font-size: 15px; } .template-row { align-items: flex-start; gap: 10px; } .template-row .row-actions { flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; max-width: 115px; } .rewrite-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } .rewrite-output { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); } .site-footer { margin: 0 18px; padding: 18px 0; } .notice { top: 116px; } .login { margin-top: 48px; } .input-action button { padding: 8px 11px; } .bulk-toolbar { gap: 8px; } .bulk-toolbar > span { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
