/**
 * 小灯网工库 · v1.3.0
 * 网工知识库视觉：深蓝底 + 琥珀点缀 + 毛玻璃内容区
 */

:root {
    --xd-ink: #e8eef7;
    --xd-ink-muted: #94a3b8;
    --xd-ink-soft: #cbd5e1;
    --xd-panel: rgba(15, 23, 42, 0.72);
    --xd-panel-strong: rgba(15, 23, 42, 0.88);
    --xd-panel-hover: rgba(30, 41, 59, 0.9);
    --xd-line: rgba(148, 163, 184, 0.18);
    --xd-line-strong: rgba(148, 163, 184, 0.28);
    --xd-amber: #f59e0b;
    --xd-amber-soft: rgba(245, 158, 11, 0.16);
    --xd-cyan: #38bdf8;
    --xd-cyan-soft: rgba(56, 189, 248, 0.14);
    --xd-header: rgba(2, 6, 23, 0.82);
    --xd-radius: 16px;
    --xd-radius-sm: 10px;
    --xd-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    --xd-container: 1180px;
    --xd-font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    --xd-mono: "JetBrains Mono", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
    height: 100%;
}

body,
body.xd-body {
    margin: 0;
    font-family: var(--xd-font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--xd-ink);
    background: #020617;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* ===== 动态背景 ===== */
.xd-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* 固定层，不参与撑开页面高度 */
}

#xd-network-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .85;
}

.xd-bg-gradient {
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.22), transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.18), transparent 36%),
        radial-gradient(circle at 70% 85%, rgba(99, 102, 241, 0.16), transparent 42%),
        linear-gradient(165deg, #020617 0%, #0f172a 48%, #111827 100%);
    animation: xdGradientShift 20s ease-in-out infinite alternate;
}

.xd-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
    animation: xdGridDrift 28s linear infinite;
}

@keyframes xdGradientShift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, -1.5%) scale(1.04); }
}

@keyframes xdGridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 56px 56px, 56px 56px; }
}

.xd-header,
.xd-main,
.xd-footer { position: relative; z-index: 1; }

/* 内容少时页脚贴底，不悬在屏幕中间 */
.xd-main {
    flex: 1 0 auto;
    width: 100%;
}

.xd-footer,
.blog-footer {
    flex-shrink: 0;
    margin-top: auto;
}

@media (prefers-reduced-motion: reduce) {
    .xd-bg-gradient,
    .xd-bg-grid { animation: none; }
}

a { color: inherit; text-decoration: none; transition: color .15s, background .15s, border-color .15s, transform .15s; }
img { max-width: 100%; height: auto; display: block; }

.xd-container {
    width: min(100% - 36px, var(--xd-container));
    margin-inline: auto;
}

/* ===== 顶栏 ===== */
.xd-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--xd-header);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.xd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
}

.xd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    flex-shrink: 0;
}

.xd-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 8px 20px rgba(0,0,0,.35);
}

.xd-brand-name {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.xd-brand-tagline {
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    color: var(--xd-ink-muted);
    font-weight: 400;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xd-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.xd-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.xd-nav-wrap { flex: 1; display: flex; justify-content: flex-end; }

.blog-header-nav .nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-header-nav .list-item { list-style: none; position: relative; }

.blog-header-nav .nav-link {
    display: block;
    padding: 8px 14px;
    color: var(--xd-ink-soft);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
}

.blog-header-nav .nav-link:hover,
.blog-header-nav .nav-link[aria-current="page"] {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.blog-header-nav .nav-link[aria-current="page"] {
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.blog-header-nav .dropdown-menus {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 170px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--xd-line);
    border-radius: 12px;
    box-shadow: var(--xd-shadow);
}

.blog-header-nav .list-menu:hover > .dropdown-menus { display: block; }

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}

.blog-header-nav .nav-link-login {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111827 !important;
    font-weight: 700;
}

.blog-header-nav .nav-link-login:hover {
    filter: brightness(1.05);
    color: #111827 !important;
}

/* ===== 主布局 ===== */
.xd-main { padding: 28px 0 40px; }

.xd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

/* ===== Hero ===== */
.xd-hero {
    position: relative;
    margin-bottom: 24px;
    padding: 40px 36px;
    color: #fff;
    border-radius: calc(var(--xd-radius) + 4px);
    border: 1px solid rgba(255,255,255,.08);
    background: center / cover no-repeat;
    overflow: hidden;
    min-height: 220px;
    box-shadow: var(--xd-shadow);
}

.xd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(2,6,23,.78) 0%, rgba(15,23,42,.55) 55%, rgba(2,6,23,.35) 100%);
    pointer-events: none;
}

.xd-hero > * { position: relative; z-index: 1; }

.xd-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px 12px;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
}

.xd-hero-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--xd-cyan);
    box-shadow: 0 0 10px var(--xd-cyan);
}

.xd-hero-title {
    margin: 0 0 14px;
    max-width: 18em;
    font-size: clamp(1.45rem, 3.2vw, 2.05rem);
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: .01em;
}

.xd-hero-desc {
    margin: 0 0 18px;
    color: var(--xd-ink-soft);
    font-size: .98rem;
}

.xd-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xd-hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .8rem;
    color: #fde68a !important;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

a.xd-hero-chip:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ===== 文章列表 ===== */
.xd-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.xd-section-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.xd-section-title span {
    color: var(--xd-amber);
    margin-right: 6px;
}

.xd-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xd-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    background: var(--xd-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--xd-line);
    border-radius: var(--xd-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}

.xd-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.35);
    background: var(--xd-panel-hover);
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
}

.xd-card-cover {
    position: relative;
    min-height: 140px;
    background: #0b1220;
}

.xd-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xd-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(15,23,42,.15));
    pointer-events: none;
}

.xd-card.no-cover {
    grid-template-columns: 1fr;
}

.xd-card-body {
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.xd-card-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.loglist-sort a,
.log-topflg {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.loglist-sort a {
    background: var(--xd-cyan-soft);
    color: #7dd3fc !important;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.log-topflg {
    background: var(--xd-amber-soft);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.xd-card-title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.4;
    font-weight: 700;
}

.xd-card-title a {
    color: #f8fafc !important;
}

.xd-card-title a:hover {
    color: var(--xd-cyan) !important;
}

.xd-card-excerpt {
    color: var(--xd-ink-muted);
    font-size: .92rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xd-card-excerpt.markdown p { margin: 0; }

.xd-card-tags {
    margin-bottom: 12px;
}

.xd-card-tags .tags,
.xd-article-tags .tags {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 10px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--xd-ink-soft) !important;
    border: 1px solid var(--xd-line);
    border-radius: 999px;
    font-size: .75rem;
}

.xd-card-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--xd-line);
    font-size: .8rem;
    color: var(--xd-ink-muted);
}

.xd-card-stats {
    display: flex;
    gap: 12px;
}

.xd-card-stats a {
    color: var(--xd-ink-muted) !important;
}

.xd-card-stats a:hover {
    color: var(--xd-cyan) !important;
}

.xd-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--xd-ink-muted);
    background: var(--xd-panel);
    border: 1px dashed var(--xd-line);
    border-radius: var(--xd-radius);
}

/* ===== 文章页 ===== */
.xd-article {
    max-width: 860px;
    background: var(--xd-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--xd-line);
    border-radius: var(--xd-radius);
    padding: 36px 40px;
    box-shadow: var(--xd-shadow);
}

.xd-article-header { margin-bottom: 22px; }

.xd-article-meta { margin-bottom: 12px; }

.xd-article-title {
    margin: 0 0 14px;
    font-size: clamp(1.55rem, 3.5vw, 2.1rem);
    line-height: 1.28;
    color: #fff;
}

.xd-article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: .85rem;
    color: var(--xd-ink-muted);
}

.xd-article-cover {
    margin: 0 0 22px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--xd-line);
}

.xd-article-content { margin: 8px 0 24px; color: var(--xd-ink-soft); }

.xd-article-tags { margin-bottom: 8px; }

.xd-neighbor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0;
    padding-top: 22px;
    border-top: 1px solid var(--xd-line);
}

.neighbor-link {
    display: block;
    padding: 14px 16px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid var(--xd-line);
    border-radius: 12px;
    color: var(--xd-ink-soft) !important;
    font-size: .9rem;
}

.neighbor-link:hover {
    border-color: rgba(56, 189, 248, 0.35);
    color: #fff !important;
}

.neighbor-dir {
    display: block;
    color: var(--xd-cyan);
    font-size: .75rem;
    margin-bottom: 4px;
}

/* ===== 评论 ===== */
.xd-comments {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--xd-line);
}

.comment-header {
    margin-bottom: 16px;
    color: #fff;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--xd-line);
}

.comment .avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--xd-line);
}

.comment-children { margin-left: 48px; }

.comment-infos b { color: #fff; }
.comment-time { color: var(--xd-ink-muted); font-size: .8rem; margin-left: 8px; }
.comment-content { color: var(--xd-ink-soft); margin-top: 6px; }

.log_comment,
.form-control,
.comment-name,
.comment-mail {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--xd-line);
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    background: rgba(2, 6, 23, 0.45);
    color: #fff;
}

.log_comment:focus,
.form-control:focus,
.comment-name:focus,
.comment-mail:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.btn, input.btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111827;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: .92rem;
    font-weight: 700;
}

.btn:hover, input.btn:hover { filter: brightness(1.05); }

/* ===== 侧边栏 ===== */
.xd-sidebar,
.column-small.side-bar {
    position: sticky;
    top: 92px;
}

.xd-sidebar .widget,
.column-small .widget,
.shadow-theme.widget {
    background: var(--xd-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--xd-line);
    border-radius: var(--xd-radius);
    padding: 16px 16px 14px;
    margin-bottom: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.widget-title h3,
.widget-title.m h3 {
    margin: 0 0 12px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--xd-ink-soft);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--xd-line);
    position: relative;
}

.widget-title h3::after,
.widget-title.m h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--xd-amber), transparent);
}

.widget-list,
.unstyle-li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget form[name="keyform"] {
    display: flex;
    gap: 8px;
}

.widget .search,
.widget input[name="keyword"] {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--xd-line);
    border-radius: 10px;
    font-size: .88rem;
    background: rgba(2, 6, 23, 0.45);
    color: #fff;
}

.widget form[name="keyform"] input[type="submit"] {
    padding: 10px 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111827;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.log-classify-f,
.log-classify-c {
    list-style: none;
    margin: 0;
    padding: 0;
}

.log-classify-f > li { margin-bottom: 4px; }

.log-classify-f a,
.log-classify-c a {
    display: block;
    padding: 8px 10px;
    color: var(--xd-ink-soft) !important;
    border-radius: 10px;
    font-size: .9rem;
}

.log-classify-f a:hover,
.log-classify-c a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc !important;
}

.log-classify-c { margin-top: 4px; padding-left: 8px; }

.tag-container a.tags-side {
    display: inline-block;
    margin: 4px 4px 0 0;
    padding: 4px 10px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--xd-ink-soft) !important;
    border: 1px solid var(--xd-line);
    border-radius: 999px;
    font-size: .78rem;
}

.tag-container a.tags-side:hover {
    background: var(--xd-amber-soft);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24 !important;
}

.blog-lates,
.side-comment-list li,
.side-twitter-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--xd-line);
}

.blog-lates:last-child,
.side-comment-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.blog-lates a,
.side-comment-list a {
    color: var(--xd-ink-soft) !important;
    font-size: .88rem;
    line-height: 1.5;
}

.blog-lates a:hover,
.side-comment-list a:hover {
    color: var(--xd-cyan) !important;
}

.widget select.archive {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--xd-line);
    border-radius: 10px;
    font-size: .88rem;
    background: rgba(2, 6, 23, 0.45);
    color: #fff;
}

.no-margin-bottom { margin-bottom: 0 !important; }

/* ===== 页脚 ===== */
.xd-footer,
.blog-footer {
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--xd-ink-muted);
    padding: 18px 0 20px;
    font-size: .85rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.06);
}

.xd-footer a,
.blog-footer a { color: #fbbf24; }

.xd-footer-inner { line-height: 1.8; }

.xd-theme-version {
    margin-top: 8px;
    font-size: .72rem;
    opacity: .4;
}

.xd-float-tools {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 90;
}

.xd-float-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--xd-line);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--xd-shadow);
    color: var(--xd-ink-soft);
}

.xd-float-btn:hover {
    border-color: rgba(56, 189, 248, 0.45);
    color: var(--xd-cyan);
}

/* ===== 分页 ===== */
.xd-pagination,
.pagination {
    margin-top: 24px;
    text-align: center;
}

.xd-pagination a,
.xd-pagination span,
.pagination a,
.pagination span {
    display: inline-block;
    margin: 2px;
    padding: 8px 13px;
    border: 1px solid var(--xd-line);
    border-radius: 10px;
    background: var(--xd-panel);
    color: var(--xd-ink-soft);
}

.xd-pagination a:hover,
.pagination a:hover {
    border-color: rgba(56, 189, 248, 0.4);
    color: #fff;
}

/* ===== 404 ===== */
.xd-404-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    color: #fff;
}

.xd-404 { text-align: center; padding: 40px; }

.xd-404-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--xd-amber);
    margin: 0;
    line-height: 1;
}

.xd-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111827;
    border-radius: 10px;
    font-weight: 700;
}

/* ===== 登录弹窗 ===== */
.auth-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 200;
}

.auth-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 201;
}

.auth-modal-card {
    background: #0f172a;
    color: #fff;
    border: 1px solid var(--xd-line);
    border-radius: var(--xd-radius);
    padding: 24px;
    width: min(400px, 92vw);
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--xd-shadow);
}

.auth-form-row input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--xd-line);
    border-radius: 10px;
    background: rgba(2,6,23,.5);
    color: #fff;
}

.auth-modal-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ===== 内容区链接（避免整页橙） ===== */
.xd-content a,
.xd-article a,
.markdown a,
.xd-neighbor a {
    color: var(--xd-cyan);
}

.xd-content a:hover,
.xd-article a:hover,
.markdown a:hover {
    color: #7dd3fc;
}

.xd-card-title a,
.log-classify-f a,
.log-classify-c a,
.blog-lates a,
.side-comment-list a,
.tag-container a,
.xd-card-tags .tags {
    /* 由各自规则覆盖 */
}

/* ===== 响应式 ===== */
@media (max-width: 980px) {
    .xd-layout { grid-template-columns: 1fr; }
    .xd-sidebar,
    .column-small.side-bar { position: static; }
    .xd-article { padding: 24px 20px; }
    .xd-neighbor { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .xd-card {
        grid-template-columns: 1fr;
    }

    .xd-card-cover {
        min-height: 160px;
        max-height: 180px;
    }

    .xd-hero { padding: 28px 22px; }

    .xd-nav-toggle { display: flex; }

    .xd-nav-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(2, 6, 23, 0.96);
        padding: 12px 16px 16px;
        border-top: 1px solid rgba(255,255,255,.06);
    }

    .xd-nav-wrap.is-open { display: block; }

    .blog-header-nav .nav-list { flex-direction: column; align-items: stretch; }

    .blog-header-nav .dropdown-menus {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,.04);
        margin-top: 4px;
    }

    .xd-header-inner { position: relative; }

    .xd-brand-tagline { display: none; }

    .widget form[name="keyform"] { flex-direction: column; }
}
