/* 法律页面与公开详情页（/p/<id>、/t/<id>）共用的样式。
   这些页面不加载主站的大样式表，保持轻量；配色与主站一致，支持深浅色。 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, system-ui, sans-serif;
    color: #1e1e2a;
    min-height: 100vh;
    padding: 26px 18px 46px;
    background:
        radial-gradient(ellipse 60% 45% at 12% 8%, rgba(249, 205, 215, .5), transparent 65%),
        radial-gradient(ellipse 50% 40% at 88% 15%, rgba(205, 225, 246, .45), transparent 65%),
        radial-gradient(ellipse 55% 45% at 80% 85%, rgba(247, 222, 214, .5), transparent 65%),
        linear-gradient(160deg, #fdf3f4 0%, #f8f5f0 45%, #f4f2f6 100%);
    background-attachment: fixed;
}

a { color: #a94d68; text-decoration: none; }
a:hover { text-decoration: underline; }

.doc-shell { max-width: 820px; margin: 0 auto; }

.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 6px 16px; }
.doc-brand { display: inline-flex; align-items: baseline; gap: 6px; font-size: 1.28rem; font-weight: 700; color: #2b2d42; letter-spacing: -.3px; }
.doc-brand small { font-size: .72rem; font-weight: 400; color: #8f8fa3; letter-spacing: .5px; }
.doc-nav { display: flex; gap: 16px; font-size: .88rem; color: #5a5e7a; }
.doc-nav a { color: #5a5e7a; }

.doc-card {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 22px;
    padding: 30px 34px;
    box-shadow: 0 14px 40px rgba(120, 110, 140, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.doc-kicker { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #9a8fa6; }
.doc-title { font-size: 1.9rem; line-height: 1.28; margin: 8px 0 12px; color: #23243a; letter-spacing: -.4px; }
.doc-meta {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    font-size: .8rem; color: #6b6b83;
    padding-bottom: 18px; border-bottom: 1px solid rgba(200, 200, 210, .35);
}
.doc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: rgba(107, 140, 255, .12); color: #4a63b8; font-size: .72rem; }

.doc-section { margin-top: 22px; }
.doc-section h2 { font-size: 1.08rem; margin-bottom: 8px; color: #2b2d42; }
.doc-section h3 { font-size: .96rem; margin: 14px 0 6px; color: #3a3b52; }
.doc-section p, .doc-section li { font-size: .92rem; line-height: 1.78; color: #3d3d55; }
.doc-section ul { padding-left: 1.25em; }
.doc-section li + li { margin-top: 4px; }
.doc-section p + p { margin-top: 8px; }

.doc-pre { white-space: pre-wrap; word-break: break-word; font-size: .94rem; line-height: 1.82; color: #2f3049; }

.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.doc-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px;
    background: #2d2d3f; color: #fff; font-size: .92rem; font-weight: 600;
    transition: transform .2s, background .2s;
}
.doc-btn:hover { background: #1a1a2e; text-decoration: none; transform: translateY(-1px); }
.doc-btn.ghost { background: rgba(45, 45, 63, .08); color: #2d2d3f; }
.doc-btn.ghost:hover { background: rgba(45, 45, 63, .15); color: #1a1a2e; }
.doc-note { margin-top: 12px; font-size: .8rem; line-height: 1.6; color: #8f8fa3; }

.doc-img { display: block; max-width: 100%; border-radius: 14px; margin: 14px 0; border: 1px solid rgba(255, 255, 255, .7); }

.doc-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 22px 0 0; font-size: .8rem; color: #8f8fa3; }
.doc-foot a { color: #6b6b83; }
.doc-foot span { color: #c2bcc8; }

.doc-empty { text-align: center; padding: 34px 10px; }
.doc-empty-title { font-size: 1.35rem; margin-bottom: 8px; color: #2b2d42; }
.doc-empty-desc { font-size: .9rem; color: #6b6b83; line-height: 1.7; }

@media (max-width: 640px) {
    body { padding: 18px 12px 34px; }
    .doc-card { padding: 22px 18px; border-radius: 18px; }
    .doc-title { font-size: 1.5rem; }
    .doc-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .doc-nav { gap: 12px; }
}

html[data-theme="dark"] body {
    color: #e8ecf6;
    background:
        radial-gradient(ellipse 60% 45% at 12% 8%, rgba(80, 60, 90, .35), transparent 65%),
        radial-gradient(ellipse 50% 40% at 88% 15%, rgba(50, 70, 110, .35), transparent 65%),
        radial-gradient(ellipse 55% 45% at 80% 85%, rgba(90, 65, 70, .28), transparent 65%),
        linear-gradient(160deg, #121722 0%, #161b28 55%, #121722 100%);
}
html[data-theme="dark"] a { color: #f0a9bd; }
html[data-theme="dark"] .doc-brand,
html[data-theme="dark"] .doc-title,
html[data-theme="dark"] .doc-section h2,
html[data-theme="dark"] .doc-section h3,
html[data-theme="dark"] .doc-pre,
html[data-theme="dark"] .doc-empty-title { color: #f2f5fb; }
html[data-theme="dark"] .doc-brand small,
html[data-theme="dark"] .doc-nav,
html[data-theme="dark"] .doc-nav a,
html[data-theme="dark"] .doc-meta,
html[data-theme="dark"] .doc-section p,
html[data-theme="dark"] .doc-section li,
html[data-theme="dark"] .doc-empty-desc { color: #b7c0d4; }
html[data-theme="dark"] .doc-card {
    background: rgba(28, 33, 48, .74);
    border-color: rgba(160, 180, 220, .18);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
}
html[data-theme="dark"] .doc-meta { border-bottom-color: rgba(160, 180, 220, .2); }
html[data-theme="dark"] .doc-badge { background: rgba(140, 175, 235, .18); color: #cfe0ff; }
html[data-theme="dark"] .doc-btn { background: #e8ecf6; color: #1a1f2e; }
html[data-theme="dark"] .doc-btn:hover { background: #fff; }
html[data-theme="dark"] .doc-btn.ghost { background: rgba(160, 190, 240, .16); color: #e8ecf6; }
html[data-theme="dark"] .doc-btn.ghost:hover { background: rgba(160, 190, 240, .26); color: #fff; }
html[data-theme="dark"] .doc-note { color: #94a0b8; }
html[data-theme="dark"] .doc-foot,
html[data-theme="dark"] .doc-foot a { color: #94a0b8; }
html[data-theme="dark"] .doc-foot span { color: #5a6378; }
html[data-theme="dark"] .doc-img { border-color: rgba(160, 180, 220, .2); }
