/* 云律AI：统一界面样式 */
:root {
    --navy-950: #071726;
    --navy-900: #0b2136;
    --navy-850: #102a43;
    --navy-800: #15344f;
    --navy-700: #234a68;
    --cyan-700: #087b86;
    --cyan-600: #0b929d;
    --cyan-500: #15a6b0;
    --cyan-100: #dff5f5;
    --cyan-50: #effafa;
    --ink-900: #172738;
    --ink-700: #3e5062;
    --ink-600: #5c6d7c;
    --ink-500: #778594;
    --line: #dfe6ec;
    --line-light: #eaf0f4;
    --surface: #ffffff;
    --surface-muted: #f4f7f9;
    --surface-blue: #f0f5f8;
    --success: #17805c;
    --success-bg: #e9f7f0;
    --warning: #a96608;
    --warning-bg: #fff7e6;
    --danger: #b44242;
    --danger-bg: #fff0ef;
    --shadow-sm: 0 2px 10px rgba(10, 35, 55, .05);
    --shadow-md: 0 12px 36px rgba(10, 35, 55, .09);
    --shadow-lg: 0 24px 64px rgba(4, 23, 39, .18);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --transition: 180ms ease;
    /* 字体：界面用无衬线，法条正文与标题用衬线，全站只此两套 */
    --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", Arial, sans-serif;
    --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
    /* 字号：正文 16、次级 14、辅助 13、标签 12，不再使用 9/10px 小字 */
    --text-xs: 12px;
    --text-sm: 13px;
    --text-md: 14px;
    --text-base: 16px;
    --leading-tight: 1.45;
    --leading: 1.75;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink-900);
    background: var(--surface);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--cyan-700); text-decoration: none; }
a:hover { color: var(--cyan-600); }
p, h1, h2, h3, h4 { margin-top: 0; }
h1, h2, h3, h4 { color: var(--navy-900); font-family: var(--font-serif); line-height: 1.35; overflow-wrap: anywhere; }
h3, h4 { font-family: var(--font-sans); }
p:last-child { margin-bottom: 0; }
input, textarea, select { color: var(--ink-900); }
textarea { resize: vertical; }
::selection { color: var(--navy-950); background: #bcebef; }
[hidden], .is-hidden { display: none !important; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container-wide { width: min(1400px, calc(100% - 48px)); }
.container-narrow { width: min(760px, calc(100% - 48px)); }
.container-login { width: min(460px, calc(100% - 40px)); }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0 72px; }
.section-muted { background: var(--surface-muted); }
.site-main { flex: 1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.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;
}
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 18px; color: #fff; background: var(--navy-900); border-radius: var(--radius-sm); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); color: #fff; }
:focus-visible { outline: 3px solid rgba(21, 166, 176, .35); outline-offset: 3px; }

/* 按钮与通用组件 */
.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.button-primary { color: #fff; background: var(--cyan-700); border-color: var(--cyan-700); box-shadow: 0 5px 14px rgba(8, 123, 134, .16); }
.button-primary:hover { color: #fff; background: #066d76; border-color: #066d76; }
.button-secondary { color: var(--navy-800); background: #fff; border-color: #b9c8d3; }
.button-secondary:hover { color: var(--cyan-700); background: var(--cyan-50); border-color: var(--cyan-600); }
.button-dark { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.button-dark:hover { color: #fff; background: var(--navy-950); }
.button-quiet { color: var(--ink-700); background: var(--surface-muted); border-color: var(--line); }
.button-quiet:hover { color: var(--navy-900); background: #eaf1f5; border-color: #c6d4df; }
.button-danger-quiet { color: var(--danger); background: #fff; border-color: #e4c7c5; }
.button-danger-quiet:hover { color: #973636; background: var(--danger-bg); }
.button-accent { color: var(--navy-950); background: #5bd5d9; border-color: #5bd5d9; box-shadow: 0 8px 20px rgba(20, 188, 196, .18); }
.button-accent:hover { color: var(--navy-950); background: #7be1e4; border-color: #7be1e4; }
.button-ghost-light { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .35); }
.button-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .65); }
.button-large { min-height: 50px; padding: 12px 25px; font-size: 15px; }
.button-small { min-height: 34px; padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.button-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-row-center { justify-content: center; }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan-700); font-size: 14px; font-weight: 600; }
.text-link:hover { gap: 12px; }
.eyebrow { margin-bottom: 12px; color: var(--cyan-700); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: #71d8dd; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: #55d4bd; border-radius: 50%; box-shadow: 0 0 0 4px rgba(85, 212, 189, .12); vertical-align: 1px; }
.section-heading { margin-bottom: 40px; }
.section-heading-center { max-width: 660px; margin-inline: auto; text-align: center; }
.section-heading h2 { margin-bottom: 13px; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.02em; }
.section-heading p { color: var(--ink-600); }
.alert { margin-top: 18px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; }
.alert-error { color: #913c3c; background: var(--danger-bg); border-color: #edceca; }
.alert-success { color: #116849; background: var(--success-bg); border-color: #c6e9d9; }
.alert-warning { color: #83520d; background: var(--warning-bg); border-color: #efddba; }
.alert-info { color: var(--navy-700); background: var(--surface-blue); border-color: #d6e3ea; }
.empty-state { padding: 52px 28px; text-align: center; }
.empty-state h2 { margin: 15px 0 9px; font-size: 21px; }
.empty-state p { max-width: 520px; margin: 0 auto 22px; color: var(--ink-600); }
.empty-icon { width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center; color: var(--cyan-700); background: var(--cyan-50); border: 1px solid #d4eeee; border-radius: 50%; font-size: 20px; font-weight: 700; }
.category-badge { display: inline-flex; align-items: center; padding: 3px 10px; color: var(--cyan-700); background: var(--cyan-50); border: 1px solid #d5eeee; border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 1.7; }

/* 顶部导航与页脚 */
.site-header { position: sticky; z-index: 100; top: 0; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line-light); box-shadow: 0 2px 12px rgba(8, 28, 44, .03); }
.header-inner { position: relative; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-mark { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--navy-900); border: 2px solid var(--navy-900); border-radius: 9px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); font-family: var(--font-serif); font-size: 23px; font-weight: 700; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { color: var(--navy-900); font-size: 21px; letter-spacing: .02em; line-height: 1.25; }
.brand-copy small { margin-top: 3px; color: var(--ink-500); font-size: 12px; letter-spacing: .08em; }
.primary-navigation { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; padding: 24px 16px; color: var(--ink-700); font-size: 14px; font-weight: 600; }
.nav-link::after { content: ""; position: absolute; right: 16px; bottom: 0; left: 16px; height: 3px; background: var(--cyan-600); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform var(--transition); }
.nav-link:hover, .nav-link.is-active { color: var(--cyan-700); }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-user { max-width: 110px; margin-left: 10px; overflow: hidden; color: var(--ink-500); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.logout-form { margin: 0 0 0 2px; }
.nav-logout { padding: 6px 10px; color: var(--ink-600); background: transparent; border: 0; font-size: 13px; }
.nav-logout:hover { color: var(--danger); }
.nav-toggle { display: none; width: 42px; height: 40px; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--navy-800); border-radius: 2px; }
.admin-nav { background: var(--navy-900); }
.admin-nav-inner { min-height: 48px; display: flex; align-items: center; gap: 34px; }
.admin-nav-label { color: #91a8b9; font-size: 12px; }
.admin-nav-links { display: flex; align-self: stretch; gap: 6px; }
.admin-nav-links a { display: flex; align-items: center; padding: 0 15px; color: #c7d5df; border-bottom: 2px solid transparent; font-size: 13px; }
.admin-nav-links a:hover, .admin-nav-links a.is-active { color: #fff; background: rgba(255, 255, 255, .04); border-bottom-color: #52ccd2; }
.site-footer { padding: 28px 0; color: #a9bbc8; background: var(--navy-950); border-top: 3px solid #17364c; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark-small { width: 34px; height: 34px; color: #b8e8e9; background: #102c41; border-color: #294558; font-size: 18px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { color: #edf6f8; font-size: 15px; }
.footer-brand span { color: #7e96a7; font-size: 12px; }
.footer-disclaimer { max-width: 760px; margin: 0; font-size: 12px; text-align: right; }

/* 首页 */
.hero { position: relative; overflow: hidden; padding: 86px 0 88px; color: #fff; background: radial-gradient(circle at 88% 15%, rgba(24, 153, 163, .17), transparent 32%), linear-gradient(125deg, var(--navy-950), var(--navy-900) 58%, #11374e); }
.hero::before { content: ""; position: absolute; width: 480px; height: 480px; right: -160px; bottom: -300px; border: 1px solid rgba(108, 212, 217, .12); border-radius: 50%; box-shadow: 0 0 0 60px rgba(108, 212, 217, .025), 0 0 0 120px rgba(108, 212, 217, .018); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 76px; }
.hero h1 { margin-bottom: 24px; color: #fff; font-family: var(--font-serif); font-size: clamp(38px, 4.5vw, 56px); font-weight: 700; letter-spacing: .01em; line-height: 1.35; }
.hero h1 span { color: #7ee0e3; }
.hero-lead { max-width: 570px; margin-bottom: 30px; color: #b9cbd7; font-size: 17px; line-height: 1.9; }
.hero-actions { margin-bottom: 26px; }
.hero-assurances { display: flex; gap: 24px; margin: 0; padding: 0; color: #91aabb; font-size: 13px; list-style: none; }
.hero-assurances li::before { content: "✓"; margin-right: 6px; color: #63d1c6; }
.hero-workspace { overflow: hidden; color: var(--ink-900); background: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; box-shadow: var(--shadow-lg); transform: rotate(.4deg); }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; background: #f7fafb; border-bottom: 1px solid var(--line-light); }
.workspace-label { color: var(--navy-800); font-size: 13px; font-weight: 700; }
.workspace-state { color: var(--success); font-size: 12px; }
.workspace-state .status-dot { width: 5px; height: 5px; margin-right: 5px; }
.workspace-query { display: flex; align-items: center; gap: 13px; margin: 24px 24px 16px; padding: 15px; background: var(--surface-blue); border: 1px solid #e0e9ef; border-radius: 8px; }
.query-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; background: var(--cyan-700); border-radius: 7px; font-size: 13px; }
.workspace-query div { display: flex; flex-direction: column; min-width: 0; }
.workspace-query small { color: var(--ink-500); font-size: 12px; }
.workspace-query strong { overflow: hidden; color: var(--navy-800); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-answer { margin: 0 24px 24px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.answer-line { width: 82%; height: 6px; margin-bottom: 10px; background: #e4ebef; border-radius: 3px; }
.answer-line-long { width: 100%; }
.answer-line-short { width: 61%; }
.citation-demo { display: flex; flex-direction: column; margin-top: 22px; padding: 13px 15px; background: var(--cyan-50); border-left: 3px solid var(--cyan-600); }
.citation-demo span { color: var(--cyan-700); font-size: 12px; }
.citation-demo strong { margin: 3px 0; color: var(--navy-800); font-size: 13px; }
.citation-demo small { color: var(--ink-500); font-size: 12px; }
.workspace-footer { display: flex; justify-content: space-between; padding: 12px 24px; color: var(--ink-500); background: #fbfcfd; border-top: 1px solid var(--line-light); font-size: 12px; }
.stats-band { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--line-light); }
.stats-grid { min-height: 126px; display: flex; align-items: center; justify-content: space-around; gap: 35px; }
.stat-item { display: flex; align-items: center; gap: 17px; }
.stat-item strong { color: var(--navy-900); font-family: Georgia, serif; font-size: 34px; font-weight: 500; line-height: 1; }
.stat-item span { max-width: 150px; color: var(--ink-600); font-size: 13px; line-height: 1.6; }
.stat-divider { width: 1px; height: 36px; background: var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { position: relative; overflow: hidden; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.feature-card:hover { border-color: #bddde0; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card-highlight { border-top: 3px solid var(--cyan-600); padding-top: 30px; }
.feature-number { position: absolute; top: 19px; right: 23px; color: #e8eef2; font-family: Georgia, serif; font-size: 38px; }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 23px; color: var(--cyan-700); background: var(--cyan-50); border: 1px solid #d8eeee; border-radius: 10px; font-family: var(--font-serif); font-size: 20px; font-weight: 700; }
.feature-card h3 { margin-bottom: 13px; font-size: 20px; }
.feature-card p { min-height: 105px; margin-bottom: 20px; color: var(--ink-600); font-size: 14px; line-height: 1.85; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-tags span { padding: 3px 8px; color: var(--ink-600); background: var(--surface-muted); border-radius: 4px; font-size: 12px; }
.workflow-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 100px; }
.workflow-intro h2 { margin-bottom: 18px; font-size: 33px; }
.workflow-intro > p:not(.eyebrow) { margin-bottom: 27px; color: var(--ink-600); }
.workflow-steps { margin: 0; padding: 0; list-style: none; }
.workflow-steps li { position: relative; display: flex; gap: 20px; padding: 0 0 30px; }
.workflow-steps li:last-child { padding-bottom: 0; }
.workflow-steps li:not(:last-child)::after { content: ""; position: absolute; top: 45px; bottom: 5px; left: 20px; width: 1px; background: #cadde2; }
.workflow-steps li > span { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--cyan-700); background: #fff; border: 1px solid #c8e0e3; border-radius: 50%; font-family: Georgia, serif; font-size: 18px; }
.workflow-steps strong { color: var(--navy-900); font-size: 17px; }
.workflow-steps p { margin: 5px 0 0; color: var(--ink-600); font-size: 13px; }
.export-section { padding-top: 60px; padding-bottom: 60px; }
.export-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px 44px; color: #b7cbd6; background: linear-gradient(115deg, var(--navy-900), #123b50); border-radius: var(--radius); }
.export-card h2 { margin-bottom: 8px; color: #fff; font-size: 28px; }
.export-card p { margin-bottom: 0; }
.export-actions { display: flex; align-items: center; gap: 10px; }
.format-pill { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; color: #c6e9ea; border: 1px solid rgba(157, 219, 222, .25); border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.export-actions .button { margin-left: 12px; }

/* 内页标题与问答 */
.page-hero { color: #fff; background: linear-gradient(115deg, var(--navy-950), #10364d); }
.page-hero-compact { padding: 44px 0; }
.page-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.page-heading-row .eyebrow { margin-bottom: 7px; }
.page-heading-row h1 { margin-bottom: 9px; color: #fff; font-family: var(--font-serif); font-size: 34px; }
.page-heading-row p:not(.eyebrow) { max-width: 820px; margin-bottom: 0; color: #b3c6d2; font-size: 15px; line-height: 1.8; }
.page-hero-badge { flex-shrink: 0; padding: 8px 14px; color: #b6d5dd; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; font-size: 12px; }
.qa-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); align-items: start; gap: 26px; }
.qa-main { min-width: 0; }
.qa-ask-panel { padding: 28px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { margin: 3px 0 0; font-size: 20px; }
.panel-kicker { color: var(--cyan-700); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.secure-label { flex-shrink: 0; padding-top: 5px; color: var(--ink-500); font-size: 12px; }
.qa-ask-panel textarea { width: 100%; min-height: 150px; padding: 16px 18px; background: #fbfcfd; border: 1px solid #cbd7df; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.8; transition: border var(--transition), box-shadow var(--transition); }
.qa-ask-panel textarea:focus { background: #fff; border-color: var(--cyan-600); outline: 0; box-shadow: 0 0 0 4px rgba(11, 146, 157, .09); }
.qa-ask-panel textarea::placeholder { color: #94a2ae; }
.qa-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.field-hint { color: var(--ink-500); font-size: 12px; }
.qa-form-footer .button { flex-shrink: 0; }
.qa-results { margin-top: 24px; }
.qa-empty { border: 1px dashed #cddae2; border-radius: var(--radius); background: rgba(255, 255, 255, .5); }
.answer-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.answer-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 24px; background: #f7fafb; border-bottom: 1px solid var(--line-light); }
.answer-card-header h2 { margin: 0; font-size: 17px; }
.answer-mode { padding: 4px 10px; color: var(--cyan-700); background: var(--cyan-50); border-radius: 12px; font-size: 12px; }
.answer-content { padding: 25px 26px; color: #283b4c; font-size: 15px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-content > * + * { margin-top: 16px; }
.answer-section { padding: 16px 18px; background: #f8fbfc; border: 1px solid var(--line-light); border-radius: var(--radius-sm); }
.answer-section-title { margin: 0 0 8px; color: var(--cyan-700); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.answer-section-body { color: #2a3f4f; font-size: 14px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.answer-paragraph { white-space: pre-wrap; }
.answer-disclaimer { margin-top: 20px !important; padding-top: 12px; color: var(--ink-500); border-top: 1px dashed var(--line); font-size: 12px; line-height: 1.8; }
.answer-card.is-refused { border-color: #ead8b6; }
.answer-card.is-refused .answer-card-header { background: var(--warning-bg); }
.answer-card.is-refused .answer-mode { color: #83520d; background: #f6e7c9; }
.answer-card.mode-general .answer-mode,
.answer-card.mode-fallback .answer-mode { color: #6b4a12; background: #f7ecd6; }
.refusal-note { margin: 0 26px 22px; padding: 10px 13px; color: #83520d; background: var(--warning-bg); border-radius: 6px; font-size: 12px; }
.citations-card { margin-top: 18px; padding: 23px 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.citations-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.citations-heading h2 { margin: 0; font-size: 17px; }
.citations-heading span { color: var(--ink-500); font-size: 12px; }
.citation-list { margin: 0; padding: 0; list-style: none; counter-reset: citations; }
.citation-item { position: relative; padding: 17px 0 17px 39px; border-top: 1px solid var(--line-light); counter-increment: citations; }
.citation-item::before { content: counter(citations); position: absolute; top: 18px; left: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--cyan-700); background: var(--cyan-50); border-radius: 50%; font-family: Georgia, serif; font-size: 12px; }
.citation-title { color: var(--navy-800); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
a.citation-title:hover { color: var(--cyan-700); }
.citation-tag { display: inline-block; margin-bottom: 6px; padding: 2px 8px; color: var(--cyan-700); background: var(--cyan-50); border-radius: 10px; font-size: 11px; }
.citation-meta { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 6px; color: var(--ink-600); font-size: 12px; }
.citation-excerpt { margin-top: 9px; padding: 10px 12px; color: #40566a; background: #f8fbfc; border-left: 2px solid #cfe3e6; border-radius: 0 6px 6px 0; font-size: 13px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.citation-link-note { display: block; margin-top: 5px; color: var(--cyan-700); font-size: 12px; }
.citation-empty { padding: 15px; color: var(--ink-600); background: var(--surface-muted); border-radius: 6px; font-size: 13px; }
.qa-aside { display: grid; gap: 18px; }
.info-panel, .examples-panel { padding: 24px; }
.info-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; color: var(--cyan-700); background: var(--cyan-50); border-radius: 50%; font-size: 14px; font-weight: 700; }
.qa-aside h2 { margin-bottom: 11px; font-size: 17px; }
.info-panel > p { color: var(--ink-600); font-size: 13px; }
.info-panel strong { color: var(--navy-800); }
.check-list { margin: 17px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line-light); list-style: none; }
.check-list li { margin: 7px 0; color: var(--ink-600); font-size: 12px; }
.check-list li::before { content: "—"; margin-right: 8px; color: var(--cyan-600); }
.example-list { margin: 0; padding: 0; list-style: none; }
.example-list li { padding: 11px 0 11px 15px; color: var(--ink-600); border-top: 1px solid var(--line-light); font-size: 12px; }
.example-list li::before { content: "“"; margin-left: -13px; margin-right: 5px; color: #80bec3; font-family: Georgia, serif; font-size: 20px; vertical-align: -3px; }
.aside-note { padding: 18px 20px; color: #735523; background: var(--warning-bg); border: 1px solid #eee0c3; border-radius: var(--radius); }
.aside-note strong { font-size: 12px; }
.aside-note p { margin-top: 5px; font-size: 12px; line-height: 1.8; }

/* 文书模板与填写 */
.document-benefits { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.document-benefits span { padding: 5px 10px; color: #c1d6df; border: 1px solid rgba(255, 255, 255, .13); border-radius: 4px; font-size: 12px; }
.category-filter { display: flex; align-items: flex-start; gap: 22px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.filter-label { flex-shrink: 0; padding-top: 6px; color: var(--navy-800); font-size: 13px; font-weight: 700; }
.filter-links { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-chip { padding: 6px 15px; color: var(--ink-600); background: var(--surface-muted); border: 1px solid transparent; border-radius: 20px; font-size: 13px; line-height: 1.5; transition: color var(--transition), background var(--transition), border-color var(--transition); }
.filter-chip:hover { color: var(--cyan-700); background: var(--cyan-50); }
.filter-chip.is-active { color: #fff; background: var(--navy-800); border-color: var(--navy-800); font-weight: 600; }
.results-summary { display: flex; justify-content: space-between; gap: 20px; margin: 25px 0 18px; color: var(--ink-500); font-size: 12px; }
.results-summary p { margin: 0; }
.results-summary strong { color: var(--navy-800); }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.template-card { display: flex; flex-direction: column; min-height: 290px; padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border var(--transition), box-shadow var(--transition), transform var(--transition); }
.template-card:hover { border-color: #b7dadd; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.template-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.template-doc-type { color: #c0cdd5; font-family: Georgia, serif; font-size: 12px; letter-spacing: .12em; }
.template-card h2 { margin-bottom: 12px; font-size: 20px; }
.template-card h2 a { color: var(--navy-900); }
.template-card h2 a:hover { color: var(--cyan-700); }
.template-description { flex: 1; margin-bottom: 23px; color: var(--ink-600); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.template-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-light); }
.source-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-500); font-size: 12px; }
.source-link:hover { color: var(--cyan-700); }
.source-link-muted { cursor: default; }
.document-notice { display: flex; gap: 14px; margin-top: 30px; padding: 20px 22px; color: var(--ink-600); background: var(--surface-blue); border: 1px solid #dae5eb; border-radius: 9px; }
.notice-icon { width: 23px; height: 23px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; color: var(--cyan-700); border: 1px solid var(--cyan-600); border-radius: 50%; font-family: Georgia, serif; font-size: 13px; }
.document-notice strong { color: var(--navy-800); font-size: 13px; }
.document-notice p { margin-top: 4px; font-size: 13px; line-height: 1.8; }
.document-heading-section { padding: 26px 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; color: var(--ink-500); font-size: 12px; }
.breadcrumbs a { color: var(--ink-600); }
.breadcrumbs a:hover { color: var(--cyan-700); }
.document-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.document-title-row h1 { margin: 9px 0 7px; font-family: var(--font-serif); font-size: 31px; }
.document-title-row p { max-width: 800px; margin: 0; color: var(--ink-600); font-size: 14px; }
.official-template-link { flex-shrink: 0; padding-bottom: 4px; color: var(--cyan-700); }
.document-workspace-section { padding: 28px 0 55px; background: #f1f5f7; }
.document-layout { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); align-items: start; gap: 24px; }
.document-form-panel { overflow: hidden; }
.document-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 23px 26px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.step-label { color: var(--cyan-700); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.document-panel-heading h2, .export-tools h2 { margin: 2px 0 0; font-size: 18px; }
.required-note { color: var(--ink-500); font-size: 12px; }
.required-note span, .required-mark { margin-left: 4px; color: #c64d4d; }
.document-fields { padding: 5px 26px 12px; }
.form-group { margin-bottom: 19px; }
.form-group > label { display: block; margin-bottom: 7px; color: var(--navy-800); font-size: 14px; font-weight: 600; }
.form-group input:not([type="checkbox"]), .form-group textarea, .form-group select, .login-form input {
    width: 100%; min-height: 43px; padding: 10px 12px; color: var(--ink-900); background: #fff; border: 1px solid #cbd7df; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.65; transition: border var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group textarea { min-height: 90px; }
.form-group select { appearance: auto; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--cyan-600); outline: 0; box-shadow: 0 0 0 3px rgba(11, 146, 157, .09); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #9aa7b1; }
.document-field { padding: 19px 0 2px; border-bottom: 1px solid var(--line-light); }
.document-field:last-child { border-bottom: 0; }
.field-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.field-heading label { color: var(--navy-800); font-size: 13px; font-weight: 600; }
.field-index { color: #93a6b3; font-family: Georgia, serif; font-size: 12px; }
.optional-label { margin-left: 8px; color: var(--ink-500); font-size: 12px; font-weight: 400; }
.field-help { margin: 6px 0 0; color: var(--ink-500); font-size: 12px; line-height: 1.7; }
.field-help code { color: var(--cyan-700); font-family: Consolas, monospace; }
.draft-tools { padding: 19px 26px; background: var(--cyan-50); border-top: 1px solid #d9ebeb; border-bottom: 1px solid #d9ebeb; }
.draft-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.draft-status { margin: 8px 0 0; color: var(--ink-600); font-size: 12px; }
.draft-status.is-success { color: var(--success); }
.draft-status.is-error { color: var(--danger); }
.export-tools { padding: 22px 26px 25px; }
.export-tools p { margin: 5px 0 16px; color: var(--ink-500); font-size: 12px; }
.export-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.export-buttons .button span { opacity: .7; font-size: 12px; font-weight: 400; }
.document-preview-panel { position: sticky; top: 98px; overflow: hidden; background: #e8eef2; }
.preview-toolbar { min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.preview-toolbar > div { display: flex; align-items: center; gap: 8px; }
.preview-toolbar strong { color: var(--navy-800); font-size: 13px; }
.preview-dot { width: 7px; height: 7px; background: var(--cyan-600); border-radius: 50%; }
.preview-format { padding: 1px 5px; color: var(--ink-500); background: var(--surface-muted); border-radius: 3px; font-size: 12px; }
.preview-actions #preview-status { color: var(--ink-500); font-size: 12px; }
.preview-actions { flex-wrap: wrap; justify-content: flex-end; }
.version-switch { display: inline-flex; gap: 2px; padding: 2px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 7px; }
.version-option { padding: 4px 10px; color: var(--ink-600); background: transparent; border: 0; border-radius: 5px; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.version-option:hover { color: var(--navy-900); }
.version-option.is-active { color: var(--cyan-700); background: #fff; box-shadow: 0 1px 3px rgba(17, 37, 52, .12); font-weight: 600; }
.polish-status { margin: 0; padding: 10px 18px; color: var(--ink-600); background: #eef6fb; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.7; }
.polish-status.is-success { color: var(--success); background: var(--success-bg); }
.polish-status.is-warning { color: #83520d; background: var(--warning-bg); }
.polish-status.is-error { color: #913c3c; background: var(--danger-bg); }
.polish-disclaimer { margin: 0; padding: 11px 16px; color: #83520d; background: var(--warning-bg); border-top: 1px solid #efddba; font-size: 12px; line-height: 1.7; text-align: center; }
.document-preview { min-height: 500px; padding: 25px; overflow: auto; background: #e8eef2; }
.paper-document { width: 100%; max-width: 794px; min-height: 900px; aspect-ratio: 210 / 297; margin: 0 auto; padding: 96px 98px 96px 104px; overflow-wrap: break-word; color: #111; background: #fff; box-shadow: 0 5px 20px rgba(17, 37, 52, .12); font-family: SimSun, "Songti SC", serif; font-size: 15px; line-height: 2; }
.paper-document h1 { margin: 0 0 45px; color: #111; font-family: SimSun, "Songti SC", serif; font-size: 26px; font-weight: 700; line-height: 1.5; text-align: center; }
.paper-document p { margin: 0 0 16px; font-size: inherit; line-height: inherit; text-align: justify; }
/* 落款区块：整体向右侧页边距内延伸 35.7pt（约 3.5 个字），文字距纸右约 1.48cm，不贴死纸边；称谓与日期左对齐，宽度由渲染层按落款最宽行内联下发。 */
.paper-document p.doc-signature, .paper-document p.doc-date { width: 180pt; margin-left: auto; margin-right: -35.7pt; text-align: left; }
.paper-document .doc-tail { page-break-inside: avoid; break-inside: avoid; }
.paper-document p.doc-signature { margin-top: 12pt; margin-bottom: 8pt; line-height: 2; }
.paper-document p.doc-date { margin-top: 0; margin-bottom: 16px; line-height: 1.6; }
.paper-document .doc-appendix p { text-align: left; }
.preview-footnote { margin: 0; padding: 10px 16px; color: var(--ink-500); background: #f8fafb; border-top: 1px solid var(--line); font-size: 12px; text-align: center; }

/* 管理后台 */
.admin-section { min-height: 70vh; padding: 40px 0 60px; background: var(--surface-muted); }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.admin-page-heading .eyebrow { margin-bottom: 5px; }
.admin-page-heading h1 { margin-bottom: 7px; font-size: 29px; }
.admin-page-heading p:not(.eyebrow) { margin: 0; color: var(--ink-600); font-size: 13px; }
.admin-date { color: var(--ink-500); font-size: 12px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 25px; }
.admin-stat-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; padding: 22px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
a.admin-stat-card:hover { border-color: #bad9dc; box-shadow: var(--shadow-md); }
.admin-stat-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--cyan-700); background: var(--cyan-50); border-radius: 9px; font-size: 15px; font-weight: 700; }
.admin-stat-card div { display: flex; flex-direction: column; }
.admin-stat-card strong { color: var(--navy-900); font-family: Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.1; }
.admin-stat-card div span { margin-top: 4px; color: var(--ink-600); font-size: 13px; }
.stat-card-link { grid-column: 1 / -1; padding-top: 11px; color: var(--ink-500); border-top: 1px solid var(--line-light); font-size: 12px; }
.admin-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 20px; }
.admin-table-panel { min-width: 0; overflow: hidden; }
.admin-panel-heading { align-items: center; margin: 0; padding: 20px 23px; border-bottom: 1px solid var(--line); }
.admin-panel-heading .text-link { font-size: 12px; }
.admin-quick-panel { padding: 23px; }
.admin-quick-panel h2 { margin: 3px 0 15px; font-size: 19px; }
.quick-links { display: grid; }
.quick-links a { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 15px 0; color: var(--cyan-700); border-top: 1px solid var(--line-light); }
.quick-links a > span { font-size: 19px; }
.quick-links a div { display: flex; flex-direction: column; }
.quick-links strong { color: var(--navy-800); font-size: 13px; }
.quick-links small { color: var(--ink-500); font-size: 12px; }
.quick-links b { font-size: 12px; font-weight: 400; transition: transform var(--transition); }
.quick-links a:hover b { transform: translateX(3px); }
.admin-tip { margin-top: 17px; padding: 14px; color: var(--ink-600); background: var(--surface-muted); border-radius: var(--radius-sm); font-size: 12px; line-height: 1.7; }
.admin-tip strong { color: var(--navy-800); }
.admin-tip p { margin-top: 4px; }
.table-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 22px; border-bottom: 1px solid var(--line-light); }
.table-caption strong { color: var(--navy-800); font-size: 13px; }
.table-caption span { color: var(--ink-500); font-size: 12px; }
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 12px 15px; color: var(--ink-600); background: #f8fafb; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 15px; color: var(--ink-600); border-bottom: 1px solid var(--line-light); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfd; }
.data-table time { white-space: nowrap; }
.table-title { display: block; max-width: 360px; color: var(--navy-800); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.table-subtitle { display: block; margin-top: 4px; color: var(--ink-500); font-size: 12px; line-height: 1.6; }
.source-type { color: var(--navy-700); font-family: Consolas, "Microsoft YaHei", monospace; font-size: 12px; overflow-wrap: anywhere; }
.muted-text { color: var(--ink-500); }
.badge, .status-badge, .run-status, .review-state { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.badge-change-created, .status-effective, .run-success { color: #147353; background: var(--success-bg); }
.badge-change-revised, .status-revised, .run-partial, .status-pending { color: #96600f; background: var(--warning-bg); }
.badge-change-status_changed, .status-repealed, .status-expired, .run-failed { color: #a14343; background: var(--danger-bg); }
.status-unknown, .run-running { color: var(--navy-700); background: var(--surface-blue); }
.run-running::before { content: ""; width: 5px; height: 5px; margin-right: 5px; background: var(--cyan-600); border-radius: 50%; animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.review-state.is-reviewed { color: var(--success); background: var(--success-bg); }
.review-state.is-pending { color: var(--warning); background: var(--warning-bg); }
.empty-table { padding: 42px 20px; color: var(--ink-500); text-align: center; }
.empty-table p { margin: 0; }
.table-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-actions form { margin: 0; }
.code-label { padding: 3px 6px; color: var(--navy-700); background: var(--surface-muted); border-radius: 4px; font-family: Consolas, monospace; font-size: 12px; }
.template-admin-table { min-width: 850px; }
.knowledge-table { min-width: 1000px; }
.sync-table { min-width: 950px; }
.changes-table { min-width: 850px; }
.template-admin-table .button { white-space: nowrap; }
.knowledge-panel { overflow: hidden; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 20px 22px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.search-input-wrap { position: relative; flex: 1; max-width: 560px; }
.search-input-wrap > span { position: absolute; top: 8px; left: 13px; color: var(--ink-500); font-size: 20px; pointer-events: none; }
.search-input-wrap input { width: 100%; height: 44px; padding: 8px 12px 8px 39px; border: 1px solid #cbd7df; border-radius: var(--radius-sm); font-size: 14px; transition: border var(--transition), box-shadow var(--transition); }
.search-input-wrap input:focus { border-color: var(--cyan-600); outline: 0; box-shadow: 0 0 0 3px rgba(11, 146, 157, .12); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 22px; border-top: 1px solid var(--line); }
.page-link { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; color: var(--ink-600); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; transition: color var(--transition), border-color var(--transition), background var(--transition); }
.page-link:hover { color: var(--cyan-700); border-color: var(--cyan-600); }
.page-link.is-active { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.page-link.is-disabled { color: #aab4bc; background: var(--surface-muted); cursor: not-allowed; }
.page-direction { padding-inline: 13px; }
.page-ellipsis { padding: 0 4px; color: var(--ink-500); }
.sync-runs-panel { margin-bottom: 24px; }
.sync-notice { color: var(--ink-600); font-size: 12px; }
.sync-notice .status-dot { background: var(--cyan-600); box-shadow: 0 0 0 4px rgba(11, 146, 157, .1); }
.sync-counts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; white-space: nowrap; }
.sync-counts strong { color: var(--navy-800); }
.count-success, .count-success strong { color: var(--success); }
.count-error, .count-error strong { color: var(--danger); }
.sync-message { display: block; max-width: 240px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.row-pending { background: #fffdf8; }

/* 后台模板编辑 */
.admin-form-heading { margin-bottom: 22px; }
.template-editor-form > .alert { margin-bottom: 20px; }
.template-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: 22px; }
.template-editor-main { display: grid; gap: 22px; }
.form-section { padding: 25px; }
.form-section .panel-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line-light); }
.form-grid { display: grid; gap: 0 18px; }
.form-grid-two { grid-template-columns: 1fr 1fr; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; background: var(--surface-muted); border-radius: 6px; cursor: pointer; }
.checkbox-label input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--cyan-700); }
.checkbox-label span { display: flex; flex-direction: column; }
.checkbox-label strong { color: var(--navy-800); font-size: 12px; }
.checkbox-label small { color: var(--ink-500); font-size: 12px; }
.body-template-input { min-height: 430px !important; font-family: SimSun, "Songti SC", serif; line-height: 2 !important; }
.code-input { font-family: Consolas, "Courier New", monospace !important; }
.schema-panel { padding-bottom: 20px; }
.schema-input { min-height: 430px !important; white-space: pre; font-size: 12px !important; line-height: 1.65 !important; tab-size: 2; }
.format-pill-light { color: var(--ink-500); background: var(--surface-muted); border-color: var(--line); }
.schema-help { padding: 14px; color: var(--ink-600); background: var(--surface-muted); border-radius: var(--radius-sm); font-size: 12px; line-height: 1.7; }
.schema-help > strong { color: var(--navy-800); }
.schema-help dl { margin: 8px 0 0; }
.schema-help dl div { display: grid; grid-template-columns: 115px 1fr; gap: 8px; padding: 4px 0; }
.schema-help dt { color: var(--cyan-700); font-family: Consolas, monospace; }
.schema-help dd { margin: 0; }
.template-editor-aside { display: grid; gap: 18px; }
.sticky-actions { padding: 18px; }
.sticky-actions .button + .button { margin-top: 8px; }
.sticky-actions p { margin: 11px 0 0; color: var(--ink-500); font-size: 12px; text-align: center; }

/* 登录与错误页 */
.admin-login-section { padding: 65px 0; background: radial-gradient(circle at 50% 0, #eef8f8, transparent 48%), var(--surface-muted); }
.login-card { padding: 34px; box-shadow: var(--shadow-md); }
.login-heading { margin-bottom: 25px; text-align: center; }
.login-mark { width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 17px; color: #fff; background: var(--navy-900); border-radius: 11px; font-family: var(--font-serif); font-size: 25px; }
.login-heading .eyebrow { margin-bottom: 5px; }
.login-heading h1 { margin-bottom: 9px; font-size: 25px; }
.login-heading p:not(.eyebrow) { color: var(--ink-600); font-size: 13px; }
.login-form .button { margin-top: 5px; }
.login-security { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; padding-top: 18px; color: var(--ink-500); border-top: 1px solid var(--line-light); font-size: 12px; }
.login-security > span { color: var(--success); }
.login-security p { margin: 0; }
.login-back { display: block; margin-top: 20px; color: var(--ink-600); font-size: 12px; text-align: center; }
.error-section { padding: 80px 0; background: var(--surface-muted); }
.error-card { padding: 55px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); text-align: center; }
.error-symbol { width: 55px; height: 55px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--warning); background: var(--warning-bg); border-radius: 50%; font-family: Georgia, serif; font-size: 28px; }
.error-card h1 { margin-bottom: 14px; font-size: 28px; }
.error-message { margin-bottom: 28px; color: var(--ink-600); overflow-wrap: anywhere; }

/* 响应式 */
@media (max-width: 1180px) {
    .hero-grid { gap: 45px; }
    .document-layout { grid-template-columns: minmax(340px, .85fr) minmax(440px, 1.15fr); gap: 18px; }
    .paper-document { padding: 50px 45px; }
    .admin-stat-card { padding: 18px; }
    .template-editor-grid { grid-template-columns: minmax(0, 1fr) 350px; }
}

@media (max-width: 980px) {
    .hero { padding: 65px 0; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero h1 { font-size: 40px; }
    .hero-lead { font-size: 15px; }
    .hero-assurances { gap: 13px; }
    .workspace-query, .workspace-answer { margin-inline: 17px; }
    .workspace-topbar, .workspace-footer { padding-inline: 17px; }
    .feature-card { padding-inline: 22px; }
    .workflow-grid { gap: 55px; }
    .qa-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
    .template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .document-layout { grid-template-columns: 1fr; }
    .document-preview-panel { position: static; }
    .document-preview { padding: 35px; }
    .paper-document { max-width: 760px; padding: 70px 65px; }
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-content-grid { grid-template-columns: 1fr; }
    .quick-links { grid-template-columns: repeat(3, 1fr); gap: 15px; }
    .quick-links a { grid-template-columns: 24px 1fr; align-items: start; }
    .quick-links a b { display: none; }
    .template-editor-grid { grid-template-columns: 1fr; }
    .template-editor-aside { grid-template-columns: 1fr 260px; align-items: start; }
}

@media (max-width: 820px) {
    .container, .container-wide { width: min(100% - 36px, 1180px); }
    .header-inner { min-height: 68px; }
    .brand-mark { width: 37px; height: 37px; font-size: 20px; }
    .brand-copy strong { font-size: 19px; }
    .brand-copy small { display: none; }
    .nav-toggle:not([hidden]) { display: block; }
    .primary-navigation.is-enhanced { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-md); }
    .primary-navigation.is-enhanced.is-open { display: grid; }
    .primary-navigation .nav-link { padding: 11px 14px; border-radius: 5px; }
    .primary-navigation .nav-link::after { display: none; }
    .primary-navigation .nav-link.is-active { background: var(--cyan-50); }
    .nav-user { max-width: none; margin: 8px 14px 0; padding-top: 8px; border-top: 1px solid var(--line-light); }
    .logout-form { margin: 0; }
    .nav-logout { width: 100%; padding: 10px 14px; text-align: left; }
    .admin-nav-inner { display: block; padding-top: 8px; padding-bottom: 8px; overflow-x: auto; }
    .admin-nav-label { display: none; }
    .admin-nav-links { min-width: max-content; }
    .admin-nav-links a { min-height: 32px; padding: 0 12px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { max-width: 670px; }
    .hero-workspace { width: min(100%, 620px); transform: none; }
    .stats-grid { gap: 20px; }
    .stat-item { flex-direction: column; gap: 7px; text-align: center; }
    .stat-item span { max-width: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card p { min-height: 0; }
    .workflow-grid { grid-template-columns: 1fr; gap: 42px; }
    .export-card { align-items: flex-start; flex-direction: column; }
    .page-heading-row { align-items: flex-start; flex-direction: column; gap: 18px; }
    .document-benefits { justify-content: flex-start; }
    .qa-layout { grid-template-columns: 1fr; }
    .qa-aside { grid-template-columns: 1fr 1fr; }
    .aside-note { grid-column: 1 / -1; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
    .footer-disclaimer { text-align: left; }
}

@media (max-width: 680px) {
    body { font-size: 15px; }
    .container, .container-wide, .container-narrow { width: calc(100% - 30px); }
    .section { padding: 55px 0; }
    .section-tight { padding: 30px 0 50px; }
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 34px; }
    .hero-lead { font-size: 14px; }
    .hero-actions .button { flex: 1; }
    .hero-assurances { flex-wrap: wrap; }
    .workspace-topbar { padding: 13px 15px; }
    .workspace-query { margin: 16px 14px 12px; }
    .workspace-answer { margin: 0 14px 16px; padding: 15px; }
    .workspace-footer { padding-inline: 15px; }
    .stats-grid { min-height: 110px; gap: 10px; }
    .stat-item strong { font-size: 26px; }
    .stat-item span { font-size: 12px; }
    .stat-divider { height: 48px; }
    .export-card { padding: 28px 24px; }
    .export-actions { flex-wrap: wrap; }
    .export-actions .button { width: 100%; margin: 8px 0 0; }
    .page-hero-compact { padding: 33px 0; }
    .page-heading-row h1 { font-size: 29px; }
    .qa-ask-panel { padding: 20px; }
    .panel-heading { gap: 10px; }
    .secure-label { display: none; }
    .qa-form-footer { align-items: stretch; flex-direction: column; gap: 12px; }
    .qa-form-footer .button { width: 100%; }
    .answer-content { padding: 20px; font-size: 14px; }
    .answer-card-header { padding: 14px 19px; }
    .citations-card { padding: 20px; }
    .qa-aside { grid-template-columns: 1fr; }
    .aside-note { grid-column: auto; }
    .category-filter { flex-direction: column; gap: 10px; }
    .filter-label { padding-top: 0; }
    .filter-links { flex-wrap: nowrap; width: 100%; padding-bottom: 5px; overflow-x: auto; }
    .filter-chip { flex-shrink: 0; }
    .template-grid { grid-template-columns: 1fr; }
    .template-card { min-height: 0; }
    .document-title-row { align-items: flex-start; flex-direction: column; gap: 14px; }
    .document-title-row h1 { font-size: 27px; }
    .document-workspace-section { padding-top: 18px; }
    .document-panel-heading, .document-fields, .draft-tools, .export-tools { padding-right: 19px; padding-left: 19px; }
    .export-buttons { grid-template-columns: 1fr; }
    .preview-toolbar { align-items: flex-start; flex-direction: column; }
    .preview-actions { width: 100%; justify-content: space-between; }
    .document-preview { padding: 12px; }
    .paper-document { min-height: 650px; padding: 36px 28px; font-size: 13px; }
    .paper-document h1 { margin-bottom: 28px; font-size: 21px; }
    .admin-section { padding: 28px 0 45px; }
    .admin-page-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
    .admin-page-heading h1 { font-size: 26px; }
    .admin-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .admin-stat-card { gap: 10px; padding: 15px; }
    .admin-stat-icon { width: 34px; height: 34px; }
    .admin-stat-card strong { font-size: 23px; }
    .quick-links { grid-template-columns: 1fr; gap: 0; }
    .search-form { flex-wrap: wrap; padding: 16px; }
    .search-input-wrap { flex-basis: 100%; max-width: none; }
    .table-caption { padding-inline: 16px; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; min-width: 0; }
    .data-table thead { display: none; }
    .data-table tr { padding: 13px 16px; border-bottom: 1px solid var(--line); }
    .data-table tbody tr:last-child { border-bottom: 0; }
    .data-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 7px 0; border: 0; text-align: right; }
    .data-table td::before { content: attr(data-label); flex-shrink: 0; color: var(--ink-500); font-size: 12px; text-align: left; }
    .data-table td:first-child { display: block; padding-bottom: 10px; text-align: left; }
    .data-table td:first-child::before { display: block; margin-bottom: 4px; }
    .table-title { max-width: none; }
    .data-table td .table-subtitle { text-align: right; }
    .data-table td:first-child .table-subtitle { text-align: left; }
    .table-actions { justify-content: flex-end; }
    .sync-counts { justify-content: flex-end; }
    .sync-message { max-width: 210px; }
    .form-grid-two { grid-template-columns: 1fr; }
    .form-section { padding: 20px; }
    .template-editor-aside { grid-template-columns: 1fr; }
    .body-template-input { min-height: 350px !important; }
    .schema-input { min-height: 360px !important; }
    .schema-help dl div { grid-template-columns: 105px 1fr; }
    .login-card { padding: 27px 22px; }
    .admin-login-section { padding: 40px 0; }
    .error-card { padding: 40px 24px; }
}

@media (max-width: 420px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .workspace-state { display: none; }
    .workspace-footer span:last-child { display: none; }
    .admin-stat-grid { grid-template-columns: 1fr; }
    .template-card-footer { align-items: flex-start; flex-direction: column; }
    .template-card-footer .button { width: 100%; }
    .draft-buttons .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@page { size: A4; margin: 25.4mm 26mm 25.4mm 28mm; }
@media print {
    html, body { min-height: 0; background: #fff !important; }
    body { display: block; color: #000; font-size: 12pt; }
    .no-print, .site-header, .site-footer, .admin-nav, .skip-link, .document-heading-section, .document-form-panel, .preview-toolbar, .preview-footnote { display: none !important; }
    .document-page .site-main, .document-page .document-workspace-section { padding: 0; background: #fff; }
    .document-page .container, .document-page .container-wide { width: 100%; max-width: none; margin: 0; }
    .document-page .document-layout { display: block; }
    .document-page .document-preview-panel { position: static; overflow: visible; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
    .document-page .document-preview { min-height: 0; padding: 0; overflow: visible; background: #fff; }
    .document-page .paper-document { width: 100%; max-width: none; min-height: 0; aspect-ratio: auto; margin: 0; padding: 0; color: #000; box-shadow: none; font-size: 12pt; line-height: 1.9; }
    .document-page .paper-document h1 { margin-bottom: 2em; color: #000; font-size: 22pt; page-break-after: avoid; }
    .document-page .paper-document p { margin-bottom: .8em; orphans: 3; widows: 3; }
    .document-page .paper-document .doc-tail { page-break-inside: avoid; break-inside: avoid; }
    .document-page .paper-document p.doc-signature { margin: 12pt -35.7pt 8pt auto; line-height: 2; }
    .document-page .paper-document p.doc-date { margin: 0 -35.7pt .8em auto; line-height: 1.6; }
}

/* 采集控制台 */
.flash-message { margin-bottom: 18px; padding: 12px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; }
.flash-success { color: var(--success); background: var(--success-bg); border-color: #bfe6d6; }
.flash-error { color: var(--danger); background: var(--danger-bg); border-color: #f0cfcd; }
.collect-console { margin-bottom: 18px; }
.collect-body { padding: 20px 22px 22px; }
.collect-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.collect-metric { padding: 14px 16px; background: var(--surface-muted); border-radius: 9px; }
.collect-metric span { display: block; color: var(--ink-600); font-size: 12px; }
.collect-metric strong { color: var(--navy-900); font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.collect-metric .metric-warning { color: var(--danger); }
.collect-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.collect-actions form { margin: 0; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-actions form { margin: 0; }
.collect-state { color: var(--ink-600); font-size: 12px; }
.collect-state.state-queued, .collect-state.state-running { color: var(--warning); }
.collect-hint { color: var(--ink-500); font-size: 12px; }
.collect-log-panel { margin-bottom: 20px; }
.collect-log-panel summary { padding: 16px 20px; color: var(--navy-800); font-size: 13px; font-weight: 600; cursor: pointer; }
.collect-log { max-height: 360px; margin: 0; padding: 16px 20px; overflow: auto; background: var(--navy-950); color: #cfe3ea; font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 680px) { .collect-metrics { grid-template-columns: 1fr 1fr; } .collect-body { padding: 16px; } }

/* 法规知识库 */
.law-search { display: flex; gap: 10px; max-width: 720px; margin-bottom: 22px; }
.law-search input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; color: var(--ink-900); background: var(--surface); border: 1px solid #cbd7df; border-radius: var(--radius-sm); font-size: 14px; transition: border var(--transition), box-shadow var(--transition); }
.law-search input:focus { border-color: var(--cyan-600); outline: 0; box-shadow: 0 0 0 3px rgba(11, 146, 157, .12); }
.law-search .button { height: 46px; white-space: nowrap; }
.law-search-inline { max-width: none; margin: 18px 0 22px; }
.law-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.law-category-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.law-category-card:hover { border-color: var(--cyan-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.law-category-card.is-empty { background: var(--surface-muted); box-shadow: none; }
.law-category-card.is-empty:hover { border-color: var(--line); transform: none; }
.law-category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.law-category-head h2, .law-category-name { margin: 0; color: var(--navy-900); font-size: 16px; font-weight: 600; }
.law-category-head strong { color: var(--cyan-700); font-family: Georgia, serif; font-size: 26px; font-weight: 500; line-height: 1; }
.law-category-card.is-empty .law-category-head strong { color: var(--ink-500); }
.law-category-note { flex: 1; margin: 0; color: var(--ink-600); font-size: 12px; line-height: 1.7; }
.law-category-link { color: inherit; text-decoration: none; }
.law-category-go { color: var(--cyan-700); font-size: 12px; font-weight: 600; }
.law-home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }
.law-category-grid-compact .law-category-card { padding: 15px 18px; }
.law-category-grid-compact .law-category-head strong { font-size: 22px; }
.law-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.law-list { overflow: hidden; }
.law-list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 24px 26px; border-bottom: 1px solid var(--line-light); }
.law-list-item:last-child { border-bottom: 0; }
.law-list-main { min-width: 0; }
.law-list-main h2 { margin: 0 0 9px; font-size: 18px; line-height: 1.55; }
.law-list-main h2 a { color: var(--navy-900); }
.law-list-main h2 a:hover { color: var(--cyan-700); }
.law-list-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin: 0 0 9px; color: var(--ink-500); font-size: 12px; overflow-wrap: anywhere; }
.law-list-meta:last-child { margin-bottom: 0; }
.law-list-meta time { color: var(--ink-500); }
.law-list-item > .button { flex-shrink: 0; margin-top: 12px; }
.law-meta-tag { padding: 3px 10px; color: var(--cyan-700); background: var(--cyan-50); border-radius: 20px; font-size: 12px; line-height: 1.5; }
.law-list-excerpt { margin: 0; color: var(--ink-600); font-size: 14px; line-height: 1.8; }

/* 法条详情：标题区与阅读版式 */
.law-back { margin-bottom: 20px; font-size: 13px; }
.page-hero-compact .law-list-meta { color: #a9c0ce; font-size: 13px; }
.page-hero-compact .law-meta-tag { color: #8fe0e4; background: rgba(255, 255, 255, .08); font-size: 12px; }
.page-hero-compact .law-list-meta time { color: #a9c0ce; }
.law-doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; }
.law-doc-body { padding: 46px 54px 34px; border-top: 3px solid var(--navy-800); }
.law-doc-label { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--ink-500); font-size: 12px; font-weight: 600; letter-spacing: .18em; }
.law-doc-label::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }
.law-doc-text { max-width: 70ch; margin-inline: auto; color: #1b2a38; font-family: var(--font-serif); font-size: 17px; line-height: 2.05; text-align: justify; text-justify: inter-ideograph; }
.law-doc-text p { margin: 0; }
.law-doc-para { margin-bottom: .9em !important; text-indent: 2em; }
.law-doc-article-block { margin: 1.6em 0 .8em; scroll-margin-top: 96px; }
.law-doc-article-block .law-doc-article { margin: 0 !important; }
.law-doc-article-block .law-doc-para { margin-bottom: .45em !important; }
.law-doc-article { margin: 1.5em 0 .6em !important; font-weight: 400; text-indent: 0; }
.law-doc-article-num { margin-right: .4em; color: var(--navy-900); font-weight: 700; }
.law-doc-heading { margin: 2.2em 0 1em !important; color: var(--navy-900); font-size: 1.06em; font-weight: 700; letter-spacing: .1em; text-align: center; text-indent: 0; }
.law-doc-text > :first-child { margin-top: 0 !important; }
.law-doc-focus-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 20px; padding: 14px 18px; background: rgba(13, 148, 136, .08); border: 1px solid rgba(13, 148, 136, .25); border-left: 4px solid var(--cyan-700); border-radius: var(--radius-sm); }
.law-doc-focus-note p { margin: 0; color: var(--navy-900); font-size: 13px; line-height: 1.8; }
.law-doc-focus-note .text-link { flex-shrink: 0; font-size: 13px; }
.law-doc-focus-missing { background: rgba(217, 119, 6, .08); border-color: rgba(217, 119, 6, .28); border-left-color: #b45309; }
.law-doc-article-focus, .law-doc-text p:target { background: rgba(13, 148, 136, .09); border-radius: 4px; box-shadow: 0 0 0 6px rgba(13, 148, 136, .09); }
.law-doc-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.law-doc-footer p { margin: 0; color: var(--ink-500); font-size: 12px; line-height: 1.8; }
.law-doc-meta { position: sticky; top: 100px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.law-doc-meta h2 { margin: 0 0 4px; padding-bottom: 12px; color: var(--navy-900); border-bottom: 1px solid var(--line-light); font-size: 16px; }
.law-doc-meta dl { margin: 0 0 18px; }
.law-doc-meta dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line-light); font-size: 13px; }
.law-doc-meta dl div:last-child { border-bottom: 0; }
.law-doc-meta dt { flex-shrink: 0; color: var(--ink-500); }
.law-doc-meta dd { margin: 0; color: var(--ink-900); text-align: right; overflow-wrap: anywhere; word-break: normal; }
.law-doc-hint { margin: 14px 0 0; padding-top: 12px; color: var(--ink-500); border-top: 1px solid var(--line-light); font-size: 12px; line-height: 1.8; }
.button-block { display: flex; width: 100%; justify-content: center; }

@media (max-width: 900px) {
    .law-doc-layout { grid-template-columns: 1fr; }
    .law-doc-meta { position: static; }
}
@media (max-width: 680px) {
    .law-search { flex-wrap: wrap; }
    .law-search input { flex-basis: 100%; }
    .law-search .button { flex: 1; }
    .law-category-grid { grid-template-columns: 1fr; }
    .law-list-item { flex-direction: column; gap: 14px; padding: 20px; }
    .law-list-item > .button { width: 100%; margin-top: 0; }
    .law-list-main h2 { font-size: 17px; }
    .law-doc-body { padding: 28px 20px 24px; }
    .law-doc-label { margin-bottom: 18px; letter-spacing: .12em; }
    .law-doc-text { font-size: 16.5px; line-height: 1.95; text-align: left; }
    .law-doc-article { margin-top: 1.3em !important; }
    .law-doc-heading { letter-spacing: .06em; }
    .law-doc-meta dl div { flex-direction: column; gap: 3px; }
    .law-doc-meta dd { text-align: left; }
    .law-doc-footer { align-items: flex-start; flex-direction: column; }
    .law-doc-footer .button { width: 100%; }
    .law-home-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* 采集告警与自动巡检 */
.collect-metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.auto-sync-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 14px 16px; background: var(--surface-blue); border-radius: 9px; }
.auto-sync-form strong { color: var(--navy-900); font-size: 13px; }
.auto-sync-form p { margin: 4px 0 0; color: var(--ink-600); font-size: 12px; line-height: 1.6; }
.auto-sync-form form, .auto-sync-form button { flex-shrink: 0; }
.admin-category-grid { margin-bottom: 18px; }
.alerts-panel .alerts-subheading { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.alerts-panel .alerts-subheading h3 { margin: 3px 0 0; font-size: 17px; }
.alerts-panel .empty-table { margin: 0 20px 16px; }
@media (max-width: 680px) { .auto-sync-form { align-items: flex-start; flex-direction: column; } .auto-sync-form button { width: 100%; } }

/* ============ 模拟法庭 ============ */
.moot-hero { padding: 54px 0 46px; color: #e8eef7; background: radial-gradient(circle at 82% 12%, rgba(11, 146, 157, .32), transparent 46%), linear-gradient(160deg, #0f2136 0%, #16283f 55%, #1b3149 100%); }
.moot-hero .container { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 42px; align-items: start; }
.moot-eyebrow { margin: 0 0 10px; color: #7fd8d2; font-family: Consolas, monospace; font-size: 12px; letter-spacing: .22em; }
.moot-hero h1 { margin: 0 0 14px; color: #fff; font-family: var(--font-serif); font-size: 42px; font-weight: 600; letter-spacing: .12em; }
.moot-lead { max-width: 660px; margin: 0 0 18px; color: #c3d0de; font-size: 15px; line-height: 1.9; }
.moot-hero-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.moot-hero-points li { position: relative; padding-left: 18px; color: #a9bacd; font-size: 13px; line-height: 1.7; }
.moot-hero-points li::before { content: ""; position: absolute; top: 9px; left: 2px; width: 6px; height: 6px; background: #2fbfb4; border-radius: 50%; }
.moot-hero-card { position: relative; padding: 26px 24px 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; backdrop-filter: blur(4px); }
.moot-seal { position: absolute; top: -14px; right: 18px; padding: 6px 12px; color: #f4e6d2; background: #8a1c1c; border-radius: 4px; font-size: 12px; letter-spacing: .3em; }
.moot-hero-card dl { margin: 6px 0 14px; display: grid; gap: 12px; }
.moot-hero-card dl div { display: grid; gap: 3px; padding-bottom: 11px; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.moot-hero-card dl div:last-child { padding-bottom: 0; border-bottom: 0; }
.moot-hero-card dt { color: #8fa5bb; font-size: 12px; }
.moot-hero-card dd { margin: 0; color: #eaf1f9; font-size: 14px; line-height: 1.6; }
.moot-hero-note { margin: 0; padding-top: 12px; color: #93a8bd; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; line-height: 1.7; }

.moot-main { padding: 34px 0 64px; background: var(--surface-muted); }
.moot-setup, .moot-court, .moot-verdict, .moot-history { margin-bottom: 22px; overflow: hidden; }
.moot-form { padding: 22px 24px 24px; }
.moot-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.moot-form .field-help { margin: 6px 0 0; color: var(--ink-500); font-size: 12px; }
.moot-mode { margin: 6px 0 18px; padding: 0; border: 0; display: grid; gap: 10px; }
.moot-mode legend { margin-bottom: 8px; color: var(--ink-600); font-size: 12px; font-weight: 600; }
.moot-mode-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.moot-mode-option:has(input:checked) { background: #f2f8f8; border-color: #8fc9c6; }
.moot-mode-option.is-disabled { opacity: .58; cursor: not-allowed; }
.moot-mode-option input { margin-top: 3px; accent-color: var(--cyan-700); }
.moot-mode-option span { display: flex; flex-direction: column; gap: 3px; }
.moot-mode-option strong { color: var(--navy-800); font-size: 13px; }
.moot-mode-option small { color: var(--ink-500); font-size: 12px; line-height: 1.6; }
.moot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.moot-hint { color: var(--ink-500); font-size: 12px; }
.moot-flash { margin-bottom: 16px; padding: 13px 16px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.moot-flash.is-error { color: #913c3c; background: var(--danger-bg); border: 1px solid #f0cfcf; }
.moot-flash.is-success { color: #147353; background: var(--success-bg); border: 1px solid #cbe9dc; }
.moot-flash.is-info { color: var(--navy-700); background: var(--surface-blue); border: 1px solid #cfe0ee; }

.moot-court-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; color: #f2f6fb; background: linear-gradient(135deg, #14263c, #1d3550); }
.moot-case-no { margin: 0 0 6px; color: #86d6d0; font-family: Consolas, monospace; font-size: 12px; letter-spacing: .08em; }
.moot-court-head h2 { margin: 0 0 6px; color: #fff; font-family: var(--font-serif); font-size: 25px; letter-spacing: .08em; }
.moot-case-meta { margin: 0; color: #a9bacd; font-size: 13px; }
.moot-court-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.moot-court-head .button-quiet { color: #cfe0ee; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.moot-court-head .button-quiet:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.moot-court-head .button-secondary { color: #0f2136; background: #d9e6f2; border-color: #d9e6f2; }

.moot-phases { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 16px 24px; list-style: none; background: #fbfcfd; border-bottom: 1px solid var(--line); counter-reset: moot-phase; }
.moot-phases li { position: relative; padding: 6px 12px 6px 26px; color: var(--ink-500); background: #fff; border: 1px solid var(--line); border-radius: 20px; font-size: 12px; white-space: nowrap; }
.moot-phases li::before { counter-increment: moot-phase; content: counter(moot-phase); position: absolute; top: 5px; left: 9px; color: #9aa7b1; font-family: Consolas, monospace; font-size: 11px; }
.moot-phases li.is-current { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.moot-phases li.is-current::before { color: #8fd6d1; }
.moot-phases li.is-done { color: var(--cyan-700); background: #f1f9f8; border-color: #cfe8e5; }

.moot-body { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 0; }
.moot-stage { min-width: 0; border-right: 1px solid var(--line); }
.moot-transcript { height: 520px; overflow-y: auto; padding: 24px; background: #fff; }
.moot-msg { margin-bottom: 20px; }
.moot-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.moot-role { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.moot-role-plaintiff { color: #1d4ed8; background: #eaf0ff; }
.moot-role-defendant { color: #8a1c1c; background: #fbeceb; }
.moot-role-judge { color: #7a5a12; background: #fbf2dd; }
.moot-role-clerk { color: var(--ink-600); background: var(--surface-muted); }
.moot-actor { color: var(--ink-500); font-size: 11px; }
.moot-msg-body { margin: 0; padding: 14px 16px; color: #22303f; background: #fbfcfd; border: 1px solid var(--line-light); border-left: 3px solid #cfd9e3; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.moot-msg-plaintiff .moot-msg-body { border-left-color: #6f92f0; background: #fbfcff; }
.moot-msg-defendant .moot-msg-body { border-left-color: #c47d7d; background: #fefbfb; }
.moot-msg-judge .moot-msg-body { border-left-color: #d8b45c; background: #fffdf7; }
.moot-msg-clerk .moot-msg-body { border-left-color: #b9c4cf; background: #fafbfc; }
.moot-msg .moot-cites { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.moot-msg .moot-cites li { padding: 7px 10px; color: var(--ink-600); background: var(--surface-blue); border-radius: 5px; font-size: 12px; line-height: 1.65; }
.moot-empty { margin: 0; padding: 18px 0; color: var(--ink-500); font-size: 13px; }

.moot-speak { padding: 16px 20px 18px; background: #fbfcfd; border-top: 1px solid var(--line); }
.moot-speak textarea { width: 100%; min-height: 88px; padding: 12px 14px; background: #fff; border: 1px solid #cbd7df; border-radius: 8px; font-size: 14px; line-height: 1.75; resize: vertical; }
.moot-speak textarea:focus { border-color: var(--cyan-600); outline: 0; box-shadow: 0 0 0 3px rgba(11, 146, 157, .1); }
.moot-speak-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.moot-turn-hint { margin: 0; padding: 10px 20px; color: #14706f; background: #f0f9f8; border-top: 1px solid #d7ebe9; font-size: 12px; line-height: 1.7; }
.moot-evidence-form { padding: 18px 20px; background: #f8fbfb; border-top: 1px solid var(--line); }
.moot-aside { padding: 22px 20px; display: grid; gap: 16px; align-content: start; background: #fdfefe; }
.moot-aside-card { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.moot-aside-card h3 { margin: 0 0 10px; color: var(--navy-800); font-size: 13px; letter-spacing: .04em; }
.moot-aside-card ul, .moot-aside-card ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--ink-600); font-size: 12px; line-height: 1.65; }
.moot-aside-warn { background: #fffdf6; border-color: #efe2c2; }
.moot-aside-warn p { margin: 0; color: #7c6320; font-size: 12px; line-height: 1.75; }
.moot-evidence-list li strong { display: block; color: var(--navy-800); font-size: 12px; }
.moot-evidence-list li small { color: var(--ink-500); font-size: 11px; }

.moot-verdict { padding-bottom: 8px; }
.moot-judgment { margin: 0; padding: 34px 42px; color: #17202a; background: #fff; font-family: SimSun, "Songti SC", serif; font-size: 15px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.moot-note-line { margin: 0; padding: 14px 24px 18px; color: #8a1c1c; font-size: 13px; font-weight: 700; line-height: 1.8; }
.moot-history-list { padding: 6px 24px 18px; }
.moot-history-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.moot-history-item:last-child { border-bottom: 0; }
.moot-history-item strong { display: block; color: var(--navy-800); font-size: 13px; }
.moot-history-item small { display: block; margin-top: 3px; color: var(--ink-500); font-size: 12px; }
.moot-history-item .button { flex-shrink: 0; }
.moot-status { display: inline-flex; padding: 3px 9px; border-radius: 20px; font-size: 11px; }
.moot-status-open { color: #96600f; background: var(--warning-bg); }
.moot-status-closed { color: #147353; background: var(--success-bg); }

@media (max-width: 980px) {
    .moot-hero .container { grid-template-columns: 1fr; gap: 26px; }
    .moot-body { grid-template-columns: 1fr; }
    .moot-stage { border-right: 0; border-bottom: 1px solid var(--line); }
    .moot-transcript { height: 420px; }
}
@media (max-width: 680px) {
    .moot-hero { padding: 34px 0 30px; }
    .moot-hero h1 { font-size: 32px; }
    .moot-form-grid { grid-template-columns: 1fr; }
    .moot-court-head { flex-direction: column; }
    .moot-phases { padding: 12px 16px; }
    .moot-transcript { padding: 16px; height: 380px; }
    .moot-judgment { padding: 22px 18px; font-size: 14px; }
    .moot-history-item { flex-direction: column; align-items: flex-start; }
}
@media print {
    .site-header, .site-footer, .moot-hero, .moot-setup, .moot-court, .moot-history, .admin-nav, .skip-link, .moot-note-line { display: none !important; }
    .moot-main { padding: 0; background: #fff; }
    .moot-verdict { margin: 0; border: 0; box-shadow: none; }
    .moot-verdict .panel-heading { display: none; }
    .moot-judgment { padding: 0; font-size: 12pt; line-height: 1.8; }
}

/* ---- Account / auth / plans (2026-11) ---- */
.nav-link-cta { color: var(--cyan-700) !important; font-weight: 700; }
.auth-section { padding: 56px 0 72px; background: linear-gradient(180deg, #eef6f8 0%, #f7fafb 100%); }
.auth-switch { margin: 16px 0 0; color: var(--ink-600); font-size: 13px; text-align: center; }
.auth-switch a { color: var(--cyan-700); font-weight: 600; }

.account-hero { padding: 46px 0 26px; background: linear-gradient(135deg, var(--navy-900) 0%, #0c5b64 100%); color: #fff; }
.account-hero-main h1 { margin: 6px 0 10px; font-size: 34px; color: #fff; }
.account-meta { margin: 0 0 20px; color: rgba(255, 255, 255, .78); font-size: 13px; }
.account-hero .moot-eyebrow { color: #7fe3e7; }
.account-hero-actions .button-secondary { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); }
.account-hero-actions .button-primary { color: var(--navy-950); background: #5bd5d9; border-color: #5bd5d9; }
.account-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.account-stat { padding: 18px 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; }
.account-stat span { display: block; color: rgba(255, 255, 255, .7); font-size: 12px; }
.account-stat strong { display: block; margin: 6px 0 4px; font-size: 26px; color: #fff; }
.account-stat small { color: rgba(255, 255, 255, .65); font-size: 11px; line-height: 1.5; }
.account-body { display: grid; gap: 22px; padding-top: 28px; padding-bottom: 56px; }
.account-panel { padding: 22px; }
.account-panel .panel-heading { margin-bottom: 14px; }
.account-notice h2 { margin: 0 0 10px; font-size: 18px; }
.account-notice p { margin: 0; color: var(--ink-600); font-size: 13px; line-height: 1.9; }
.points-out { color: var(--danger); }
.points-in { color: var(--success); }

.plans-hero { padding: 48px 0 20px; }
.plans-hero h1 { margin: 8px 0 10px; font-size: 34px; color: var(--navy-900); }
.plans-balance { margin-top: 14px; color: var(--ink-600); font-size: 14px; }
.plans-balance a { color: var(--cyan-700); font-weight: 600; }
.plans-body { padding-bottom: 56px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.plan-card { display: flex; flex-direction: column; padding: 24px; }
.plan-card-member { border-color: var(--cyan-600); box-shadow: 0 10px 26px rgba(8, 123, 134, .12); }
.plan-badge { align-self: flex-start; padding: 3px 10px; color: var(--cyan-700); background: var(--cyan-50); border-radius: 20px; font-size: 11px; font-weight: 700; }
.plan-card h2 { margin: 12px 0 4px; font-size: 20px; }
.plan-price { margin: 4px 0 10px; color: var(--navy-900); font-size: 32px; font-weight: 700; }
.plan-price span { font-size: 16px; }
.plan-desc { margin: 0 0 14px; color: var(--ink-600); font-size: 13px; line-height: 1.8; }
.plan-points { margin: 0 0 18px; padding-left: 18px; color: var(--ink-600); font-size: 13px; line-height: 2; }
.plan-points strong { color: var(--navy-800); }
.plan-card form { margin-top: auto; }
.plan-card .button { width: 100%; }
.plans-notice { margin-top: 24px; padding: 22px; }
.plans-notice h2 { margin: 0 0 10px; font-size: 18px; }
.plans-notice ul { margin: 0; padding-left: 20px; color: var(--ink-600); font-size: 13px; line-height: 2; }
.plans-notice a { color: var(--cyan-700); }

.moot-account-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-bottom: 16px; padding: 11px 16px; color: var(--ink-600); background: var(--surface-blue); border: 1px solid #d6e3ea; border-radius: 8px; font-size: 13px; }
.moot-account-bar strong { color: var(--navy-800); }
.moot-account-bar a { margin-left: auto; color: var(--cyan-700); font-weight: 600; }

@media (max-width: 680px) {
    .account-stats { grid-template-columns: 1fr; }
    .account-hero h1, .plans-hero h1 { font-size: 27px; }
    .account-panel, .plan-card, .plans-notice { padding: 18px; }
    .moot-account-bar a { margin-left: 0; }
}
