/* =========================================================
   macOS 风格内容排版 — 适用于 .content / .book-content / .content-body
   ========================================================= */

.content, .book-content, .content-body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
                 "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: #1d1d1f;
    max-width: 820px;
    margin: 0 auto;
    word-break: break-word;
}

/* ── Headings ── */
.content h1, .book-content h1, .content-body h1,
.content h2, .book-content h2, .content-body h2,
.content h3, .book-content h3, .content-body h3,
.content h4, .book-content h4, .content-body h4,
.content h5, .book-content h5, .content-body h5,
.content h6, .book-content h6, .content-body h6 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                 "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.content h1, .book-content h1, .content-body h1 { font-size: 1.8rem; }
.content h2, .book-content h2, .content-body h2 { font-size: 1.4rem; }
.content h3, .book-content h3, .content-body h3 { font-size: 1.15rem; }
.content h4, .book-content h4, .content-body h4 { font-size: 1rem; }

/* ── Paragraphs ── */
.content p, .book-content p, .content-body p {
    margin-bottom: 1em;
}

/* ── Code Blocks (Xcode / macOS Terminal 风格) ── */
.content pre, .book-content pre, .content-body pre {
    background: #f5f5f7;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    border: 1px solid #e5e5ea;
    margin-bottom: 1.2em;
}

.content code, .book-content code, .content-body code {
    font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
    font-size: 0.9em;
    background: #f5f5f7;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1d1d1f;
}

.content pre code, .book-content pre code, .content-body pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* ── Tables (极简线条) ── */
.content table, .book-content table, .content-body table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.2em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    font-size: 13px;
}

.content th, .book-content th, .content-body th {
    background: #f5f5f7;
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e5ea;
    color: #1d1d1f;
}

.content td, .book-content td, .content-body td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f2;
}

.content tr:last-child td, .book-content tr:last-child td, .content-body tr:last-child td {
    border-bottom: none;
}

/* ── Blockquote (macOS 备忘录风格) ── */
.content blockquote, .book-content blockquote, .content-body blockquote {
    border-left: 3px solid #007aff;
    background: #f5f5f7;
    border-radius: 0 8px 8px 0;
    padding: 12px 20px;
    margin: 1em 0;
    font-size: 13px;
    color: #3a3a3c;
}

.content blockquote p, .book-content blockquote p, .content-body blockquote p {
    margin-bottom: 0;
}

/* ── Images ── */
.content img, .book-content img, .content-body img {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    display: block;
}

/* ── Lists ── */
.content ul, .book-content ul, .content-body ul,
.content ol, .book-content ol, .content-body ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.content li, .book-content li, .content-body li {
    margin-bottom: 0.4em;
}

.content li > ul, .book-content li > ul, .content-body li > ul,
.content li > ol, .book-content li > ol, .content-body li > ol {
    margin-top: 0.3em;
    margin-bottom: 0;
}

/* ── Horizontal Rule ── */
.content hr, .book-content hr, .content-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5e5ea, transparent);
    margin: 2em 0;
}

/* ── Links ── */
.content a, .book-content a, .content-body a {
    color: #007aff;
    text-decoration: none;
    transition: color 0.2s;
}

.content a:hover, .book-content a:hover, .content-body a:hover {
    color: #0056cc;
    text-decoration: underline;
}

/* ── Strong / Emphasis ── */
.content strong, .book-content strong, .content-body strong {
    font-weight: 600;
    color: #1d1d1f;
}

/* =========================================================
   右侧栏 — macOS 风格（限定在 .ai-sidebar 内，不泄漏到正文）
   ========================================================= */

.ai-sidebar {
    position: sticky;
    top: 20px;
}

.ai-sidebar .sidebar-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #eaeaea;
}

.ai-sidebar .sidebar-section h3 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.ai-sidebar .hot-tools {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-sidebar .tool-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #1d1d1f;
    border: 1px solid #e5e5ea;
    transition: all 0.2s;
    font-size: 13px;
}

.ai-sidebar .tool-item:hover {
    background: #e8f0fe;
    border-color: #007aff;
    transform: translateX(2px);
}

.ai-sidebar .tool-icon {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-sidebar .tool-name {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-sidebar .tool-category {
    font-size: 11px;
    color: #8c8f94;
    background: #f5f5f7;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ai-sidebar .related-recommendations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-sidebar .related-item {
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #1d1d1f;
    border: 1px solid #e5e5ea;
    transition: all 0.2s;
}

.ai-sidebar .related-item:hover {
    background: #f5f5f7;
    border-color: #d1d1d6;
}

.ai-sidebar .related-title {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-sidebar .related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #8c8f94;
}

.ai-sidebar .quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ai-sidebar .quick-link {
    padding: 8px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #1d1d1f;
    text-align: center;
    border: 1px solid #e5e5ea;
    font-size: 12px;
    transition: all 0.2s;
}

.ai-sidebar .quick-link:hover {
    background: #e8f5e8;
    border-color: #34c759;
}

@media (max-width: 992px) {
    .ai-sidebar {
        position: static;
    }
}

/* =========================================================
   正文下方 — 相关推荐（不与侧栏冲突）
   ========================================================= */

.related-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5ea;
}

.related-heading {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.related-list {
    display: flex;
    flex-direction: column;
}

.related-list .related-item {
    display: block;
    padding: 10px 0 10px 2em;
    background: none;
    border: none;
    border-radius: 0;
    color: #1d1d1f;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f2;
}

.related-list .related-item:last-child {
    border-bottom: none;
}

.related-list .related-item:hover {
    background: none;
}

.related-list .related-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #007aff;
    margin-bottom: 2px;
    line-height: 1.5;
}

.related-list .related-item:hover .related-title {
    text-decoration: underline;
}

.related-list .related-meta {
    display: block;
    font-size: 12px;
    color: #8c8f94;
    line-height: 1.5;
    margin-top: 2px;
}

.related-list .related-meta:empty {
    display: none;
}

/* ========== 详情页 Hero 信息卡片 ========== */
.detail-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 14px;
    color: #86868b;
    margin: 0;
    line-height: 1.4;
}

.hero-score {
    text-align: center;
    flex-shrink: 0;
    min-width: 70px;
}

.score-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #f5a623;
    line-height: 1;
}

.score-stars {
    position: relative;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 2px;
    width: 74px;
    height: 1em;
    margin-top: 4px;
}

.score-stars::before {
    content: '★★★★★';
    position: absolute;
    color: #e0e0e0;
}

.score-stars .stars-fill {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    height: 100%;
}

.score-stars .stars-fill::before {
    content: '★★★★★';
    color: #f5a623;
    display: block;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    color: #86868b;
}

.hero-meta .meta-item i {
    margin-right: 4px;
    width: 14px;
    text-align: center;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-tags .tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #555;
    border: 1px solid #e5e5ea;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e5ea;
}

/* ========== macOS 风格详情卡片 ========== */
.detail-card {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.detail-card .content-body,
.detail-card .content {
    max-width: none;
    margin: 0;
}

/* ========== macOS 风格操作按钮 ========== */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid #007aff;
    border-radius: 8px;
    background: #007aff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.5;
}
.action-btn i {
    font-size: 14px;
}
.action-btn:hover {
    background: #0056cc;
    border-color: #0056cc;
    color: #fff;
}
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================================
   新布局：全宽顶栏 + 三栏主体
   ========================================================= */

/* ── 全宽顶栏 ── */
.top-nav {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e5ea;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1090;
}
body {
    padding-top: 56px !important;
}
.top-nav-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.top-nav-logo {
    flex-shrink: 0;
    margin-right: 24px;
    line-height: 56px;
}
.top-nav-logo img {
    display: block;
    max-height: 36px;
}
.top-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.top-nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 36px;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.top-nav-menu > li > a:hover {
    background: rgba(0, 0, 0, 0.05);
}
.top-nav-menu > li.active > a {
    color: #007aff;
    font-weight: 600;
}
.top-nav-menu > li > a i {
    font-size: 16px;
}
.top-nav-menu a[href="/policy"] i {
    color: #e74c3c;
}
.top-nav-hot {
    font-size: 7px;
    padding: 1px 4px;
    line-height: 1.4;
    vertical-align: super;
    margin-top: -11px;
}
.top-nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 12px;
}
.top-nav-tagline {
    font-size: 13px;
    color: #8c8f94;
    white-space: nowrap;
}
.top-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #333;
}
.top-nav-toggle i {
    font-size: 22px;
}

/* ── 三栏主体 ── */
.three-col-layout {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    gap: 24px;
}
.left-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 10px 16px;
    align-self: flex-start;
    margin: 24px 0 24px 24px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.content-col {
    flex: 1;
    min-width: 0;
}
.right-sidebar {
    width: 300px;
    flex-shrink: 0;
}
.content-col--framed {
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 24px;
}

/* ── 覆盖原主题侧栏样式 ── */
.left-sidebar .sidebar-nav {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    z-index: auto !important;
    display: block !important;
    box-shadow: none !important;
}
.left-sidebar .sidebar-nav-inner {
    max-width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.left-sidebar .sidebar-logo {
    display: none !important;
}
.left-sidebar .sidebar-menu {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
}
.left-sidebar .sidebar-item a {
    padding: 6px 12px 6px 8px !important;
}

/* ── 覆盖原主题 main-content 偏移 ── */
.main-content {
    margin-left: 0 !important;
    flex: 1;
    min-width: 0;
}

/* ── 首页搜索栏：macOS 毛玻璃 ── */
#search-bg {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-image: none !important;
    animation: none !important;
    border-bottom: 1px solid #e5e5ea;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
}
#search-bg h1.big-title {
    color: #1d1d1f !important;
    text-shadow: none !important;
    font-size: 22px !important;
    margin-bottom: 24px !important;
}

/* 搜索输入框适配浅色背景 */
.header-big #search-text {
    color: #1d1d1f !important;
    background: #ffffff !important;
    border: 1px solid #d1d1d6 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.header-big #search-text::placeholder {
    color: #8e8e93 !important;
}

/* 搜索类型文字（百度/谷歌等）适配浅色 */
.header-big:not(.no-bg) .search-type label .text-muted,
.header-big:not(.no-bg) .text-muted {
    color: #666 !important;
}

@media (min-width: 768px) {
    #search-bg {
        padding-top: 50px !important;
        padding-bottom: 70px !important;
    }
    #search-bg h1.big-title {
        font-size: 26px !important;
        margin-bottom: 16px !important;
    }
}

/* ── Simple 页面（about/contact/upload）：全宽正文，无边栏 ── */
.three-col-layout--simple {
    max-width: 860px;
}
.content-col--simple {
    flex: 1;
    min-width: 0;
}
.content-col--simple .detail-card {
    max-width: 100%;
}

/* ── 响应式 ── */
@media (max-width: 992px) {
    .top-nav-menu {
        display: none;
    }
    .top-nav-tagline {
        display: none;
    }
    .top-nav-toggle {
        display: inline-flex;
    }
    .three-col-layout {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    .left-sidebar,
    .right-sidebar {
        width: 100%;
    }
    .left-sidebar .sidebar-nav {
        display: none !important;
    }
    .left-sidebar .sidebar-nav.show {
        display: block !important;
    }

    .page-container {
        flex-direction: column;
    }
    .left-sidebar {
        margin: 0;
    }
    .detail-card {
        padding: 20px 16px;
    }
}

@media (max-width: 576px) {
    .three-col-layout {
        padding: 12px;
        gap: 12px;
    }
    .detail-card {
        padding: 16px 12px;
        border-radius: 10px;
    }
    .detail-card h1 {
        font-size: 1.3rem;
    }
    .action-btn {
        font-size: 13px;
        padding: 6px 14px;
    }
    .detail-card .text-muted .mr-3 {
        display: block;
        margin-bottom: 4px;
    }
}

/* ── 站内搜索 ── */
#site-search-results,
#m_site-search-results {
    position: absolute;
    z-index: 20;
    width: 100%;
    overflow: hidden;
    margin-top: 4px;
}
#site-search-results .site-search-list,
#m_site-search-results .site-search-list {
    padding: 10px 0;
    margin: 0;
}
#site-search-results .site-search-list li,
#m_site-search-results .site-search-list li {
    line-height: 30px;
    font-size: 14px;
    padding: 0 25px;
    cursor: pointer;
    list-style: none;
    transition: .3s;
}
#site-search-results .site-search-list li:hover,
#m_site-search-results .site-search-list li:hover {
    background-color: rgba(130, 130, 130, .5);
}
#site-search-results .site-search-empty,
#m_site-search-results .site-search-empty {
    padding: 20px 25px;
    text-align: center;
    color: #999;
    font-size: 14px;
}
#site-search-results .text-warning,
#m_site-search-results .text-warning {
    color: #f5a623;
}
#site-search-results .site-search-list li.current,
#m_site-search-results .site-search-list li.current {
    background-color: rgba(130, 130, 130, .5);
}

/* ── macOS 风格 pill 标签（适配浅色背景）── */

/* 覆写 custom-style.css 的干扰色 */
.header-big:not(.no-bg) .s-type-list {
    color: #1d1d1f !important;
}

.header-big .s-type-list.big {
    background: none !important;
    margin-bottom: 20px !important;
}

/* pill 本体 */
.header-big .s-type-list.big label {
    display: inline-flex !important;
    align-items: center;
    padding: 0 22px;
    margin: 0 5px;
    height: 36px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.header-big .s-type-list.big label.active {
    background: rgba(0, 0, 0, 0.1);
}

.header-big .s-type-list.big label:not(.active):hover {
    background: rgba(0, 0, 0, 0.08);
}

/* 覆写原有半透明 + indicator */
.header-big .s-type-list label:not(.active) {
    opacity: 0.75;
}
.header-big .s-type-list label:not(.active):hover {
    opacity: 1;
}
.header-big .s-type-list label:not(.active)::after {
    display: none !important;
}

/* 内联文字 */
.header-big .s-type-list.big label span {
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f !important;
    padding: 0 !important;
    line-height: 1;
    display: inline !important;
}

/* =========================================================
   政策专区页面
   ========================================================= */
.policy-page-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #e5e5ea;
    margin-bottom: 24px;
}
.policy-page-title {
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1d1d1f;
}
.policy-page-desc {
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 720px;
}
.policy-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #86868b;
}
.policy-stats i {
    margin-right: 4px;
}

/* 城市 Pill 导航 */
.policy-city-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 24px;
    margin-bottom: 8px;
}
.policy-city-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    border-radius: 20px;
    background: #f0f0f2;
    color: #515154;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.policy-city-pill:hover {
    background: #007aff;
    color: #fff;
    text-decoration: none;
}
.policy-city-pill.priority {
    background: #e8f0fe;
    color: #007aff;
    font-weight: 600;
}
.policy-city-pill.priority:hover {
    background: #007aff;
    color: #fff;
}
.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: rgba(0,0,0,0.08);
    font-size: 11px;
    font-weight: 600;
    padding: 0 5px;
}
.policy-city-pill:hover .pill-count {
    background: rgba(255,255,255,0.2);
}

/* 城市政策区域 */
.policy-city-section {
    padding: 0 0 8px;
}
.policy-city-title {
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    padding: 16px 0 12px;
    margin: 0 0 16px;
    border-bottom: 2px solid #007aff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.policy-city-title i {
    color: #007aff;
    font-size: 18px;
}
.city-count {
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    margin-left: auto;
}

/* 政策卡片列表 */
.policy-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* 政策卡片 */
.policy-card {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 10px;
    padding: 20px 24px;
    transition: box-shadow 0.2s ease;
}
.policy-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.policy-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.policy-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}
.policy-status {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}
.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-upcoming {
    background: #fff3e0;
    color: #e65100;
}
.status-ended {
    background: #fce4ec;
    color: #c62828;
}
.policy-summary {
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.6;
    margin: 0 0 12px;
}

/* 权益 pill */
.policy-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.policy-benefit-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    background: #f0f5ff;
    color: #007aff;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #d6e4ff;
    cursor: help;
}

/* 元信息 */
.policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #86868b;
    margin-bottom: 14px;
}
.policy-meta i {
    margin-right: 4px;
}

/* 操作按钮 */
.policy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f2;
}
.policy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 8px;
    background: #007aff;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}
.policy-btn:hover {
    background: #0062cc;
    color: #fff;
    text-decoration: none;
}
.policy-btn-secondary {
    background: #f0f0f2;
    color: #515154;
    border: 1px solid #e5e5ea;
}
.policy-btn-secondary:hover {
    background: #e5e5ea;
    color: #1d1d1f;
}

/* 侧栏政策菜单 */
.sidebar-item .sidebar-count {
    float: right;
    font-size: 11px;
    color: #86868b;
    background: rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 0 6px;
    line-height: 18px;
}

/* 右侧栏标签云 */
.policy-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0;
}
.tagcloud-item {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    background: #f0f5ff;
    color: #007aff;
    border: 1px solid #d6e4ff;
    cursor: help;
    line-height: 1.5;
    transition: all 0.2s ease;
}
.tagcloud-item:hover {
    background: #007aff;
    color: #fff;
    border-color: #007aff;
}

/* =========================================================
   热点榜单页面 /hot/
   ========================================================= */
.hot-layout {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}
.hot-container {
    width: 100%;
}
.hot-header {
    text-align: center;
    margin-bottom: 48px;
}
.hot-title {
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 0 12px;
}
.hot-desc {
    font-size: 15px;
    color: #6e6e73;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}
.hot-section {
    margin-bottom: 48px;
}
/* 顶部导航 pills */
.hot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 4px;
}
.hot-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 24px;
    background: #f0f0f2;
    color: #515154;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.hot-nav-item:hover {
    background: #007aff;
    color: #fff;
    text-decoration: none;
}
.hot-nav-item i {
    font-size: 15px;
}

.hot-section-title {
    font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0 -24px 6px;
    padding: 14px 24px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    top: 56px;
    z-index: 10;
    background: #f8f9fa;
    border-bottom: 2px solid #007aff;
}
.hot-section-title i {
    color: #007aff;
    font-size: 20px;
}
.hot-section-desc {
    font-size: 13px;
    color: #86868b;
    margin: 0 0 20px;
}
.hot-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.hot-card {
    background: #ffffff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}
.hot-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.hot-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 0;
}
.hot-card-rank {
    font-size: 13px;
    font-weight: 700;
    color: #86868b;
    flex-shrink: 0;
}
.hot-card:nth-child(1) .hot-card-rank {
    color: #007aff;
}
.hot-card:nth-child(2) .hot-card-rank {
    color: #5856d6;
}
.hot-card:nth-child(3) .hot-card-rank {
    color: #34c759;
}
.hot-card-source {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.hot-card-source-tool {
    background: #e3f2fd;
    color: #1565c0;
}
.hot-card-source-ext {
    background: #fef3e2;
    color: #e65100;
}
.hot-card-body {
    padding: 10px 18px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hot-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-card-desc {
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #86868b;
    margin-top: auto;
}
.hot-card-footer {
    display: flex;
    gap: 8px;
    padding: 12px 18px 16px;
}
.hot-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 8px;
    background: #007aff;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}
.hot-card-btn:hover {
    background: #0062cc;
    color: #fff;
    text-decoration: none;
}
.hot-card-btn-outline {
    background: transparent;
    color: #007aff;
    border: 1px solid #007aff;
}
.hot-card-btn-outline:hover {
    background: #007aff;
    color: #fff;
}
.hot-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    border-radius: 8px;
    background: #007aff;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}
.hot-btn:hover {
    background: #0062cc;
    color: #fff;
    text-decoration: none;
}
.hot-btn-outline {
    background: transparent;
    color: #007aff;
    border: 1px solid #007aff;
}
.hot-btn-outline:hover {
    background: #007aff;
    color: #fff;
}
.hot-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e5e5ea;
    font-size: 12px;
    color: #86868b;
    margin-top: 16px;
}
.hot-footer code {
    background: #f0f0f2;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

/* policy 页警告框 */
.policy-notice {
    background: #fef8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 24px 0 8px;
    font-size: 13px;
    color: #6b5e4a;
    line-height: 1.7;
    border-left: 4px solid #ff9500;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.policy-notice p {
    margin-bottom: 6px;
}
.policy-notice-last {
    margin-bottom: 0;
}
.policy-notice i {
    color: #ff9500;
    margin-right: 6px;
}
