:root {
    --primary: #1E6FFF;
    --primary-dark: #0B55D6;
    --primary-soft: #E9F1FF;
    --ink: #17243A;
    --ink-2: #3B4A63;
    --muted: #6B7688;
    --line: #E4EAF3;
    --bg: #F6F8FC;
    --card: #FFFFFF;
    --radius: 12px;
    --shadow: 0 10px 34px rgba(23, 43, 84, .07);
    --shadow-sm: 0 2px 10px rgba(23, 43, 84, .05);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.65;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
mark { background: #FFF0A8; color: inherit; padding: 0 2px; border-radius: 3px; }
.container { width: min(1200px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.sep { color: #C2CBD9; margin: 0 6px; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: #C9D6EA; color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-disabled { background: #EEF2F8; color: #97A3B5; cursor: not-allowed; }
.btn-danger { background: #D93025; color: #fff; }
.btn-danger:hover { background: #B3261E; color: #fff; }
.link-btn, .link-btn:visited {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--muted); font: inherit; font-size: 14px;
}
.link-btn:hover { color: var(--primary); }
.inline-form { display: inline-flex; margin: 0; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
    outline: 2px solid rgba(30, 111, 255, .35);
    outline-offset: 1px;
}

/* 顶部导航 */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 30px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #2E7BFF, #1559E0);
    color: #fff;
    box-shadow: 0 6px 16px rgba(30, 111, 255, .28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: .01em; }
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; gap: 24px; margin-left: 8px; }
.main-nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 6px 0; position: relative; }
.main-nav a:hover { color: var(--primary); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-chip {
    display: inline-flex; align-items: center;
    background: var(--primary-soft); color: var(--primary-dark);
    border-radius: 100px; padding: 5px 12px; font-size: 13px; font-weight: 600;
}
.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-2); border-radius: 2px; }

/* flash */
.flash-stack { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash {
    border-radius: 9px; padding: 10px 14px; font-size: 14px;
    border: 1px solid transparent;
}
.flash-success { background: #EAF8F0; color: #176B42; border-color: #C6EDD8; }
.flash-error { background: #FDEDEC; color: #A5221A; border-color: #F6CDCA; }
.flash-info { background: #EAF2FF; color: #1B4FA8; border-color: #CBDCFF; }

/* 首页 hero */
.hero {
    background:
        radial-gradient(1100px 420px at 18% -10%, rgba(30, 111, 255, .16), transparent 60%),
        radial-gradient(900px 380px at 92% 0%, rgba(68, 180, 255, .13), transparent 58%),
        linear-gradient(180deg, #F4F8FF 0%, #F8FAFE 70%, var(--bg) 100%);
    padding: 62px 0 46px;
    border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.hero-kicker {
    display: inline-block; font-size: 12.5px; letter-spacing: .12em; color: var(--primary-dark);
    background: rgba(30, 111, 255, .08); padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.hero h1 { font-size: 34px; line-height: 1.3; letter-spacing: -.02em; }
.hero-sub { color: var(--muted); font-size: 15.5px; max-width: 720px; margin: 14px auto 26px; }
.hero-search { max-width: 820px; margin: 0 auto; }
.search-modes { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.mode-tab {
    padding: 6px 18px; font-size: 13.5px; color: var(--muted); border-radius: 8px; cursor: pointer; font-weight: 600;
    transition: background .18s, color .18s;
}
.mode-tab input { position: absolute; opacity: 0; pointer-events: none; }
.mode-tab.active { background: var(--primary); color: #fff; }
.search-box {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 8px 8px 8px 18px; box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: #B9CFFF; box-shadow: 0 10px 34px rgba(30, 111, 255, .14); }
.search-box svg { color: #8A97AA; flex: none; }
.search-box input {
    flex: 1; border: 0; background: transparent; font-size: 16px; padding: 10px 0;
    color: var(--ink); min-width: 0;
}
.search-box input:focus { outline: none; }
.search-box .btn { padding: 11px 26px; }
.hero-meta { margin-top: 16px; color: var(--muted); font-size: 13.5px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.dot { width: 3px; height: 3px; background: #B9C4D5; border-radius: 50%; }
.hot-tags { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hot-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.tag-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2);
    border-radius: 100px; padding: 4px 12px; font-size: 13px; transition: all .16s;
}
.tag-chip:hover { border-color: #B9CFFF; color: var(--primary); background: #F7FAFF; }
.tag-chip-sm { padding: 2px 9px; font-size: 12px; background: #F4F7FC; }
.tag-official { border-color: #C9DCFF; background: #F3F8FF; color: var(--primary-dark); }
.tag-community { background: #fff; }
.tag-src { font-size: 10px; color: var(--muted); background: #EEF2F8; border-radius: 3px; padding: 0 4px; }

/* 区块 */
.section { margin-top: 46px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; }
.more-link { font-size: 14px; color: var(--muted); }
.more-link:hover { color: var(--primary); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card {
    position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 18px 16px; color: var(--ink); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 4px; min-height: 118px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.category-card:hover { transform: translateY(-2px); border-color: #C9D7EF; box-shadow: var(--shadow); color: var(--ink); }
.category-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-bottom: 6px; }
.category-name { font-size: 15.5px; font-weight: 700; }
.category-count { font-size: 12.5px; color: var(--muted); }
.category-desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.recent-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.recent-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 22px; border-bottom: 1px solid var(--line); color: var(--ink); }
.recent-item:last-child { border-bottom: 0; }
.recent-item:hover { background: #F8FBFF; color: var(--ink); }
.recent-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.recent-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { font-size: 12.5px; color: var(--muted); }
.recent-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.update-flag { font-size: 11.5px; color: var(--muted); }
.update-flag.is-new { color: #0E7A46; }
.update-flag.is-update { color: #B36B00; }

.notice-card {
    background: linear-gradient(120deg, #FFFFFF, #F3F8FF);
    border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 60px;
}
.notice-card h3 { font-size: 17px; margin-bottom: 6px; }
.notice-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* 状态徽标 */
.badge { display: inline-flex; align-items: center; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-valid { background: #E8F7EF; color: #107A46; }
.st-upcoming { background: #E8F1FF; color: #1B5FD0; }
.st-revised { background: #FFF4E6; color: #A35A00; }
.st-abolished { background: #FDECEC; color: #B3261E; }
.st-draft { background: #F1ECFF; color: #5A3FC0; }
.badge-question { background: #FFF1DC; color: #9A5B00; }
.badge-status { border: 1px solid rgba(0,0,0,.04); }

/* 列表页 */
.list-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 22px 0 24px; }
.list-search { max-width: 820px; margin: 0 auto; }
.list-search .search-box { box-shadow: var(--shadow-sm); }
.list-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 26px; margin-top: 28px; align-items: start; }
.filter-panel {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; position: sticky; top: 88px; box-shadow: var(--shadow-sm);
}
.filter-block { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--line); }
.filter-block:last-of-type { border-bottom: 0; }
.filter-block h3 { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; font-weight: 700; }
.region-pill { display: flex; flex-direction: column; gap: 2px; background: #F4F7FC; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.region-pill span { font-weight: 600; font-size: 14px; }
.region-pill small { color: var(--muted); font-size: 11.5px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); padding: 4px 0; cursor: pointer; }
.check-line input { accent-color: var(--primary); width: 15px; height: 15px; }
.check-line.tall { padding: 10px 12px; background: #F7F9FD; border-radius: 8px; border: 1px solid var(--line); }
.check-scroll { max-height: 190px; overflow: auto; padding-right: 4px; }
.filter-empty { color: var(--muted); font-size: 13px; }
.year-range { display: flex; align-items: center; gap: 6px; }
.year-range input { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-family: inherit; }
.filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.filter-toggle { display: none; }
.list-main { min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.results-total { font-size: 14px; color: var(--muted); }
.results-total strong { color: var(--ink); font-size: 19px; }
.results-kw { margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort-form select {
    border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-family: inherit; color: var(--ink-2);
}
.inline-note { background: #FFF9E8; border: 1px solid #F3E3B3; color: #7A5B00; border-radius: 8px; padding: 9px 14px; font-size: 13px; margin-bottom: 14px; }
.active-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.chip { background: var(--primary-soft); color: var(--primary-dark); border-radius: 100px; padding: 3px 12px; font-size: 12.5px; }
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-item {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 22px; box-shadow: var(--shadow-sm); transition: border-color .18s, box-shadow .18s;
}
.result-item:hover { border-color: #C9D7EF; box-shadow: var(--shadow); }
.result-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.result-title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.result-title:hover { color: var(--primary); }
.result-meta { margin-top: 7px; font-size: 12.8px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; }
.result-snippet { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); background: #F8FAFE; border-left: 3px solid #D8E4F8; padding: 7px 12px; border-radius: 0 6px 6px 0; }
.result-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.result-foot { margin-top: 10px; }
.link-more { font-size: 13px; color: var(--primary); }
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 26px 0 60px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; }
.page-btn:hover { border-color: #C9D7EF; color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { color: #B4BDCB; background: #F7F9FC; }
.page-info { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.empty-state { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 24px; text-align: center; box-shadow: var(--shadow-sm); }
.empty-icon { color: #B7C4D8; margin-bottom: 10px; }
.empty-state h3 { font-size: 18px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.empty-tags { margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.empty-inline { background: #F7F9FD; border: 1px dashed var(--line); border-radius: 8px; padding: 18px; color: var(--muted); font-size: 13.5px; text-align: center; }

/* 详情页 */
.detail-wrap { margin-top: 24px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.8px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.crumb-current { color: var(--ink-2); }
.status-alert { border-radius: 9px; padding: 10px 16px; font-size: 13.5px; margin-top: 16px; border: 1px solid transparent; }
.alert-danger { background: #FDECEC; color: #A5221A; border-color: #F6CDCA; }
.alert-warn { background: #FFF6E8; color: #8A5A00; border-color: #F4E0B8; }
.alert-info { background: #EAF2FF; color: #1B4FA8; border-color: #CBDCFF; }
.alert-muted { background: #F3F1FF; color: #5540A8; border-color: #DDD5FF; }
.detail-head { margin: 20px 0 22px; }
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.detail-title-row h1 { font-size: 28px; line-height: 1.35; letter-spacing: -.015em; }
.detail-docno { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.detail-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.detail-views { color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin-bottom: 60px; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 16px; }
.detail-side { position: sticky; top: 88px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.card-title { font-size: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 14px 0 0; }
.info-grid div { border-bottom: 1px dashed var(--line); padding: 9px 0; display: flex; gap: 14px; }
.info-grid dt { color: var(--muted); font-size: 13px; width: 76px; flex: none; }
.info-grid dd { margin: 0; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.source-line { margin-top: 12px; font-size: 13px; color: var(--muted); word-break: break-all; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.content-body { font-size: 14.6px; line-height: 1.9; color: var(--ink-2); }
.content-body p:first-child { margin-top: 0; }
.content-text { white-space: normal; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.related-list li:last-child { border-bottom: 0; }
.related-list a { color: var(--ink-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-list a:hover { color: var(--primary); }
.related-date { color: var(--muted); font-size: 12px; }
.side-title { font-size: 15px; margin-bottom: 10px; }
.side-text { color: var(--muted); font-size: 13.2px; }
.login-guide { background: #F7F9FD; border: 1px solid var(--line); border-radius: 9px; padding: 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.comment-form { margin-bottom: 18px; }
.comment-form textarea, .modal-body textarea, .admin-form textarea, .stack-form textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px;
    font-family: inherit; font-size: 14px; resize: vertical; color: var(--ink); background: #fff;
}
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.reply-hint { background: #EAF2FF; color: #1B4FA8; border-radius: 7px; padding: 6px 10px; font-size: 12.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.comment-list { display: flex; flex-direction: column; gap: 0; }
.comment-item { padding: 14px 0; border-top: 1px solid var(--line); }
.comment-item.reply { border-top: 0; padding: 10px 0 2px; }
.comment-head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.comment-author { font-weight: 600; color: var(--ink-2); }
.comment-time { color: var(--muted); }
.comment-body { margin-top: 5px; font-size: 14px; color: var(--ink-2); word-break: break-word; }
.comment-replies { margin: 8px 0 0 18px; padding-left: 14px; border-left: 2px solid #EDF2FA; }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(16, 27, 45, .55); backdrop-filter: blur(2px); }
.modal-panel {
    position: relative; width: min(540px, 100%); max-height: 88vh; overflow: auto;
    background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(10, 25, 55, .3);
    animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-head h2 { font-size: 17px; }
.modal-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.modal-body { padding: 18px 22px 22px; }
.modal-note { color: var(--muted); font-size: 13px; }
.modal-actions { margin-top: 16px; text-align: right; }
.muted-panel { background: #F8FAFE; border: 1px solid var(--line); border-radius: 9px; padding: 14px; font-size: 13px; color: var(--muted); }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
.modal-body input[type=text], .modal-body input[type=email], .modal-body select, .auth-card input, .admin-form input, .admin-form select, .stack-form input, .stack-form select, .handle-form input, .handle-form select, .inline-add-form input, .inline-add-form select, .inline-row-form input, .inline-row-form select, .upload-form input[type=file] {
    width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
    font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.captcha-line { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.captcha-line label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.captcha-line input { width: 100px !important; }
.tag-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.tag-option { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; background: #F9FBFE; }
.tag-option input { accent-color: var(--primary); }
.download-flex { display: flex; gap: 22px; align-items: center; margin-top: 12px; }
.qr-box { width: 160px; height: 160px; flex: none; display: grid; place-items: center; background: #F7F9FD; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.qr-box img, .qr-box canvas { max-width: 100%; height: auto !important; }
.download-info { min-width: 0; }
.download-hint { font-size: 13px; color: var(--muted); }
.download-tip { font-size: 12px; color: var(--muted); margin-top: 10px; }
.extract-line { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.pan-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 6px; }
.pan-tab { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 12px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.pan-tab.active { border-color: var(--primary); color: var(--primary); background: #F3F8FF; }
.download-section { margin-bottom: 22px; }
.download-section h3 { font-size: 14px; margin-bottom: 8px; color: var(--ink-2); }
.local-list { list-style: none; margin: 0; padding: 0; }
.local-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.local-list li:last-child { border-bottom: 0; }
.local-list span { color: var(--muted); font-size: 12px; }

/* 登录/注册/关于/404 */
.auth-wrap { display: flex; justify-content: center; padding: 56px 0 80px; }
.auth-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 23px; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 18px; }
.auth-card input { margin-bottom: 4px; }
.auth-card .btn { margin-top: 18px; }
.auth-foot { margin-top: 16px; font-size: 13.5px; color: var(--muted); text-align: center; }
.about-wrap { padding: 46px 0 80px; max-width: 900px; }
.about-wrap h1 { font-size: 28px; margin-bottom: 18px; }
.about-card { margin-bottom: 14px; }
.about-card h2 { font-size: 17px; margin-bottom: 8px; }
.about-card p { color: var(--ink-2); font-size: 14px; }
.error-wrap { padding: 90px 0; text-align: center; }
.error-code { font-size: 72px; font-weight: 800; color: #D6DFEC; line-height: 1; }
.error-wrap h1 { font-size: 24px; margin: 10px 0 6px; }
.error-wrap p { color: var(--muted); margin-bottom: 22px; }
.error-search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto 16px; }
.error-search input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; font-family: inherit; font-size: 14px; }

/* 页脚 */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr .6fr 1.4fr; gap: 30px; padding: 34px 0 40px; font-size: 13px; color: var(--muted); }
.footer-inner strong { color: var(--ink-2); font-size: 14px; }
.footer-inner p { margin: 6px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-note { line-height: 1.7; }

/* 知识图谱（深色） */
.theme-graph { background: #070E1C; color: #DCE6F7; }
.theme-graph .site-header { background: rgba(8, 16, 32, .9); border-bottom-color: rgba(110, 150, 220, .16); }
.theme-graph .brand-text strong { color: #EAF1FF; }
.theme-graph .brand-text small { color: #7C90B8; }
.theme-graph .main-nav a { color: #A7B8D8; }
.theme-graph .main-nav a:hover { color: #7FB3FF; }
.theme-graph .user-chip { background: rgba(60, 120, 220, .18); color: #9CC4FF; }
.theme-graph .link-btn { color: #8FA4C9; }
.theme-graph .btn-ghost { background: transparent; color: #C6D5EE; border-color: rgba(120, 155, 215, .3); }
.theme-graph .site-footer { background: #070E1C; border-top-color: rgba(110, 150, 220, .14); }
.theme-graph .footer-inner strong { color: #C6D5EE; }
.theme-graph .footer-links a { color: #8FA4C9; }
.theme-graph .footer-links a:hover { color: #7FB3FF; }
.graph-page { min-height: calc(100vh - 68px); background: radial-gradient(900px 500px at 50% 0%, rgba(26, 62, 120, .35), transparent 65%), #070E1C; }
.graph-toolbar { display: flex; align-items: center; gap: 18px; padding-top: 22px; padding-bottom: 10px; }
.graph-tabs { display: flex; gap: 6px; background: rgba(22, 38, 66, .7); border: 1px solid rgba(110, 150, 220, .18); border-radius: 9px; padding: 3px; }
.graph-tabs a, .graph-tabs .active { padding: 6px 16px; border-radius: 7px; font-size: 13px; color: #8FA4C9; }
.graph-tabs a:hover { color: #BCD3F5; }
.graph-tabs .active { background: rgba(60, 120, 220, .28); color: #DCEAFF; }
.graph-search { display: flex; align-items: center; gap: 8px; background: rgba(17, 30, 54, .8); border: 1px solid rgba(110, 150, 220, .22); border-radius: 9px; padding: 0 12px; min-width: 280px; }
.graph-search svg { color: #7C90B8; }
.graph-search input { flex: 1; background: transparent; border: 0; padding: 9px 0; color: #DCE6F7; font-size: 13px; font-family: inherit; }
.graph-search input:focus { outline: none; }
.graph-search input::placeholder { color: #7186AB; }
.graph-hint { margin-left: auto; font-size: 12px; color: #6F84A9; }
.graph-stage { position: relative; height: calc(100vh - 140px); min-height: 560px; }
#graph-canvas { position: absolute; inset: 0; }
.graph-legend { position: absolute; left: 24px; bottom: 22px; display: flex; flex-wrap: wrap; gap: 10px 16px; max-width: 70%; background: rgba(10, 18, 34, .72); border: 1px solid rgba(110, 150, 220, .18); border-radius: 10px; padding: 10px 14px; font-size: 12px; color: #A9BCDC; z-index: 3; backdrop-filter: blur(6px); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.graph-loading, .graph-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #8FA4C9; font-size: 14px; z-index: 2; }
.graph-empty p { margin: 0; }
.graph-empty .btn-ghost { color: #C6D5EE; }

/* 响应式 */
@media (max-width: 1024px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-grid { grid-template-columns: minmax(0, 1fr) 270px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .header-inner { gap: 14px; }
    .main-nav {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 14px;
        flex-direction: column; gap: 4px; box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .theme-graph .main-nav { background: #0B1428; }
    .header-actions { margin-left: auto; }
    .nav-toggle { display: flex; }
    .hero { padding: 44px 0 36px; }
    .hero h1 { font-size: 27px; }
    .hero-sub { font-size: 14px; }
    .list-layout { grid-template-columns: 1fr; }
    .filter-toggle { display: inline-flex; margin-bottom: 12px; }
    .filter-panel { position: static; display: none; }
    .filter-panel.open { display: block; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side { position: static; }
    .detail-title-row { flex-direction: column; gap: 10px; }
    .detail-title-row h1 { font-size: 23px; }
    .info-grid { grid-template-columns: 1fr; }
    .graph-toolbar { flex-wrap: wrap; }
    .graph-hint { display: none; }
    .graph-stage { height: calc(100vh - 190px); }
}
@media (max-width: 640px) {
    .container { width: calc(100% - 28px); }
    .brand-text small { display: none; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .notice-card { flex-direction: column; align-items: flex-start; }
    .recent-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .recent-side { flex-direction: row; align-items: center; }
    .result-item { padding: 15px 16px; }
    .result-top { flex-direction: column; gap: 6px; }
    .card { padding: 16px; }
    .footer-inner { grid-template-columns: 1fr; }
    .download-flex { flex-direction: column; align-items: flex-start; }
    .pagination .page-info { width: 100%; margin: 6px 0 0; }
    .graph-tabs { display: none; }
    .graph-search { min-width: 0; width: 100%; }
}

/* 法规问答 */
.badge-admin { background: #E8EEFF; color: #2A4FA0; }
.badge-solved { background: #E4F7EC; color: #16774A; }
.badge-pending { background: #FFF1DC; color: #9A5B00; }
.head-tabs { display: flex; gap: 12px; margin-left: auto; font-size: 13px; }
.head-tabs a { color: var(--muted); }
.head-tabs a.active { color: #1B4FA8; font-weight: 600; }
.comment-item.reply.accepted { background: #F2FBF6; border-left: 3px solid #35A46B; padding-left: 12px; }
.qa-page { padding: 24px 0 40px; }
.qa-tabs { display: flex; gap: 8px; margin-top: 14px; }
.qa-tabs a { padding: 6px 14px; border-radius: 999px; background: #EEF3FA; color: var(--muted); font-size: 13px; }
.qa-tabs a.active { background: #1B4FA8; color: #fff; }
.qa-list { display: grid; gap: 12px; }
.qa-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: grid; gap: 10px; }
.qa-card-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.qa-question { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.qa-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12.5px; align-items: center; }
.qa-reg-link { color: #1B4FA8; }
.page-title { margin: 0 0 6px; font-size: 26px; }
.page-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.admin-replies { margin-bottom: 18px; }
.comment-detail-block .comment-body { font-size: 15px; line-height: 1.8; margin: 12px 0; }
