/**
 * 硬核导航 - 主样式
 * 布局：左侧固定分类导航 + 右侧站点卡片网格，支持日间/夜间模式
 */

:root {
    --theme-color: #283593;
    --theme-color-rgb: 40, 53, 147;
    --muted-color: #8a93a6;

    --main-bg-color: #f1f2f3;
    --card-bg-color: #ffffff;
    --main-radius: 8px;
    --main-border-color: rgba(130, 130, 130, 0.18);
    --muted-border-color: rgba(88, 88, 88, 0.06);

    --text-color: #3b4354;
    --text-gray: #7a8499;
    --link-color: var(--theme-color);

    --sidebar-bg: #ffffff;
    --sidebar-text: rgba(0, 0, 0, 0.9);
    --sidebar-icon: #283593;
    --sidebar-hover-bg: #f1f2f3;

    --header-bg: rgba(255, 255, 255, 0.92);
    --shadow-color: rgba(31, 39, 65, 0.10);
    --shadow-hover: rgba(31, 39, 65, 0.18);
}

[data-theme="dark"] {
    --main-bg-color: #1b1d1f;
    --card-bg-color: #2c2e2f;
    --main-border-color: rgba(140, 150, 180, 0.16);
    --muted-border-color: rgba(140, 150, 180, 0.06);
    --text-color: #d4d9e6;
    --text-gray: #8b93a8;
    --sidebar-bg: #2c2e2f;
    --sidebar-text: #888888;
    --sidebar-icon: #c7c9cf;
    --sidebar-hover-bg: #1f2123;
    --header-bg: rgba(20, 24, 36, 0.92);
    --shadow-color: rgba(0, 0, 0, 0.30);
    --shadow-hover: rgba(0, 0, 0, 0.45);
}

/* ================= 基础 ================= */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "SF Pro SC", "SF Pro Text", "SF Pro Icons", "PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: var(--main-bg-color);
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s ease, color 0.25s ease;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--theme-color); }

img { max-width: 100%; border: 0; vertical-align: middle; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }

.text-muted { color: var(--muted-color); }
.text-xs { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-hide { position: absolute; clip: rect(0 0 0 0); }
.d-flex { display: flex; }
.flex-fill { flex: 1 1 auto; }
.m-0 { margin: 0; }
.mr-1 { margin-right: 4px; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.border-top { border-top: 1px solid var(--main-border-color); }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.d-md-none { display: none; }
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ================= 侧边导航（1:1 原站 mini 浅色窄栏） ================= */

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 110px;
    height: 100vh;
    z-index: 1081;
    background: var(--sidebar-bg);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, background-color 0.3s;
    display: flex;
    flex-direction: column;
}

.sidebar-nav-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* logo 区：100px 高，居中 */
.sidebar-logo {
    height: 100px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

.logo a:hover { color: var(--theme-color); }

/* mini 窄栏只显示一种 logo 形态：折叠态永不显示 */
.logo .logo-collapsed { display: none !important; }

.logo a i { color: var(--theme-color); flex: none; }

.logo a img {
    max-height: 70px;
    max-width: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-text-sm {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--theme-color);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

/* 文字版 logo：紫色圆图标 + 站名竖排堆叠 */
.logo a.logo-expanded.logo-text {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}
/* 自定义图片 logo */
a.logo-expanded.logo-img {
    flex-direction: row;
    justify-content: center;
    padding: 6px;
}
a.logo-expanded.logo-img img {
    max-height: 70px;
    max-width: 90px;
    object-fit: contain;
    display: block;
}
.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--theme-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    box-shadow: 0 4px 12px rgba(var(--theme-color-rgb), .28);
    overflow: hidden;
}
.logo-icon > i {
    font-size: 24px;
    color: #fff;
    line-height: 1;
}
.logo-icon-sm {
    width: 36px;
    height: 36px;
}
.logo-icon-sm > i { font-size: 20px; }
.logo-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    overflow: hidden;
    gap: 3px;
}
.logo-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 92px;
}
.logo-underline {
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--theme-color);
}

/* logo 拖拽书签提示弹框（原站同款：蓝紫渐变 + 虚线描边 + 黑底黄字键帽） */
.logo-tip {
    position: absolute;
    top: 8px;
    left: calc(100% + 14px);
    width: 250px;
    background: linear-gradient(to right, #3242b6 0%, #283593 100%);
    border: 3px dashed #3b4abc;
    color: #fff;
    border-radius: 10px;
    padding: 14px 15px 38px;
    box-shadow: 0 0 15px rgba(0,0,0,.3);
    z-index: 50;
    font-size: 13px;
    line-height: 1.7;
    animation: yinghe-tip-in .35s ease-out;
}
.logo-tip[hidden] { display: none !important; }
@keyframes yinghe-tip-in {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}
.logo-tip-arrow {
    position: absolute;
    top: 15px;
    left: -8px;
    width: 15px;
    height: 15px;
    background: #3242b6;
    transform: rotate(45deg);
    border-radius: 2px;
}
.logo-tip-text { word-break: break-all; }
.logo-tip-keys {
    position: absolute;
    right: 15px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
}
.logo-tip-keys kbd {
    display: inline-block;
    padding: 2px 7px;
    background: #000;
    color: #f6dc3e;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.4;
}
.logo-tip-keys span { font-weight: 700; margin: 0 2px; }
.logo-tip-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    border: 0;
    background: rgba(0,0,0,.15);
    color: rgba(255,255,255,.85);
    cursor: pointer;
    border-radius: 0 7px 0 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px 3px;
    transition: background .15s, color .15s;
}
.logo-tip-close:hover { background: rgba(0,0,0,.3); color: #fff; }
.logo-tip-close i { font-size: 13px; line-height: 1; }
@media (max-width: 768px) { .logo-tip { display: none !important; } }

/* 菜单滚动区（上方紫色斜切小条） */
.sidebar-menu {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    width: 110px;
    margin-top: 20px;
    padding-top: 15px;
}

.sidebar-menu::before {
    content: '';
    position: absolute;
    width: 20%;
    background: var(--theme-color);
    left: 40%;
    top: 0;
    height: 5px;
    transform: skewX(-15deg);
}
[data-theme="dark"] .sidebar-menu::before { background: #e5c977; }

.sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.sidebar-scroll::-webkit-scrollbar { width: 0; }

.sidebar-menu-inner > ul > li { position: relative; }

/* mini 窄栏：图标在上、文字在下 */
.sidebar-menu-inner > ul > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    padding: 16px 10px 14px;
    margin: 0 12px;
    border-radius: 10px;
    color: var(--sidebar-text);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.2s, color 0.2s;
}

.sidebar-menu-inner > ul > li > a span { margin-top: 8px; }

.sidebar-menu-inner > ul > li > a i {
    color: var(--sidebar-icon);
    font-size: 20px;
    line-height: 20px;
}

.sidebar-menu-inner > ul > li > a:hover,
.sidebar-menu-inner > ul > li.active > a {
    background: var(--sidebar-hover-bg);
}

.sidebar-menu-inner > ul > li > a:hover i,
.sidebar-menu-inner > ul > li.active > a i {
    background: linear-gradient(to right bottom, #6171e4 0%, var(--theme-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .sidebar-menu-inner > ul > li > a:hover i,
[data-theme="dark"] .sidebar-menu-inner > ul > li.active > a i {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #e5c977;
}

.sidebar-menu-inner > ul > li > a:hover span,
.sidebar-menu-inner > ul > li.active > a span { color: var(--theme-color); }
[data-theme="dark"] .sidebar-menu-inner > ul > li > a:hover span,
[data-theme="dark"] .sidebar-menu-inner > ul > li.active > a span { color: #e5c977; }

.icon-fw { text-align: center; flex: none; }
.icon-lg { font-size: 18px; }

/* 子菜单箭头：桌面 mini 模式隐藏（hover 弹层代替），移动端抽屉内显示 */
.sidebar-more {
    position: absolute;
    right: 8px;
    top: 14px;
    color: var(--text-gray);
    font-size: 14px;
    transition: transform 0.2s;
    cursor: pointer;
    display: none;
}

li.open > .sidebar-more { transform: rotate(90deg); }

/* 子菜单 */
.submenu {
    display: none;
    padding: 4px 0;
}

li.open > .submenu { display: block; }

.submenu a {
    display: block;
    padding: 8px 15px;
    color: var(--text-gray);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s, color .15s;
}

.submenu a:hover { color: var(--theme-color); background: var(--sidebar-hover-bg); }

/* 桌面端：hover 弹出子菜单浮层（固定定位，JS 计算 top） */
@media (min-width: 768px) {
    .sidebar-menu-inner .submenu {
        position: fixed;
        left: 110px;
        width: 180px;
        z-index: 1090;
        background: var(--card-bg-color);
        border-radius: 5px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
        padding: 5px 0;
    }
    .sidebar-item.pop > .submenu { display: block; }
    .sidebar-item.pop > a { background: var(--sidebar-hover-bg); }
}

/* 窄屏压缩（原站节奏） */
@media (max-width: 1500px) {
    .sidebar-menu-inner > ul > li > a { padding: 13px 10px 10px; font-size: 13px; }
    .sidebar-menu-inner > ul > li > a i { font-size: 17px; line-height: 17px; }
}
@media (max-width: 1299px) {
    .sidebar-menu-inner > ul > li > a { padding: 10px 10px 8px; font-size: 11px; }
    .sidebar-menu-inner > ul > li > a i { font-size: 15px; line-height: 15px; }
}

/* 侧栏底部「联系我们」 */
.sidebar-nav-footer ul { padding: 15px 10px; }

.sidebar-nav-footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 10px;
    color: var(--sidebar-text);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    transition: background .2s;
}

.sidebar-nav-footer a i { font-size: 18px; color: var(--sidebar-icon); }

.sidebar-nav-footer a:hover { background: var(--sidebar-hover-bg); color: var(--theme-color); }

/* 回家地址（原站同款：浮动小标题 + 紫色胶囊） */
.domain { padding: 0 10px 15px; }

.domain-header {
    position: relative;
    border-top: 2px solid #f1f2f3;
    margin: 0 -10px;
}
[data-theme="dark"] .domain-header { border-color: #313333; }

.domain-header span {
    padding: 0 10px 0 12px;
    color: #aaa;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    top: -12px;
    background: var(--sidebar-bg);
}

.domain-link {
    display: inline-block;
    width: calc(100% + 10px);
    margin-left: -10px;
    height: 30px;
    line-height: 30px;
    padding: 0 5px 0 3px;
    font-weight: 700;
    border-radius: 0 50px 50px 0;
    background: var(--theme-color);
    color: #fff !important;
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domain-link:hover { opacity: .9; }

/* ================= 主内容区 ================= */

.main-content {
    min-height: 100vh;
    margin-left: 110px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: margin-left 0.3s ease;
}

/* 原站同款点阵纹理背景（沉底 z-index:-2，暗色近乎隐没） */
.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('../images/bg-dots.png');
    background-size: 40%;
    display: inline-block;
    z-index: -2;
    pointer-events: none;
}
[data-theme="dark"] .main-content::after { opacity: .008; }
@media (max-width: 1100px) {
    .main-content::after { background-size: 70%; }
}
@media (max-width: 767px) {
    .main-content::after { background-size: 90%; }
}

.container, .container-fluid { width: 100%; max-width: 100%; padding: 0 15px; }
@media (max-width: 1299px) { .container, .container-fluid { padding: 0 15px; } }
@media (max-width: 1100px) { .container, .container-fluid { padding: 0 12px; } }
@media (max-width: 767px)  { .container, .container-fluid { padding: 0 10px; } }

/* 详情页容器（原站 Bootstrap container 档：固定宽度居中，比首页满宽窄） */
.single-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}
@media (min-width: 1400px) { .single-container { max-width: 1320px; } }
.p-0 { padding: 0 !important; }

/* ================= 顶栏（1:1 原站：桌面透明静态，移动粘性白底） ================= */

.header-nav { margin-bottom: 0; }

.page-header {
    position: relative;
    z-index: 1000;
    background: transparent;
    transition: background-color .3s;
}

.page-header .navbar {
    position: relative;
    display: flex;
    align-items: center;
    height: 70px;
    padding: 0 15px;
}

.navbar-brand .brand-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
}

/* 左侧「快速筛选」按钮区 */
.header-navbar { display: flex; align-items: center; margin-left: 15px; }

/* 右侧按钮组（关注 / 通知 / 浏览记录）
   right 需让开右上角夜间丝带 44px 热区 + 10px 间隙，避免误点 */
.header-menu {
    position: absolute;
    right: 54px;
    top: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
}

.header-menu-item { position: relative; display: inline-block; border-radius: 6px; margin-left: 10px; }
.header-menu-item:first-child { margin-left: 0; }

.header-menu-toggle {
    display: flex;
    align-items: center;
    height: 35px;
    background: var(--card-bg-color);
    border-radius: 10px;
    padding: 0 12px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 13px;
    user-select: none;
    position: relative;
    z-index: 1;
    transition: box-shadow .15s ease-in-out;
}

.header-menu-toggle:hover,
.header-menu-item.open .header-menu-toggle { box-shadow: 0 -2px 10px 1px rgba(0, 0, 0, 0.05); }

.header-menu-toggle i { font-size: 16px; color: var(--theme-color); }
.header-menu-toggle .ri-wechat-line { font-size: 17px; }

.header-menu-name { font-size: 13px; margin-left: 5px; }

/* 「快速筛选」彩虹渐变描边按钮（原站同款 @property 旋转渐变） */
.filter .header-menu-toggle { border-radius: 3px 10px 10px 10px; overflow: visible; }
.filter .header-menu-toggle i { font-weight: 600; font-size: 14px; }

@media (min-width: 768px) {
    .filter .header-menu-toggle { overflow: inherit; }
    .filter .header-menu-toggle::before {
        content: '';
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background: var(--card-bg-color);
        z-index: -1;
        border-radius: 2px 10px 10px 10px;
    }
    .filter .header-menu-toggle::after {
        content: '';
        width: calc(100% + 2px);
        height: calc(100% + 2px);
        border-radius: 2px 11px 11px 11px;
        background-image: linear-gradient(var(--yh-rotate, 90deg), #fc4dc8, #436aff 30%, var(--card-bg-color) 50%, #e396ff 50%, #ffe50d);
        position: absolute;
        z-index: -2;
        top: -1px;
        left: -1px;
        animation: yh-spin 5s linear infinite;
    }
}
@property --yh-rotate {
    syntax: '<angle>';
    initial-value: 90deg;
    inherits: false;
}
@keyframes yh-spin {
    0%   { --yh-rotate: 0deg; }
    100% { --yh-rotate: 360deg; }
}

/* 侧滑面板通用遮罩 */
.side-panel-mask {
    position: fixed;
    inset: 0;
    z-index: 1085;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s linear, visibility .3s;
}
.wechat .side-panel-mask { background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.07) 100%); }
.filter .side-panel-mask { background: linear-gradient(to left, transparent 0%, rgba(0, 0, 0, 0.07) 100%); }
.header-menu-item.open .side-panel-mask { opacity: 1; visibility: visible; }

/* 关注面板：右侧滑出 330px */
.wechat-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 330px;
    max-width: 92vw;
    z-index: 1086;
    padding: 20px 20px 0;
    overflow: auto;
    transform: translate3d(100%, 0, 0);
    transition: transform .3s cubic-bezier(.25, .8, .25, 1);
}
.header-menu-item.open .wechat-panel { transform: translate3d(0, 0, 0); }
.wechat-panel .toggle-inner-item {
    background: var(--card-bg-color);
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 15px;
}
.wechat-panel .toggle-inner-item img { width: 100%; display: block; }

/* 快速筛选面板：左侧滑出 470px（桌面端让出 110px 侧栏） */
.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 470px;
    max-width: 100vw;
    z-index: 1086;
    padding: 2px;
    transform: translate3d(-100%, 0, 0);
    transition: transform .3s cubic-bezier(.25, .8, .25, 1);
    overflow: hidden;
}
.header-menu-item.open .filter-panel { transform: translate3d(0, 0, 0); }
@media (min-width: 768px) {
    .header-menu-item.open .filter-panel { transform: translate3d(110px, 0, 0); }
}
.filter-panel-inner {
    height: calc(100vh - 30px);
    margin: 15px;
    overflow: auto;
    border-radius: 6px;
    padding: 15px;
    background:
        radial-gradient(92.81% 48.44% at -24.53% -16.02%, #e4fcff 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(75.78% 68.16% at 56.74% -24.02%, #fcffda 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(160.86% 46.39% at 177.14% -15.62%, #ffc8c8 9.06%, rgba(255, 255, 255, 0) 100%),
        rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(15px);
    -webkit-backdrop-filter: saturate(180%) blur(15px);
}
[data-theme="dark"] .filter-panel-inner { background: #212528; }

/* 筛选项分组 */
.toggle-filter-item { padding: 15px; border-radius: 10px; }
.toggle-filter-item:hover { background: rgba(200, 200, 200, 0.2); }
.filter-name {
    position: relative;
    z-index: 1;
    padding-bottom: 10px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
}
[data-theme="dark"] .filter-name { color: rgba(255, 255, 255, 0.85); }
.filter-name span {
    display: none;
    font-size: 12px;
    font-weight: 400;
    float: right;
    color: #666;
    margin-top: 2px;
}
.toggle-filter-item:hover .filter-name { color: var(--theme-color); }
.toggle-filter-item:hover .filter-name span { display: inline-block; }
.filter-list { margin: -3px; }
.filter-content { font-size: 0; }
.filter-content a {
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 28px;
    margin: 4px 3px;
    background: #fff;
    display: inline-block;
    font-size: 12px;
    color: var(--text-color);
}
.filter-content a:hover { border-color: var(--theme-color); }
.filter-content a i {
    font-size: 12px;
    margin-right: 5px;
    color: var(--theme-color);
    font-weight: 700;
}
[data-theme="dark"] .filter-content a {
    background: #2c2e2f;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
}
[data-theme="dark"] .filter-content a:hover { border-color: #e5c977; }

/* 头部按钮徽章（通知公告未读数） */
.header-badge {
    display: inline-flex;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 8px;
    background: #f56c6c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    margin-left: 2px;
    box-shadow: 0 0 0 2px var(--page-header-bg, #fff);
    animation: yinghe-badge-pulse 1.8s ease-in-out infinite;
}
[data-theme="dark"] .header-badge { box-shadow: 0 0 0 2px #1f1f23; }
@keyframes yinghe-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

/* 通知公告面板 */
.notice-panel { width: 320px; }
.notice-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
}
.notice-item {
    border-radius: 6px;
    transition: background .15s;
}
.notice-item:hover { background: var(--sidebar-hover-bg); }
.notice-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}
.notice-item a:hover { color: var(--theme-color); }
.notice-title {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-tag {
    flex: none;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}
.notice-item.is-new .notice-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f56c6c;
    margin-right: 6px;
    vertical-align: middle;
}

/* 下拉面板（浏览记录 400px / 通知 320px） */
.toggle-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 320px;
    background: var(--card-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    box-shadow: 0 8px 24px var(--shadow-color);
    padding: 15px;
    z-index: 1001;
}

.header-menu-item.open .toggle-panel { display: block; }

.visited .toggle-panel { width: 400px; max-width: 92vw; }

.toggle-inner-item-title {
    padding: 0 5px;
    margin: 0 0 5px;
    color: var(--muted-color);
    font-size: 15px;
    font-weight: 700;
}

.toggle-prompt {
    color: var(--muted-color);
    min-height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
}

/* 浏览记录：三列网格 + 紫色小竖条 */
.history-list { display: block; }
.history-list a {
    position: relative;
    z-index: 1;
    display: block;
    float: left;
    width: calc(33.3333% - 12px);
    margin: 1px 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 3px;
    height: 5px;
    background: var(--theme-color);
    border-radius: 6px;
    z-index: -1;
}
.history-list a:hover { color: var(--theme-color); background: var(--sidebar-hover-bg); }
.history-list::after { content: ''; display: block; clear: both; }

.navbar-menu { display: flex; }

/* ================= 大搜索区（1:1 原站 no-bg 版） ================= */

.header-big {
    position: relative;
    padding: 25px 16px 50px;
    background: transparent;
}
@media (min-width: 768px) {
    .header-big.no-bg { padding-top: 25px; padding-bottom: 60px; }
}

/* 大搜索区背景：原站为 no-bg 无背景；仅当用户在模板设置上传背景图时显示
   宽度与原站一致：外层满宽、本元素（class+id 同体）max-width 800px 居中 */
.s-search {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 720px auto;
}
.s-search > * { position: relative; z-index: 1; }

/* 功能分类 tab：大字 + 激活项黄色斜切高亮（原站 anchor 效果） */
.s-type { text-align: center; }

.s-type-list.big {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    margin-bottom: 6px;
    scrollbar-width: none;
}
.s-type-list.big::-webkit-scrollbar { display: none; }

.s-type-list.big label {
    position: relative;
    display: inline-block;
    margin: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    user-select: none;
    transition: opacity .3s;
}
.s-type-list.big label span { display: block; padding: 10px 20px; position: relative; z-index: 1; }
.s-type-list.big label:not(.active) { opacity: .5; }
.s-type-list.big label:not(.active):hover { opacity: 1; }
.s-type-list.big label.active::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 13px;
    width: 88px;
    margin-left: -44px;
    height: 13px;
    border-radius: 3px;
    transform: skewX(-15deg);
    background: linear-gradient(to right, transparent 0%, #f6dc3e 120%);
}

/* 搜索框：白底 + 2px 紫描边 + 14px 圆角（原站实测） */
.super-search-fm {
    position: relative;
    display: block;
    margin: 10px 0 0;
}

.super-search-fm .form-control {
    display: block;
    width: 100%;
    height: 50px;
    padding: 9px 60px 9px 20px;
    border: 2px solid var(--theme-color);
    border-radius: 14px;
    background: #fff;
    color: var(--text-color);
    font-size: 16px;
    outline: 0;
    transition: border-color .3s;
}

.super-search-fm .form-control::placeholder { color: var(--muted-color); }

#btn_search {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    margin: 4px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: var(--theme-color);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: filter .2s, background .2s;
}
#btn_search:hover { filter: brightness(1.1); }

@media (max-width: 1100px) {
    #btn_search { background: #fff; color: var(--theme-color); }
    #btn_search:hover { background: #f1f2f8; filter: none; }
}

/* 引擎 chips 分组（选中：紫粗体 + 顶部小三角） */
#search-list { position: relative; margin-top: 16px; text-align: center; }

.search-group { display: none; }
.search-group.s-current { display: flex; justify-content: center; }

.search-type {
    display: block;
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.search-type::-webkit-scrollbar { display: none; }

.search-type li { display: inline-block; list-style: none; }

.search-type li label {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 5px 20px;
    font-size: 14px;
    line-height: 31px;
    cursor: pointer;
    user-select: none;
}
.search-type li label span { transition: color .2s; }
.search-type li label:hover span { color: var(--theme-color); }

.search-type input:checked + label span { color: var(--theme-color) !important; font-weight: 700; }
.search-type input:checked + label::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -8px;
    border-width: 8px 8px 0 8px;
    border-style: solid;
    border-color: var(--theme-color) transparent transparent;
}

/* 暗色模式（原站 io-black-mode 值） */
[data-theme="dark"] .s-type-list.big label { color: #c7c9cf; }
[data-theme="dark"] .s-type-list.big label.active::before { background: linear-gradient(to right, transparent 0%, #283593 100%); }
[data-theme="dark"] .super-search-fm .form-control { background: transparent; color: #c7c9cf; border-color: #e6c977; }
[data-theme="dark"] #btn_search { background: transparent; color: #e5c977; }
[data-theme="dark"] #btn_search:hover { background: rgba(230, 201, 119, .12); filter: none; }
[data-theme="dark"] .search-type input:checked + label span { color: #e5c977 !important; }
[data-theme="dark"] .search-type input:checked + label::before { border-color: #e6c977 transparent transparent; }

/* 响应式 */
@media (max-width: 767px) {
    .header-big { padding: 30px 12px 20px; }
    .super-search-fm .form-control { font-size: 14px; }
    .s-type-list.big label { font-size: 16px; }
    .s-type-list.big label.active::before { width: 76px; margin-left: -38px; bottom: 12px; }
}
@media (max-width: 370px) {
    .search-type li label { padding: 5px 8px; font-size: 13px; }
}

/* ================= 内容布局 ================= */

.customize-width { max-width: 1900px; margin: 0 auto; }

.content { padding: 10px 0 40px; }

/* 原站同款：白色圆角内容面板（14px 圆角，灰底上托白卡） */
.content-layout {
    border-radius: 14px;
    padding: 30px 30px 15px;
    background: var(--card-bg-color);
}

/* 首页两列 grid 容器本身不再叠面板 */
.content-layout.home-layout {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.content-layout > .category-block:first-child { padding-top: 4px; }

.category-block { margin-bottom: 28px; }

.category-header {
    align-items: center;
    padding: 6px 2px 5px;
    margin-bottom: 15px;
}

.category-header h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    font-size: 16px;
    flex: none;
    padding-right: 5px;
}

.category-header .site-tag { color: var(--theme-color); }

.category-more a {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--muted-color);
    padding: 3px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.category-more a:hover { color: var(--theme-color); background: var(--muted-border-color); }

/* ================= 分类区块角标（原站 hot-id 徽章：斜切高亮底） ================= */
.hot-id { display: flex; align-items: center; margin-right: 10px; }

.hot-name {
    font-size: 13px;
    margin-left: 8px;
    padding: 0 6px;
    line-height: 22px;
    height: 22px;
    display: inline-block;
    position: relative;
    color: #283593;
    font-weight: 700;
    z-index: 1;
    white-space: nowrap;
}
.hot-name::after {
    content: '';
    transform: skewX(-5deg);
    border-radius: 3px;
    background: linear-gradient(to right bottom, #f5f8ff 0%, #f4f9ff 100%);
    left: 0;
    bottom: 0;
    position: absolute;
    height: 50%;
    width: 100%;
    z-index: -1;
    box-shadow: 1px 1px 0 #d9dddf;
}
.hot-name:hover::after { background: #e7f2ff; box-shadow: 1px 1px 0 #d6dae7; }
.hot-name i { font-size: 11px; transform: scale(0.8); margin: 0 2px 0 1px; color: #f94410; }

/* 黄色款（原站 meituan） */
.hot-name.hot-yellow::after {
    box-shadow: 1px 1px 0 #e3e0ce;
    background: linear-gradient(to right bottom, #fffdf3 0%, #fff8ce 100%);
}
.hot-name.hot-yellow:hover::after { background: #fff6bd; }
/* 红色款（原站 jingdong） */
.hot-name.hot-red::after {
    box-shadow: 1px 1px 0 #ebd5d5;
    background: linear-gradient(to right bottom, #fff8f8 0%, #ffebeb 100%);
}
.hot-name.hot-red:hover::after { background: #ffe0e0; }

/* 暗色模式 */
[data-theme="dark"] .hot-name { color: #e5c977; }
[data-theme="dark"] .hot-name::after { background: #1b1d1f; box-shadow: 1px 1px 0 #373737; }
[data-theme="dark"] .hot-name:hover::after { background: #26282b; }
[data-theme="dark"] .hot-name i { color: #e5c977; }

/* 子分类 tab（原站 1:1：与标题同行横排 + 激活项黄色斜切渐变高亮垫） */
.category-tabs {
    display: flex;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 0 0 15px;
    padding: 0 2px;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-tabs .tab-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    line-height: 24px;
    color: #282a2d;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    transition: color .2s;
    white-space: nowrap;
}

.category-tabs .tab-chip:hover { color: var(--theme-color); }
.category-tabs .tab-chip.active {
    color: #283593;
    font-weight: 700;
}
/* 激活 tab：黄色斜切渐变高亮垫（原站 anchor 马克笔效果，非下划线） */
.category-tabs .tab-chip.active span { position: relative; z-index: 1; }
.category-tabs .tab-chip.active span::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: 1px;
    height: 12px;
    background: linear-gradient(to right, transparent 0%, #f6dc3e 100%);
    transform: skewX(-15deg);
    z-index: -1;
}
[data-theme="dark"] .category-tabs .tab-chip { color: #888; }
[data-theme="dark"] .category-tabs .tab-chip.active { color: #bdbfc5; }
[data-theme="dark"] .category-tabs .tab-chip.active span::after {
    background: linear-gradient(to right, transparent 0%, #283593 100%);
}

/* 旧 sub-tabs 样式保留兼容 */
.sub-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 14px;
    padding: 2px;
}

.sub-tabs a {
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--card-bg-color);
    border: 1px solid var(--main-border-color);
    color: var(--text-gray);
    font-size: 12px;
    transition: all 0.2s;
}

.sub-tabs a:hover {
    color: var(--theme-color);
    border-color: rgba(var(--theme-color-rgb), 0.4);
}

/* 子分类内容区：tab 切换显隐（原站 ajax tab 行为，SSR 渐进增强） */
.category-block .sub-block { display: none; margin-bottom: 18px; }
.category-block .sub-block.active { display: block; }
/* 无子分类的区块直接显示（未包 sub-block 的网格不受影响） */

.sub-block-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 3px solid var(--theme-color);
}

/* ================= 站点卡片网格 ================= */

/* 站点卡片网格：inline-block 布局（终极可靠，不依赖 flex/grid 列分布） */
.sites-grid {
    display: block;
    font-size: 0; /* 消除 inline-block 间空白 */
    margin: 0 -5px;
}
.sites-grid > .url-card {
    display: inline-block;
    vertical-align: top;
    width: 19%;
    margin: 0 0.5% 10px;
    font-size: 14px;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 1499px) { .sites-grid > .url-card { width: 24%; } }
@media (max-width: 1199px) { .sites-grid > .url-card { width: 24%; } }
@media (max-width: 991px)  { .sites-grid > .url-card { width: 32.3%; } }
@media (max-width: 767px)  { .sites-grid > .url-card { width: 49%; } }

/* 「合作推荐」置顶区块：大屏每行 6 张 */
@media (min-width: 1400px) {
    #term-top .sites-grid > .url-card { width: 15.6%; }
}
/* 普通分类区块：≥1200px 每行 5 张（19%+0.5%×2边距=20%），无 1500px 六列（站长明确要 5 列） */

.url-card { min-width: 0; }

.url-body { position: relative; z-index: 1; border-radius: 10px; transition: background .3s ease; }
/* 展开/hover 时当前卡层级提升，站内搜索黄圆与输入框浮于相邻卡片之上 */
.url-body:hover,
.url-body:focus-within { z-index: 3; }

/* 原站 mini 卡片：浅灰底 + 细描边，hover 无上浮、底色微深 */
.card {
    display: block;
    background: #f5f6f7;
    border: 1px solid #f1f2f3;
    border-radius: 10px;
    transition: background .3s ease;
}
[data-theme="dark"] .card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.url-body:hover .card { background: #f1f2f3; }
[data-theme="dark"] .url-body:hover .card { background: rgba(255, 255, 255, 0.07); }

.card-body { padding: 11px 12px; position: relative; }

.url-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.url-img {
    flex: none;
    width: 24px;
    height: 24px;
    margin: 0 10px 0 3px;
    border-radius: 6px;
    background: rgba(128, 128, 128, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.url-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.default-ico { font-size: 16px; color: var(--muted-color); }

.url-info { min-width: 0; flex: 1; }

.url-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 卡片描述行（原站同款：12px 灰字单行省略） */
.url-desc {
    margin: 1px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 平台小图标（原站同款：absolute 悬浮卡片右上角，不占文档流；半透明紫 hover 提亮）
   用 color alpha 实现半透明（而非 opacity 属性），让彩色标记可以不被冲淡 */
.site-togo {
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 10px 0 0;
    display: flex;
    gap: 2px;
    align-items: center;
    transition: color 0.3s;
    cursor: pointer;
    z-index: 1;
    color: rgba(40, 53, 147, 0.25);
}
.site-togo .togo-ico { font-size: 12px; width: 14px; }
.site-togo .togo-ico i { font-size: 12px; }

.url-body:hover .site-togo { color: rgba(40, 53, 147, 0.9); }
[data-theme="dark"] .site-togo { color: rgba(199, 201, 207, 0.3); }
[data-theme="dark"] .url-body:hover .site-togo { color: rgba(199, 201, 207, 0.9); }

/* hover 卡片：平台图标变各品牌色（原站同款）；APP 标记 hover 仍金黄 */
.url-body:hover .site-togo .plat-ios     { color: #555; }
.url-body:hover .site-togo .plat-android { color: #3ddc84; }
.url-body:hover .site-togo .plat-windows,
.url-body:hover .site-togo .plat-pc      { color: #0078d4; }
.url-body:hover .site-togo .plat-mac,
.url-body:hover .site-togo .plat-macos   { color: #888; }
.url-body:hover .site-togo .plat-tv      { color: #7c4dff; }
.url-body:hover .site-togo .plat-web     { color: #00a1d6; }

/* hover 卡片：站点 logo 果冻跳跃（原站同款 jumps 动画，1:1 复刻） */
@keyframes yh-jumps {
    0%   { transform: translate(0); }
    10%  { transform: translateY(8px) scaleX(1.2) scaleY(0.8); }
    30%  { transform: translateY(-5px) scaleX(1) scaleY(1) rotate(5deg); }
    50%  { transform: translateY(3px) scale(1) rotate(0); }
    55%  { transform: translateY(0) scaleX(1.1) scaleY(0.9) rotate(0); }
    70%  { transform: translateY(-5px) scaleX(1) scaleY(1) rotate(-2deg); }
    80%  { transform: translateY(0) scaleX(1) scaleY(1) rotate(0); }
    85%  { transform: translateY(2px) scaleX(1.05) scaleY(0.95); }
    100% { transform: translateY(0) scaleX(1) scaleY(1); }
}
.url-card .card:hover .url-img { animation: yh-jumps 1.2s ease 1; }

/* APP 标记（platforms 填 app 时显示）：原站 io-app 同款——金黄色文字图标，无底色，与其他平台图标风格一致 */
.togo-ico.togo-app {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #e5c977;
    letter-spacing: 0.5px;
    width: auto;
    height: auto;
}
[data-theme="dark"] .togo-ico.togo-app { background: none; color: #e5c977; }


/* ================= 列表页（原站：面包屑 + 居中大标题 + 平台筛选 tab + 右栏） ================= */
.crumbs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 2px 0;
    font-size: 13px;
    color: var(--muted-color);
}
.crumbs-nav a.crumbs { color: var(--muted-color); display: inline-flex; align-items: center; gap: 3px; }
.crumbs-nav a.crumbs:hover { color: var(--theme-color); }
.crumbs-nav .crumb-sep { font-size: 12px; opacity: .6; }
.crumbs-nav .crumb-cur { color: var(--text-color); }

.header-h1 { text-align: center; padding: 18px 0 6px; }
.header-h1 h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-color);
}

/* 平台筛选 tab（原站 header-tab：居中横排，激活紫字下划线） */
.header-tab {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 0 4px;
    margin-bottom: 10px;
    scrollbar-width: none;
}
.header-tab::-webkit-scrollbar { display: none; }
.header-tab-item {
    flex: none;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
    user-select: none;
}
.header-tab-item:hover { color: var(--theme-color); }
.header-tab-item.active {
    color: var(--theme-color);
    font-weight: 700;
    border-bottom-color: var(--theme-color);
}
[data-theme="dark"] .header-tab-item.active { color: #e5c977; border-bottom-color: #e6c977; }

/* 列表页两列布局（同详情页） */
.list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}
.list-layout .content-main { min-width: 0; }
@media (max-width: 991px) {
    .list-layout { grid-template-columns: 1fr; }
}

/* ================= 省钱小助手（原站三色彩卡 1:1） ================= */
.sheng-block .category-header { align-items: center; }
.yinghe-into {
    margin-left: 10px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #283593;
    border-radius: 5px;
    line-height: 20px;
}

.sheng-groups {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
    margin-top: 4px;
}
@media (min-width: 768px)  { .sheng-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .sheng-groups { grid-template-columns: repeat(3, 1fr); } }

.sheng-col-card { height: 100%; border-radius: 12px; padding: 16px 12px 12px; }
.sheng-golden .sheng-col-card { background: linear-gradient(to right bottom, #fff4d1 0%, #d7ca8a 100%); }
.sheng-green  .sheng-col-card { background: linear-gradient(to right bottom, #eefad6 0%, #adde9e 100%); }
.sheng-blue   .sheng-col-card { background: linear-gradient(to right bottom, #eaf8ff 0%, #c2dcf2 100%); }

.sheng-col-head { position: relative; margin-bottom: 10px; }
.sheng-col-head .hl-01 {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 700;
    color: #6a3f00;
}
.sheng-green .sheng-col-head .hl-01 { color: #007100; }
.sheng-blue  .sheng-col-head .hl-01 { color: #283593; }
/* 绿荧光高亮垫（原站 highlight-01） */
.sheng-col-head .hl-01::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 100%;
    height: 10px;
    background: #95ff88;
    opacity: .7;
    z-index: -1;
}

/* 更多徽章（原站 .more：黑半透明圆角小徽章） */
.sheng-more {
    position: absolute;
    right: 1px;
    top: 2px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 7px 7px 7px 0;
    padding: 3px 6px 2px 8px;
    color: #fff;
    font-weight: 700;
    box-shadow: inset 1px 1px 0px 0px rgba(0, 0, 0, 0.25), 1px 1px 0px rgba(255, 255, 255, 0.6);
}
.sheng-more:hover { background: rgba(0, 0, 0, 0.5); color: #fff; }
.sheng-more i { font-size: 11px; }

/* 白底行卡 */
.sheng-list { display: flex; flex-direction: column; gap: 6px; }
.sheng-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    color: rgba(0, 0, 0, 0.85);
    font-size: 14px;
    transition: transform .15s;
}
.sheng-item:hover { transform: translateY(-1px); color: #283593; }
.sheng-ico {
    flex: none;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 15px;
    color: var(--theme-color);
}
.sheng-ico.is-img { background: transparent; }
.sheng-ico img { width: 22px; height: 22px; object-fit: contain; }
.sheng-item strong { flex: none; font-weight: 600; color: rgba(0, 0, 0, 0.85); }
.sheng-item:hover strong { color: #283593; }
.sheng-desc {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: #888;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sheng-arrow { flex: none; font-size: 12px; opacity: .3; }

/* 暗色模式 */
[data-theme="dark"] .sheng-golden .sheng-col-card,
[data-theme="dark"] .sheng-green .sheng-col-card,
[data-theme="dark"] .sheng-blue .sheng-col-card { background: #2a2d30; }
[data-theme="dark"] .sheng-col-head .hl-01 { color: #e8c977; }
[data-theme="dark"] .sheng-green .sheng-col-head .hl-01,
[data-theme="dark"] .sheng-blue .sheng-col-head .hl-01 { color: #e8c977; }
[data-theme="dark"] .sheng-item { background: #1f2123; color: #ddd; }
[data-theme="dark"] .sheng-item strong { color: #ddd; }
[data-theme="dark"] .sheng-desc { color: #777; }

/* ================= 三级分组列表（原站工具箱 ai-site 1:1） ================= */
.ai-groups {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
    margin-top: 4px;
}
@media (min-width: 576px)  { .ai-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .ai-groups { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .ai-groups { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .ai-groups { grid-template-columns: repeat(5, 1fr); } }

.ai-site-card {
    height: 100%;
    border-radius: 10px;
    padding: 15px 10px 10px;
    background:
        radial-gradient(92.81% 48.44% at -24.53% -16.02%, #eeffe4 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(75.78% 68.16% at 56.74% -24.02%, #fff8d7 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(160.86% 46.39% at 177.14% -15.62%, #ffe9e9 9.06%, rgba(255, 255, 255, 0) 100%),
        #f1f2f3;
}

/* 组标题：居中 + 黄色马克笔高亮（与 tab 激活同款手法） */
.sitetag-group-title {
    display: flex;
    justify-content: center;
    padding-bottom: 12px;
    font-size: 15px;
}
.sitetag-group-title .hl-mark {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: #283593;
    padding: 0 3px;
}
.sitetag-group-title .hl-mark::after {
    content: '';
    position: absolute;
    left: -3px;
    right: -3px;
    bottom: 0;
    height: 50%;
    background: linear-gradient(to right, transparent 0%, #f6dc3e 100%);
    transform: skewX(-15deg);
    z-index: -1;
}

/* 站点列表白卡 */
.sitetag-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 0 15px;
}

/* 站点行：图标 + 名称 + 右箭头，描述在行内下方 */
.yh-block .yh-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    overflow: hidden;
}
.yh-block + .yh-block .yh-link { border-top: 1px solid #f1f2f3; }
.ai-site-info .yh-link { padding-bottom: 30px; }
.yh-link img { width: 16px; height: 16px; object-fit: contain; margin-right: 7px; flex: none; }
.yh-link strong {
    flex: 1;
    min-width: 0;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yh-link i { font-size: 13px; opacity: .35; margin-left: 4px; flex: none; }
.yh-link em {
    position: absolute;
    bottom: 8px;
    left: 23px;
    right: 20px;
    font-size: 12px;
    font-style: normal;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yh-link:hover strong { color: #283593; }

/* 暗色模式 */
[data-theme="dark"] .ai-site-card { background: #1f2123; }
[data-theme="dark"] .sitetag-group-title .hl-mark { color: #e5c977; }
[data-theme="dark"] .sitetag-group-title .hl-mark::after { background: linear-gradient(to right, transparent 0%, #283593 100%); }
[data-theme="dark"] .sitetag-box { background: #2a2d30; }
[data-theme="dark"] .yh-block + .yh-block .yh-link { border-top-color: #333; }
[data-theme="dark"] .yh-link strong { color: #ddd; }
[data-theme="dark"] .yh-link { color: #999; }

/* ================= 站点下载弹窗（原站 sitewindow 1:1） ================= */
.sitewindow {
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    display: none;
    background-color: rgba(0, 0, 0, 0.38);
}
.sitewindow.open { display: flex; }

.yinghe-window-body { margin: 0 auto; padding: 10px; width: 380px; max-width: calc(100vw - 40px); }

.yinghe-window-bg {
    position: relative;
    padding: 20px 10px 10px;
    border-radius: 18px;
    background:
        radial-gradient(92.81% 48.44% at -24.53% -16.02%, #e4fcff 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(75.78% 68.16% at 56.74% -24.02%, #fcffda 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(160.86% 46.39% at 177.14% -15.62%, #ffc8c8 9.06%, rgba(255, 255, 255, 0) 100%),
        #f0f7f9;
}

.window-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #666;
    font-size: 16px;
}
.window-close:hover { background: rgba(0, 0, 0, 0.12); color: #333; }

.yinghe-window-title {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.92);
    text-align: center;
    padding: 0 0 15px;
    font-weight: 700;
}
.yinghe-window-applogo { margin: -70px 0 10px 0; }
.yinghe-window-applogo img {
    height: 90px;
    width: 90px;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.yinghe-window-appdesc { font-size: 14px; color: #666; font-weight: 400; margin-top: 4px; }

.yinghe-window-main { padding: 0 10px; background: transparent; }

.yinghe-window-applist {
    position: relative;
    box-shadow: 0px 0 10px #ebf2f8;
    padding: 15px 20px;
    background: #fff;
    margin-top: 10px;
    border-radius: 10px;
    display: flex;
    color: var(--text-color);
}
.yinghe-window-applist:hover { color: inherit; background: linear-gradient(to right top, #fcfcf0 0%, #fff 100%); }
.yinghe-window-applist .icon { padding: 1px 10px 0 0; }
.yinghe-window-applist .icon i { font-size: 17px; width: 16px; color: #1bcb00; }
.yinghe-window-applist .info { flex: 1; min-width: 0; }
.yinghe-window-applist .name { font-size: 16px; }
.yinghe-window-applist .desc { font-size: 13px; color: #444; margin-top: 4px; }
.yinghe-window-applist .desc ol { margin: 0; padding-left: 18px; list-style: decimal; }
.yinghe-window-applist .desc ol li { margin: 2px 0; }
.yinghe-window-applist .down { position: absolute; right: 20px; top: 20px; }
.down-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #283593;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    padding: 5px 10px;
}
.down-link i { font-size: 12px; }
.down-link span { font-size: 12px; }
.yinghe-window-applist:hover .down-link { background: #1f2870; }

/* 暗色模式 */
[data-theme="dark"] .yinghe-window-bg { background: #1f2123; }
[data-theme="dark"] .yinghe-window-title { color: #e8e8e8; }
[data-theme="dark"] .yinghe-window-appdesc { color: #999; }
[data-theme="dark"] .yinghe-window-applist { background: #2a2d30; box-shadow: 0 0 10px rgba(0,0,0,.3); }
[data-theme="dark"] .yinghe-window-applist .desc { color: #bbb; }
[data-theme="dark"] .window-close { background: rgba(255,255,255,.08); color: #ccc; }

/* ================= 卡片站内搜索（原站同款：hover 出黄色圆形放大镜 → 点击展开输入框） ================= */
.site-mini-search {
    position: absolute;
    bottom: -5px;
    right: -5px;
    z-index: 2;
}
.mini-search:hover .site-mini-search { cursor: pointer; }
.mini-search.display { background: #f1f2f3; }
[data-theme="dark"] .mini-search.display { background: rgba(255, 255, 255, 0.07); }
.mini-search.display .site-mini-search { width: calc(100% - 49px); }

.site-mini-btn {
    pointer-events: none;
    text-align: center;
    height: 35px;
    width: 35px;
    line-height: 32px;
    transition: all .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
/* 黄色圆形底：默认缩成小点，hover/展开时放大（z-index:0 在卡片背景之上，放大镜在其上） */
.site-mini-btn::after {
    transition: all .2s;
    transform: scale(0.18);
    transform-origin: center center;
    border: 5px solid #fff;
    content: '';
    height: 100%;
    width: 35px;
    box-sizing: content-box;
    z-index: 0;
    background: linear-gradient(to top left, #ffe149 0%, #fffbdf 100%);
    display: block;
    top: -5px;
    right: -5px;
    position: absolute;
    border-radius: 50px;
}
.site-mini-btn i {
    font-size: 15px;
    width: 35px;
    line-height: 35px;
    font-weight: 700;
    color: #283593;
    opacity: 0;
    transition: all .3s;
    position: relative;
    z-index: 1;
}
.mini-search.display .site-mini-btn::after,
.mini-search:hover .site-mini-btn::after { transform: scale(1); }
.mini-search.display .site-mini-btn i,
.mini-search:hover .site-mini-btn i { opacity: 1; transition-delay: .1s; }
.mini-search.display .site-mini-btn { pointer-events: auto; position: absolute; right: 0; bottom: 0; }

.site-mini-input {
    transition: width .2s;
    outline: 0;
    font-size: 12px;
    border: 0;
    border-radius: 20px;
    height: 0;
    z-index: -2;
    position: absolute;
    right: 5px;
    bottom: 17px;
    width: 0;
    background: none;
    box-shadow: none;
}
.site-mini-input::placeholder { color: transparent; }
.mini-search.display .site-mini-input {
    padding: 0 0 0 15px;
    width: 100%;
    background: #fff;
    color: var(--text-color);
    right: 10px;
    height: 35px;
    bottom: 0;
    z-index: 0;
    box-shadow: 1.2rem 0.2rem 0.5rem rgba(0, 0, 0, 0.05), -1rem 1.5rem 2.2rem rgba(0, 0, 0, 0.1);
}
.mini-search.display .site-mini-input::placeholder { color: #999; }
.mini-search.display .url-info { opacity: 0; }
/* 暗色模式：按钮改深蓝渐变 */
[data-theme="dark"] .site-mini-btn::after {
    border-color: #2c2e2f;
    background: linear-gradient(to top left, #27348e 0%, #3c4797 100%);
}
[data-theme="dark"] .site-mini-btn i { color: #e5c977; }
[data-theme="dark"] .mini-search.display .site-mini-input { background: #1f2123; }


.togo-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--muted-color);
    transition: color .15s;
}

/* 卡片内平台图标继承 .site-togo 的紫色（原站 #283593） */
.url-body .togo-ico { color: inherit; }

/* 「网站详情」折角（原站 io-sanjiao：右上实心小三角，无平台图标时显示；整区点击进详情页） */
.detail-tri {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 9px 9px 0;
    border-color: transparent currentColor transparent transparent;
    display: block;
    margin-top: 2px;
}
/* 原站平台图标始终统一紫色半透明，无 hover 彩色变化 */

/* 黑底气泡 tooltip（原站 Bootstrap tooltip 同款：黑底白字 + 底部小三角，用于图标 data-tip） */
[data-tip] { position: relative; }
[data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}
[data-tip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 5px 5px 0;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent;
    z-index: 100;
    pointer-events: none;
}
/* 防溢出：多个图标时最右的右对齐、最左的左对齐（唯一子元素保持居中，避免 left/right 冲突） */
.site-togo [data-tip]:last-child:not(:first-child):hover::after { left: auto; right: -4px; transform: none; }
.site-togo [data-tip]:last-child:not(:first-child):hover::before { left: auto; right: 8px; transform: none; }
.site-togo [data-tip]:first-child:not(:last-child):hover::after { left: -4px; transform: none; }
.site-togo [data-tip]:first-child:not(:last-child):hover::before { left: 8px; transform: none; }

/* 站点彩色标记（原站 fufei 橙红 / warn 橙，不受容器半透明约束） */
.url-body .togo-mark { opacity: 1; }
.togo-mark.mark-pay { color: #ff3700; }
.togo-mark.mark-warn { color: #ff9500; }
[data-theme="dark"] .togo-mark.mark-pay { color: #ff5c33; }
[data-theme="dark"] .togo-mark.mark-warn { color: #ffb020; }

.site-togo-lg { position: static; opacity: 1; transform: none; margin-top: 10px; pointer-events: auto; gap: 4px; }
.site-togo-lg .togo-ico { width: 30px; height: 30px; font-size: 16px; }

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-color);
}

.empty-tip i { font-size: 52px; color: var(--muted-color); }
.empty-tip p { margin: 12px 0 4px; font-size: 15px; }
.empty-tip .text-muted { font-size: 13px; }
.empty-tip .btn-back-home { display: inline-flex; margin-top: 16px; }

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 20px;
    background: var(--theme-color);
    color: #fff !important;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-back-home:hover { opacity: 0.88; }

/* 分页 */
.pagination-wrap { margin: 24px 0 8px; text-align: center; }
.pagination-wrap a, .pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    margin: 0 3px;
    border-radius: 6px;
    background: var(--card-bg-color);
    border: 1px solid var(--main-border-color);
    color: var(--text-color);
    font-size: 13px;
}
.pagination-wrap .cur, .pagination-wrap a:hover { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }

/* ================= 文章/站点详情 ================= */

.site-detail-head { margin-bottom: 14px; }

.site-detail-head .card-body { padding: 18px; }

.site-detail-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.url-img-lg { width: 64px; height: 64px; border-radius: 12px; }
.url-img-lg img { width: 40px; height: 40px; }
.url-img-lg .default-ico { font-size: 28px; }

.site-detail-title {
    font-size: 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.top-flag {
    display: inline-flex;
    padding: 1px 8px;
    border-radius: 4px;
    background: rgba(var(--theme-color-rgb), 0.12);
    color: var(--theme-color);
    font-size: 12px;
    font-weight: 500;
}

.site-detail-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.site-detail-meta span, .site-detail-meta a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-color); }
.site-detail-meta i { font-size: 14px; }

.site-detail-url {
    margin-top: 6px;
    color: var(--muted-color);
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-detail-action { display: flex; flex-direction: column; align-items: flex-end; }

.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 26px;
    border-radius: 22px;
    background: var(--theme-color);
    color: #fff !important;
    font-size: 14px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-visit:hover { opacity: 0.88; transform: translateY(-1px); }

/* 正文 */
.site-detail-content { padding: 22px; line-height: 1.8; overflow-wrap: break-word; }

.site-detail-content h1, .site-detail-content h2, .site-detail-content h3 { margin: 18px 0 10px; color: var(--text-color); }
.site-detail-content p { margin: 0 0 12px; }
.site-detail-content img { border-radius: var(--main-radius); max-width: 100%; }
.site-detail-content pre {
    background: var(--main-bg-color);
    padding: 12px;
    border-radius: var(--main-radius);
    overflow-x: auto;
    font-size: 13px;
}
.site-detail-content blockquote {
    margin: 12px 0;
    padding: 8px 14px;
    border-left: 3px solid var(--theme-color);
    background: var(--muted-border-color);
    border-radius: 0 6px 6px 0;
    color: var(--text-gray);
}
.site-detail-content table { border-collapse: collapse; width: 100%; }
.site-detail-content table td, .site-detail-content table th { border: 1px solid var(--main-border-color); padding: 6px 10px; }
.site-detail-content a { text-decoration: underline; }

/* ================= 内容页 1:1（面包屑 / 站点头部 / 正文） ================= */

/* 面包屑 */
#breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    margin: 14px auto 12px;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-color);
}
#breadcrumb a { color: var(--muted-color); display: inline-flex; align-items: center; gap: 3px; }
#breadcrumb a:hover { color: var(--theme-color); }
#breadcrumb .crumb-sep { font-size: 14px; color: var(--muted-color); opacity: .6; margin: 0 3px; }
#breadcrumb .crumb-cur { color: var(--text-color); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 内容页主卡（顶部紫色边条） */
.single-layout {
    position: relative;
    background: var(--card-bg-color);
    border: 1px solid var(--muted-border-color);
    border-top: 4px solid var(--theme-color);
    border-radius: 4px 4px 14px 14px;
    padding: 30px;
    margin-bottom: 14px;
}

/* 站点头部（负边距贴卡顶 + 投影，同原站） */
.site-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 30px;
    margin: -30px -30px 0;
    border-radius: 4px 4px 0 0;
    background: var(--card-bg-color);
    box-shadow: 0 26px 40px -30px rgba(0, 36, 100, .3);
    z-index: 2;
}

.site-header-icon {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.site-header-icon img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.site-header-icon .default-ico { font-size: 32px; color: var(--muted-color); }

.site-header-info { min-width: 0; }

.site-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.site-header-information { font-size: 14px; }

/* 数据条（灰色斜切小片，同原站） */
.site-data { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.site-header-information-list {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 14px 4px 12px;
    font-size: 14px;
    color: var(--text-color);
}
.site-header-information-list::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 5px;
    transform: skewX(-5deg);
    background: var(--main-bg-color);
}
.site-header-information-list i { font-size: 14px; color: var(--muted-color); }
.site-header-information-list strong { font-size: 12px; font-weight: 600; }
.site-header-information-list:hover i,
a.site-header-information-list:hover { color: var(--theme-color); }

/* 编辑链接混入数据条 */
.site-data .log-edit {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 3px 14px 4px 12px;
    font-size: 12px;
    color: var(--muted-color);
}
.site-data .log-edit::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 5px;
    transform: skewX(-5deg);
    background: var(--main-bg-color);
}
.site-data .log-edit:hover { color: var(--theme-color); }

/* 右侧按钮组 */
.site-header-go {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
.site-go { display: flex; align-items: center; gap: 10px; }

.site-go-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    line-height: 38px;
    padding: 0 15px 0 20px;
    border: 1px solid var(--theme-color);
    border-radius: 10px;
    background: var(--theme-color);
    color: #fff !important;
    font-size: 14px;
    transition: opacity .2s, transform .2s;
}
.site-go-btn:hover { opacity: .9; transform: translateY(-1px); }
.site-go-btn i { font-size: 14px; }
.site-go-btn.qr-img { position: relative; padding: 0 12px; cursor: pointer; }
.site-go-btn.qr-img i { font-size: 18px; }

/* 二维码悬浮层（固定宽度：父按钮仅 ~44px，absolute shrink-to-fit 会被压成竖条） */
.site-qr-pop {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: none;
    width: 172px;
    padding: 10px 10px 8px;
    background: var(--card-bg-color);
    border: 1px solid var(--muted-border-color);
    border-radius: 10px;
    box-shadow: 0 12px 32px var(--shadow-hover);
    text-align: center;
}
.site-qr-pop img { display: block; width: 150px; height: 150px; max-width: none; border-radius: 6px; margin: 0 auto; }
.site-qr-pop em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--muted-color); white-space: nowrap; }
.site-go-btn.qr-img:hover .site-qr-pop,
.site-go-btn.qr-img.open .site-qr-pop { display: block; }

/* 正文区 */
.panel-body.single {
    min-height: 200px;
    padding: 35px 0 15px;
}

/* 小节标题：黄色双竖条（同原站 single-title-line） */
.panel-body.single h2 {
    position: relative;
    margin: 30px 0 10px !important;
    padding: 5px 0 !important;
    border: 0 !important;
    font-size: 18px !important;
    font-weight: 700;
    color: var(--text-color);
}
.panel-body.single h2:first-child { margin-top: 0 !important; }
.panel-body.single h2::before,
.panel-body.single h2::after {
    content: "";
    position: absolute;
    bottom: 7px;
    height: 20px;
    width: 8px;
    background: #f6dc3e;
}
.panel-body.single h2::before { left: -30px; }
.panel-body.single h2::after  { left: -28px; transform: skewX(-10deg); }

.panel-body.single h3 { margin: 18px 0 10px; font-size: 15px; color: var(--text-color); }

.panel-body.single ul li,
.panel-body.single ol li { list-style: disc; margin-left: 22px; padding-left: 4px; color: var(--text-color); }
.panel-body.single ol li { list-style: decimal; }
.panel-body.single ul li::marker,
.panel-body.single ol li::marker { color: var(--theme-color); font-weight: 700; }

/* 代码块 + 一键复制（同原站 code-body / copycode） */
.code-body { position: relative; margin-bottom: 12px; }

.copycode { position: relative; margin: 8px 0; line-height: 1.5; }
.copycode code,
.copycode pre {
    display: block;
    margin: 0;
    padding: 15px 60px 15px 15px;
    background: var(--main-bg-color);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-color);
    word-break: break-all;
    white-space: pre-wrap;
}
.copycode .copy {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    padding: 6px 8px;
    border-radius: 6px;
    background: #d4d4d4;
    color: rgba(0, 0, 0, .85);
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
    text-decoration: none !important;
}
.copycode:hover .copy { opacity: 1; }
.copycode .copy.copyed { background: #cfe9cf; color: green; opacity: 1; }
.copycode .copy.copyerror { background: #eddede; color: red; opacity: 1; }

/* 暗色模式 */
[data-theme="dark"] .single-layout { border-top-color: #595959; }
[data-theme="dark"] .site-header { box-shadow: 0 26px 40px -30px rgba(0, 0, 0, .4); }
[data-theme="dark"] .panel-body.single h2::before,
[data-theme="dark"] .panel-body.single h2::after { background: #e6c977; }
[data-theme="dark"] .copycode .copy { background: #242424; color: #e7eaee; }

/* 响应式 */
@media (max-width: 768px) {
    .single-layout { padding: 20px; }
    .site-header { flex-wrap: wrap; padding: 20px; margin: -20px -20px 0; }
    .site-name { font-size: 20px; }
    .site-header-go { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; }
    .panel-body.single h2::before { left: -20px; width: 5px; }
    .panel-body.single h2::after { left: -18px; width: 5px; }
    #breadcrumb .crumb-cur { max-width: 100%; }
}

.page-title { font-size: 22px; margin-bottom: 6px; }
.page-meta { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--muted-border-color); }

.log-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.log-tag {
    padding: 2px 10px;
    border-radius: 4px;
    background: var(--muted-border-color);
    color: var(--text-gray);
    font-size: 12px;
}
.log-tag:hover { color: var(--theme-color); }

/* 邻近文章 */
.neighbor-wrap { padding: 12px 18px; margin-bottom: 14px; }
.neighbor-log { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.neighbor-log a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-gray);
    font-size: 13px;
    max-width: 48%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.neighbor-log a:hover { color: var(--theme-color); }

/* ================= 评论 ================= */

.comments, .comment-post { margin-top: 20px; }

.block-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 14px;
}

.block-title i { color: var(--theme-color); }

.comment-list > .comment-item { margin-bottom: 14px; }

.comment-item {
    display: flex;
    gap: 10px;
    background: var(--card-bg-color);
    border: 1px solid var(--muted-border-color);
    border-radius: var(--main-radius);
    padding: 12px;
}

.comment-item .comment-item { border: 0; padding: 10px 0 0; background: transparent; }

.comment-avatar img { width: 36px; height: 36px; border-radius: 50%; }

.comment-children { margin-left: 44px; }

.comment-main { flex: 1; min-width: 0; }

.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted-color);
}

.comment-poster { font-weight: 600; color: var(--text-color); font-size: 13px; }
.comment-reply { margin-left: auto; color: var(--theme-color); cursor: pointer; }

.comment-content { margin-top: 6px; font-size: 14px; word-break: break-word; }

.comment-post .card { padding: 20px; }

.comment-user { font-size: 13px; color: var(--text-gray); margin-bottom: 10px; }

.comment-form-row { margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.comment-form-row input[type="text"],
.comment-form-row input[type="email"],
.comment-form-row input[type="password"] {
    flex: 1;
    min-width: 140px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius);
    background: var(--main-bg-color);
    color: var(--text-color);
    outline: none;
}

.comment-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius);
    background: var(--main-bg-color);
    color: var(--text-color);
    outline: none;
    resize: vertical;
    font-family: inherit;
}

.comment-form-row input:focus, .comment-form-row textarea:focus { border-color: rgba(var(--theme-color-rgb), 0.5); }

.verify-row { align-items: center; }
.verify-row input[type="text"] { max-width: 120px; flex: none; }
.verify-row img { height: 38px; border-radius: 6px; cursor: pointer; }

.btn-comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 22px;
    border: 0;
    border-radius: 20px;
    background: var(--theme-color);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-comment-submit:hover { opacity: 0.88; }

.cancel-reply { display: inline-block; font-size: 12px; color: var(--muted-color); margin-bottom: 8px; }

/* ================= 404 / 密码页 ================= */

.error-wrap, .pw-wrap { text-align: center; padding: 40px 0; }
.error-wrap i, .pw-wrap i { font-size: 56px; color: var(--muted-color); }
.error-wrap p, .pw-wrap p { margin: 14px 0 4px; }
.pw-form { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pw-form input[type="password"] {
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--main-border-color);
    border-radius: 20px;
    background: var(--main-bg-color);
    color: var(--text-color);
    outline: none;
}
.pw-form .btn-back-home { height: 40px; }

/* ================= 页脚 ================= */

/* ================= 首页两列布局 + 右侧栏 ================= */
.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}
/* 详情页两列布局（主区 + 右侧栏，原站同款） */
.single-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}
.single-content .content-wrap { min-width: 0; }
.content-main { min-width: 0; }
.content-aside {
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.aside-card {
    background: var(--card-bg-color);
    border: 1px solid var(--main-border-color, #e6e8ee);
    border-radius: var(--main-radius, 8px);
    padding: 10px 0 8px;
    box-shadow: 0 2px 8px var(--shadow-color, rgba(0,0,0,.04));
    overflow: hidden;
}
/* 最新/热门 tab —— 原站同款：纯文字，激活加粗紫 + 黄色斜切高亮块 */
.aside-tabs {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 16px 10px;
}
.aside-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    line-height: 24px;
    color: var(--text-gray);
    cursor: pointer;
    text-decoration: none;
    transition: color .2s;
}
.aside-tab span { position: relative; z-index: 1; }
.aside-tab::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 1px;
    height: 0;
    z-index: 0;
    transform: skewX(-15deg);
    background: linear-gradient(to right, transparent 0%, #f6dc3e 100%);
    opacity: 0;
    transition: height .2s, opacity .2s;
}
.aside-tab:hover { color: var(--theme-color); }
.aside-tab.active {
    color: var(--theme-color);
    font-weight: 700;
}
.aside-tab.active::after { height: 12px; opacity: .85; }

/* 站点列表：图标 + 名称（原站同款：紧凑纯文字行，无背景块） */
.aside-list { list-style: none; margin: 0; padding: 2px 8px 0; }
.aside-tab-panel { display: none; }
.aside-tab-panel.active { display: block; }
.aside-list li { margin: 0; }
.aside-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 4px;
    font-size: 13px;
    color: var(--text-color);
    text-decoration: none;
    transition: color .15s;
    line-height: 1.4;
}
.aside-list li a:hover { color: var(--theme-color); }
.aside-ico {
    flex: none;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.aside-ico img { width: 100%; height: 100%; object-fit: contain; }
.aside-ico:empty::before,
.aside-ico.ico-broken::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #d4d8e2;
}
.aside-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.aside-empty { color: var(--text-gray); font-size: 12px; text-align: center; padding: 18px 0 !important; }

/* 硬核福利社 —— 原站同款金色渐变卡 */
.aside-welfare {
    background: linear-gradient(to right bottom, #f9ecc4 0%, #eadfab 100%);
    border: 0;
    padding: 0;
}
.aside-welfare-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 16px 10px;
}
.welfare-head-title { font-size: 16px; font-weight: 700; color: #6a3f00; }
.welfare-head-sub { font-size: 12px; color: #a07c2c; }
.welfare-list { list-style: none; margin: 0; padding: 0 5px 5px; }
.welfare-list li {
    background: #fff;
    border-top: 1px dashed #eadfab;
}
.welfare-list li:first-child { border-top: 0; border-radius: 8px 8px 0 0; }
.welfare-list li:last-child { border-radius: 0 0 8px 8px; }
.welfare-list li:only-child { border-radius: 8px; }
.welfare-list li.aside-empty { background: transparent; color: #a07c2c; }
.welfare-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    color: var(--text-color);
    text-decoration: none;
    transition: background .15s;
    border-radius: inherit;
}
.welfare-list li a:hover { background: linear-gradient(to left bottom, #b7ffac 0%, #fff 35%); }
.welfare-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; flex: 1 1 auto; }
.welfare-title {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
.welfare-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 100%;
    height: 8px;
    z-index: -1;
    opacity: .7;
    background: #95ff88;
}
.welfare-desc { font-size: 11.5px; color: #8a8a8a; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.welfare-logo {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f6f1de;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #b78d1e;
    font-size: 17px;
}
.welfare-logo img { width: 80%; height: 80%; object-fit: contain; }
/* 图片 logo 与原站一致：无圆形底色，彩色品牌图直接显示 */
.welfare-logo.logo-img { background: transparent; }
[data-theme="dark"] .welfare-logo.logo-img { background: transparent; }

/* 暗黑模式下的福利社 */
[data-theme="dark"] .aside-welfare { background: #2d2e2f; }
[data-theme="dark"] .welfare-head-title { color: #e6c977; }
[data-theme="dark"] .welfare-head-sub { color: #8a7a4a; }
[data-theme="dark"] .welfare-list li { background: rgba(255,255,255,.03); border-top-color: #2d2e2f; }
[data-theme="dark"] .welfare-title { color: #ddd; }
[data-theme="dark"] .welfare-title::after { background: #3a4d1e; }
[data-theme="dark"] .welfare-desc { color: #808080; }
[data-theme="dark"] .welfare-logo { background: rgba(255,255,255,.08); color: #e6c977; }
[data-theme="dark"] .aside-ico { background: transparent; }

/* 移动端右侧栏隐藏 */
@media (max-width: 991px) {
    .home-layout { grid-template-columns: 1fr; }
    .single-content { grid-template-columns: 1fr; }
    .content-aside { position: static; }
}

/* ================= 详情页右侧栏：热门标签彩色 chips（原站同款） ================= */
.aside-tags { padding-bottom: 12px; }
.aside-tags-head { padding: 6px 15px 2px; }
.aside-tags-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-gray);
}
.aside-tags .tags { padding: 5px 10px 0; }
.aside-tags .tags a {
    display: inline-block;
    margin: 5px 3px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    transition: filter .2s;
}
.aside-tags .tags a:hover { filter: brightness(0.92); }
/* 原站五色循环 */
.tags a.color-0, .tags a.color-5 { color: #f1404b; background-color: rgba(249, 100, 90, .15); }
.tags a.color-1, .tags a.color-6 { color: #20a0ff; background-color: rgba(32, 158, 255, .15); }
.tags a.color-2, .tags a.color-7 { color: #39c408; background-color: rgba(58, 196, 8, .15); }
.tags a.color-3, .tags a.color-8 { color: #ff8400; background-color: rgba(255, 131, 0, .15); }
.tags a.color-4, .tags a.color-9 { color: #837adc; background-color: rgba(132, 122, 220, .15); }
[data-theme="dark"] .tags a.color-0, [data-theme="dark"] .tags a.color-5 { background-color: rgba(249, 100, 90, .22); }
[data-theme="dark"] .tags a.color-1, [data-theme="dark"] .tags a.color-6 { background-color: rgba(32, 158, 255, .22); }
[data-theme="dark"] .tags a.color-2, [data-theme="dark"] .tags a.color-7 { background-color: rgba(58, 196, 8, .22); }
[data-theme="dark"] .tags a.color-3, [data-theme="dark"] .tags a.color-8 { background-color: rgba(255, 131, 0, .22); }
[data-theme="dark"] .tags a.color-4, [data-theme="dark"] .tags a.color-9 { background-color: rgba(132, 122, 220, .22); }

/* ================= 页脚（1:1 原站） ================= */

.main-footer { margin-top: auto; }

/* Ctrl+D 收藏提示 */
.ctrld {
    text-align: center;
    padding: 45px 0;
    height: 130px;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    color: var(--text-color);
    overflow: hidden;
}
/* 原站同款大号浅色水印（原站是 YINGHE.APP 背景图，这里用站点域名文字生成） */
.ctrld::after {
    content: attr(data-watermark);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    font-size: 92px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.045);
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    font-family: Arial, "Helvetica Neue", sans-serif;
}
[data-theme="dark"] .ctrld::after { color: rgba(255, 255, 255, 0.05); }
.ctrld-main { position: relative; z-index: 2; }
.ctrld-main > span a { color: var(--theme-color); margin: 0 5px; }
.ctrld-pc { display: inline-block; }
.ctrld-pc span {
    position: relative;
    color: #030405;
    border: 1px solid silver;
    border-radius: 3px;
    height: 3em;
    width: 3em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background-image: linear-gradient(#f5f5f5, #fff);
    margin: auto;
    vertical-align: middle;
}
.ctrld-pc span::before {
    content: '';
    box-sizing: content-box;
    position: absolute;
    border: 2px solid rgba(240, 240, 240, 0.9);
    border-top: 1px solid rgba(240, 240, 240, 0.9);
    border-bottom: 7px solid rgba(240, 240, 240, 0.9);
    border-radius: 3px;
    top: 0; bottom: 0; left: 0; right: 0;
    background-color: rgba(255, 255, 255, 0.1);
}
.ctrld-pc em { padding: 0 5px; }
.ctrld-pc span:first-child { margin-left: 15px; }
.ctrld-pc span:last-child { margin-right: 15px; }
[data-theme="dark"] .ctrld-pc span {
    color: #fff;
    border: 1px solid #232323;
    background-image: linear-gradient(#0c0c0c, #000);
}
[data-theme="dark"] .ctrld-pc span::before {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    border-bottom: 7px solid rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

/* 版权行：左版权右链接（链接带斜杠分隔） */
.footer { padding: 0 30px 25px; }
.footer-inner { line-height: 1.9; }
.footer-copyright { color: var(--muted-color); }
.footer-copyright > a { color: var(--text-gray); }
.footer-copyright > a:hover { color: var(--theme-color); }
.footer-link { float: right; }
.footer-link a { position: relative; margin-left: 20px; color: var(--text-gray); }
.footer-link a:hover { color: var(--theme-color); }
.footer-link a::before {
    content: '';
    display: inline-block;
    height: 80%;
    width: 2px;
    background-color: #e7e3e3;
    margin-left: -12px;
    position: absolute;
    top: 2px;
    transform: rotateZ(15deg);
}
.footer-link a:first-child::before { width: 0; }
[data-theme="dark"] .footer-link a::before { background: #55575b; }

/* 右上角三角丝带：日/夜切换 */
.switch-dark-mode {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1100;
    height: 44px;
    width: 44px;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
}
.switch-dark-mode::after {
    content: '';
    background: #1f2551;
    height: 100px;
    width: 100px;
    display: inline-block;
    position: absolute;
    right: -66px;
    top: -66px;
    transform: rotateZ(45deg);
    z-index: 0;
    pointer-events: auto;
}
.switch-dark-mode i {
    position: relative;
    z-index: 1;
    display: block;
    color: #fff;
    width: 40px;
    text-align: right;
    line-height: 22px;
    font-size: 12px;
    padding-right: 5px;
}

/* 右侧悬浮工具 */
#footer-tools {
    position: fixed;
    bottom: 80px;
    right: 10px;
    display: flex;
    flex-direction: column;
    z-index: 1050;
}
#footer-tools .btn {
    width: 40px;
    height: 40px;
    margin: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(210, 210, 210, 0.58);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 10px;
    color: #555;
    cursor: pointer;
    transition: opacity .25s, transform .25s, visibility .25s;
}
#footer-tools .btn:hover { color: #333; }
#footer-tools .btn i { font-size: 20px; color: var(--theme-color); }
#footer-tools .btn span { display: none; }
#footer-tools .go-up { opacity: 0; visibility: hidden; transform: translateY(8px); }
#footer-tools .go-up.show { opacity: 1; visibility: visible; transform: translateY(0); }
[data-theme="dark"] #footer-tools .btn { color: #ccc; background: rgba(10, 10, 10, 0.4); }
[data-theme="dark"] #footer-tools .btn:hover { color: #fff; }
[data-theme="dark"] #footer-tools .btn i { color: #ccc; }

/* ================= 响应式 ================= */

/* ≤1100px：三角丝带缩小、Ctrl+D 键帽隐藏 */
@media (max-width: 1100px) {
    .switch-dark-mode { transform: scale(0.8); transform-origin: top right; }
    .ctrld-pc { display: none; }
}

@media (max-width: 767.98px) {
    /* 侧栏改移动端抽屉（内部恢复横排布局） */
    .sidebar-nav { transform: translateX(-100%); width: 200px; z-index: 2000; }
    body.sidebar-open .sidebar-nav { transform: translateX(0); }
    .sidebar-menu { width: 200px; }
    .sidebar-logo { height: 80px; }
    .sidebar-menu-inner > ul > li > a {
        flex-direction: row;
        justify-content: flex-start;
        align-content: center;
        padding: 12px 18px;
        margin: 1.5px 8px;
        font-size: 14px;
    }
    .sidebar-menu-inner > ul > li > a span { margin-top: 0; margin-left: 10px; }
    .sidebar-menu-inner > ul > li > a i { font-size: 18px; line-height: 18px; }
    .sidebar-more { display: block; top: 13px; }
    .submenu a { padding-left: 46px; }
    .sidebar-nav-footer a { flex-direction: row; gap: 8px; padding: 8px 18px; font-size: 13px; }
    .sidebar-nav-footer a i { font-size: 16px; }

    .main-content { margin-left: 0; }

    .d-md-none { display: flex; }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1999;
    }

    body.sidebar-open .sidebar-overlay { display: block; }

    /* 原站移动端行为：日夜间切换挪到右下角（相对 main-content 底部） */
    .switch-dark-mode {
        top: unset;
        left: unset;
        right: 0;
        bottom: 0;
        transform-origin: bottom right;
    }
    .switch-dark-mode::after { right: -66px; top: 5px; }
    .switch-dark-mode i { line-height: 58px; text-align: right; }

    /* 顶栏：粘性白底 + 右侧固定图标组 */
    .page-header { position: sticky; top: 0; background: var(--card-bg-color); }
    .page-header .navbar { height: 50px; padding: 0 10px; border-bottom: 1px solid var(--muted-border-color); }
    .header-navbar { margin-left: 5px; }
    .header-menu { position: fixed; right: 12px; top: 8px; z-index: 1000; }
    .header-menu-item { margin-left: 12px; }
    .header-menu-name { display: none; }
    .header-menu-toggle { background: transparent; padding: 0 6px; height: 34px; }
    .header-menu-toggle:hover, .header-menu-item.open .header-menu-toggle { box-shadow: none; }
    .header-menu-toggle i { font-size: 20px; color: var(--text-color); }
    .filter .header-menu-toggle i { font-size: 20px; }

    /* 侧滑面板移动端全宽 */
    .filter-panel { width: 100vw; }
    .wechat-panel { width: 100vw; max-width: 100vw; }
    .filter-panel-inner { background: rgba(255, 255, 255, 0.95); }
    [data-theme="dark"] .filter-panel-inner { background: #212528; }
    .toggle-filter-item { padding: 10px 5px; }
    .toggle-filter-item:hover { background: transparent; }
    .toggle-filter-item:hover .filter-name span { display: none; }
    .filter-content a { font-size: 11px; }

    /* 下拉面板适配 */
    .toggle-panel { right: -10px; width: calc(100vw - 30px); max-width: 400px; }
    .history-list a { width: calc(50% - 12px); }

    /* 三角丝带移到右下角 */
    .switch-dark-mode { bottom: 0; left: unset; top: unset; transform-origin: bottom right; }
    .switch-dark-mode::after { right: -66px; top: 5px; }
    .switch-dark-mode i { line-height: 58px; }

    /* 内容面板移动端贴边 */
    .content-layout { padding: 20px 15px 10px; border-radius: 0; }

    /* Ctrl+D 提示隐藏 */
    .ctrld { display: none; }
    .footer { padding: 0 12px 15px; }
    .footer-copyright, .footer-link { font-size: 10.5px; }
    .footer-link a { margin-left: 12px; }
    .footer-link a::before { margin-left: -8px; }

    .site-detail-main { flex-direction: column; align-items: flex-start; }
    .site-detail-action { align-items: flex-start; }

    .sites-grid > .url-card { width: 49%; margin-bottom: 8px; }

    .url-name { font-size: 13px; }
}

@media (min-width: 768px) {
    .sidebar-overlay { display: none !important; }
}

/* ================= 打印 ================= */

@media print {
    .sidebar-nav, .header-nav, .main-footer, #footer-tools, .switch-dark-mode, .site-detail-action { display: none !important; }
    .main-content { margin-left: 0; }
}
