/* ============================================================
   导航项目1 · 全站样式（参考 46a1.com 设计语言重制）
   Ant 蓝 #1890ff · 白卡圆角 · 胶囊搜索 · 背景渐隐 · 移动底部导航
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
    --brand: #1890ff;
    --brand-hover: #40a9ff;
    --brand-bg: #e6f7ff;
    --brand-border: #91d5ff;
    --red: #ff4d6d;
    --green: #52c41a;
    --orange: #fa8c16;

    --bg: #f5f7fa;
    --card: #ffffff;
    --card-2: #fafafa;
    --text: #333333;
    --text-2: #666666;
    --muted: #999999;
    --border: #f0f0f0;
    --border-2: #e8e8e8;

    --shadow: 0 2px 12px rgba(0, 0, 0, .06);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, .12);
    --glow: 0 0 0 3px rgba(24, 144, 255, .18);
    --header-h: 70px;
}

[data-theme="dark"] {
    --brand: #40a9ff;
    --brand-hover: #69c0ff;
    --brand-bg: rgba(64, 169, 255, .14);
    --brand-border: rgba(64, 169, 255, .4);
    --red: #ff7875;
    --green: #73d13d;
    --orange: #ffc53d;

    --bg: #0f1420;
    --card: #161c2c;
    --card-2: #1a2133;
    --text: #e8eaf2;
    --text-2: #b8c0d4;
    --muted: #7c86a0;
    --border: #232c42;
    --border-2: #2e3a55;

    --shadow: 0 2px 12px rgba(0, 0, 0, .4);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, .55);
    --glow: 0 0 0 3px rgba(64, 169, 255, .22);
}

/* ---------- 基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background .35s, color .35s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--brand-hover);
}

img {
    max-width: 100%;
}

::selection {
    background: rgba(24, 144, 255, .25);
}

/* ---------- 顶部统一导航（毛玻璃） ---------- */
.unified-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    transition: background .35s;
}

[data-theme="dark"] .unified-header {
    background: rgba(22, 28, 44, .72);
    border-bottom-color: rgba(255, 255, 255, .06);
}

.unified-nav-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
}

.unified-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.unified-nav-left .nav-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.unified-nav-left .logo-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #722ed1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(24, 144, 255, .4);
}

.unified-nav-left .logo-text {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: .4px;
    white-space: nowrap;
}

.unified-nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding-right: 16px;
}

.unified-nav-center a {
    padding: 8px 18px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 600;
}

.unified-nav-center a:hover,
.unified-nav-center a.on {
    background: var(--brand-bg);
    color: var(--brand);
}

.unified-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid var(--border-2);
    background: var(--card);
    cursor: pointer;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    text-decoration: none;
    color: var(--text-2);
}

.nav-icon-btn:hover {
    border-color: var(--brand);
    box-shadow: var(--glow);
    color: var(--brand);
    transform: rotate(12deg);
}

.nav-ghost-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-2);
    color: var(--text-2);
    font-weight: 600;
    font-size: 13px;
    background: transparent;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    font-family: inherit;
}

.nav-ghost-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-bg);
}

.nav-solid-btn {
    padding: 8px 18px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(24, 144, 255, .32);
    transition: all .2s;
    text-decoration: none;
    font-family: inherit;
}

.nav-solid-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(24, 144, 255, .42);
    color: #fff;
    background: var(--brand-hover);
}

/* ---------- 搜索区（背景渐隐） ---------- */
.search-section {
    position: relative;
    padding: calc(var(--header-h) + 44px) 20px 0;
    text-align: center;
    overflow: hidden;
    min-height: 350px;
}

.search-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1000px 400px at 15% 0%, rgba(64, 169, 255, .55), transparent 60%),
        radial-gradient(900px 500px at 85% 10%, rgba(114, 46, 209, .5), transparent 60%),
        linear-gradient(135deg, #1890ff 0%, #2f6bff 45%, #722ed1 100%);
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .99) 40%, rgba(0, 0, 0, .82) calc(40% + 20%), rgba(0, 0, 0, .45) calc(40% + 42%), rgba(0, 0, 0, .12) calc(40% + 58%), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .99) 40%, rgba(0, 0, 0, .82) calc(40% + 20%), rgba(0, 0, 0, .45) calc(40% + 42%), rgba(0, 0, 0, .12) calc(40% + 58%), transparent 100%);
}

[data-theme="dark"] .search-section::before {
    background:
        radial-gradient(1000px 400px at 15% 0%, rgba(24, 144, 255, .35), transparent 60%),
        radial-gradient(900px 500px at 85% 10%, rgba(114, 46, 209, .35), transparent 60%),
        linear-gradient(135deg, #123a6b 0%, #1c2a6b 45%, #3b1c6b 100%);
}

.search-section > * {
    position: relative;
    z-index: 1;
}

.search-slogan {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
    letter-spacing: .5px;
}

.search-subtitle {
    color: rgba(255, 255, 255, .95);
    font-size: 14px;
    margin-bottom: 24px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .15);
}

.search-content {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.search-box .s-icon {
    position: absolute;
    left: 20px;
    width: 18px;
    height: 18px;
    opacity: .45;
    pointer-events: none;
    color: var(--muted);
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 64px 0 46px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    outline: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .95);
    color: var(--text);
    transition: all .3s;
    font-family: inherit;
}

.search-input:focus {
    box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
    background: #fff;
}

.search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 144, 255, .3);
    transition: all .3s;
}

.search-btn:hover {
    background: var(--brand-hover);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 20px rgba(24, 144, 255, .4);
    color: #fff;
}

/* 搜索建议下拉 */
.suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .15);
    margin-top: 10px;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
    text-align: left;
}

.sug-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    color: var(--text);
}

.sug-item:hover {
    background: var(--brand-bg);
}

.sug-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex: 0 0 auto;
    object-fit: contain;
    background: var(--card-2);
}

.sug-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.sug-title {
    font-weight: 600;
    flex: 0 0 auto;
}

.sug-desc {
    color: var(--muted);
    font-size: .8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 引擎/热门标签（毛玻璃胶囊） */
.search-tags {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding-bottom: 44px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 860px;
}

.search-tags::-webkit-scrollbar {
    display: none;
}

.search-tags .tags-label {
    color: rgba(255, 255, 255, .85);
    font-size: 12.5px;
    flex-shrink: 0;
}

.search-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    transition: all .3s;
    border: 1px solid rgba(255, 255, 255, .3);
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}

.search-tag:hover {
    background: rgba(255, 255, 255, .32);
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 255, 255, .24);
}

.search-tag.active {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    border-color: #fff;
}

/* ---------- 公告条 ---------- */
.notice-line {
    max-width: 1560px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 13.5px;
    color: var(--text-2);
}

/* 内容区内的公告条：与分类卡同宽对齐 */
.main-content .notice-line {
    max-width: none;
    margin: 0 0 16px;
}

/* 置顶推荐角标 */
.site-card {
    position: relative;
}

.site-card .pin-flag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    color: #fa8c16;
    background: rgba(250, 140, 22, .14);
    border-radius: 8px;
    padding: 3px 8px;
    z-index: 1;
}

.notice-line .notice-ico {
    flex-shrink: 0;
    font-size: 15px;
}

.notice-line .notice-body {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.notice-line .notice-body a {
    color: var(--brand);
    font-weight: 700;
}

/* ---------- 广告位矩阵（文字 5×6 / 图片 2×3） ---------- */
.ad-board {
    width: 100%;
    margin: 0 0 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 14px 16px;
    transition: background .35s;
}

.ad-board-head {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.ad-board-head i {
    color: var(--brand);
}

.ad-text-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
    table-layout: fixed;
}

.ad-text-table td {
    padding: 0;
    vertical-align: middle;
}

.ad-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--card-2);
    font-size: 14px;
    color: var(--text-2);
    text-align: center;
    line-height: 1.4;
    word-break: break-all;
    transition: all .25s;
    width: 100%;
    height: 100%;
}

a.ad-cell:hover {
    background: var(--brand-bg);
    color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.ad-cell-empty {
    border: 1px dashed var(--border-2);
    color: var(--muted);
    font-size: 12px;
    opacity: .7;
}

.ad-mini-tag {
    flex-shrink: 0;
    font-size: 9px;
    padding: 0 5px;
    border-radius: 8px;
    background: rgba(24, 144, 255, .12);
    color: var(--brand);
    border: 1px solid var(--brand-border);
    line-height: 1.5;
}

.ad-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ad-img-cell {
    border-radius: 10px;
    overflow: hidden;
    min-height: 75px;
    height: 75px;
    background: var(--card-2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-img-cell img {
    width: 100%;
    height: 75px;
    display: block;
    object-fit: cover;
}

.ad-img-empty {
    border: 1px dashed var(--border-2);
    border-radius: 8px;
    width: 100%;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    margin: 0 4px;
}

.ad-mini-tag-abs {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(255, 255, 255, .9);
}

/* ---------- 文字动画：跳动 / 流动 ---------- */
@keyframes adJump {
    0%, 100% { transform: translateY(0); }
    30%      { transform: translateY(-4px); }
    50%      { transform: translateY(0); }
    70%      { transform: translateY(-2px); }
}

/* 整条广告单元一起跳动（纯文本节点无法被 > * 选中，动画直接作用于单元本身，v2.4.1） */
.ad-blink {
    animation: adJump 1.2s ease-in-out infinite;
}

@keyframes adFlowBg {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.ad-flow {
    background: linear-gradient(90deg, #1890ff, #722ed1, #ff4d6d, #52c41a, #1890ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: adFlowBg 4s linear infinite;
}

/* 文字广告「内容级」动画（v2.4.2）：只作用于单元格内的文字包裹 span，
   不挂在单元格 flex 容器上——避免在 table/grid 布局内对单元格主体做
   渐变裁剪/无限位移动画导致整张广告表格渲染异常。公告/弹窗仍用上方容器级类。 */
.ad-anim-blink,
.ad-anim-flow {
    display: inline-block;
}

.ad-anim-flow {
    background: linear-gradient(90deg, #1890ff, #722ed1, #ff4d6d, #52c41a, #1890ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: adFlowBg 4s linear infinite;
}

.ad-anim-blink {
    animation: adJump 1.2s ease-in-out infinite;
}

/* 跳动 + 流光同时开启：两个动画作用于不同属性（transform / background-position），可并存 */
.ad-anim-flow.ad-anim-blink {
    animation: adFlowBg 4s linear infinite, adJump 1.2s ease-in-out infinite;
}

/* ---------- 热门链接排名徽章 ---------- */
.hot-rank {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 0 6px;
    border-radius: 8px;
    line-height: 1.6;
    margin-top: 2px;
    width: fit-content;
}

.hot-rank-1 {
    background: linear-gradient(135deg, #ff4d4f, #fa8c16);
    color: #fff;
}

.hot-rank-2 {
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
}

.hot-rank-3 {
    background: linear-gradient(135deg, #52c41a, #95de64);
    color: #fff;
}

.hot-rank-n {
    background: var(--card-2);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* ---------- 广告位 ---------- */
.ad-slot {
    max-width: 1560px;
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px dashed var(--border-2);
    border-radius: 12px;
    background: var(--card-2);
    overflow: hidden;
    text-align: center;
    position: relative;
}

.ad-slot img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

.ad-slot .ad-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    color: var(--text-2);
    font-size: 13.5px;
}

.ad-slot .ad-tag {
    flex-shrink: 0;
    font-size: 10.5px;
    padding: 1px 8px;
    border-radius: 20px;
    background: var(--brand-bg);
    color: var(--brand);
    font-weight: 700;
    border: 1px solid var(--brand-border);
}

.ad-slot .ad-link:hover {
    color: var(--brand);
}

a.ad-slot:hover {
    border-color: var(--brand-border);
}

/* ---------- 主布局 ---------- */
.content-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 4px 16px 20px 16px;
    align-items: flex-start;
    flex: 1;
}

/* ---------- 侧栏（白卡可收起） ---------- */
.sidebar {
    width: 208px;
    flex-shrink: 0;
    background: var(--card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-h) + 20px);
    height: fit-content;
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
    scrollbar-width: none;
    transition: width .15s cubic-bezier(.4, 0, .2, 1), background .35s;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: bold;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header i {
    color: var(--brand);
}

.sidebar-menu {
    padding: 8px 0;
}

.sidebar-menu-item {
    padding: 11px 18px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-menu-item i,
.sidebar-menu-item .cat-mini {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-menu-item:hover {
    background: var(--brand-bg);
    color: var(--brand);
}

.sidebar-menu-item.active {
    background: var(--brand-bg);
    color: var(--brand);
}

.sidebar-menu-item .cat-count {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
    background: var(--bg);
    padding: 0 8px;
    border-radius: 20px;
    font-weight: 600;
}

.sidebar-menu-item:hover .cat-count {
    background: var(--card);
    color: var(--brand);
}

/* ---------- 主内容 ---------- */
.main-content {
    flex: 1;
    min-width: 0;
}

/* ---------- 分类卡片 ---------- */
.category-card {
    background: var(--card);
    border-radius: 12px;
    padding: 22px 25px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    scroll-margin-top: 90px;
    transition: background .35s;
}

.category-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 10px;
}

.category-title {
    font-size: 19px;
    font-weight: bold;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}

.category-title i {
    color: var(--brand);
}

.category-title .cat-badge {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.category-title small {
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
}

.category-more {
    color: var(--brand);
    font-size: 14px;
    flex-shrink: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background .2s;
}

.category-more:hover {
    background: var(--brand-bg);
    color: var(--brand-hover);
}

/* ---------- 站点卡片网格 ---------- */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.site-card {
    background: var(--card-2);
    border-radius: 12px;
    padding: 12px;
    color: var(--text);
    transition: all .3s;
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 12px;
    position: relative;
    min-height: 70px;
}

.site-card:hover {
    background: var(--card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.site-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
    flex-shrink: 0;
    padding: 4px;
}

.site-fallback {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(24, 144, 255, .3);
}

.site-info {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
    line-height: 1.3;
}

.site-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.site-views {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.site-views svg {
    width: 12px;
    height: 12px;
    opacity: .6;
}

/* ---------- 空状态 ---------- */
.empty-state {
    background: var(--card);
    border-radius: 12px;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    box-shadow: var(--shadow);
}

.empty-state .big {
    font-size: 40px;
    margin-bottom: 10px;
}

/* ---------- 文章 ---------- */
.art-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.art-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: var(--card-2);
    border-radius: 12px;
    color: var(--text);
    border: 1px solid transparent;
    transition: all .22s;
}

.art-item:hover {
    background: var(--brand-bg);
    border-color: var(--brand-border);
    transform: translateX(5px);
    color: var(--text);
}

.art-item .art-no {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.art-item b {
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.art-item p {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.art-item .art-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.art-item .art-meta svg {
    width: 12px;
    height: 12px;
    opacity: .6;
}

/* ---------- 文章详情 ---------- */
.article-body {
    background: var(--card);
    border-radius: 12px;
    padding: 34px;
    font-size: 15px;
    line-height: 1.95;
    box-shadow: var(--shadow);
}

.article-body h1 {
    font-size: 26px;
    margin: 0 0 8px;
    color: var(--text);
}

.article-body h2,
.article-body h3 {
    margin: 24px 0 10px;
    color: var(--text);
}

.article-body h2 {
    border-left: 4px solid var(--brand);
    padding-left: 12px;
    border-radius: 2px;
}

.article-body p {
    margin: 12px 0;
    color: var(--text-2);
}

.article-body img {
    border-radius: 12px;
    margin: 14px 0;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.article-body ul,
.article-body ol {
    margin: 12px 0 12px 26px;
    color: var(--text-2);
}

.article-body code {
    background: var(--card-2);
    padding: 2px 9px;
    border-radius: 7px;
    font-size: 13px;
    color: var(--brand);
    font-family: ui-monospace, Consolas, monospace;
}

.article-body pre {
    background: var(--card-2);
    padding: 18px;
    border-radius: 12px;
    overflow: auto;
    margin: 14px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--text-2);
}

.article-body blockquote {
    border-left: 4px solid var(--brand);
    padding: 12px 18px;
    background: var(--brand-bg);
    border-radius: 0 12px 12px 0;
    margin: 14px 0;
    color: var(--text-2);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

.article-body th,
.article-body td {
    padding: 9px 12px;
    border: 1px solid var(--border);
}

.article-body th {
    background: var(--card-2);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.5px;
    color: var(--muted);
    margin: 4px 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: -8px 0 18px;
}

.article-tags .tag-chip {
    padding: 3px 11px;
    font-size: 12px;
}

.article-meta svg {
    width: 13px;
    height: 13px;
    opacity: .6;
    margin-right: 3px;
    vertical-align: -2px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--brand);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    opacity: .5;
}

/* ---------- 分页 ---------- */
.pager {
    margin-top: 22px;
    text-align: center;
    display: flex;
    gap: 7px;
    justify-content: center;
    flex-wrap: wrap;
}

.pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-2);
    border-radius: 11px;
    font-size: 13px;
    background: var(--card);
    color: var(--text-2);
    transition: all .2s;
    font-weight: 600;
}

.pager a:hover {
    border-color: var(--brand);
    color: var(--brand);
    box-shadow: var(--glow);
}

.pager a.cur {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(24, 144, 255, .35);
}

/* ---------- 页脚 ---------- */
.footer {
    margin-top: auto;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 26px 0 22px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    transition: background .35s;
}

.footer .foot-line {
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand);
    margin: 0 auto 12px;
    opacity: .8;
}

.footer .copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer .copy a {
    color: var(--muted);
}

.footer .copy a:hover {
    color: var(--brand);
}

/* ---------- 回到顶部 / 浮动按钮 ---------- */
.back-to-top {
    position: fixed;
    right: 15px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--brand);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
    transition: all .3s;
    z-index: 998;
    font-size: 17px;
}

[data-theme="dark"] .back-to-top {
    background: rgba(30, 38, 60, .8);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: rgba(255, 255, 255, .95);
    transform: translateY(-3px);
    color: var(--brand);
}

[data-theme="dark"] .back-to-top:hover {
    background: rgba(40, 50, 80, .95);
}

/* 桌面端无底部导航：返回顶部贴底放置，避免与客服悬浮窗（bottom 96px）重叠 */
@media (min-width: 769px) {
    .back-to-top {
        bottom: 18px;
    }
}

.mobile-category-toggle {
    position: fixed;
    left: 15px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--brand);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
    transition: all .3s;
    z-index: 998;
    font-size: 19px;
}

[data-theme="dark"] .mobile-category-toggle {
    background: rgba(30, 38, 60, .8);
}

.mobile-category-toggle:hover {
    color: var(--brand);
}

/* ---------- 移动端分类抽屉（毛玻璃） ---------- */
.mobile-sidebar {
    display: none;
    position: fixed;
    left: 10px;
    top: calc(var(--header-h) + 12px);
    bottom: 90px;
    width: 230px;
    max-width: calc(100vw - 80px);
    transform: translateX(-130%);
    transition: transform .18s cubic-bezier(.4, 0, .2, 1);
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .13);
    z-index: 999;
    border-radius: 16px;
    overflow: hidden;
    flex-direction: column;
}

[data-theme="dark"] .mobile-sidebar {
    background: rgba(26, 33, 51, .88);
}

.mobile-sidebar.open {
    display: flex;
    transform: translateX(0);
}

.mobile-sidebar .sidebar-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.mobile-sidebar .sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0;
}

.mobile-sidebar .sidebar-menu-item span {
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.sidebar-overlay.show {
    display: block;
}

/* ---------- 移动端底部导航（毛玻璃） ---------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    height: 58px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
    z-index: 997;
    align-items: center;
    justify-content: space-around;
    border: 1px solid rgba(255, 255, 255, .5);
    overflow: hidden;
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(26, 33, 51, .88);
    border-color: rgba(255, 255, 255, .08);
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted);
    font-size: 11px;
    flex: 1;
    height: 100%;
    min-width: 0;
}

.mobile-bottom-nav a i {
    font-size: 19px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--brand);
}

.mobile-bottom-nav a.nav-highlight {
    color: #fff;
    background: var(--brand);
    border-radius: 12px;
    padding: 6px 14px;
    margin: 0 4px;
    flex: 0 1 auto;
}

.mobile-bottom-nav a.nav-highlight:hover {
    color: #fff;
}

/* ---------- 弹窗（提交收录） ---------- */
.modal-content {
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
}

.modal-header {
    border-bottom-color: var(--border);
}

.modal-footer {
    border-top-color: var(--border);
}

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

.modal .form-label {
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 600;
    margin-bottom: 4px;
}

.modal .form-control,
.modal .form-select {
    border: 1.5px solid var(--border-2);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 13.5px;
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--brand);
    box-shadow: var(--glow);
    background: var(--card);
}

.modal .btn-primary {
    background: var(--brand);
    border: 0;
    font-weight: 700;
}

/* ---------- 提示条 ---------- */
.flash {
    padding: 12px 16px;
    border-radius: 11px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.flash.ok {
    background: rgba(82, 196, 26, .1);
    color: var(--green);
    border: 1px solid rgba(82, 196, 26, .3);
}

.flash.ok::before {
    background: var(--green);
}

.flash.err {
    background: rgba(255, 77, 109, .09);
    color: var(--red);
    border: 1px solid rgba(255, 77, 109, .3);
}

.flash.err::before {
    background: var(--red);
}

/* ---------- 空状态 ---------- */
.empty-tip {
    opacity: .9;
}

/* ---------- 卡片淡入 ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .45s ease, transform .45s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media(prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 前台标签云 / 标签徽章 ---------- */
.tag-cloud-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.tag-cloud-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.tag-cloud-title i {
    color: var(--brand);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.tag-chip b {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 7px;
    line-height: 17px;
}

.tag-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

.tag-chip.on {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.tag-chip.on b {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border-color: transparent;
}

.tag-chip-link:not(.on) {
    color: var(--text-2);
}

.tag-chip-link:not(.on):hover {
    border-color: #13c2c2;
    color: #13c2c2;
}

.tag-scope-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-bg, rgba(24, 144, 255, .1));
    border-radius: 12px;
    padding: 2px 11px;
    letter-spacing: .5px;
}

/* ---------- 前台友链区（首页底部） ---------- */
.friend-links-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 auto 16px;
    max-width: 1560px;
}

.friend-links-wrap .fl-head {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.friend-links-wrap .fl-head i {
    color: var(--brand);
}

.friend-links-wrap .fl-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friend-links-wrap .fl-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.friend-links-wrap .fl-item img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
}

.friend-links-wrap .fl-item:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

/* ---------- 网站地图页 ---------- */
.sm-cat {
    margin: 14px 0 4px;
}

.sm-cat-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-cat-title a {
    color: var(--text);
    text-decoration: none;
}

.sm-cat-title a:hover {
    color: var(--brand);
}

.sm-cat-title small {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-bg, rgba(24, 144, 255, .1));
    border-radius: 10px;
    padding: 1px 9px;
}

.sm-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sm-links a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s;
}

.sm-links a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ---------- 后台蜘蛛统计卡（彩色渐变） ---------- */
.spider-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.spider-card {
    border-radius: 14px;
    padding: 20px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}

.spider-card::after {
    content: '';
    position: absolute;
    right: -18px;
    top: -18px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.spider-card .sc-ico {
    position: absolute;
    right: 18px;
    bottom: 16px;
    font-size: 30px;
    opacity: .55;
}

.spider-card .sc-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.spider-card .sc-label {
    font-size: 12.5px;
    opacity: .92;
    font-weight: 600;
}

.spider-card.sc-green  { background: linear-gradient(135deg, #10b981, #34d399) }
.spider-card.sc-blue   { background: linear-gradient(135deg, #1890ff, #69b1ff) }
.spider-card.sc-purple { background: linear-gradient(135deg, #7c5cf0, #a78bfa) }
.spider-card.sc-pink   { background: linear-gradient(135deg, #f5576c, #ff8fa3) }

/* ---------- 前台标签云 / 标签徽章 ---------- */

/* ============================================================
   管理后台（白色侧栏体系，参考东方导航布局）
   ============================================================ */
/* 后台页面取消前台固定顶栏预留的 70px 顶部偏移 */
body.admin-body {
    padding-top: 0;
}

.admin-wrap {
    display: grid;
    grid-template-columns: 232px 1fr;
    min-height: 100vh;
    background: var(--bg);
}

/* 侧栏图标折叠模式（顶栏按钮切换） */
.admin-wrap.rail {
    grid-template-columns: 64px 1fr;
}

.admin-wrap.rail .side-brand {
    flex-direction: column;
    padding: 14px 8px 10px;
    gap: 8px;
}

.admin-wrap.rail .side-brand .b-txt,
.admin-wrap.rail .side-brand .side-burger {
    display: none;
}

.admin-wrap.rail .side-brand .b-logo {
    width: 36px;
    height: 36px;
    font-size: 17px;
}

.admin-wrap.rail .side-nav {
    padding: 4px 8px;
}

.admin-wrap.rail .side-group-head {
    padding: 10px 6px;
    justify-content: center;
}

.admin-wrap.rail .side-group-head .g-label,
.admin-wrap.rail .side-group-head .g-arrow {
    display: none;
}

.admin-wrap.rail .side-sub {
    padding: 0 0 6px;
}

.admin-wrap.rail .side-sub a {
    padding: 11px 8px;
    margin: 0;
    justify-content: center;
}

.admin-wrap.rail .side-sub a > span:not(.nav-ico):not(.nav-badge) {
    display: none;
}

.admin-wrap.rail .side-sub a .nav-ico {
    width: auto;
    font-size: 17px;
}

.admin-wrap.rail .side-sub a.on::before {
    left: 2px;
}

.admin-wrap.rail .side-foot {
    flex-direction: column;
    padding: 12px 8px;
}

.admin-wrap.rail .side-foot a,
.admin-wrap.rail .side-foot button {
    width: 100%;
    justify-content: center;
}

/* ---------- 白色侧栏 ---------- */
.admin-side {
    background: var(--card);
    color: var(--text-2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-side .side-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 18px 14px;
    color: var(--text);
}

.admin-side .side-brand .b-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(24, 144, 255, .35);
}

.admin-side .side-brand b {
    font-size: 15px;
    font-weight: 800;
    display: block;
    line-height: 1.3;
}

.admin-side .side-brand small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.admin-side .side-brand .b-txt {
    min-width: 0;
}

/* 汉堡按钮：桌面端隐藏，≤860px 显示 */
.admin-side .side-burger {
    display: none;
}

.admin-side .side-nav {
    padding: 4px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.admin-side .side-group + .side-group {
    margin-top: 4px;
}

.admin-side .side-group-head {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    transition: background .2s;
    text-align: left;
}

.admin-side .side-group-head:hover {
    background: var(--bg);
}

.admin-side .side-group-head .g-label {
    flex: 1;
}

.admin-side .side-group-head .g-arrow {
    font-size: 11px;
    color: var(--muted);
    transition: transform .25s;
}

.admin-side .side-group.open .side-group-head .g-arrow {
    transform: rotate(180deg);
}

.admin-side .side-sub {
    display: none;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0 6px;
}

.admin-side .side-group.open .side-sub {
    display: flex;
}

.admin-side .side-sub a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 22px;
    margin: 0 4px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    border-radius: 9px;
    position: relative;
    text-decoration: none;
    transition: all .18s;
}

.admin-side .side-sub a .nav-ico {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    transition: color .18s;
}

.admin-side .side-sub a:hover {
    background: var(--bg);
    color: var(--brand);
}

.admin-side .side-sub a:hover .nav-ico {
    color: var(--brand);
}

.admin-side .side-sub a.on {
    background: var(--brand-bg, rgba(24, 144, 255, .1));
    color: var(--brand);
    font-weight: 700;
}

.admin-side .side-sub a.on .nav-ico {
    color: var(--brand);
}

.admin-side .side-sub a.on::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5px;
    height: 18px;
    border-radius: 4px;
    background: var(--brand);
}

.admin-side .side-nav .nav-badge {
    margin-left: auto;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 8px;
    border-radius: 20px;
}

.admin-side .side-foot {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-side .side-foot a,
.admin-side .side-foot button {
    font-size: 12.5px;
    color: var(--text-2);
    padding: 7px 12px;
    border-radius: 9px;
    background: var(--bg);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    font-family: inherit;
}

.admin-side .side-foot a:hover,
.admin-side .side-foot button:hover {
    color: var(--brand);
    border-color: var(--brand);
}

/* ---------- 顶栏 ---------- */
.admin-main {
    padding: 0 24px 28px;
    min-width: 0;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 20px;
    margin: 0 -24px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-top .at-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-top .top-icon-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-2);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}

.admin-top .top-icon-btn:hover {
    background: var(--bg);
    color: var(--brand);
}

.admin-top .at-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-top .admin-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s;
}

.admin-top .admin-user-btn:hover {
    border-color: var(--brand);
}

.admin-top .admin-user-btn::after {
    margin-left: 2px;
}

.admin-top .au-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.admin-top .au-avatar-img {
    object-fit: cover;
    background: #fff;
}

.admin-top .au-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 页面标题（参照图：黑色粗体） */
.page-head {
    padding: 20px 0 0;
    margin-bottom: 18px;
}

.page-head h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.admin-main > .flash {
    margin: 0 0 16px;
}

/* ---------- 后台通用卡片 ---------- */
.admin-main .card {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
    color: var(--text);
}

.admin-main .card-header {
    background: transparent;
    border-bottom-color: var(--border);
    color: var(--text);
    font-weight: 700;
    padding: 13px 18px;
    border-radius: 14px 14px 0 0 !important;
}

.admin-main .card-body {
    padding: 18px;
}

.admin-main .card-footer {
    background: transparent;
    border-top-color: var(--border);
}

/* 快捷方式宫格 */
.qk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
}

.qk {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 6px 13px;
    border-radius: 12px;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    position: relative;
    transition: all .2s;
    border: 1px solid transparent;
}

.qk:hover {
    background: var(--bg);
    border-color: var(--border);
    transform: translateY(-2px);
    color: var(--brand);
}

.qk-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    font-size: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
}

.qk:hover .qk-ico {
    transform: scale(1.08);
}

.qk-dot {
    position: absolute;
    top: 7px;
    right: 12px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 20px;
    background: #f43f5e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}

/* 数据统计块 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 12px;
}

.stat-tile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    transition: all .2s;
}

.stat-tile:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 18px rgba(24, 144, 255, .12);
    transform: translateY(-2px);
    color: var(--text);
}

.stat-tile .st-ico {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: #fff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-tile b {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    display: block;
    font-variant-numeric: tabular-nums;
}

.stat-tile span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

/* 彩色圆 / 方块 */
.c-blue   { background: #1890ff }
.c-blue2  { background: #4096ff }
.c-purple { background: #722ed1 }
.c-green  { background: #52c41a }
.c-orange { background: #fa8c16 }
.c-cyan   { background: #13c2c2 }
.c-violet { background: #9254de }
.c-pink   { background: #eb2f96 }
.c-indigo { background: #3f51b5 }
.c-teal   { background: #10b981 }
.c-red    { background: #f5222d }
.c-dark   { background: #344055 }

/* 版本信息表 */
.info-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

/* 排名/点击卡片列表（控制面板 TOP10、最近点击） */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    transition: all .18s;
    min-width: 0;
}

.rank-item:hover {
    border-color: var(--brand);
    background: var(--card);
    transform: translateX(2px);
}

.rank-item .rk-no {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-item .rk-no.top1 { background: #fff7e6; border-color: #ffd591; color: #fa8c16 }
.rank-item .rk-no.top2 { background: #f0f5ff; border-color: #adc6ff; color: #2f54eb }
.rank-item .rk-no.top3 { background: #fff1f0; border-color: #ffa39e; color: #f5222d }

.rank-item .rk-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item .rk-meta {
    font-size: 11.5px;
    color: var(--muted);
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

.rank-item .rk-meta .rk-hot {
    font-weight: 800;
    color: var(--brand);
    font-size: 13px;
}

.info-table td {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
    font-weight: 600;
}

.info-table tr:last-child td {
    border-bottom: 0;
}

.info-table td:first-child {
    color: var(--muted);
    font-weight: 500;
    width: 42%;
}

.ver-badge {
    display: inline-block;
    background: #1890ff;
    color: #fff;
    border-radius: 5px;
    padding: 1px 9px;
    font-size: 12px;
    font-weight: 800;
}

/* 安全中心 */
.sec-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sec-item {
    border-left: 4px solid var(--border);
    border-radius: 9px;
    padding: 10px 13px;
    background: var(--bg);
}

.sec-item.sec-ok {
    border-left-color: #52c41a;
    background: rgba(82, 196, 26, .07);
}

.sec-item.sec-warn {
    border-left-color: #fa8c16;
    background: rgba(250, 140, 22, .08);
}

.sec-item .sec-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sec-item.sec-ok .sec-title i {
    color: #52c41a;
}

.sec-item.sec-warn .sec-title i {
    color: #fa8c16;
}

.sec-item .sec-badge {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 9px;
    border-radius: 20px;
    border: 1px solid;
}

.sec-item.sec-ok .sec-badge {
    color: #52c41a;
    border-color: rgba(82, 196, 26, .5);
}

.sec-item.sec-warn .sec-badge {
    color: #fa8c16;
    border-color: rgba(250, 140, 22, .5);
}

.sec-item .sec-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.55;
}

/* 后台选项卡（AI 内容中心等） */
.admin-tabs {
    border-bottom: 2px solid var(--border);
    gap: 4px;
}

.admin-tabs .nav-link {
    border: 0;
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px 10px 0 0;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
}

.admin-tabs .nav-link:hover {
    color: var(--brand);
}

.admin-tabs .nav-link.active {
    color: var(--brand);
    background: transparent;
    border-bottom: 2px solid var(--brand);
}

.admin-tab-content {
    padding-top: 4px;
}

.cron-code {
    background: var(--bg);
    border: 1px dashed var(--border-2, var(--border));
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-2);
    margin: 6px 0 12px;
}

.kw-progress {
    height: 8px;
    border-radius: 6px;
    background: var(--bg);
    margin-bottom: 4px;
}

/* 标签复选框组（文章/链接表单） */
.tag-check-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1px solid var(--border-2, var(--border));
    border-radius: 10px;
    padding: 9px;
    max-height: 150px;
    overflow-y: auto;
    background: var(--bg);
}

.tag-check-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    margin: 0;
    transition: all .18s;
}

.tag-check-item:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.tag-check-item input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
    accent-color: var(--brand);
}

.tag-check-item:has(input:checked) {
    background: var(--brand-bg, rgba(24, 144, 255, .1));
    border-color: var(--brand);
    color: var(--brand);
}

/* 后台登录 */
.admin-login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(900px 500px at 20% -10%, rgba(24, 144, 255, .35), transparent),
        radial-gradient(800px 500px at 110% 20%, rgba(114, 46, 209, .28), transparent),
        linear-gradient(160deg, #0d1026, #131736 55%, #191239);
}

.admin-login-body .form-box {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #e8eaf6;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    border-radius: 20px;
    padding: 36px;
    max-width: 420px;
    width: 100%;
}

.admin-login-body .form-box h2 {
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 22px;
}

.admin-login-body .form-box .brand-sub {
    text-align: center;
    color: #6b7299;
    font-size: 11.5px;
    letter-spacing: 1px;
    margin: -14px 0 6px;
}

.admin-login-body .form-box label {
    color: #b9c0e0;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 14px 0 6px;
}

.admin-login-body .form-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    outline: none;
    transition: all .2s;
}

.admin-login-body .form-box input:focus {
    border-color: var(--brand-hover);
    box-shadow: 0 0 0 3px rgba(64, 169, 255, .3);
    background: rgba(255, 255, 255, .12);
}

.admin-login-body .form-box .btn {
    width: 100%;
    margin-top: 22px;
    background: linear-gradient(135deg, #1890ff, #722ed1);
    border: 0;
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.admin-login-body .alert {
    border-radius: 11px;
}

/* ---------- 移动端适配 ---------- */
@media(max-width: 1199px) {
    .sidebar {
        display: none !important;
    }
}

@media(max-width: 768px) {
    body {
        padding-bottom: 76px;
    }

    .unified-nav-center {
        display: none;
    }

    .search-section {
        padding: calc(var(--header-h) + 24px) 15px 0;
        min-height: 280px;
    }

    .search-slogan {
        font-size: 23px;
    }

    .sites-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }

    .site-card {
        grid-template-columns: 44px 1fr;
        gap: 10px;
        padding: 10px;
        min-height: 64px;
    }

    .site-icon,
    .site-fallback {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        font-size: 17px;
    }

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

    .site-desc {
        font-size: 11px;
    }

    .category-card {
        padding: 16px;
    }

    .category-title {
        font-size: 16px;
    }

    .article-body {
        padding: 22px;
    }

    .content-wrapper {
        padding: calc(var(--header-h) + 2px) 10px 16px 10px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .notice-line,
    .ad-slot {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* ============================================================
   管理后台响应式（三端自适应）
   ============================================================ */
@media(max-width: 1400px) {
    .admin-wrap {
        grid-template-columns: 210px 1fr;
    }
}

@media(max-width: 1199px) {
    .sidebar {
        display: none !important;
    }
}

@media(max-width: 860px) {
    body {
        padding-top: 0;
    }

    .admin-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-wrap > * {
        min-width: 0;
        max-width: 100%;
    }

    /* 侧栏收纳为顶部粘性条，点汉堡展开菜单面板 */
    .admin-side {
        position: sticky;
        top: 0;
        height: auto;
        z-index: 60;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-side .side-brand {
        padding: 9px 14px;
    }

    .admin-side .side-brand .b-logo {
        width: 30px;
        height: 30px;
        font-size: 15px;
        border-radius: 8px;
    }

    .admin-side .side-brand small {
        display: none;
    }

    .admin-side .side-burger {
        display: inline-flex;
        margin-left: auto;
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--text);
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 15px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: background .2s;
    }

    .admin-side .side-burger:hover {
        background: var(--border);
    }

    .admin-side .side-nav {
        display: none;
        padding: 6px 12px 12px;
        border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .admin-side.menu-open .side-nav {
        display: flex;
    }

    /* 手机端展开时显示全部分组，忽略折叠状态 */
    .admin-side.menu-open .side-sub {
        display: flex;
    }

    .admin-side.menu-open .side-group-head .g-arrow {
        display: none;
    }

    .admin-side .side-foot {
        display: none;
    }

    .admin-main {
        padding: 0 12px 14px;
    }

    .admin-top {
        padding: 8px 12px;
        margin: 0 -12px;
    }

    /* 移动端隐藏顶栏的图标折叠按钮：与侧栏汉堡重复，且移动端不适用 rail 图标模式 */
    .admin-top .at-left #btnRail {
        display: none;
    }

    .page-head {
        padding: 14px 0 0;
        margin-bottom: 14px;
    }

    .page-head h2 {
        font-size: 17px;
    }

    .admin-main > .flash {
        margin: 0 0 12px;
    }

    .admin-main .card-body {
        padding: 14px 12px;
    }

    .qk-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-tile {
        padding: 12px;
        gap: 10px;
    }

    .stat-tile b {
        font-size: 18px;
    }

    .stat-tile .st-ico {
        width: 36px;
        height: 36px;
        font-size: 15px;
        border-radius: 9px;
    }

    .qk {
        padding: 12px 4px 10px;
        font-size: 11.5px;
    }

    .qk-ico {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media(max-width: 560px) {
    .qk-grid {
        gap: 7px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .admin-top .au-name {
        display: none;
    }

    .admin-top .admin-user-btn {
        padding: 4px 5px;
    }
}

@media(max-width: 560px) {
    /* 移动端文字广告：行内 2 列网格，每行第 5 格跨满整行（无空白框，兼容性最优） */
    .ad-text-table {
        border-spacing: 0;
    }

    .ad-text-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        margin-bottom: 4px;
    }

    .ad-text-table td {
        display: block;
        padding: 0;
        min-width: 0;
    }

    .ad-text-table td:nth-child(5) {
        grid-column: span 2;
    }

    .ad-text-table .ad-cell {
        min-height: 44px;
        font-size: 12px;
        padding: 6px 5px;
        overflow: hidden;
    }

    .ad-text-table .ad-mini-tag {
        display: none;
    }

    /* 移动端图片广告保持原有高度（桌面端 75px） */
    .ad-img-grid {
        gap: 8px
    }

    .ad-img-cell {
        height: auto;
        min-height: 90px
    }

    .ad-img-cell img {
        height: auto;
        min-height: 90px
    }

    .ad-img-empty,
    .ad-img-cell .ad-slot-buy {
        height: 90px
    }

    .search-slogan {
        font-size: 21px
    }

    /* 移动端置顶角标改为行内小标签，不再遮挡站点名 */
    .site-card .pin-flag {
        position: static;
        margin: 0 0 0 6px;
        padding: 2px 7px;
        font-size: 10px;
        flex-shrink: 0;
    }

    /* 移动端主题切换按钮固定在最右 */
    .unified-nav-left {
        flex: 1;
        min-width: 0;
    }

    .unified-nav-right {
        margin-left: 0;
    }

    /* 文章页固定顶栏在移动端会盖住标题：恢复正文区顶部补偿 */
    body.article-page {
        padding-top: calc(var(--header-h) + 6px);
    }
}

/* ==================== v2.2.0 追加 ==================== */

/* ---------- 点击式人机验证（宽度与输入框一致 + 验证动画） ---------- */
.nc-widget {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid var(--border, #dfe5ee);
    border-radius: 9px;
    background: var(--bg, #f7f9fc);
    cursor: pointer;
    user-select: none;
    transition: border .25s, background .25s;
    margin-top: 14px;
    margin-bottom: 12px;
}

.nc-widget:hover {
    border-color: var(--brand, #1890ff);
}

.nc-widget .nc-box {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(24, 144, 255, .12);
    color: var(--brand, #1890ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.nc-widget .nc-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2, #5a6b87);
    white-space: nowrap;
}

.nc-widget .nc-hint {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted, #8b98ad);
    text-align: right;
}

.nc-widget.busy {
    border-color: rgba(250, 140, 22, .55);
    background: rgba(250, 140, 22, .05);
}

.nc-widget.busy .nc-box {
    background: rgba(250, 140, 22, .15);
    color: #fa8c16;
}

.nc-spin {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(250, 140, 22, .35);
    border-top-color: #fa8c16;
    border-radius: 50%;
    animation: ncSpin .7s linear infinite;
}

@keyframes ncSpin {
    to { transform: rotate(360deg); }
}

.nc-widget.ok {
    border-color: rgba(82, 196, 26, .55);
    background: rgba(82, 196, 26, .06);
    cursor: default;
}

.nc-widget.ok .nc-box {
    background: #52c41a;
    color: #fff;
    animation: ncPop .35s ease;
}

.nc-widget.ok .nc-label {
    color: #52c41a;
}

.nc-widget.ok .nc-hint {
    color: #52c41a;
}

@keyframes ncPop {
    0%   { transform: scale(.4); opacity: 0; }
    70%  { transform: scale(1.18); }
    100% { transform: scale(1); opacity: 1; }
}

/* ---------- 客服悬浮窗（右下角，三端自适应） ---------- */
.contact-float {
    position: fixed;
    right: 18px;
    bottom: 96px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-float .cf-item {
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e8ecf3);
    border-radius: 12px;
    padding: 8px 13px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
}

.contact-float .cf-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}

.contact-float .cf-ico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.contact-float .cf-qq .cf-ico {
    background: rgba(24, 144, 255, .12);
    color: #1890ff;
}

.contact-float .cf-mail .cf-ico {
    background: rgba(82, 196, 26, .12);
    color: #52c41a;
}

.contact-float .cf-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    max-width: 128px;
}

.contact-float .cf-txt b {
    font-size: 12px;
    color: var(--text, #24324d);
}

.contact-float .cf-txt small {
    font-size: 11px;
    color: var(--muted, #8b98ad);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media(max-width: 768px) {
    .contact-float {
        right: 12px;
        bottom: 132px; /* 避开移动端底部导航与分类按钮 */
    }

    .contact-float .cf-item {
        padding: 7px 10px;
    }

    .contact-float .cf-txt {
        max-width: 96px;
    }
}

/* ---------- 图片广告动画（用户/管理员可选） ---------- */
.ad-img-blink {
    animation: adJump 1.6s ease-in-out infinite;
}

.ad-img-flow {
    animation: adFlowImg 3.2s linear infinite;
}

@keyframes adFlowImg {
    0%, 100% { filter: saturate(1) brightness(1); }
    50%      { filter: saturate(1.35) brightness(1.08); }
}

/* ---------- 工单回复样式 ---------- */
.uc-replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uc-reply {
    border: 1px solid var(--border, #e8ecf3);
    border-radius: 11px;
    overflow: hidden;
}

.uc-reply.admin {
    border-color: rgba(24, 144, 255, .4);
    background: rgba(24, 144, 255, .04);
}

.uc-reply-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    font-size: 12px;
    background: var(--bg, #f7f9fc);
    color: var(--muted, #8b98ad);
}

.uc-reply-body {
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--text, #24324d);
    word-break: break-word;
}

.uc-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border, #dfe5ee);
    border-radius: 9px;
    font-size: 13.5px;
    background: var(--bg, #f7f9fc);
    color: var(--text, #24324d);
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    transition: border .2s;
}

.uc-textarea:focus {
    border-color: var(--brand, #1890ff);
    background: #fff;
}

/* ==================== v2.0.0 追加 ==================== */

/* ---------- 无痕验证蜜罐（人类不可见） ---------- */
.nc-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---------- 广告槽位招租占位 ---------- */
.ad-slot-free {
    border: 1px dashed var(--border-2);
}

.ad-slot-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: 52px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 2px;
    transition: all .25s;
}

a.ad-slot-buy:hover {
    color: var(--brand);
    background: var(--brand-bg);
}

.ad-text-table .ad-slot-buy {
    min-height: 52px;
}

/* ---------- 友情链接布局修复：与内容区同宽 + 均匀网格 ---------- */
.friend-links-wrap {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto 16px;
    padding: 16px;
    box-sizing: border-box;
}

.friend-links-wrap .fl-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.friend-links-wrap .fl-item {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- 用户中心（按用户提供 UI 设计图） ---------- */
.uc-body {
    background: var(--bg, #f2f4f8);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.uc-topbar {
    background: linear-gradient(90deg, #1e9fff 0%, #0d6efd 60%, #0a58ca 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(13, 110, 253, .28);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.uc-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.uc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.uc-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.uc-brand-txt {
    font-size: 17px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.uc-brand-txt small {
    font-size: 11px;
    font-weight: 500;
    opacity: .85;
}

.uc-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
}

.uc-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.uc-uname {
    font-size: 13.5px;
    font-weight: 700;
}

.uc-exit {
    border: 1px solid rgba(255, 255, 255, .55);
    background: transparent;
    color: #fff;
    font-size: 12px;
    padding: 3px 11px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
}

.uc-exit:hover {
    background: rgba(255, 255, 255, .16);
}

.uc-wrap {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 18px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex: 1;
    box-sizing: border-box;
}

.uc-side {
    width: 200px;
    flex-shrink: 0;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e8ecf3);
    border-radius: 14px;
    padding: 10px;
    position: sticky;
    top: 74px;
}

.uc-side-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.uc-side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--text-2, #5a6b87);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s;
}

.uc-side-nav a:hover {
    background: rgba(24, 144, 255, .07);
    color: var(--brand, #1890ff);
}

.uc-side-nav a.on {
    background: linear-gradient(90deg, rgba(24, 144, 255, .14), rgba(13, 110, 253, .06));
    color: var(--brand, #1890ff);
    font-weight: 800;
}

.uc-nav-ico {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(24, 144, 255, .1);
    color: var(--brand, #1890ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* 顶栏菜单按钮（移动端显示） */
.uc-menu-btn {
    display: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 17px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 侧栏折叠分组 */
.uc-side-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-2, #5a6b87);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all .18s;
}

.uc-side-group-head:hover {
    background: rgba(24, 144, 255, .07);
    color: var(--brand, #1890ff);
}

.uc-side-group-head .uc-g-arrow {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted, #8b98ad);
    transition: transform .22s;
}

.uc-side-group.open .uc-side-group-head .uc-g-arrow {
    transform: rotate(180deg);
}

.uc-side-sub {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}

.uc-side-group.open .uc-side-sub {
    max-height: 320px;
}

.uc-side-sub a {
    padding-left: 14px;
    font-size: 13px;
}

/* 侧栏未读徽标 */
.uc-nav-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e11d48;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 仪表盘站内讯息行 */
.uc-notice-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 2px;
    border-bottom: 1px dashed var(--border, #eef1f6);
    text-decoration: none;
}

.uc-notice-line:last-child {
    border-bottom: 0;
}

.uc-notice-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e11d48;
    flex-shrink: 0;
}

.uc-notice-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--text, #24324d);
}

.uc-notice-title.read {
    font-weight: 500;
    color: var(--muted, #8b98ad);
}

.uc-notice-time {
    font-size: 11.5px;
    color: var(--muted, #8b98ad);
    flex-shrink: 0;
}

.uc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 欢迎横幅 */
.uc-welcome {
    background: linear-gradient(100deg, #1e9fff, #0d6efd);
    border-radius: 14px;
    color: #fff;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(13, 110, 253, .25);
}

.uc-welcome-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.uc-welcome-inner > i {
    font-size: 30px;
    opacity: .9;
}

.uc-welcome h2 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 3px;
}

.uc-welcome p {
    margin: 0;
    font-size: 12.5px;
    opacity: .88;
}

/* 统计卡（渐变四色） */
.uc-section-head {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-2, #5a6b87);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.uc-section-head i {
    color: var(--brand, #1890ff);
}

.uc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.uc-card {
    position: relative;
    border-radius: 14px;
    padding: 15px 16px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 40, 80, .1);
}

.uc-card.grad-green  { background: linear-gradient(120deg, #34d399, #059669); }
.uc-card.grad-blue   { background: linear-gradient(120deg, #38bdf8, #1d6ef2); }
.uc-card.grad-purple { background: linear-gradient(120deg, #a78bfa, #6d5bd0); }
.uc-card.grad-rose   { background: linear-gradient(120deg, #fb7185, #e11d48); }
.uc-card.grad-orange { background: linear-gradient(120deg, #fbbf24, #f59e0b); }

.uc-card-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}

.uc-card-num small {
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
    opacity: .85;
}

.uc-card-label {
    font-size: 12.5px;
    margin-top: 4px;
    opacity: .92;
}

.uc-card-ico {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.uc-card-link {
    position: absolute;
    inset: 0;
}

/* 面板 */
.uc-panel {
    background: var(--card, #fff);
    border: 1px solid var(--border, #e8ecf3);
    border-radius: 14px;
    overflow: hidden;
}

.uc-panel-head {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text, #24324d);
    border-bottom: 1px solid var(--border, #eef1f6);
    display: flex;
    align-items: center;
    gap: 7px;
}

.uc-panel-head i {
    color: var(--brand, #1890ff);
}

.uc-panel-body {
    padding: 16px;
}

/* 快速操作 */
.uc-quick {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.uc-quick .uc-btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* 账户信息 */
.uc-account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
}

.uc-account-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.uc-account-item small {
    display: block;
    color: var(--muted, #8b98ad);
    font-size: 11.5px;
}

.uc-account-item b {
    font-size: 13.5px;
    word-break: break-all;
}

.ai {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.ai.ico-blue   { background: rgba(24, 144, 255, .12); color: #1890ff; }
.ai.ico-green  { background: rgba(82, 196, 26, .12);  color: #52c41a; }
.ai.ico-purple { background: rgba(114, 46, 209, .12); color: #722ed1; }
.ai.ico-rose   { background: rgba(255, 77, 109, .12); color: #ff4d6a; }

/* 按钮 */
.uc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(100deg, #1e9fff, #0d6efd);
    color: #fff;
    border: 0;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 18px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
}

.uc-btn:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 4px 12px rgba(13, 110, 253, .3);
    transform: translateY(-1px);
}

.uc-btn.outline {
    background: transparent;
    color: var(--brand, #1890ff);
    border: 1px solid var(--brand-border, rgba(24, 144, 255, .35));
}

.uc-btn.outline:hover {
    background: rgba(24, 144, 255, .08);
    box-shadow: none;
}

.uc-btn.outline.danger {
    color: #e11d48;
    border-color: rgba(225, 29, 72, .4);
}

.uc-btn.outline.danger:hover {
    background: rgba(225, 29, 72, .06);
}

.uc-btn.sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 7px;
}

.uc-btn.mini {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 7px;
}

.uc-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* 表单 */
.uc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 14px;
}

.uc-form-grid label,
.uc-auth-card label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2, #5a6b87);
    margin-bottom: 5px;
}

.uc-form-grid input[type=text],
.uc-form-grid input[type=password],
.uc-form-grid input[type=email],
.uc-form-grid input[type=number],
.uc-form-grid input[type=url],
.uc-form-grid input[type=tel],
.uc-form-grid select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border, #dfe5ee);
    border-radius: 9px;
    font-size: 13.5px;
    background: var(--bg, #f7f9fc);
    color: var(--text, #24324d);
    outline: none;
    transition: border .2s;
    box-sizing: border-box;
}

.uc-form-grid input:focus,
.uc-form-grid select:focus {
    border-color: var(--brand, #1890ff);
    background: #fff;
}

.uc-form-grid input:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.uc-form-grid input[type=file] {
    font-size: 12.5px;
}

.uc-form-note {
    font-size: 12px;
    color: var(--muted, #8b98ad);
    background: var(--bg, #f7f9fc);
    border-radius: 9px;
    padding: 9px 12px;
    margin-bottom: 12px;
    line-height: 1.7;
}

/* 文字广告样式选项（加粗 / 跳动 / 流光，v2.4.1） */
.uc-style-box {
    border: 1px solid var(--border, #e5eaf2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--bg, #f7f9fc);
}

.uc-style-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2, #5a6b87);
    margin-bottom: 8px;
}

.uc-style-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.uc-style-checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2, #5a6b87);
    cursor: pointer;
    margin: 0;
}

.uc-style-checks input {
    width: 16px;
    height: 16px;
    accent-color: #1890ff;
    cursor: pointer;
}

.uc-style-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border, #e5eaf2);
}

.uc-style-preview small {
    font-size: 11px;
    color: var(--muted, #8b98ad);
    flex: none;
}

.uc-style-preview-text {
    display: inline-block;
    font-size: 15px;
    color: var(--text-2, #5a6b87);
}

/* 类型选择 / 槽位 */
.uc-type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.uc-type-tab {
    border: 1.5px solid var(--border, #e5eaf2);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-2, #5a6b87);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all .2s;
}

.uc-type-tab i {
    font-size: 22px;
}

.uc-type-tab small {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted, #8b98ad);
}

.uc-type-tab.on {
    border-color: var(--brand, #1890ff);
    color: var(--brand, #1890ff);
    background: rgba(24, 144, 255, .06);
    box-shadow: 0 4px 12px rgba(24, 144, 255, .12);
}

/* 已关闭售卖的类型：置灰 + 「已关闭」徽标（仍可点击切换查看） */
.uc-type-tab.off {
    opacity: .62;
    background: #f5f7fa;
    border-style: dashed;
    color: var(--muted, #8b98ad);
}

.uc-type-tab.off i,
.uc-type-tab.off small {
    color: var(--muted, #8b98ad);
}

.uc-tab-off {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #b0b9c9;
    border-radius: 999px;
    padding: 3px 8px;
}

.uc-type-tab.on .uc-tab-off {
    background: var(--brand, #1890ff);
}

.uc-price-line {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-2, #5a6b87);
}

.uc-price-line b {
    color: #e11d48;
    font-size: 16px;
}

.uc-slot-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
}

.uc-slot {
    border: 1.5px solid var(--border, #e5eaf2);
    border-radius: 10px;
    padding: 9px 6px;
    text-align: center;
    cursor: pointer;
    display: block;
    transition: all .18s;
    background: var(--bg, #f7f9fc);
}

.uc-slot input {
    display: none;
}

.uc-slot-pos {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-2, #5a6b87);
}

.uc-slot-state {
    display: block;
    font-size: 10.5px;
    margin-top: 3px;
    color: #52c41a;
    font-weight: 700;
}

.uc-slot:hover {
    border-color: var(--brand, #1890ff);
    transform: translateY(-2px);
}

.uc-slot.taken {
    opacity: .45;
    cursor: not-allowed;
    background: transparent;
}

.uc-slot.taken .uc-slot-state {
    color: var(--muted, #8b98ad);
}

.uc-slot input:checked ~ .uc-slot-pos {
    color: var(--brand, #1890ff);
}

.uc-slot:has(input:checked) {
    border-color: var(--brand, #1890ff);
    background: rgba(24, 144, 255, .07);
    box-shadow: 0 3px 10px rgba(24, 144, 255, .16);
}

/* 订单二维码 */
.uc-qr-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.uc-qr-card {
    border: 1px solid var(--border, #e8ecf3);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 160px;
}

.uc-qr-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 8px;
}

.uc-qr-card small {
    color: var(--muted, #8b98ad);
    font-size: 11.5px;
}

.uc-order-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 表格 */
.uc-table-wrap {
    overflow-x: auto;
}

.uc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.uc-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--muted, #8b98ad);
    font-weight: 700;
    border-bottom: 1px solid var(--border, #eef1f6);
    white-space: nowrap;
    background: var(--bg, #f9fafc);
}

.uc-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border, #f1f4f9);
    color: var(--text-2, #42506b);
    vertical-align: middle;
}

.uc-table tr:last-child td {
    border-bottom: 0;
}

.uc-table tr:hover td {
    background: rgba(24, 144, 255, .035);
}

.uc-mono {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
}

.uc-ellipsis {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.uc-empty {
    text-align: center;
    color: var(--muted, #8b98ad);
    padding: 26px 0 !important;
}

/* 徽标 / 提示 */
.uc-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.uc-badge-ok    { background: rgba(82, 196, 26, .13);  color: #52c41a; }
.uc-badge-warn  { background: rgba(250, 140, 22, .14); color: #fa8c16; }
.uc-badge-info  { background: rgba(24, 144, 255, .13); color: #1890ff; }
.uc-badge-err   { background: rgba(255, 77, 109, .13); color: #ff4d6a; }
.uc-badge-muted { background: rgba(120, 130, 150, .14); color: #788296; }

.uc-flash {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}

.uc-flash.ok {
    background: rgba(82, 196, 26, .1);
    color: #2f9e12;
    border: 1px solid rgba(82, 196, 26, .3);
}

.uc-flash.err {
    background: rgba(255, 77, 109, .08);
    color: #e11d48;
    border: 1px solid rgba(255, 77, 109, .3);
}

/* 登录 / 注册页 */
.uc-auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e9fff 0%, #0d6efd 55%, #0a3d91 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.uc-auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--card, #fff);
    border-radius: 18px;
    padding: 26px 26px 20px;
    box-shadow: 0 18px 50px rgba(4, 30, 80, .35);
}

.uc-auth-brand {
    text-align: center;
    margin-bottom: 16px;
}

.uc-auth-brand .uc-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(120deg, #1e9fff, #0d6efd);
    color: #fff;
    font-size: 24px;
    margin: 0 auto 8px;
}

.uc-auth-brand h1 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text, #24324d);
    margin: 0 0 2px;
}

.uc-auth-brand p {
    margin: 0;
    font-size: 12px;
    color: var(--muted, #8b98ad);
}

.uc-auth-card label {
    margin-top: 10px;
}

.uc-auth-card input[type=text],
.uc-auth-card input[type=password] {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--border, #dfe5ee);
    border-radius: 9px;
    font-size: 14px;
    background: var(--bg, #f7f9fc);
    color: var(--text, #24324d);
    outline: none;
    box-sizing: border-box;
    transition: border .2s;
}

.uc-auth-card input:focus {
    border-color: var(--brand, #1890ff);
    background: #fff;
}

.uc-auth-card .uc-btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 11px;
    font-size: 14.5px;
}

.uc-auth-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12.5px;
}

.uc-auth-foot a {
    color: var(--brand, #1890ff);
    text-decoration: none;
    font-weight: 600;
}

.uc-foot {
    text-align: center;
    font-size: 11.5px;
    color: var(--muted, #8b98ad);
    padding: 14px 0 20px;
}

/* 用户中心响应式 */
@media(max-width: 900px) {
    .uc-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 修复：column 方向下沿用桌面 align-items:flex-start 会让 .uc-main 收缩为内容宽度，
       导致面板/卡片在移动端只占半屏；必须改回 stretch 撑满 */
    .uc-wrap {
        flex-direction: column;
        padding: 12px;
        align-items: stretch;
    }

    .uc-menu-btn {
        display: inline-flex;
    }

    .uc-side {
        display: none;
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .uc-side.show {
        display: block;
    }

    .uc-side-nav {
        gap: 4px;
    }

    .uc-slot-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media(max-width: 560px) {
    .uc-account {
        grid-template-columns: 1fr;
    }

    .uc-form-grid {
        grid-template-columns: 1fr;
    }

    .uc-card-num {
        font-size: 21px;
    }

    .uc-card {
        padding: 12px 13px;
    }

    .uc-welcome h2 {
        font-size: 16px;
    }

    .uc-slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .uc-type-tabs {
        gap: 8px;
    }

    .uc-type-tab {
        padding: 10px 8px;
        font-size: 12.5px;
    }

    .uc-type-tab i {
        font-size: 18px;
    }

    .uc-slot {
        padding: 10px 4px;
    }

    .uc-brand-txt small {
        display: none;
    }
}

/* 移动端表格卡片化（opt-in：.uc-card-mode） */
@media(max-width: 760px) {
    .uc-card-mode thead {
        display: none;
    }

    .uc-card-mode,
    .uc-card-mode tbody,
    .uc-card-mode tr,
    .uc-card-mode td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .uc-card-mode tr {
        border: 1px solid var(--border, #e6ebf3);
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 6px 13px;
        background: var(--card, #fff);
        box-shadow: 0 1px 3px rgba(20, 40, 80, .05);
    }

    .uc-card-mode tr:hover td {
        background: transparent;
    }

    .uc-card-mode td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border-bottom: 1px dashed var(--border, #eef1f6);
        text-align: right;
        font-size: 12.5px;
    }

    .uc-card-mode tr td:last-child {
        border-bottom: 0;
    }

    .uc-card-mode td[data-label]::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 700;
        color: var(--muted, #8b98ad);
        text-align: left;
    }

    .uc-card-mode td:not([data-label]) {
        justify-content: flex-end;
    }

    .uc-card-mode .uc-ellipsis {
        max-width: 62%;
    }

    /* 空数据行保持居中（uc-empty-row 类为主，:has 为渐进增强兜底，兼容老 WebView） */
    .uc-card-mode tr.uc-empty-row,
    .uc-card-mode tr:has(.uc-empty) {
        padding: 16px 13px;
    }

    .uc-card-mode tr.uc-empty-row td,
    .uc-card-mode tr:has(.uc-empty) td {
        display: block;
        text-align: center;
        border-bottom: 0;
    }

    /* flex 子项防溢出 */
    .uc-card-mode td > * {
        min-width: 0;
    }
}

/* ==================== v2.1.0 追加 ==================== */

/* ---------- 点击式人机验证组件 ---------- */
.nc-widget {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 8px;
    border: 1px solid var(--border, #dfe5ee);
    border-radius: 9px;
    background: var(--bg, #f7f9fc);
    cursor: pointer;
    user-select: none;
    transition: all .2s;
    margin-top: 12px;
}

.nc-widget:hover {
    border-color: var(--brand, #1890ff);
}

.nc-widget .nc-box {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(24, 144, 255, .12);
    color: var(--brand, #1890ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nc-widget .nc-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2, #5a6b87);
}

.nc-widget.busy {
    opacity: .75;
    cursor: wait;
}

.nc-widget.busy .nc-box {
    background: rgba(250, 140, 22, .15);
    color: #fa8c16;
}

.nc-widget.ok {
    border-color: rgba(82, 196, 26, .55);
    background: rgba(82, 196, 26, .07);
    cursor: default;
}

.nc-widget.ok .nc-box {
    background: #52c41a;
    color: #fff;
}

.nc-widget.ok .nc-label {
    color: #52c41a;
}

/* ---------- 后台槽位网格（与前台广告位布局一致） ---------- */
.ad-slot-admin-grid {
    display: grid;
    gap: 10px;
}

.asa-cell {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    background: var(--card-2, var(--bg));
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.asa-cell.occupied {
    border-color: var(--brand-border, rgba(24, 144, 255, .3));
    background: rgba(24, 144, 255, .04);
}

.asa-head {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.asa-body {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    overflow: hidden;
}

.asa-body img {
    width: 100%;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
}

.asa-alias {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asa-empty {
    color: var(--muted);
    font-size: 12px;
    justify-content: center;
    border: 1px dashed var(--border-2);
    border-radius: 8px;
    letter-spacing: 3px;
}

.asa-ops {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.asa-ops .btn {
    padding: 2px 8px;
    font-size: 11.5px;
}

.asa-price {
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: 1px dashed var(--border);
    padding-top: 7px;
}

.asa-price-sym,
.asa-price-unit {
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
}

.asa-price input {
    max-width: 88px;
    text-align: center;
}

/* ---------- 后台广告位管理移动端重排 ---------- */
@media(max-width: 860px) {
    /* 覆盖内联列数：手机端 2 列，避免 30 槽文字网格过度拥挤 */
    .ad-slot-admin-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .asa-price input {
        max-width: none;
        flex: 1;
        min-width: 0;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tabs .nav-link {
        padding: 7px 10px;
        font-size: 12.5px;
    }
}

@media(max-width: 480px) {
    .ad-slot-admin-grid {
        grid-template-columns: 1fr !important;
    }

    .asa-cell {
        padding: 12px;
    }

    .asa-ops .btn {
        padding: 5px 12px;
        font-size: 12.5px;
    }
}

/* ---------- 图片广告撑满槽位（v2.1.0 修复） ---------- */
.ad-img-cell > a,
.ad-img-cell > img {
    width: 100%;
}

/* ---------- 用户购买页槽位价格 ---------- */
.uc-slot-price {
    display: block;
    font-size: 10.5px;
    margin-top: 2px;
    color: #e11d48;
    font-weight: 700;
}

.uc-slot.taken .uc-slot-price {
    color: var(--muted, #8b98ad);
}

.uc-avatar-img {
    object-fit: cover;
}

/* ---------- 控制面板蜘蛛卡补色 + 悬停动效（八卡统一） ---------- */
.spider-card.sc-cyan   { background: linear-gradient(135deg, #06b6d4, #67e8f9) }
.spider-card.sc-orange { background: linear-gradient(135deg, #f59e0b, #fbbf24) }
.spider-card.sc-teal   { background: linear-gradient(135deg, #14b8a6, #5eead4) }
.spider-card.sc-violet { background: linear-gradient(135deg, #8b5cf6, #c4b5fd) }

a.spider-card {
    color: #fff;
    text-decoration: none;
}

a.spider-card:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
    transition: transform .22s, box-shadow .22s;
}

@media(max-width: 560px) {
    /* 移动端文字广告：5 列表格改为 2 列网格，避免挤压遮挡 */
    .ad-text-table,
    .ad-text-table tbody {
        display: block;
        border-spacing: 0;
    }

    .ad-text-table tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        margin-bottom: 4px;
    }

    .ad-text-table td {
        display: block;
        padding: 0;
    }

    /* 移动端置顶角标改为行内小标签，不再遮挡站点名 */
    .site-card .pin-flag {
        position: static;
        margin: 0 0 0 6px;
        padding: 2px 7px;
        font-size: 10px;
        flex-shrink: 0;
    }
}

/* ---------- 未完成人机验证时的引导反馈 ---------- */
.nc-widget.nc-need {
    border-color: #f5222d;
    background: rgba(245, 34, 45, .06);
}

.nc-widget.nc-need .nc-box {
    background: rgba(245, 34, 45, .12);
    color: #f5222d;
}

.nc-widget.nc-shake {
    animation: ncShake .5s ease;
}

@keyframes ncShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.nc-need-tip {
    display: none;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(245, 34, 45, .08);
    border: 1px solid rgba(245, 34, 45, .3);
    color: #e11d48;
    font-size: 12.5px;
    line-height: 1.6;
}

