/**
 * page.css - 卡片样式、网格、分类页、详情页组件
 * 仅包含页面级样式，全局基础样式已在 style.css 中定义
 */

/* ============================================================
   1. 内容卡片容器
   ============================================================ */
.dh-content {
    margin: 0 auto;
    width: 100%;
}
.content-item {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
    padding: 20px 24px !important;
    margin-bottom: 10px !important;
}

.content-item-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.content-item-head-left h4 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.content-item-head-left h4 i {
    color: #4a6cf7 !important;
}
.content-item-head a {
    color: #a0aec0 !important;
    font-size: 18px !important;
}
.content-item-head a:hover {
    color: #4a6cf7 !important;
}

/* ============================================================
   2. 卡片网格（PC & 手机）
   ============================================================ */
.content-item-urls {
    display: grid !important;
    gap: 12px !important;
    padding: 0 !important;
}
@media (min-width: 1025px) {
    .content-item-urls {
        grid-template-columns: repeat(7, 1fr) !important;
    }
    .content-urls-card {
        padding: 8px 10px !important;
        min-height: 50px !important;
    }
    .content-url-info strong {
        font-size: 13px !important;
    }
    .content-url-img {
        width: 32px !important;
        height: 32px !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .content-item-urls {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .content-item-urls {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
}
@media (max-width: 420px) {
    .content-item-urls {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
}

/* ============================================================
   3. 站点卡片
   ============================================================ */
.content-urls-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 58px !important;
    overflow: hidden !important;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.content-urls-card:hover {
    border-color: #4a6cf7 !important;
    box-shadow: 0 8px 24px rgba(74, 108, 247, 0.08) !important;
    transform: translateY(-4px) !important;
}
.content-urls-card.is-recommend {
    background: linear-gradient(145deg, #fffbeb, #fef3c7) !important;
    border-color: #f6e05e !important;
}
.content-urls-card.is-recommend:hover {
    border-color: #ecc94b !important;
    box-shadow: 0 8px 24px rgba(236, 201, 75, 0.15) !important;
}

/* 推荐标签 - 斜角渐变样式 */
.card-badge-recommend {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    z-index: 99 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 68px !important;
    padding: 3px 24px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
    color: #fff !important;
    background: linear-gradient(135deg, #f89250 10%, #f1404b 100%) !important;
    border: none !important;
    border-radius: 0 !important;
    pointer-events: none !important;
    transform: translate(-18px, 32px) rotate(-45deg) translateZ(0) !important;
    transform-origin: 0 0 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    transition: none !important;
    will-change: transform !important;
    box-shadow: none !important;
}
.content-urls-card:hover .card-badge-recommend {
    background: #e4415f !important;
}
@media (max-width: 768px) {
    .card-badge-recommend {
        min-width: 50px !important;
        padding: 2px 16px !important;
        font-size: 10px !important;
        transform: translate(-12px, 22px) rotate(-45deg) translateZ(0) !important;
    }
}

/* 通用卡片标签（用于非推荐标签） */
.card-badge {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    z-index: 99 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 68px !important;
    padding: 3px 24px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    pointer-events: none !important;
    transform: translate(-18px, 32px) rotate(-45deg) translateZ(0) !important;
    transform-origin: 0 0 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    transition: none !important;
    will-change: transform !important;
    box-shadow: none !important;
}
.card-badge-recommend { background: linear-gradient(135deg, #f89250, #f1404b); }
.card-badge-hot { background: linear-gradient(135deg, #f56565, #e53e3e); }
.card-badge-default { background: linear-gradient(135deg, #4a6cf7, #6a8cff); }

/* 卡片主体 */
.content-urls-body {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
}
.content-url-flex {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
}
.content-card-body {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    flex: 1 !important;
    gap: 10px !important;
}

/* 图标 */
.content-url-img {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: -3px -3px -3px -3px !important;
}
.content-url-img img {
    width: 70% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    transform: scale(1.05) !important;
    transition: transform 0.25s ease !important;
}
.content-urls-card:hover .content-url-img img {
    transform: scale(1.1) !important;
}
@media (max-width: 768px) {
    .content-url-img {
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    .content-url-img img {
        transform: scale(1) !important;
    }
    .content-urls-card:hover .content-url-img img {
        transform: scale(1) !important;
    }
}

/* 文字 */
.content-url-info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
.content-url-info strong {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.2s !important;
}
.content-urls-card:hover .content-url-info strong {
    color: #4a6cf7 !important;
}
.content-url-info p {
    font-size: 12px !important;
    color: #718096 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 前往按钮 */
.content-url-togo {
    flex-shrink: 0 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    color: #cbd5e0 !important;
    transition: all 0.3s ease !important;
    background: #f7fafc !important;
}
.content-url-togo:hover {
    color: #fff !important;
    background: #4a6cf7 !important;
    transform: rotate(45deg) scale(1.05) !important;
}
.content-url-togo svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
}

/* ============================================================
   4. 手机端卡片强制覆盖
   ============================================================ */
@media (max-width: 768px) {
    .content-item {
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-radius: 14px !important;
        padding: 14px 14px !important;
        margin-bottom: 14px !important;
    }
    .content-item-head h4 {
        font-size: 14px !important;
    }
    .content-urls-card {
        padding: 8px 10px !important;
        min-height: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border: 1px solid #edf2f7 !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
        transition: none !important;
        transform: none !important;
    }
    .content-urls-card:hover {
        transform: none !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
        border-color: #4a6cf7 !important;
    }
    .content-urls-card.is-recommend {
        background: rgba(255, 251, 235, 0.9) !important;
        border-color: #f6e05e !important;
    }
    .content-urls-body {
        justify-content: flex-start !important;
        gap: 6px !important;
    }
    .content-card-body {
        gap: 6px !important;
    }
    .content-url-img {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        border: none !important;
        background: transparent !important;
        overflow: hidden !important;
        margin: 0 !important;
    }
    .content-url-info strong {
        font-size: 12px !important;
        color: #1a202c !important;
    }
    .content-url-info p {
        display: none !important;
    }
    .content-url-togo {
        display: none !important;
    }
    .category-main .rank-sidebar {
        display: none !important;
    }
    .ai-tools-section {
        display: block !important;
    }
}
@media (max-width: 420px) {
    .content-urls-card {
        min-height: 42px !important;
        height: 42px !important;
        padding: 6px 8px !important;
    }
    .content-url-img {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }
    .content-url-info strong {
        font-size: 11px !important;
    }
}

/* ============================================================
   5. 分类页布局
   ============================================================ */
.category-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 0 16px 0 !important;
    margin-bottom: 16px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.category-header h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.category-header h1 i {
    color: #4a6cf7 !important;
    background: rgba(74, 108, 247, 0.10) !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
}
.category-header .category-count {
    font-size: 13px !important;
    color: #718096 !important;
    background: #edf2f7 !important;
    padding: 4px 16px !important;
    border-radius: 30px !important;
    white-space: nowrap !important;
}

.group-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 0 16px 0 !important;
}
.group-tab {
    padding: 6px 18px !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    background: #f1f4f9 !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
}
.group-tab:hover {
    background: #e2e8f0 !important;
    color: #2d3748 !important;
}
.group-tab.active {
    background: #4a6cf7 !important;
    color: #fff !important;
    border-color: #4a6cf7 !important;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.25) !important;
}
@media (max-width: 768px) {
    .group-tab {
        pointer-events: auto !important;
        cursor: pointer !important;
    }
}

.group-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    margin: 0 0 10px 0 !important;
    padding: 4px 16px !important;
    background: linear-gradient(135deg, #f0f5ff, #e8edfc) !important;
    border-radius: 30px !important;
    border-left: 4px solid #4a6cf7 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.category-main {
    display: flex !important;
    gap: 24px !important;
}
.category-main .main-list {
    flex: 1 !important;
    min-width: 0 !important;
}
.category-main .rank-sidebar {
    flex: 0 0 260px !important;
    width: 260px !important;
    position: sticky !important;
    top: 20px !important;
}
@media (max-width: 992px) {
    .category-main {
        flex-direction: column !important;
    }
    .category-main .rank-sidebar {
        width: 100% !important;
        position: static !important;
        margin-top: 16px !important;
    }
}
@media (max-width: 768px) {
    .category-header h1 {
        font-size: 18px !important;
    }
    .category-header .category-count {
        font-size: 11px !important;
        padding: 2px 12px !important;
    }
    .group-tab {
        font-size: 12px !important;
        padding: 4px 14px !important;
    }
    .group-title {
        font-size: 13px !important;
        padding: 3px 12px !important;
    }
}

/* ============================================================
   6. 排行榜
   ============================================================ */
.rank-card {
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important;
    padding: 16px 18px !important;
    /* 【溢出修复】作为 .xk-rank-grid（repeat(3,1fr)）的 grid 子项时，min-width 默认为 auto，
       会按内容 min-content 撑开轨道——长站名（nowrap）把 3 条轨道顶到 417/420/420，页面横向溢出 123px。
       置 0 后轨道回归 1fr 等分，内部 .rank-name 已有的 overflow:hidden + text-overflow:ellipsis 生效。 */
    min-width: 0 !important;
}
.rank-card .rank-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #f0f4f8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.rank-card .rank-title i {
    color: #f6ad55 !important;
}
.rank-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.rank-list li {
    display: flex !important;
    align-items: center !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #f7fafc !important;
}
.rank-list li:last-child {
    border-bottom: none !important;
}
.rank-list li:hover {
    background: #f7fafc !important;
    border-radius: 6px !important;
    padding-left: 6px !important;
}
.rank-num {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}
.rank-num.top1 { background: linear-gradient(135deg, #f6ad55, #ed8936) !important; }
.rank-num.top2 { background: linear-gradient(135deg, #a0aec0, #718096) !important; }
.rank-num.top3 { background: linear-gradient(135deg, #f6ad55, #dd6b20) !important; }
.rank-num.default { background: #e2e8f0 !important; color: #718096 !important; }
.rank-name {
    flex: 1 !important;
    font-size: 13px !important;
    color: #2d3748 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.rank-name a:hover {
    color: #4a6cf7 !important;
}
.rank-count {
    font-size: 11px !important;
    color: #a0aec0 !important;
    flex-shrink: 0 !important;
    background: #f7fafc !important;
    padding: 0 10px !important;
    border-radius: 30px !important;
}
.rank-empty {
    text-align: center !important;
    color: #a0aec0 !important;
    padding: 20px 0 !important;
}

/* ============================================================
   7. 分页
   ============================================================ */
.pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 20px !important;
    padding: 16px 0 0 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    justify-content: center !important;
}
.pagination .pagination-total {
    color: #a0aec0 !important;
    font-size: 12px !important;
    margin-right: 12px !important;
}
.pagination a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    color: #4a6cf7 !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
}
.pagination a:hover {
    background: #f0f5ff !important;
    border-color: #d0d9f0 !important;
}
.pagination .pagination-page.active {
    background: #4a6cf7 !important;
    color: #fff !important;
    border-color: #4a6cf7 !important;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2) !important;
}
@media (max-width: 768px) {
    .pagination .pagination-total {
        width: 100% !important;
        text-align: center !important;
        margin-right: 0 !important;
        margin-bottom: 4px !important;
        font-size: 11px !important;
    }
    .pagination a {
        min-width: 30px !important;
        height: 30px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }
}

/* ============================================================
   8. AI工具
   ============================================================ */
.ai-tools-section {
    display: block !important;
}
.ai-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 8px;
}
.ai-tab {
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f7fafc;
    border: 1px solid transparent;
}
.ai-tab:hover {
    background: #edf2f7;
    color: #2d3748;
}
.ai-tab.active {
    background: #4a6cf7;
    color: #fff;
    border-color: #4a6cf7;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.2);
}
.ai-tab-add {
    margin-left: auto;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4a6cf7;
    background: #ebf0ff;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px dashed #4a6cf7;
}
.ai-tab-add:hover {
    background: #dce5ff;
}
@media (max-width: 768px) {
    .ai-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 6px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #eef2f6;
    }
    .ai-tab,
    .ai-tab-add {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: 4px 12px !important;
        border-radius: 20px !important;
    }
    .ai-tab-add {
        background: #ebf0ff !important;
        border: 1px dashed #4a6cf7 !important;
        color: #4a6cf7 !important;
        margin-left: 0 !important;
    }
    .ai-tabs::-webkit-scrollbar {
        height: 3px;
    }
    .ai-tabs::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 4px;
    }
}
.ai-tab-content {
    position: relative;
}
.ai-tab-panel {
    display: none;
    animation: fadeIn 0.25s ease;
}
.ai-tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-tools-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding: 4px 2px 8px 2px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.ai-tools-grid::-webkit-scrollbar {
    height: 6px;
}
.ai-tools-grid::-webkit-scrollbar-track {
    background: #f0f4f8;
    border-radius: 4px;
}
.ai-tools-grid::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}
.ai-tools-grid::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.ai-tool-card {
    flex: 0 0 auto !important;
    min-width: 120px !important;
    padding: 10px 16px !important;
    background: #f7fafc !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #2d3748 !important;
    transition: all 0.25s ease !important;
    white-space: nowrap;
}
.ai-tool-card:hover {
    border-color: #4a6cf7 !important;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.08) !important;
    transform: translateY(-2px) !important;
    background: #ffffff !important;
}
.ai-tool-icon {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}
.ai-tool-card span {
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* ============================================================
   9. 首页分组标签
   ============================================================ */
.content-item-head-left {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 12px !important;
}
.home-group-tabs {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 6px !important;
    margin-left: 0 !important;
}
.home-group-tab {
    padding: 2px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    background: #edf2f7 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    line-height: 1.6 !important;
    border: none !important;
    user-select: none !important;
}
.home-group-tab:hover {
    background: #e2e8f0 !important;
    color: #2d3748 !important;
    transform: translateY(-1px) !important;
}
.home-group-tab.active {
    background: #4a6cf7 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.25) !important;
}
.content-item-head-left h4 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}
@media (max-width: 768px) {
    .home-group-tab {
        padding: 1px 10px !important;
        font-size: 12px !important;
        border-radius: 16px !important;
    }
    .content-item-head-left {
        gap: 4px 8px !important;
    }
    .home-group-tabs {
        gap: 3px 4px !important;
    }
    .content-item-head {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 0 0 8px 0 !important;
    }
    .content-item-head-left {
        flex-wrap: nowrap !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .content-item-head-left h4 {
        flex: 0 0 auto !important;
        font-size: 15px !important;
        white-space: nowrap !important;
    }
    .content-item-head > a {
        flex: 0 0 auto !important;
        font-size: 18px !important;
        padding: 2px 6px !important;
        color: #4a6cf7 !important;
    }
    .home-group-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 2px 0 !important;
    }
    .home-group-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .home-group-tab {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: 2px 10px !important;
    }
}

/* ============================================================
   10. AI 模态框
   ============================================================ */
.ai-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.ai-modal-overlay.active {
    display: flex;
}
.ai-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.ai-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-modal-title .close-btn {
    cursor: pointer;
    color: #a0aec0;
    font-size: 24px;
}
.ai-modal-title .close-btn:hover {
    color: #1a202c;
}
.ai-modal-box .form-group {
    margin-bottom: 14px;
}
.ai-modal-box label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 4px;
}
.ai-modal-box input[type="text"],
.ai-modal-box input[type="url"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
.ai-modal-box input:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.08);
}
.ai-modal-box .btn-submit {
    width: 100%;
    padding: 10px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.ai-modal-box .btn-submit:hover {
    background: #3a5cd9;
}
@media (max-width: 768px) {
    .ai-modal-box {
        padding: 20px;
        width: 95%;
    }
    .ai-modal-title {
        font-size: 18px;
    }
}
body.dark-mode .ai-modal-box {
    background: #2d3748;
}
body.dark-mode .ai-modal-title {
    color: #e2e8f0;
}
body.dark-mode .ai-modal-title .close-btn {
    color: #a0aec0;
}
body.dark-mode .ai-modal-title .close-btn:hover {
    color: #fff;
}
body.dark-mode .ai-modal-box label {
    color: #cbd5e0;
}
body.dark-mode .ai-modal-box input[type="text"],
body.dark-mode .ai-modal-box input[type="url"] {
    background: #4a5568;
    border-color: #5a6b7a;
    color: #cbd5e0;
}
body.dark-mode .ai-modal-box input:focus {
    border-color: #4a6cf7;
}

/* ============================================================
   11. post.php 详情页样式
   ============================================================ */
.dh-breadcrumb {
    padding: 12px 0 16px 0;
    font-size: 14px;
    color: #888;
}
.dh-breadcrumb a {
    color: #4a6cf7;
    text-decoration: none;
}
.dh-breadcrumb a:hover {
    text-decoration: underline;
}
.dh-breadcrumb i {
    margin: 0 6px;
    font-size: 12px;
    color: #ccc;
}
@media (max-width: 768px) {
    .dh-breadcrumb {
        padding: 8px 0 12px 0 !important;
        font-size: 13px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }
    .dh-breadcrumb span {
        display: inline-block !important;
        max-width: 120px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        vertical-align: middle !important;
    }
}

.dh-site-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 24px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}
.dh-site-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: #f7fafc;
    border: 1px solid #edf2f7;
}
.dh-site-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.dh-site-info {
    flex: 1;
    min-width: 200px;
}
.dh-site-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}
.dh-site-subtitle {
    font-size: 15px;
    color: #718096;
    margin-bottom: 10px;
    line-height: 1.6;
}
.dh-site-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #a0aec0;
    flex-wrap: wrap;
}
.dh-site-meta .dh-meta-item i {
    margin-right: 4px;
}
.dh-site-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-self: center;
}
.dh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
.dh-btn-primary {
    background: #4a6cf7;
    color: #fff;
    box-shadow: 0 4px 14px rgba(74, 108, 247, 0.2);
}
.dh-btn-primary:hover {
    background: #3a5cd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.3);
}
.dh-btn-outline {
    background: transparent;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}
.dh-btn-outline:hover {
    background: #f7fafc;
    border-color: #4a6cf7;
    color: #4a6cf7;
}
@media (max-width: 768px) {
    .dh-site-card {
        padding: 16px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .dh-site-avatar {
        width: 64px;
        height: 64px;
    }
    .dh-site-title {
        font-size: 20px;
    }
    .dh-site-actions {
        width: 100%;
        justify-content: center;
    }
    .dh-site-actions .dh-btn {
        padding: 8px 16px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
    }
    /* 移动端操作按钮版式（按用户要求）：第一行「链接直达」独占一行，
       第二行「收藏」+「站点反馈」各占一半。PC 端保持 4dj 原版三按钮单行（本段之外，未改）。
       首按钮用 flex-basis:100% 撑满整行触发上方 .dh-site-actions 的 flex-wrap 换行，
       其余按下标等分剩余宽度；两条选择器特异性（0,3,0）高于上方 .dh-site-actions .dh-btn{flex:1}（0,2,0），
       故在本断点内生效。 */
    .dh-site-actions .dh-btn:first-child {
        flex: 1 1 100%;
    }
    .dh-site-actions .dh-btn:not(:first-child) {
        flex: 1 1 0;
    }
}
@media (max-width: 420px) {
    .dh-site-title {
        font-size: 18px !important;
    }
    .dh-site-avatar {
        width: 52px !important;
        height: 52px !important;
    }
    .dh-site-actions .dh-btn {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
}
body.dark-mode .dh-site-card {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}
body.dark-mode .dh-site-title {
    color: #e2e8f0 !important;
}
body.dark-mode .dh-site-subtitle {
    color: #a0aec0 !important;
}
body.dark-mode .dh-site-meta {
    color: #a0aec0 !important;
}
body.dark-mode .dh-btn-outline {
    color: #a0aec0 !important;
    border-color: #4a5568 !important;
}
body.dark-mode .dh-btn-outline:hover {
    background: #4a5568 !important;
}

.dh-entry {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 20px 24px !important;
    margin-top: 16px !important;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02) !important;
}
.dh-entry-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dh-entry-title i {
    color: #4a6cf7;
}
.dh-entry-content {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.8;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.dh-entry-content p {
    margin: 0;
}
.dh-entry-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
    margin: 10px 0;
}
.dh-entry-content iframe,
.dh-entry-content video {
    max-width: 100% !important;
    border-radius: 8px;
    margin: 10px 0;
}
.dh-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dh-entry-content table th,
.dh-entry-content table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: left;
}
.dh-entry-content table th {
    background: #f7fafc;
    font-weight: 600;
}
.dh-entry-content div,
.dh-entry-content p,
.dh-entry-content ul,
.dh-entry-content ol {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
@media (max-width: 768px) {
    .dh-entry {
        padding: 14px !important;
        margin-top: 12px !important;
    }
    .dh-entry-title {
        font-size: 15px !important;
    }
    .dh-entry-content {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    .dh-entry-content img {
        border-radius: 6px;
        margin: 8px 0;
    }
    .dh-entry-content iframe,
    .dh-entry-content video {
        height: auto !important;
        min-height: 180px;
    }
}
@media (max-width: 420px) {
    .dh-entry {
        padding: 10px !important;
    }
}
body.dark-mode .dh-entry {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}
body.dark-mode .dh-entry-title {
    color: #e2e8f0 !important;
}
body.dark-mode .dh-entry-content {
    color: #cbd5e0 !important;
}

.dh-entry-xinxi p {
    padding: 6px 0;
    border-bottom: 1px solid #f7fafc;
    font-size: 14px;
    color: #4a5568;
    word-break: break-all;
}
.dh-entry-xinxi p:last-child {
    border-bottom: none;
}
.dh-entry-xinxi a {
    color: #4a6cf7;
}
.dh-entry-xinxi a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .dh-entry-xinxi p {
        font-size: 13px !important;
        padding: 4px 0 !important;
        word-break: break-word !important;
    }
}
body.dark-mode .dh-entry-xinxi p {
    color: #cbd5e0 !important;
    border-bottom-color: #4a5568 !important;
}

.dh-entry-tips {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fffbeb;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    border-left: 4px solid #f6ad55;
}
.dh-entry-tips i {
    margin-right: 6px;
}
@media (max-width: 768px) {
    .dh-entry-tips {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }
}
body.dark-mode .dh-entry-tips {
    background: #3a3830 !important;
    color: #d69e2e !important;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 10px 0 16px 0;
}
.seo-item-box {
    background: #f7fafc;
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all 0.25s ease;
}
.seo-item-box:hover {
    border-color: #4a6cf7;
    background: #f0f5ff;
    transform: translateY(-2px);
}
.seo-item-box i {
    font-size: 22px;
    color: #4a6cf7;
    display: block;
    margin-bottom: 4px;
}
.seo-item-box .seo-label {
    font-size: 11px;
    color: #a0aec0;
    display: block;
    margin-bottom: 2px;
}
.seo-item-box .seo-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    display: block;
}
.seo-item-box .seo-value.highlight {
    color: #4a6cf7;
}
@media (max-width: 768px) {
    .seo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    .seo-item-box {
        padding: 8px 4px !important;
    }
    .seo-item-box i {
        font-size: 18px !important;
    }
    .seo-item-box .seo-value {
        font-size: 16px !important;
    }
}
@media (max-width: 420px) {
    .seo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
body.dark-mode .seo-item-box {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}
body.dark-mode .seo-item-box .seo-value {
    color: #e2e8f0 !important;
}

.query-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.query-links .ql-label {
    font-size: 14px;
    color: #a0aec0;
    margin-right: 4px;
    display: flex;
    align-items: center;
}
.query-links a {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 13px;
    color: #4a6cf7;
    background: #f0f5ff;
    border: 1px solid #e0e8f5;
    transition: all 0.25s ease;
    text-decoration: none;
    font-weight: 500;
}
.query-links a:hover {
    background: #4a6cf7;
    color: #fff;
    border-color: #4a6cf7;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.15);
}
@media (max-width: 768px) {
    .query-links {
        gap: 4px !important;
    }
    .query-links a {
        font-size: 12px !important;
        padding: 2px 10px !important;
    }
}
body.dark-mode .query-links a {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #6a8cff !important;
}
body.dark-mode .query-links a:hover {
    background: #4a6cf7 !important;
    color: #fff !important;
}

.dh-related-nav {
    margin-top: 0;
}
.dh-related-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.dh-related-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}
.dh-related-title i {
    margin-right: 8px;
    color: #4a6cf7;
}
.dh-reload-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #718096;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dh-reload-btn:hover {
    background: #f7fafc;
    border-color: #4a6cf7;
    color: #4a6cf7;
}
.dh-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.dh-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fafbfc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
    /* 【溢出修复】作为 .dh-related-list（1fr / minmax(180px,1fr)）的 grid 子项时，
       min-width 默认为 auto，会按内容 min-content 撑开轨道——长站点描述（nowrap）把单条轨道
       顶到 2753px，移动端整页横向溢出 133px。置 0 后轨道回归容器宽度，内部 .dh-card-name /
       .dh-card-desc 已有的 overflow:hidden + text-overflow:ellipsis 生效。 */
    min-width: 0;
}
.dh-related-card:hover {
    border-color: #4a6cf7;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.06);
    background: #ffffff;
}
.dh-related-card.dh-card-recommend {
    border-color: #f6e05e;
    background: #fffbeb;
}
.dh-card-badge {
    position: absolute;
    top: -6px;
    right: 8px;
    background: #f56565;
    color: #fff;
    font-size: 9px;
    padding: 0 10px;
    border-radius: 30px;
    line-height: 18px;
    height: 18px;
}
.dh-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
.dh-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f7fafc;
}
.dh-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.dh-card-info {
    flex: 1;
    min-width: 0;
}
.dh-card-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dh-card-desc {
    font-size: 12px;
    color: #a0aec0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .dh-related-head {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .dh-related-title {
        font-size: 15px !important;
    }
    .dh-related-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .dh-related-card {
        padding: 10px 12px !important;
    }
    .dh-card-icon {
        width: 32px !important;
        height: 32px !important;
    }
    .dh-card-name {
        font-size: 13px !important;
    }
    .dh-card-desc {
        font-size: 11px !important;
    }
}
@media (max-width: 420px) {
    .dh-related-card {
        padding: 8px 10px !important;
    }
}
body.dark-mode .dh-related-card {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}
body.dark-mode .dh-related-card:hover {
    background: #3a4460 !important;
    border-color: #4a6cf7 !important;
}
body.dark-mode .dh-card-name {
    color: #e2e8f0 !important;
}
body.dark-mode .dh-card-desc {
    color: #a0aec0 !important;
}
body.dark-mode .dh-reload-btn {
    color: #a0aec0 !important;
    border-color: #4a5568 !important;
}
body.dark-mode .dh-reload-btn:hover {
    background: #4a5568 !important;
}

.post-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.post-main {
    flex: 1;
    min-width: 0;
}
.post-sidebar-right {
    flex: 0 0 260px;
    width: 260px;
    position: sticky;
    top: 20px;
}
/* 【侧栏自动收起】4dj 右侧栏是「摸鱼福利社」（DHPro 无对应模块），本站该栏原本只挂图片广告位；
   广告位已移至主内容列（PC 下 260px 窄栏会把横幅等比压成 ~14px 高），侧栏因此无内容。
   用 :empty 收起空栏，配合 .post-main{flex:1} 让主列自动占满，避免右侧留白 260px。 */
.post-sidebar-right:empty {
    display: none;
}
@media (max-width: 768px) {
    .post-layout {
        flex-direction: column;
        gap: 0 !important;
    }
    .post-main {
        width: 100% !important;
    }
    .post-sidebar-right {
        width: 100% !important;
        flex: 1 !important;
        position: static !important;
        margin-top: 16px !important;
    }
}

/* ============================================================
   12. 福利社
   ============================================================ */
.welfare-card {
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    border: 1px solid #f6e05e;
    border-radius: 16px;
    padding: 18px 20px;
}
.welfare-card .welfare-title {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.welfare-card .welfare-title i {
    color: #f6ad55;
    font-size: 20px;
}
.welfare-card .welfare-title span {
    font-size: 12px;
    font-weight: 400;
    color: #b7791f;
    margin-left: auto;
}
.welfare-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.welfare-list .welfare-item {
    display: flex;
    align-items: center;
    gap: 12px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-radius: 10px !important;
    border: 1px solid #fef3c7 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    transition: background 0.2s ease !important;
    margin-bottom: 6px !important;
}
.welfare-list .welfare-item:last-child {
    margin-bottom: 0 !important;
}
.welfare-list .welfare-item:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}
.welfare-list .welfare-item a,
.welfare-list .welfare-item span {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: inherit !important;
    width: 100% !important;
}
.welfare-list .welfare-item .wi-icon {
    flex-shrink: 0 !important;
    width: 32px !important;
    text-align: center !important;
    font-size: 20px !important;
    color: #f6ad55 !important;
}
.welfare-list .welfare-item .wi-content {
    flex: 1 !important;
    min-width: 0 !important;
}
.welfare-list .welfare-item .wi-content h5 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.welfare-list .welfare-item .wi-content p {
    font-size: 12px !important;
    color: #a0aec0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
@media (max-width: 768px) {
    .welfare-card {
        padding: 14px 16px !important;
    }
    .welfare-card .welfare-title {
        font-size: 15px !important;
    }
    .welfare-list .welfare-item {
        padding: 6px 10px !important;
    }
    .welfare-list .welfare-item .wi-icon {
        font-size: 18px !important;
        width: 26px !important;
    }
    .welfare-list .welfare-item .wi-content h5 {
        font-size: 13px !important;
    }
    .welfare-list .welfare-item .wi-content p {
        font-size: 11px !important;
    }
}
@media (max-width: 420px) {
    .welfare-list .welfare-item {
        padding: 4px 8px !important;
    }
    .welfare-list .welfare-item .wi-content h5 {
        font-size: 12px !important;
    }
}
body.dark-mode .welfare-card {
    background: linear-gradient(145deg, #3a3830, #2d3748) !important;
    border-color: #5a4a2a !important;
}
body.dark-mode .welfare-card .welfare-title {
    color: #d69e2e !important;
}
body.dark-mode .welfare-list .welfare-item {
    background: rgba(45, 55, 72, 0.7) !important;
    border-color: #4a5568 !important;
}
body.dark-mode .welfare-list .welfare-item:hover {
    background: rgba(45, 55, 72, 0.9) !important;
}
body.dark-mode .welfare-list .welfare-item .wi-content h5 {
    color: #e2e8f0 !important;
}
body.dark-mode .welfare-list .welfare-item .wi-content p {
    color: #a0aec0 !important;
}

/* ============================================================
   13. 反馈弹窗
   ============================================================ */
.dh-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.dh-modal-overlay.active {
    display: flex;
}
.dh-modal-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.dh-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dh-modal-title .close-btn {
    cursor: pointer;
    color: #a0aec0;
    font-size: 24px;
    transition: 0.2s;
}
.dh-modal-title .close-btn:hover {
    color: #1a202c;
}
.dh-modal-body .form-group {
    margin-bottom: 16px;
}
.dh-modal-body label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 4px;
}
.dh-modal-body .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dh-modal-body .radio-group label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: normal;
    cursor: pointer;
    background: #f7fafc;
    padding: 6px 16px;
    border-radius: 20px;
    transition: 0.2s;
    font-size: 14px;
}
.dh-modal-body .radio-group label:hover {
    background: #edf2f7;
}
.dh-modal-body .radio-group input[type="radio"] {
    accent-color: #4a6cf7;
}
.dh-modal-body textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: 0.2s;
    background: #f7fafc;
}
.dh-modal-body textarea:focus {
    border-color: #4a6cf7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.08);
}
.dh-modal-body .btn-submit-feedback {
    width: 100%;
    padding: 12px;
    background: #4a6cf7;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.dh-modal-body .btn-submit-feedback:hover {
    background: #3a5cd9;
    transform: translateY(-1px);
}
.dh-modal-body .btn-submit-feedback:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.dh-feedback-success {
    text-align: center;
    padding: 20px 0;
}
.dh-feedback-success i {
    font-size: 48px;
    color: #48bb78;
    display: block;
    margin-bottom: 10px;
}
.dh-feedback-success p {
    font-size: 16px;
    color: #2d3748;
}
.feedback-tip {
    background: #ebf8ff;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid #4a6cf7;
    font-size: 14px;
    color: #2b6cb0;
    margin-bottom: 16px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    .dh-modal-box {
        padding: 20px !important;
        width: 95% !important;
    }
    .dh-modal-title {
        font-size: 18px !important;
    }
    .dh-modal-body .radio-group label {
        font-size: 13px !important;
        padding: 4px 12px !important;
    }
    .dh-modal-body textarea {
        font-size: 13px !important;
    }
    .feedback-tip {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
}
body.dark-mode .dh-modal-overlay .dh-modal-box {
    background: #2d3748 !important;
}
body.dark-mode .dh-modal-overlay .dh-modal-title {
    color: #e2e8f0 !important;
}
body.dark-mode .dh-modal-overlay .dh-modal-title .close-btn {
    color: #a0aec0 !important;
}
body.dark-mode .dh-modal-overlay .dh-modal-title .close-btn:hover {
    color: #fff !important;
}
body.dark-mode .dh-modal-overlay .dh-modal-body label {
    color: #cbd5e0 !important;
}
body.dark-mode .dh-modal-overlay .dh-modal-body .radio-group label {
    background: #4a5568 !important;
    color: #cbd5e0 !important;
}
body.dark-mode .dh-modal-overlay .dh-modal-body .radio-group label:hover {
    background: #5a6b7a !important;
}
body.dark-mode .dh-modal-overlay .dh-modal-body textarea {
    background: #4a5568 !important;
    border-color: #5a6b7a !important;
    color: #cbd5e0 !important;
}
body.dark-mode .dh-modal-overlay .feedback-tip {
    background: #2a3a4a !important;
    color: #6a8cff !important;
}

/* ============================================================
   14. 首页卡片 - 温和悬浮效果（增强版）
   ============================================================ */
.page-home .content-urls-card {
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}
.page-home .content-urls-card:hover {
    transform: translateY(-3px) !important;
    border-color: #4a6cf7 !important;
    box-shadow: 0 6px 20px rgba(74, 108, 247, 0.08) !important;
    background: #ffffff !important;
}
.page-home .content-urls-card.is-recommend:hover {
    background: linear-gradient(145deg, #fff8e7, #fef3c7) !important;
    border-color: #ecc94b !important;
    box-shadow: 0 6px 20px rgba(236, 201, 75, 0.15) !important;
}
.page-home .content-urls-card:hover .content-url-img img {
    transform: scale(1.04) !important;
    transition: transform 0.3s ease !important;
}
.page-home .content-urls-card:hover .content-url-info strong {
    color: #4a6cf7 !important;
}

/* ============================================================
   15. 深色模式（覆盖卡片部分）
   ============================================================ */
body.dark-mode .content-item {
    background: rgba(26, 32, 44, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-mode .content-item-head-left h4 {
    color: #e2e8f0 !important;
}
body.dark-mode .content-urls-card {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}
body.dark-mode .content-urls-card:hover {
    border-color: #4a6cf7 !important;
    background: #3a4460 !important;
}
body.dark-mode .content-urls-card.is-recommend {
    background: #3a3830 !important;
    border-color: #5a4a2a !important;
}
body.dark-mode .content-urls-card.is-recommend:hover {
    background: #3a3830 !important;
    border-color: #5a4a2a !important;
}
body.dark-mode .content-url-info strong {
    color: #e2e8f0 !important;
}
body.dark-mode .content-urls-card:hover .content-url-info strong {
    color: #6a8cff !important;
}
body.dark-mode .content-url-info p {
    color: #a0aec0 !important;
}
body.dark-mode .category-header {
    border-bottom-color: #4a5568 !important;
}
body.dark-mode .category-header h1 {
    color: #e2e8f0 !important;
}
body.dark-mode .category-header h1 i {
    background: rgba(74, 108, 247, 0.2) !important;
}
body.dark-mode .category-header .category-count {
    background: #4a5568 !important;
    color: #a0aec0 !important;
}
body.dark-mode .group-tab {
    color: #a0aec0 !important;
    background: #4a5568 !important;
}
body.dark-mode .group-tab:hover {
    background: #5a6b7a !important;
    color: #e2e8f0 !important;
}
body.dark-mode .group-tab.active {
    background: #4a6cf7 !important;
    color: #fff !important;
}
body.dark-mode .group-title {
    background: linear-gradient(135deg, #2d3748, #4a5568) !important;
    color: #e2e8f0 !important;
}
body.dark-mode .rank-card {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}
body.dark-mode .rank-card .rank-title {
    color: #e2e8f0 !important;
    border-bottom-color: #4a5568 !important;
}
body.dark-mode .rank-name {
    color: #cbd5e0 !important;
}
body.dark-mode .rank-list li {
    border-bottom-color: #4a5568 !important;
}
body.dark-mode .rank-list li:hover {
    background: #3a4460 !important;
}
body.dark-mode .rank-count {
    background: #4a5568 !important;
    color: #a0aec0 !important;
}
body.dark-mode .rank-num.default {
    background: #5a6b7a !important;
    color: #cbd5e0 !important;
}
body.dark-mode .pagination {
    border-top-color: #4a5568 !important;
}
body.dark-mode .pagination .pagination-total {
    color: #a0aec0 !important;
}
body.dark-mode .pagination a {
    color: #6a8cff !important;
}
body.dark-mode .pagination a:hover {
    background: #4a5568 !important;
    border-color: #5a6b7a !important;
}
body.dark-mode .pagination .pagination-page.active {
    background: #4a6cf7 !important;
    color: #fff !important;
}
body.dark-mode .ai-tool-card {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #cbd5e0 !important;
}
body.dark-mode .ai-tool-card:hover {
    background: #3a4460 !important;
    border-color: #4a6cf7 !important;
}
body.dark-mode .ai-tool-card span {
    color: #e2e8f0 !important;
}
body.dark-mode .content-url-img {
    background: #4a5568 !important;
    border-color: #5a6b7a !important;
}
body.dark-mode .content-url-togo {
    background: #4a5568 !important;
    color: #a0aec0 !important;
}
body.dark-mode .content-url-togo:hover {
    background: #4a6cf7 !important;
    color: #fff !important;
}
/* 手机端隐藏首页简介文字 */
@media (max-width: 768px) {
    .home-intro {
        display: none !important;
    }
}
/* ============================================================
   分类页 - 整个主内容区渐变色背景
   ============================================================ */
body.category-page .main-content {
    background: linear-gradient(145deg, #f0f6ff 0%, #dce5f5 50%, #c8d4ec 100%) !important;
    min-height: 100vh;
    padding-bottom: 40px !important;
}

/* 让内容容器透明，显示背景 */
body.category-page .dh-content {
    background: transparent !important;
}

/* 卡片保持半透明毛玻璃效果 */
body.category-page .content-item,
body.category-page .rank-card {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* 分类标题和分组标签透明，融入背景 */
body.category-page .category-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 16px 0 12px 0 !important;
}
body.category-page .group-tabs {
    background: transparent !important;
    padding: 0 0 16px 0 !important;
}

/* 深色模式适配 */
body.dark-mode.category-page .main-content {
    background: linear-gradient(145deg, #1a2848 0%, #0f1a2e 50%, #0a1520 100%) !important;
}
body.dark-mode.category-page .content-item,
body.dark-mode.category-page .rank-card {
    background: rgba(26, 32, 44, 0.8) !important;
}
/* 推荐标签：金色背景 */
.content-urls-card .card-badge-recommend {
    /* 标签本身已经是渐变，卡片背景由 .is-recommend 控制 */
}
/* 热门标签：浅红色背景 */
.content-urls-card .card-badge-hot {
    background: linear-gradient(145deg, #fff5f5, #fed7d7) !important;
    border-color: #fc8181 !important;
}
/* 默认标签（蓝色）背景 */
.content-urls-card .card-badge-default {
    background: linear-gradient(145deg, #ebf4ff, #dbeafe) !important;
    border-color: #90cdf4 !important;
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a6cf7, #6a8cff);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.35);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 28px rgba(74, 108, 247, 0.45);
    background: linear-gradient(135deg, #3a5cd9, #5a7cf7);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top i {
    font-size: 22px;
    line-height: 1;
}
body.dark-mode .back-to-top {
    background: linear-gradient(135deg, #5a7cf7, #4a6cf7);
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.25);
}
body.dark-mode .back-to-top:hover {
    box-shadow: 0 8px 28px rgba(74, 108, 247, 0.4);
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}
/* ============================================================
   API 接口入口 - 显眼渐变按钮
   ============================================================ */
.sidebar-menu .api-nav-li {
    margin: 10px 12px 6px 12px;
    position: relative;
}

.sidebar-menu .api-nav-li .api-nav-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 11px 14px !important;
    background: linear-gradient(135deg, #4a6cf7 0%, #7c3aed 50%, #a855f7 100%);
    border-radius: 12px;
    border-left: none !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: apiNavGlow 2.5s ease-in-out infinite;
}

/* 光晕动画 */
@keyframes apiNavGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(74, 108, 247, 0.35);
    }
    50% {
        box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55), 0 0 0 4px rgba(74, 108, 247, 0.12);
    }
}

/* 扫光效果 */
.sidebar-menu .api-nav-li .api-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 80%
    );
    transition: left 0.6s ease;
}

.sidebar-menu .api-nav-li .api-nav-link:hover::before {
    left: 100%;
}

.sidebar-menu .api-nav-li .api-nav-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 32px rgba(124, 58, 237, 0.55), 0 0 0 4px rgba(74, 108, 247, 0.18);
    animation: none;
    color: #fff !important;
}

/* 图标 */
.sidebar-menu .api-nav-li .api-nav-link .api-nav-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    margin: 0 !important;
    font-size: 16px !important;
    color: #fff !important;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.sidebar-menu .api-nav-li .api-nav-link:hover .api-nav-icon {
    transform: rotate(-8deg) scale(1.1);
}

/* NEW 徽章 */
.sidebar-menu .api-nav-li .api-nav-badge {
    margin-left: auto;
    background: #fff;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    animation: badgePulse 1.8s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* 覆盖侧边栏默认样式（确保不被 .sidebar-menu li a 覆盖） */
.sidebar-menu .api-nav-li .api-nav-link:hover,
.sidebar-menu .api-nav-li .api-nav-link:focus {
    background: linear-gradient(135deg, #3a5cd9 0%, #6c2bd9 50%, #9333ea 100%);
    border-left-color: transparent !important;
    color: #fff !important;
}

/* 侧边栏折叠时（60px） */
.main-sidebar.collapsed .api-nav-li {
    margin: 10px 8px;
}
.main-sidebar.collapsed .api-nav-li .api-nav-link {
    padding: 10px !important;
    justify-content: center;
    gap: 0;
}
.main-sidebar.collapsed .api-nav-li .api-nav-link span:not(.api-nav-icon) {
    display: none !important;
}
.main-sidebar.collapsed .api-nav-li .api-nav-link .api-nav-badge {
    display: none !important;
}

/* 深色模式 */
body.dark-mode .sidebar-menu .api-nav-li .api-nav-link {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}
body.dark-mode .sidebar-menu .api-nav-li .api-nav-link:hover {
    box-shadow: 0 10px 32px rgba(124, 58, 237, 0.65), 0 0 0 4px rgba(124, 58, 237, 0.2);
}

/* 手机端（抽屉侧边栏） */
@media (max-width: 768px) {
    .sidebar-menu .api-nav-li {
        margin: 8px 10px 6px 10px;
    }
    .sidebar-menu .api-nav-li .api-nav-link {
        padding: 12px 14px !important;
        font-size: 15px;
    }
}
.sidebar-menu .api-nav-li::after {
    content: '🔥 限时免费';
    position: absolute;
    top: -8px;
    right: 8px;
    background: linear-gradient(135deg, #f89250, #f1404b);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(241, 64, 75, 0.4);
    transform: rotate(3deg);
    animation: badgeFloat 2s ease-in-out infinite;
    z-index: 10;
}
@keyframes badgeFloat {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50% { transform: rotate(3deg) translateY(-3px); }
}
/* ============================================================
   企业查询结果 - 绝对定位浮层，避免被下方内容遮挡
   ============================================================ */

/* 让企业查询面板处于最高层 */
#searchModeCompany.active {
    z-index: 9999;
}

.company-search-result {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 10px;
    max-height: 480px;
    overflow-y: auto;
    z-index: 9999;
}
.company-search-result:empty {
    display: none;
}
.company-search-result::-webkit-scrollbar { width: 4px; }
.company-search-result::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

.company-search-result .cs-loading,
.company-search-result .cs-empty,
.company-search-result .cs-error {
    text-align: center;
    padding: 20px 16px;
    font-size: 13px;
    color: #a0aec0;
}
.company-search-result .cs-error { color: #e53e3e; }

.company-card {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.company-search-result .company-card:last-child {
    margin-bottom: 0;
}
.company-card:hover {
    border-color: #4a6cf7;
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.08);
    transform: translateY(-1px);
}
.company-card .cs-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.company-card .cs-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.company-card .cs-logo .cs-logo-placeholder {
    font-size: 18px;
    font-weight: 700;
    color: #4a6cf7;
}
.company-card .cs-info {
    flex: 1;
    min-width: 0;
}
.company-card .cs-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.company-card .cs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}
.company-card .cs-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.company-card .cs-meta i {
    font-size: 13px;
    color: #a0aec0;
}
.company-card .cs-status {
    display: inline-block;
    font-size: 11px;
    padding: 1px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 2px;
}
.company-card .cs-status.normal    { background: #f0fff4; color: #38a169; }
.company-card .cs-status.cancelled { background: #fff5f5; color: #e53e3e; }
.company-card .cs-status.revoked   { background: #fffbeb; color: #d69e2e; }
.company-card .cs-scope {
    font-size: 11.5px;
    color: #a0aec0;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* 深色模式 */
body.dark-mode .company-search-result {
    background: #16213e;
    border-color: #2a3a5a;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.dark-mode .company-card {
    background: #1a2a4a;
    border-color: #2a3a5a;
}
body.dark-mode .company-card:hover {
    border-color: #4a6cf7;
    background: #1e2a4a;
}
body.dark-mode .company-card .cs-name { color: #e2e8f0; }
body.dark-mode .company-card .cs-meta { color: #a0aec0; }
body.dark-mode .company-card .cs-logo { background: #16213e; border-color: #2a3a5a; }
body.dark-mode .company-card .cs-scope { color: #718096; }
body.dark-mode .company-search-result .cs-loading,
body.dark-mode .company-search-result .cs-empty { color: #718096; }

/* 手机端 */
@media (max-width: 768px) {
    .company-search-result {
        left: -8px;
        right: -8px;
        max-height: 60vh;
    }
    .company-card { padding: 12px; gap: 10px; }
    .company-card .cs-logo { width: 38px; height: 38px; }
    .company-card .cs-name { font-size: 13px; }
    .company-card .cs-meta { font-size: 11px; gap: 4px 10px; }
    .company-card .cs-scope { -webkit-line-clamp: 1; }
}
/* ============================================================
   企业详情弹窗
   ============================================================ */
.cs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cs-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cs-modal {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(12px);
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cs-modal-overlay.active .cs-modal {
    transform: translateY(0);
}

/* 头部 */
.cs-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #f0f2f5;
    position: relative;
}
.cs-modal-header .cs-modal-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cs-modal-header .cs-modal-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.cs-modal-header .cs-modal-logo .cs-logo-placeholder {
    font-size: 22px;
    font-weight: 700;
    color: #4a6cf7;
}
.cs-modal-header .cs-modal-title {
    flex: 1;
    min-width: 0;
}
.cs-modal-header .cs-modal-title h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px;
    line-height: 1.4;
    word-break: break-all;
}
.cs-modal-header .cs-modal-status {
    display: inline-block;
    font-size: 11.5px;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.cs-modal-header .cs-modal-status.normal    { background: #f0fff4; color: #38a169; }
.cs-modal-header .cs-modal-status.cancelled { background: #fff5f5; color: #e53e3e; }
.cs-modal-header .cs-modal-status.revoked   { background: #fffbeb; color: #d69e2e; }
.cs-modal-header .cs-modal-status.default   { background: #f1f4f9; color: #718096; }

.cs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.cs-modal-close:hover {
    background: #f1f4f9;
    color: #1a202c;
    transform: rotate(90deg);
}

/* 主体 */
.cs-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
}
.cs-modal-body::-webkit-scrollbar { width: 6px; }
.cs-modal-body::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 6px; }

.cs-modal-section {
    margin-bottom: 22px;
}
.cs-modal-section:last-child {
    margin-bottom: 0;
}
.cs-modal-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #4a6cf7;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #4a6cf7;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cs-modal-section-title i {
    font-size: 15px;
}

.cs-modal-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}
.cs-modal-fields.single {
    grid-template-columns: 1fr;
}

.cs-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.cs-field-label {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}
.cs-field-value {
    font-size: 13.5px;
    color: #2d3748;
    line-height: 1.6;
    word-break: break-word;
}
.cs-field-value.link a {
    color: #4a6cf7;
    text-decoration: none;
}
.cs-field-value.link a:hover {
    text-decoration: underline;
}

/* 经营范围等长文本 */
.cs-field.full {
    grid-column: 1 / -1;
}
.cs-field.full .cs-field-value {
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.75;
    color: #4a5568;
    max-height: 200px;
    overflow-y: auto;
}
.cs-field.full .cs-field-value::-webkit-scrollbar { width: 4px; }
.cs-field.full .cs-field-value::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 4px; }

/* 手机端 */
@media (max-width: 640px) {
    .cs-modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }
    .cs-modal {
        max-height: 90vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
    }
    .cs-modal-overlay.active .cs-modal {
        transform: translateY(0);
    }
    .cs-modal-header { padding: 18px 18px 14px; gap: 12px; }
    .cs-modal-header .cs-modal-logo { width: 46px; height: 46px; }
    .cs-modal-header .cs-modal-title h3 { font-size: 15px; }
    .cs-modal-body { padding: 16px 18px 20px; }
    .cs-modal-fields { grid-template-columns: 1fr; gap: 10px; }
    .cs-modal-close { top: 12px; right: 12px; width: 28px; height: 28px; font-size: 20px; }
}

/* 深色模式 */
body.dark-mode .cs-modal {
    background: #16213e;
}
body.dark-mode .cs-modal-header {
    border-bottom-color: #2a3a5a;
}
body.dark-mode .cs-modal-header .cs-modal-logo {
    background: #1a2a4a;
    border-color: #2a3a5a;
}
body.dark-mode .cs-modal-header .cs-modal-title h3 { color: #e2e8f0; }
body.dark-mode .cs-modal-close { color: #718096; }
body.dark-mode .cs-modal-close:hover { background: #2a3a5a; color: #e2e8f0; }
body.dark-mode .cs-modal-section-title { color: #6a8cff; border-left-color: #6a8cff; }
body.dark-mode .cs-field-label { color: #718096; }
body.dark-mode .cs-field-value { color: #cbd5e0; }
body.dark-mode .cs-field-value.link a { color: #6a8cff; }
body.dark-mode .cs-field.full .cs-field-value {
    background: #1a2a4a;
    border-color: #2a3a5a;
    color: #a0aec0;
}