/* ============================================
   源码七号站Style - 融合 Forum Lite 论坛风格的 emlog 模板
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #2e5299;
    --primary-light: #5298FF;
    --primary-lighter: #aac8ff;
    --primary-bg: #f5f8ff;
    --accent: #e74c3c;
    --bg-body: #e8ecf3;
    --bg-white: #ffffff;
    --bg-light: #f9fbff;
    --border: #dae1f2;
    --border-light: #edf2ff;
    --border-row: #f0f4ff;
    --text-dark: #333333;
    --text-mid: #666666;
    --text-light: #999999;
    --text-link: #256eb1;
    --text-link-hover: #ba2636;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --radius: 4px;
    --container-width: 1200px;
    --sidebar-width: 280px;
    --gap: 15px;
    --header-gradient: linear-gradient(135deg, #1e3a6e 0%, #2e5299 40%, #3a6bc5 100%);
}

/* === Dark Mode === */
[data-theme="dark"] {
    --primary: #5298FF;
    --primary-light: #7ab4ff;
    --primary-lighter: #3d6dcc;
    --primary-bg: #1a2332;
    --bg-body: #0f1419;
    --bg-white: #1c2333;
    --bg-light: #1a2332;
    --border: #2d3748;
    --border-light: #2a3547;
    --border-row: #1e2d40;
    --text-dark: #e2e8f0;
    --text-mid: #a0aec0;
    --text-light: #718096;
    --text-link: #7ab4ff;
    --text-link-hover: #f6ad55;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --header-gradient: linear-gradient(135deg, #0d1b2a 0%, #1b2838 40%, #1e3050 100%);
}

/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "Segoe UI", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Body inner wrapper to allow flex growth */
.dl-page-body-wrap { flex: 1 0 auto; }
a { color: var(--text-link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text-link-hover); }
img { max-width: 100%; height: auto; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text-dark); }
.clearfix::after { content: ''; display: table; clear: both; }

/* === Container === */
.dl-wrap { max-width: var(--container-width); margin: 0 auto; padding: 0 10px; width: 100%; box-sizing: border-box; }
.dl-narrow .dl-wrap { max-width: 960px; }

/* === Header / Top Bar === */
.dl-header {
    background: var(--header-gradient);
    border-bottom: 2px solid rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}
.dl-header-top {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 15px;
}
.dl-logo a {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.dl-logo img { height: 40px; margin-right: 10px; }
.dl-header-info {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.dl-menu-toggle { margin-left: auto; }

/* === Navigation === */
.dl-nav {
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.dl-nav-list {
    display: flex;
    align-items: center;
    height: 42px;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.dl-nav-item { position: relative; list-style: none; }
.dl-nav-item > a,
.dl-nav-item > span {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.dl-nav-item > a:hover,
.dl-nav-item > span:hover,
.dl-nav-item.active > a {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
/* Dropdown */
.dl-nav-item .dl-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    min-width: 160px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 200;
}
.dl-nav-item:hover .dl-dropdown { display: block; }
.dl-dropdown a {
    display: block;
    padding: 8px 18px;
    color: var(--text-dark);
    font-size: 13px;
    border-bottom: 1px solid var(--border-row);
}
.dl-dropdown a:hover { background: var(--primary-bg); color: var(--primary); }

/* Mobile menu toggle */
.dl-menu-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* === Transparent Header Mode === */
.dl-header.dl-header-transparent {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
}
.dl-header.dl-header-transparent .dl-logo a {
    color: var(--primary);
    text-shadow: none;
}
.dl-header.dl-header-transparent .dl-header-info {
    color: var(--text-mid);
}
.dl-header.dl-header-transparent .dl-nav {
    background: var(--bg-white) !important;
    border-top: 1px solid var(--border) !important;
}
.dl-header.dl-header-transparent .dl-nav-item > a,
.dl-header.dl-header-transparent .dl-nav-item > span {
    color: var(--text-dark) !important;
}
.dl-header.dl-header-transparent .dl-nav-item > a:hover,
.dl-header.dl-header-transparent .dl-nav-item > span:hover,
.dl-header.dl-header-transparent .dl-nav-item.active > a {
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
}
.dl-header.dl-header-transparent .dl-dropdown a { color: var(--text-dark) !important; }
.dl-header.dl-header-transparent .dl-menu-toggle { color: var(--text-dark) !important; }

/* === Split Header Mode (白底Logo+蓝色导航) === */
.dl-header.dl-header-split {
    background: #fff !important;
    border-bottom: none !important;
}
.dl-header.dl-header-split .dl-header-top {
    border-top: 3px solid var(--primary);
}
.dl-header.dl-header-split .dl-logo a {
    color: var(--primary);
    text-shadow: none;
}
.dl-header.dl-header-split .dl-header-info {
    color: var(--primary);
}
.dl-header.dl-header-split .dl-nav {
    background: var(--primary) !important;
    border-top: none !important;
}
.dl-header.dl-header-split .dl-nav-item > a,
.dl-header.dl-header-split .dl-nav-item > span {
    color: rgba(255,255,255,0.9) !important;
}
.dl-header.dl-header-split .dl-nav-item > a:hover,
.dl-header.dl-header-split .dl-nav-item > span:hover,
.dl-header.dl-header-split .dl-nav-item.active > a {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}
.dl-header.dl-header-split .dl-dropdown a { color: var(--text-dark) !important; }
.dl-header.dl-header-split .dl-menu-toggle { color: var(--primary) !important; }

/* === Main Layout === */
.dl-main {
    display: flex;
    gap: var(--gap);
    padding: 15px 0;
    align-items: flex-start;
}
.dl-content { flex: 1; min-width: 0; max-width: 100%; }
.dl-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    min-width: 0;
}
.dl-sidebar-left { order: -1; }
.dl-sidebar.sticky .dl-sidebar-inner {
    position: sticky;
    top: 15px;
}

/* === Card / Box === */
.dl-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--gap);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.dl-box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.dl-box-title strong { display: flex; align-items: center; gap: 6px; }
.dl-box-title .more {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-light);
}
.dl-box-title .more:hover { color: var(--primary); }
.dl-box-body { padding: 12px 15px; }

/* === Breadcrumb === */
.dl-breadcrumb {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 15px;
    margin-bottom: var(--gap);
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    overflow: hidden;
}
.dl-breadcrumb .bc-icon {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}
.dl-breadcrumb a { color: var(--text-mid); white-space: nowrap; }
.dl-breadcrumb a:hover { color: var(--primary); }
.dl-breadcrumb span.sep { color: var(--border); flex-shrink: 0; }
.dl-breadcrumb .bc-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
    color: var(--text-dark);
}

/* === Announcement Bar (Forum Lite Style) === */
.dl-announcement {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 38px;
    display: flex;
    align-items: center;
    margin-bottom: var(--gap);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.dl-anno-icon {
    width: 42px;
    height: 38px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    position: relative;
    flex-shrink: 0;
}
.dl-anno-icon::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    border-left: 8px solid var(--primary);
    border-top: 19px solid transparent;
    border-bottom: 19px solid transparent;
}
.dl-anno-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10px;
}
.dl-anno-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: absolute;
    will-change: transform;
}
.dl-anno-item {
    padding-right: 80px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* === Slideshow === */
.dl-slideshow {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--gap);
    box-shadow: var(--shadow);
}
.dl-slide { display: none; position: relative; }
.dl-slide.active { display: block; }
.dl-slide img { width: 100%; height: 280px; object-fit: cover; display: block; }
.dl-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 30px 20px 12px;
    font-size: 15px;
    font-weight: 500;
}
.dl-slide-prev,
.dl-slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
    z-index: 10;
}
.dl-slide-prev { left: 10px; }
.dl-slide-next { right: 10px; }
.dl-slide-prev:hover,
.dl-slide-next:hover { background: rgba(0,0,0,0.6); }

/* === CMS Module Block === */
.dl-cms-block .dl-box-body { padding: 0; }

/* ── CMS 版块折叠 / 展开 ──────────────────────────────────────── */

/* 整行可点时的标题栏 */
.dl-cms-toggleable.dl-cms-fullclick .dl-cms-toggle-header {
    cursor: pointer;
    user-select: none;
}
.dl-cms-toggleable.dl-cms-fullclick .dl-cms-toggle-header:hover {
    background: var(--primary-bg);
}

/* ── 胶囊状态徽章（分类名旁边）──────────────────────────────────── */

/* 两种胶囊完全一致的外壳，蓝色主题色系 */
.dl-cms-toggle-btn,
.dl-cms-status-normal {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 1px 8px 1px 6px !important;
    height: 18px !important;
    border-radius: 9px !important;
    border: 1px solid var(--border) !important;
    background: var(--primary-bg) !important;
    color: var(--primary) !important;
    font-size: 11px !important;
    font-weight: normal !important;
    font-family: inherit !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    position: relative !important;
    top: -1px !important;
    margin-left: 4px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.dl-cms-toggle-btn {
    cursor: pointer !important;
    outline: none !important;
    transition: background .15s, border-color .15s !important;
}
.dl-cms-toggle-btn:hover {
    background: var(--border) !important;
}
.dl-cms-toggle-btn:active { opacity: .8 !important; }
.dl-cms-status-normal { cursor: default !important; }

/* ── 呼吸小圆点（脉冲缩放，适配浅色背景）── */
.dl-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
/* 绿点：正常 */
.dl-badge-dot-normal {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
    animation: dl-badge-pulse-green 2s ease-in-out infinite;
}
@keyframes dl-badge-pulse-green {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(34,197,94,0.6); }
    50%  { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(34,197,94,0);   }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(34,197,94,0.6); }
}
/* 蓝点：已展开 */
.dl-badge-dot-toggle {
    background: #3b82f6;
    box-shadow: 0 0 0 0 rgba(59,130,246,0.6);
    animation: dl-badge-pulse-blue 2s ease-in-out infinite;
}
@keyframes dl-badge-pulse-blue {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(59,130,246,0.6); }
    50%  { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(59,130,246,0);   }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(59,130,246,0.6); }
}
/* 橙点：已折叠 */
.dl-cms-collapsed .dl-badge-dot-toggle {
    background: #f97316;
    box-shadow: 0 0 0 0 rgba(249,115,22,0.6);
    animation: dl-badge-pulse-orange 2s ease-in-out infinite;
}
@keyframes dl-badge-pulse-orange {
    0%   { transform: scale(1);    box-shadow: 0 0 0 0   rgba(249,115,22,0.6); }
    50%  { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(249,115,22,0);   }
    100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(249,115,22,0.6); }
}

/* 折叠时标题栏底边框隐藏 */
.dl-cms-collapsed .dl-box-title {
    border-bottom-color: transparent;
    transition: border-color .28s;
}
.dl-cms-list { }
.dl-cms-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-row);
    font-size: 13px;
    transition: background 0.15s;
}
.dl-cms-list li:last-child { border-bottom: none; }
.dl-cms-list li:hover { background: var(--primary-bg); }
.dl-cms-list .cms-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dl-cms-list .cms-title a { color: var(--text-dark); }
.dl-cms-list .cms-title a:hover { color: var(--primary); }
.dl-cms-list .cms-date {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 10px;
}
.dl-cms-list .cms-today { color: var(--primary-light); }
.dl-cms-list .badge-top {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
    line-height: 1.4;
}

/* === Blog List (Standard) === */
.dl-article-list { }
.dl-article-item {
    display: flex;
    gap: 15px;
    padding: 18px 15px;
    border-bottom: 1px solid var(--border-row);
    transition: background 0.15s;
}
.dl-article-item:last-child { border-bottom: none; }
.dl-article-item:hover { background: var(--primary-bg); }
.dl-article-cover {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.dl-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.dl-article-info { flex: 1; min-width: 0; }
.dl-article-info h2 {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.dl-article-info h2 a { color: var(--text-dark); }
.dl-article-info h2 a:hover { color: var(--primary); }
.dl-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.dl-article-meta i { margin-right: 3px; color: var(--primary-lighter); }
.dl-article-excerpt {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === URL Navigation Grid === */
.dl-nav-block .dl-box-body { padding: 12px 10px 5px; }
.dl-nav-grid {
    display: flex;
    flex-wrap: wrap;
}
.dl-nav-card {
    width: 12.5%;
    text-align: center;
    padding: 8px 5px;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.2s;
}
.dl-nav-card:hover { transform: translateY(-3px); }
.dl-nav-icon {
    width: 44px;
    height: 44px;
    line-height: 44px;
    background: var(--primary-bg);
    border-radius: 10px;
    margin: 0 auto 6px;
    color: var(--primary-light);
    font-size: 20px;
    transition: all 0.2s;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dl-nav-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.dl-nav-card:hover .dl-nav-icon {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 10px rgba(82,152,255,0.3);
    border-color: var(--primary-light);
}
.dl-nav-card span {
    font-size: 12px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--primary);
}
.dl-nav-card:hover span { color: var(--text-link-hover); }

/* === Nav Listing Page (Sub-sort bar + Grid) === */
.dl-nav-sub-bar {
    background: var(--bg-white);
    border: 1px solid var(--border);
    margin-bottom: var(--gap);
    border-radius: var(--radius);
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.dl-nav-sub-bar a {
    display: block;
    padding: 5px 15px;
    color: var(--text-mid);
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.3s;
}
.dl-nav-sub-bar a:hover { background: var(--primary-bg); color: var(--primary); }
.dl-nav-sub-bar a.active { background: var(--primary-light); color: #fff; }

.dl-nav-list-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}
.dl-nav-item-card {
    width: 25%;
    padding: 5px;
    box-sizing: border-box;
    position: relative;
}
.dl-nav-item-card-inner {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    height: 70px;
    transition: all 0.3s;
}
.dl-nav-item-card-inner:hover {
    border-color: var(--primary-light);
    box-shadow: 0 5px 15px rgba(82, 152, 255, 0.1);
}
.dl-nav-item-main {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: var(--text-dark);
    height: 100%;
}
.dl-nav-item-main img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
    object-fit: cover;
}
.dl-nav-item-info { overflow: hidden; flex: 1; padding-right: 5px; }
.dl-nav-item-info h3 {
    font-size: 14px;
    margin: 0 0 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-dark);
}
.dl-nav-item-info p {
    font-size: 11px;
    color: var(--text-light);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dl-nav-item-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    transform: translateY(100%);
    gap: 8px;
    z-index: 5;
}
.dl-nav-item-card-inner:hover .dl-nav-item-hover {
    opacity: 1;
    transform: translateY(0);
}
.dl-nav-btn-go, .dl-nav-btn-detail {
    color: #fff;
    padding: 5px 10px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
    display: inline-block;
}
.dl-nav-btn-go { background: var(--primary-light); }
.dl-nav-btn-go:hover { background: var(--primary); box-shadow: 0 3px 8px rgba(46,82,153,0.3); color: #fff; }
.dl-nav-btn-detail { background: #666; }
.dl-nav-btn-detail:hover { background: #333; box-shadow: 0 3px 8px rgba(0,0,0,0.2); color: #fff; }
.dl-nav-mobile-go {
    display: none;
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    background: var(--primary-bg);
    color: var(--primary-light);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid var(--border);
    z-index: 3;
}

/* === Nav Detail Page (Visit button + Stats) === */
.dl-nav-extra {
    margin: 20px 0 30px;
    padding: 20px;
    background: var(--primary-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.dl-nav-go-box { text-align: center; margin-bottom: 30px; }
.dl-nav-go-btn {
    display: inline-block;
    background: var(--primary-light);
    color: #fff;
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(82,152,255,0.3);
}
.dl-nav-go-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,82,153,0.4);
    color: #fff;
}
.dl-nav-go-btn i { margin-right: 8px; }
.dl-nav-stat-box {
    background: var(--bg-white);
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
}
.dl-nav-stat-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-light);
    padding-left: 10px;
}
.dl-nav-stat-content { margin-bottom: 10px; }
.dl-nav-stat-item { margin-bottom: 15px; }
.dl-nav-stat-label { font-size: 13px; color: var(--text-mid); margin-bottom: 5px; }
.dl-nav-stat-label span { font-weight: bold; color: var(--text-dark); float: right; }
.dl-nav-stat-bar { height: 8px; background: #f0f0f0; border-radius: 4px; overflow: hidden; }
.dl-nav-stat-progress { height: 100%; background: var(--primary-lighter); border-radius: 4px; transition: width 1s ease-in-out; }
.dl-nav-stat-progress.click { background: var(--primary-light); }
.dl-nav-stat-tips { font-size: 11px; color: var(--text-light); margin: 0; }

/* === Forum Thread List (Forum Lite Style) === */
.dl-thread-list { }
.dl-thread-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
}
.dl-thread-header .th-subject { flex: 1; }
.dl-thread-header .th-author { width: 120px; padding-left: 10px; }
.dl-thread-header .th-nums { width: 90px; text-align: center; }
.dl-thread-header .th-lastpost { width: 140px; padding-left: 10px; }

.dl-thread-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-row);
    transition: background 0.15s;
}
.dl-thread-item:hover { background: var(--primary-bg); }
.dl-thread-item .t-icon {
    width: 20px;
    color: var(--primary-lighter);
    font-size: 14px;
    flex-shrink: 0;
    margin-right: 8px;
}
.dl-thread-item .t-subject {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dl-thread-item .t-subject a {
    color: var(--text-link);
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dl-thread-item .t-subject a:hover { color: var(--text-link-hover); text-decoration: underline; }
.dl-thread-item .t-author {
    width: 120px;
    padding-left: 10px;
    font-size: 12px;
    flex-shrink: 0;
}
.dl-thread-item .t-author cite {
    display: block;
    font-style: normal;
    color: var(--text-mid);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dl-thread-item .t-author em {
    display: block;
    font-style: normal;
    color: var(--text-light);
    font-size: 11px;
}
.dl-thread-item .t-nums {
    width: 90px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
}
.dl-thread-item .t-nums span {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
}
.dl-thread-item .t-nums em {
    display: block;
    font-style: normal;
    color: var(--text-light);
    font-size: 11px;
}
.dl-thread-item .t-lastpost {
    width: 140px;
    padding-left: 10px;
    font-size: 12px;
    flex-shrink: 0;
}
.dl-thread-item .t-lastpost cite {
    display: block;
    font-style: normal;
    color: var(--text-mid);
}
.dl-thread-item .t-lastpost em {
    display: block;
    font-style: normal;
    color: var(--text-light);
    font-size: 11px;
}
.dl-thread-item .t-lastpost em a { color: var(--text-light); }
.dl-thread-item .t-lastpost em a:hover { color: var(--primary); }

/* Thread badges */
.t-badge {
    display: inline-block;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 2px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1.4;
}
.t-badge-top { background: var(--accent); color: #fff; }
.t-badge-hot { background: #ff7b1c; color: #fff; }
.t-badge-new { background: #52c41a; color: #fff; }

/* No threads */
.dl-no-thread {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* === Forum Post Detail (Forum Lite Style) === */
.dl-post-header {
    padding: 18px 20px;
    border-bottom: 2px solid var(--primary);
    background: var(--bg-light);
}
.dl-post-header h1 {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 6px;
}
.dl-post-stats {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    gap: 15px;
}

.dl-post-item {
    display: flex;
    border-bottom: 4px solid var(--border-row);
    min-height: 200px;
}
.dl-post-item:last-child { border-bottom: none; }

/* Author sidebar */
.dl-post-author {
    width: 160px;
    background: var(--bg-light);
    border-right: 1px solid var(--border-light);
    padding: 20px 10px;
    text-align: center;
    flex-shrink: 0;
}
.dl-post-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    border: 2px solid var(--border);
    padding: 3px;
    background: var(--bg-white);
}
.dl-post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dl-post-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 6px;
}
.dl-post-role {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-lighter);
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.dl-post-user-stats {
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px dashed var(--border);
    padding-top: 8px;
    line-height: 1.8;
}

/* Post content area */
.dl-post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dl-post-meta {
    height: 38px;
    border-bottom: 1px solid var(--border-row);
    display: flex;
    align-items: center;
    padding: 0 18px;
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-light);
}
.dl-post-floor {
    color: var(--primary);
    font-weight: 600;
    margin-right: 15px;
}
.dl-post-time { flex: 1; }
.dl-post-actions a {
    color: var(--primary-light);
    margin-left: 12px;
    font-size: 12px;
}
.dl-post-actions a:hover { color: var(--primary); }
.dl-post-content {
    padding: 20px;
    flex: 1;
    line-height: 1.8;
    font-size: 14px;
    color: var(--text-dark);
    min-height: 120px;
    word-break: break-word;
}
.dl-post-content img { max-width: 100%; border-radius: var(--radius); }
.dl-post-footer {
    padding: 10px 20px;
    border-top: 1px dashed var(--border-row);
    font-size: 12px;
}

/* Author on top style */
.dl-author-top .dl-post-item { flex-direction: column; }
.dl-author-top .dl-post-author {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    text-align: left;
    padding: 10px 20px;
}
.dl-author-top .dl-post-avatar {
    width: 42px;
    height: 42px;
    margin: 0 12px 0 0;
}
.dl-author-top .dl-post-name { margin-bottom: 0; margin-right: 12px; }
.dl-author-top .dl-post-role { margin-bottom: 0; margin-right: 12px; }
.dl-author-top .dl-post-user-stats {
    border-top: none;
    padding-top: 0;
    margin-left: auto;
}

/* Quote blocks */
.dl-quote {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 10px 15px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    font-size: 13px;
}
.dl-quote-header {
    border-bottom: 1px dashed var(--border);
    padding-bottom: 5px;
    margin-bottom: 6px;
    color: var(--text-mid);
    font-weight: 500;
}

/* Reply box */
.dl-reply-box {
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}
.dl-reply-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

/* === Article Detail (Blog Mode) === */
.dl-article-detail { padding: 25px; }
.dl-article-detail h1 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 12px;
}
.dl-article-detail .dl-article-meta {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}
.dl-article-body {
    line-height: 1.9;
    font-size: 15px;
    color: var(--text-dark);
}
.dl-article-body p { margin-bottom: 1em; }
.dl-article-body img { border-radius: var(--radius); margin: 10px 0; }
.dl-article-body h2 { font-size: 20px; margin: 1.5em 0 0.8em; padding-left: 12px; border-left: 4px solid var(--primary); }
.dl-article-body h3 { font-size: 17px; margin: 1.2em 0 0.6em; }
.dl-article-body blockquote {
    border-left: 4px solid var(--primary-lighter);
    background: var(--primary-bg);
    padding: 12px 18px;
    margin: 15px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-mid);
}
.dl-article-body pre,
.dl-post-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    padding-top: 40px;
    border-radius: var(--radius);
    overflow: auto;
    max-height: 600px;
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
}
/* 代码块滚动条美化 */
.dl-article-body pre::-webkit-scrollbar,
.dl-post-content pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.dl-article-body pre::-webkit-scrollbar-track,
.dl-post-content pre::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}
.dl-article-body pre::-webkit-scrollbar-thumb,
.dl-post-content pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
.dl-article-body pre::-webkit-scrollbar-thumb:hover,
.dl-post-content pre::-webkit-scrollbar-thumb:hover {
    background: #777;
}
.dl-article-body pre::-webkit-scrollbar-corner,
.dl-post-content pre::-webkit-scrollbar-corner {
    background: #2d2d2d;
}
/* 代码块包裹容器 */
.dl-code-wrapper {
    position: relative;
    margin: 15px 0;
}
.dl-code-wrapper pre {
    margin: 0 !important;
}
/* 代码块复制按钮 */
.dl-code-copy {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    background: rgba(255,255,255,0.12);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.5;
}
.dl-code-copy:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.dl-code-copy.copied {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}
.dl-article-body code,
.dl-post-content code {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.dl-article-body pre code,
.dl-post-content pre code { background: none; color: inherit; padding: 0; }

/* Adjacent articles */
.dl-neighbor {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}
.dl-neighbor a { color: var(--text-link); }
.dl-neighbor a:hover { color: var(--text-link-hover); }
.dl-neighbor-prev, .dl-neighbor-next { flex: 1; min-width: 0; }
.dl-neighbor-next { text-align: right; }
.dl-neighbor-label { color: var(--text-light); font-size: 12px; display: block; margin-bottom: 3px; }

/* Related articles */
.dl-related { padding: 0; }
.dl-related-list li {
    padding: 6px 15px;
    border-bottom: 1px solid var(--border-row);
    font-size: 13px;
}
.dl-related-list li:last-child { border-bottom: none; }
.dl-related-list li:hover { background: var(--primary-bg); }
.dl-related-list a { color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.dl-related-list a:hover { color: var(--primary); }
.dl-related-list .idx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-lighter);
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
    flex-shrink: 0;
}
.dl-related-list li:nth-child(-n+3) .idx { background: var(--accent); }

/* === Comment Section === */
.dl-comments-section { }
.dl-comment {
    display: flex;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid var(--border-row);
}
.dl-comment:last-child { border-bottom: none; }
.dl-comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}
.dl-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dl-comment-body { flex: 1; min-width: 0; }
.dl-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.dl-comment-name { font-weight: 600; color: var(--primary); font-size: 13px; }
.dl-comment-role {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
}
/* badge 颜色均由 PHP inline style 动态输出，与后台用户组颜色设置实时同步 */
/* 仅游客单独用 CSS 覆盖（浅灰背景+深色字，区别于登录用户） */
.dl-comment-role[style] { color: #fff !important; }        /* 有 inline style 的统一白字 */
.dl-comment-role.visitor { background: #e8e8e8 !important; color: #999 !important; }
.dl-comment-time { font-size: 11px; color: var(--text-light); }
.dl-comment-text { font-size: 13px; color: var(--text-dark); line-height: 1.6; margin-bottom: 5px; }
.dl-comment-reply { font-size: 12px; }
.dl-comment-reply a { color: var(--primary-light); }
.dl-comment-children { margin-left: 30px; border-left: 2px solid var(--border-row); }

/* Comment form */
.dl-comment-form { padding: 20px; }
.dl-comment-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 100px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: inherit;
}
.dl-comment-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(82,152,255,0.15); }
.dl-comment-form .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.dl-comment-form input[type="text"],
.dl-comment-form input[type="email"] {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 13px;
    background: var(--bg-white);
    color: var(--text-dark);
}
.dl-comment-form input:focus { border-color: var(--primary); outline: none; }
.dl-comment-form .form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.dl-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.dl-btn:hover { background: var(--primary-light); color: #fff; }
.dl-btn-link {
    background: none;
    color: var(--primary-light);
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    font-size: 13px;
}

/* === Sidebar Widgets === */
.dl-widget { margin-bottom: var(--gap); }
.dl-widget .dl-box-body ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-row);
    font-size: 13px;
}
.dl-widget .dl-box-body ul li:last-child { border-bottom: none; }
.dl-widget .dl-box-body ul li a { color: var(--text-dark); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-widget .dl-box-body ul li a:hover { color: var(--primary); }

/* Blogger widget */
.dl-blogger {
    text-align: center;
    padding: 20px 15px;
}
.dl-blogger-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--border);
    margin: 0 auto 10px;
    overflow: hidden;
}
.dl-blogger-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dl-blogger-name { font-size: 16px; font-weight: 600; margin-bottom: 5px; color: var(--text-dark); }
.dl-blogger-desc { font-size: 12px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }
.dl-blogger-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--border-row);
    padding-top: 12px;
}
.dl-blogger-stats .stat-item { text-align: center; }
.dl-blogger-stats .stat-num { display: block; font-size: 18px; font-weight: 700; color: var(--primary); }
.dl-blogger-stats .stat-label { font-size: 11px; color: var(--text-light); }

/* Site stats widget (Forum Lite style) */
.dl-site-stats .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12px;
    color: var(--text-mid);
}
.dl-site-stats .stat-row span:last-child { font-weight: 600; color: var(--primary); }

/* Tag cloud */
.dl-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-tag-cloud a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}
.dl-tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Calendar widget */
#calendar { overflow-x: auto; }
#calendar table.calendartop {
    width: 100%;
    margin-bottom: 5px;
}
#calendar table.calendartop td {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 4px 0;
}
#calendar table.calendartop a {
    color: var(--primary);
    text-decoration: none;
    padding: 0 6px;
    font-size: 14px;
}
#calendar table.calendartop a:hover { color: var(--accent); }
#calendar table.calendar {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 12px;
}
#calendar table.calendar td {
    padding: 5px 2px;
    color: var(--text-mid);
    border: 1px solid var(--border-row);
}
#calendar table.calendar td.week {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
    font-size: 11px;
}
#calendar table.calendar td.sun {
    background: var(--primary-bg);
    color: var(--accent);
    font-weight: 600;
    font-size: 11px;
}
#calendar table.calendar td.day {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    border-radius: 2px;
}
#calendar table.calendar td.day a { color: #fff; }
#calendar table.calendar td.day2 { font-weight: 600; }
#calendar table.calendar td.day2 a { color: var(--primary); font-weight: 600; }
#calendar table.calendar td a { text-decoration: none; }

/* === Pagination (Forum Lite Style) === */
.dl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 15px;
    font-size: 13px;
}
.dl-pagination a,
.dl-pagination span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-mid);
    background: var(--bg-white);
    transition: all 0.2s;
}
.dl-pagination a:hover { background: var(--primary-bg); color: var(--primary); border-color: var(--primary-lighter); }
.dl-pagination span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 600;
}

/* === Footer === */
.dl-footer {
    background: var(--bg-white);
    border-top: 2px solid var(--primary);
    border-radius: var(--radius) var(--radius) 12px 12px;
    margin: 15px 0 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    overflow: hidden;
}
.dl-footer-links {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.dl-footer-links dt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dl-footer-links dt strong { font-size: 14px; color: var(--text-dark); }
.dl-footer-links dt span { font-size: 12px; }
.dl-footer-links dd ul { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-footer-links dd ul li a {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-bg);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    font-size: 12px;
    color: var(--text-mid);
    transition: all 0.2s;
}
.dl-footer-links dd ul li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.dl-footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}
.dl-footer-bottom a { color: var(--text-mid); text-decoration: none; transition: color 0.2s; }
.dl-footer-bottom a:hover { color: var(--primary); }

/* 页脚导航 */
.dl-footer-nav { margin-bottom: 8px; }
.dl-footer-nav a { color: var(--text-mid); margin: 0 4px; font-size: 13px; }
.dl-footer-nav a:hover { color: var(--primary); }
.dl-footer-sep { color: var(--border); margin: 0 2px; font-size: 12px; }

/* 版权 */
.dl-footer-copyright { color: #666; margin-bottom: 6px; font-size: 13px; }

/* 备案 */
.dl-footer-beian { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.dl-footer-beian a { display: inline-flex; align-items: center; gap: 4px; color: #666; }
.dl-footer-beian a:hover { color: var(--primary); }

/* 页脚底部过渡条 */
.dl-footer-bottom-bar {
    height: 8px;
    background: linear-gradient(to right,
        var(--bg-body) 0%,
        var(--primary) 25%,
        var(--primary) 75%,
        var(--bg-body) 100%);
    opacity: 0.45;
    margin-top: 10px;
}

/* 页면 底部留白，让页脚圆角可见 */
.dl-page-bottom-pad {
    height: 20px;
    background: var(--bg-body);
    flex-shrink: 0;
}

/* 评论区验证码 */
.dl-comment-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0 4px;
    border-top: 1px dashed var(--border);
    margin-top: 6px;
}
.dl-captcha-label { font-size: 13px; color: var(--text-mid); flex-shrink: 0; }
.dl-captcha-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dl-captcha-wrap img.captcha {
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border);
    height: 34px;
    vertical-align: middle;
    transition: opacity .2s;
}
.dl-captcha-wrap img.captcha:hover { opacity: 0.8; }
.dl-captcha-wrap input.captcha_input {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
    width: 100px;
    transition: border .2s, box-shadow .2s;
    background: var(--bg-light);
    color: var(--text-dark);
}
.dl-captcha-wrap input.captcha_input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: #fff;
}
.dl-captcha-tip { font-size: 12px; color: var(--text-light); }

/* 一言 */
.dl-footer-hitokoto {
    text-align: center;
    padding: 10px 0 4px;
    font-size: 13px;
    color: var(--text-mid);
    border-top: 1px dashed var(--border-light);
    margin-top: 6px;
}
.dl-hitokoto-text { font-style: italic; }
.dl-hitokoto-from { color: var(--text-light); font-size: 12px; margin-left: 6px; }

/* 网站运行时间（内嵌版） */
.dl-footer-runtime {
    text-align: center;
    padding: 4px 0 8px;
}

.dl-beian-icon { height: 14px !important; width: 14px !important; max-height: 14px; vertical-align: middle; display: inline-block; object-fit: contain; }

/* === 404 === */
.dl-404 {
    text-align: center;
    padding: 80px 20px;
}
.dl-404 h1 { font-size: 72px; color: var(--primary-lighter); margin-bottom: 10px; }
.dl-404 p { font-size: 16px; color: var(--text-mid); margin-bottom: 20px; }

/* === Page Template === */
.dl-page { padding: 25px; }
.dl-page h2 { font-size: 22px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.dl-page .page-body { line-height: 1.9; font-size: 15px; }

/* === Back to Top === */
.dl-backtop {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}
.dl-backtop.visible { opacity: 1; visibility: visible; }
.dl-backtop:hover { background: var(--primary-light); transform: translateY(-3px); }

/* === Forum Stats Bar === */
.dl-forum-stats {
    display: flex;
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.dl-forum-stats .fs-item {
    flex: 1;
    background: var(--bg-white);
    text-align: center;
    padding: 12px 8px;
}
.dl-forum-stats .fs-num {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.dl-forum-stats .fs-label {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* === AI Tech Status Bar === */
.dl-techbar {
    position: relative;
    margin-bottom: var(--gap);
    background: linear-gradient(135deg, #0a1628 0%, #132444 40%, #1a3a6e 70%, #0f2952 100%);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(82, 152, 255, 0.25);
    box-shadow: 0 2px 12px rgba(46, 82, 153, 0.15), inset 0 1px 0 rgba(82, 152, 255, 0.1);
}
.dl-techbar::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(82, 152, 255, 0.03), transparent);
    animation: tbScanline 4s linear infinite;
}
@keyframes tbScanline {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}
.tb-grid {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}
.tb-cell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    position: relative;
}
.tb-divider {
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, transparent, rgba(82, 152, 255, 0.4), transparent);
    flex-shrink: 0;
}
.tb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(82, 152, 255, 0.12);
    border: 1px solid rgba(82, 152, 255, 0.25);
    color: #5298FF;
    flex-shrink: 0;
    animation: tbIconPulse 3s ease-in-out infinite;
}
@keyframes tbIconPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(82, 152, 255, 0.2); }
    50% { box-shadow: 0 0 10px rgba(82, 152, 255, 0.4); }
}
.tb-label {
    font-size: 11px;
    color: rgba(170, 200, 255, 0.7);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.tb-value {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #5298FF;
    min-width: 28px;
    text-align: right;
    text-shadow: 0 0 8px rgba(82, 152, 255, 0.5);
    transition: color 0.3s;
}
.tb-unit {
    font-size: 10px;
    color: rgba(170, 200, 255, 0.5);
    margin-left: -2px;
}
.tb-bar {
    width: 40px; height: 3px;
    background: rgba(82, 152, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}
.tb-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #5298FF, #7ab4ff);
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 6px rgba(82, 152, 255, 0.5);
    width: 0%;
}
.tb-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Tech bar responsive */
/* Mobile: short labels visible, long labels hidden, progress bar hidden, single tight row */
.tb-label-s { display: none; }
@media (max-width: 768px) {
    .tb-cell { padding: 7px 4px; gap: 4px; }
    .tb-icon { width: 20px; height: 20px; }
    .tb-icon svg { width: 12px; height: 12px; }
    .tb-label { display: none; }
    .tb-label-s { display: inline; font-size: 11px; color: rgba(170,200,255,0.7); white-space: nowrap; }
    .tb-value { font-size: 15px; min-width: 20px; }
    .tb-bar { display: none; }
    .tb-unit { font-size: 9px; }
}
@media (max-width: 480px) {
    .tb-cell { padding: 6px 2px; gap: 3px; }
    .tb-icon { width: 18px; height: 18px; }
    .tb-icon svg { width: 11px; height: 11px; }
    .tb-label-s { font-size: 10px; }
    .tb-value { font-size: 14px; min-width: 18px; }
    .tb-unit { font-size: 8px; }
    .tb-divider { height: 18px; }
}

/* Dark mode tech bar adjustments */
[data-theme="dark"] .dl-techbar {
    background: linear-gradient(135deg, #050d1a 0%, #0a1a36 40%, #112952 70%, #091e3d 100%);
    border-color: rgba(82, 152, 255, 0.2);
}

/* === Tags === */
.tags {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 3px;
    font-size: 12px;
    margin: 2px;
    border: 1px solid var(--border-light);
}
.tags:hover { background: var(--primary); color: #fff; }

/* === Global Overflow Prevention === */
html {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* === Mobile Announcement CSS Animation === */
@keyframes dl-marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* === Responsive === */
@media (max-width: 960px) {
    .dl-main { flex-direction: column; }
    .dl-sidebar { width: 100%; order: 1; }
    .dl-sidebar-left { order: 1; }
    .dl-content { order: 0; min-width: 0; width: 100%; }
    .dl-nav-card { width: 16.66%; }
    .dl-nav-item-card { width: 33.33%; }
}

@media (max-width: 768px) {
    /* === 容器溢出保护 === */
    .dl-wrap {
        max-width: 100%;
        padding: 0 10px;
        overflow: hidden;
    }
    .dl-main {
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }
    .dl-content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: none;
    }
    .dl-sidebar {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        order: 1;
    }
    .dl-box {
        max-width: 100%;
        overflow: hidden;
    }

    /* === 移动端隐藏侧边栏 === */
    .dl-sidebar.dl-mobile-hide { display: none !important; }

    /* === 头部 === */
    .dl-header-top { height: 50px; }
    .dl-logo a { font-size: 18px; }
    .dl-header-info { display: none; }
    .dl-menu-toggle { display: block; }
    .dl-nav { display: none; }
    .dl-nav.open { display: block; }
    .dl-nav-list { flex-direction: column; height: auto; }
    .dl-nav-item > a,
    .dl-nav-item > span { height: auto; padding: 10px 18px; }
    .dl-nav-item .dl-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,0.05);
    }

    /* === 公告栏 - CSS动画滚动 === */
    .dl-announcement { max-width: 100%; overflow: hidden; }
    .dl-anno-content { overflow: hidden; }
    .dl-anno-track {
        visibility: visible !important;
        animation: dl-marquee 20s linear infinite;
    }

    /* === 轮播图 === */
    .dl-slideshow { max-width: 100%; }
    .dl-slide img { height: 180px; width: 100%; }

    /* === 论坛统计条 === */
    .dl-forum-stats {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
    }
    .dl-forum-stats .fs-item {
        flex: 1 1 0%;
        min-width: 0;
        padding: 10px 4px;
    }
    .dl-forum-stats .fs-num { font-size: 16px; }
    .dl-forum-stats .fs-label { font-size: 10px; }

    /* === 网址导航首页 - 每行3个，最多2行 === */
    .dl-nav-block .dl-box-body { padding: 10px 5px 5px; overflow: hidden; }
    .dl-nav-grid { width: 100%; }
    .dl-nav-card {
        width: 33.33%;
        padding: 8px 4px;
    }
    .dl-nav-icon {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    /* 隐藏第7个及之后的导航项（只显示2行×3个=6个） */
    .dl-nav-card:nth-child(n+7) { display: none; }

    /* === 网址导航列表页 === */
    .dl-nav-item-card { width: 50%; }
    .dl-nav-sub-bar { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
    .dl-nav-item-hover { display: none; }
    .dl-nav-mobile-go { display: block; }
    .dl-nav-item-info { padding-right: 25px; }
    .dl-nav-item-card-inner { height: 60px; }
    .dl-nav-item-main { padding: 8px; }
    .dl-nav-item-main img { width: 32px; height: 32px; margin-right: 8px; }
    .dl-nav-item-info h3 { font-size: 13px; }
    .dl-nav-item-info p { display: none; }
    .dl-nav-go-btn { padding: 10px 30px; font-size: 14px; }

    /* === CMS文章列表 === */
    .dl-cms-list li {
        max-width: 100%;
        overflow: hidden;
    }
    .dl-cms-list .cms-title {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* === 文章列表 === */
    .dl-article-item { flex-direction: column; }
    .dl-article-cover { width: 100%; height: 180px; }
    .dl-article-info h2 { font-size: 15px; }

    /* === 帖子列表 === */
    .dl-thread-item .t-nums,
    .dl-thread-item .t-lastpost,
    .dl-thread-header .th-nums,
    .dl-thread-header .th-lastpost { display: none; }
    .dl-thread-item .t-author { width: 90px; text-align: right; }
    .dl-thread-item .t-subject a {
        max-width: 100%;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* === 帖子详情 === */
    .dl-post-item { flex-direction: column !important; }
    .dl-post-author {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-light) !important;
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        padding: 10px 15px !important;
    }
    .dl-post-avatar { width: 40px !important; height: 40px !important; margin: 0 10px 0 0 !important; }
    .dl-post-name { margin-bottom: 0 !important; margin-right: 10px !important; }
    .dl-post-role { margin-bottom: 0 !important; }
    .dl-post-user-stats { display: none; }
    .dl-post-content {
        padding: 15px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .dl-post-content img { max-width: 100%; height: auto; }

    /* === 文章详情 === */
    .dl-article-detail { padding: 15px; }
    .dl-article-detail h1 { font-size: 20px; }
    .dl-article-body {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .dl-article-body img { max-width: 100%; height: auto; }
    .dl-article-body pre,
    .dl-post-content pre { max-width: 100%; overflow: auto; }
    .dl-article-body table { max-width: 100%; overflow-x: auto; display: block; }
    .dl-code-wrapper { max-width: 100%; }

    /* === 评论 === */
    .dl-comment-children { margin-left: 15px; }
    .dl-comment-form .form-row { flex-direction: column; }
    .dl-comment-form .form-actions { flex-wrap: wrap; }

    /* === 相邻文章 === */
    .dl-neighbor { flex-direction: column; }
    .dl-neighbor-next { text-align: left; }

    /* === 分页 === */
    .dl-pagination { flex-wrap: wrap; justify-content: center; }
    .dl-pagination a,
    .dl-pagination span { padding: 4px 10px; font-size: 12px; }

    /* === 页脚 === */
    .dl-footer-links dd ul { gap: 6px; }
    .dl-footer-links dd ul li a { padding: 3px 8px; font-size: 11px; }
    .dl-footer-nav a { font-size: 12px; margin: 0 2px; }
    .dl-footer-sep { margin: 0 1px; }
    .dl-footer-copyright { font-size: 12px; }
    .dl-footer-beian { flex-direction: column; gap: 6px; font-size: 11px; }
    .dl-police-hide-mobile { display: none !important; }
    .dl-friendlink-hide-mobile { display: none !important; }

    /* === 返回顶部 === */
    .dl-backtop { right: 12px; bottom: 20px; width: 36px; height: 36px; font-size: 16px; }
}

/* === 超小屏幕 (≤480px) === */
@media (max-width: 480px) {
    .dl-wrap { padding: 0 8px; }
    .dl-nav-card { width: 33.33%; }
    .dl-nav-icon { width: 36px; height: 36px; line-height: 36px; font-size: 18px; }
    .dl-nav-card span { font-size: 11px; }
    .dl-forum-stats .fs-num { font-size: 14px; }
    .dl-forum-stats .fs-label { font-size: 10px; }
    .dl-forum-stats .fs-item { padding: 8px 3px; }
    .dl-nav-item-card { width: 100%; }
    .dl-box-title { padding: 8px 12px; font-size: 13px; }
    .dl-box-body { padding: 10px 12px; }
    .dl-cms-list li { padding: 7px 12px; font-size: 12px; }
    .dl-slide img { height: 150px; }
    .dl-article-info h2 { font-size: 14px; }
    .dl-article-meta { font-size: 11px; gap: 8px; }
    .dl-article-excerpt { font-size: 12px; }
}

/* === 用户组内容截断样式 === */
.dl-content-fadeout {
    position: relative;
    height: 120px;
    margin-top: -120px;
    background: linear-gradient(rgba(255,255,255,0), var(--bg-card, #fff));
    pointer-events: none;
    z-index: 1;
}
[data-theme="dark"] .dl-content-fadeout,
.dark .dl-content-fadeout {
    background: linear-gradient(rgba(34,34,34,0), var(--bg-card, #222));
}
.dl-content-visible {
    overflow: hidden;
}
.dl-restricted-box {
    position: relative;
    z-index: 2;
}

/* ===== 快捷导航条 ===== */
.dl-quick-nav {
    display: flex;
    gap: 2px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: var(--gap);
}
.dl-qn-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--qn-bg, var(--bg-white));
    color: var(--qn-color, var(--primary));
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 8px;
    transition: filter .15s, opacity .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    line-height: 1.3;
}
.dl-qn-item:hover {
    opacity: .82;
    filter: brightness(.94);
}
.dl-qn-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式隐藏 */
@media (min-width: 769px) {
    .dl-qn-hide-pc { display: none !important; }
}
@media (max-width: 768px) {
    .dl-qn-hide-mobile { display: none !important; }
    .dl-qn-item { font-size: 12px; padding: 6px 4px; }
    .dl-qn-bar .dl-qn-item, .dl-qn-bar .fs-item { padding: 13px 4px !important; }
}
@media (max-width: 480px) {
    .dl-qn-item { font-size: 11px; padding: 6px 2px; gap: 3px; }
    .dl-qn-bar .dl-qn-item, .dl-qn-bar .fs-item { padding: 13px 2px !important; }
}

/* ===== 快捷导航条 ===== */
/* 复用 dl-forum-stats 外壳，覆盖 fs-item 为链接，高度压到最小 */
.dl-qn-wrap { }
.dl-qn-bar .dl-qn-item,
.dl-qn-bar .fs-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 13px 8px !important;  /* 与移动端搜索框等高 ~40px */
    transition: background .15s, color .15s;
    text-align: center;
}
.dl-qn-bar .dl-qn-item:hover {
    background: var(--bg-light, #f5f7fa);
}
.dl-qn-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}
.dl-qn-item:hover .dl-qn-label {
    opacity: .75;
}

/* 响应式隐藏 */
@media (min-width: 769px) {
    .dl-qn-hide-pc { display: none !important; }
}
@media (max-width: 768px) {
    .dl-qn-hide-mobile { display: none !important; }
    .dl-qn-bar .dl-qn-item, .dl-qn-bar .fs-item {
        padding: 0 4px !important;
        min-height: 42px;
        height: 42px;
        box-sizing: border-box;
    }
    .dl-qn-label { font-size: 12px; }
}
@media (max-width: 480px) {
    .dl-qn-bar .dl-qn-item, .dl-qn-bar .fs-item {
        padding: 0 2px !important;
        min-height: 42px;
        height: 42px;
        box-sizing: border-box;
    }
    .dl-qn-label { font-size: 11px; }
}

/* ==================== 🌟 悬浮联系栏（返回顶部+联系方式） ==================== */
.dl-contact-float {
    position: fixed;
    right: 20px;
    bottom: 28px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s, visibility .3s, transform .3s;
    pointer-events: none;
}
.dl-contact-float.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.dl-contact-float .ctf-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    transition: all .22s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;
}
.dl-contact-float .ctf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}
.dl-contact-float .ctf-btn-top {
    background: var(--primary, #2e5299);
    color: #fff;
}
.dl-contact-float .ctf-btn-top:hover {
    background: var(--primary-light, #3d6bb5);
}
.dl-contact-float .ctf-btn.active {
    background: var(--primary, #2e5299);
    color: #fff;
}

/* 气泡弹层基础样式 */
.dl-contact-float .ctf-popup {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(.92);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, transform .2s;
    pointer-events: none;
    white-space: nowrap;
    transform-origin: right center;
}
.dl-contact-float .ctf-popup::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
}
.dl-contact-float .ctf-btn.active .ctf-popup,
.dl-contact-float .ctf-btn:hover .ctf-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

/* 微信二维码气泡 */
.dl-contact-float .ctf-popup-wechat {
    text-align: center;
    padding: 16px 18px 12px;
}
.dl-contact-float .ctf-popup-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}
.dl-contact-float .ctf-popup-wechat img {
    display: block;
    width: 150px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}
.dl-contact-float .ctf-popup-hint {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

/* 复制型气泡（邮箱 / QQ） */
.dl-contact-float .ctf-popup-email,
.dl-contact-float .ctf-popup-qq {
    padding: 10px 12px;
}
.dl-contact-float .ctf-copy-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dl-contact-float .ctf-copy-input {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    background: #fafafa;
    outline: none;
    min-width: 180px;
    font-family: inherit;
}
.dl-contact-float .ctf-copy-btn {
    border: none;
    background: var(--primary, #2e5299);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .2s;
}
.dl-contact-float .ctf-copy-btn:hover {
    background: var(--primary-light, #3d6bb5);
}
.dl-contact-float .ctf-copy-btn.copied {
    background: #2e7d32;
}

/* 显示控制 */
@media (min-width: 769px) {
    .dl-contact-float.ctf-hide-pc { display: none !important; }
}
@media (max-width: 768px) {
    .dl-contact-float.ctf-hide-mobile { display: none !important; }
    .dl-contact-float {
        right: 12px;
        bottom: 18px;
        gap: 6px;
    }
    .dl-contact-float .ctf-btn {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    .dl-contact-float .ctf-popup-wechat img {
        width: 130px;
        height: auto;
    }
    .dl-contact-float .ctf-copy-input {
        min-width: 140px;
        font-size: 12px;
    }
}

/* 哀悼模式兼容 */
html.dl-mourning .dl-contact-float,
html.dl-mourning .dl-contact-float .ctf-popup {
    filter: grayscale(1);
}

/* ==================== 🔗 友链 logo 样式 ==================== */
/* footer 友链 */
#dl-footer-fl-list li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
#dl-footer-fl-list .dl-fl-logo {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    vertical-align: middle;
}

/* 侧边栏 widget 友链 */
.dl-widget-link-list li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dl-widget-link-list .dl-widget-link-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    #dl-footer-fl-list .dl-fl-logo {
        width: 14px;
        height: 14px;
    }
}
