/*
Theme Name: Dahua ShuAn
Theme URI: https://dahuashuan.com
Author: Dahua ShuAn Team
Author URI: https://dahuashuan.com
Description: 大话数安 - 用大白话讲数据安全。专为数据安全科普内容站打造的经典 WordPress 主题，含首页 Hero、热门专题、最新文章、资源中心等模块。
Version: 1.6.5
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dahua-shuan
Tags: blog, two-columns, custom-logo, featured-images, custom-menu, sticky-post, translation-ready
*/

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* 消除 WordPress 管理工具栏造成的顶部空白 */
html { margin-top: 0 !important; }
#wpadminbar { display: none !important; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: #0a1628;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

/* logo 图片为「盾牌 + 站名 + 标语」完整标识，站名文字已内嵌图中 */
.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.current-menu-ancestor > a {
    color: #22c55e;
}

.nav-links a.active::after,
.nav-links li.active > a::after,
.nav-links li.current-menu-item > a::after,
.nav-links li.current_page_item > a::after,
.nav-links li.current-menu-ancestor > a::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 2px;
    background: #22c55e;
}

.nav-search {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-search:hover {
    color: #fff;
}

/* ===== Hero区域 ===== */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #0f2341 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(34,197,94,0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(34,197,94,0.05) 0%, transparent 30%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 520px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.hero-title span {
    color: #22c55e;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #22c55e;
    color: #fff;
}

.btn-primary:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.hero-visual {
    position: relative;
    flex-shrink: 0;
}

.hero-person {
    width: 420px;
    height: auto;
    position: relative;
    z-index: 2;
}

.hero-shield {
    position: absolute;
    right: -20px;
    top: 20px;
    width: 240px;
    height: auto;
    z-index: 1;
    opacity: 0.9;
}

.deco-card {
    position: absolute;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}

.deco-card i {
    color: #22c55e;
    font-size: 14px;
}

.deco-1 { top: 15%; right: 5%; }
.deco-2 { top: 35%; right: 0; }
.deco-3 { top: 55%; right: 8%; }

/* ===== 热门专题 ===== */
.hot-topics {
    padding: 50px 0 40px;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #22c55e;
    margin: 10px auto 0;
    border-radius: 2px;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.topic-card {
    display: block;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px;
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.topic-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: transparent;
}

.topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.topic-icon.red { background: #fef2f2; color: #ef4444; }
.topic-icon.cyan { background: #ecfeff; color: #06b6d4; }
.topic-icon.blue { background: #eff6ff; color: #3b82f6; }
.topic-icon.purple { background: #faf5ff; color: #a855f7; }
.topic-icon.amber { background: #fffbeb; color: #f59e0b; }
.topic-icon.green { background: #f0fdf4; color: #22c55e; }

.topic-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.topic-card p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 16px;
}

.topic-link {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.topic-link.red-link { color: #ef4444; }
.topic-link.cyan-link { color: #06b6d4; }
.topic-link.blue-link { color: #3b82f6; }
.topic-link.purple-link { color: #a855f7; }
.topic-link.amber-link { color: #f59e0b; }
.topic-link.green-link { color: #22c55e; }

/* ===== 最新文章 ===== */
.latest-articles {
    padding: 40px 0 50px;
    background: #fafbfc;
    scroll-margin-top: 80px;
    transition: background 0.4s;
}

.latest-articles:target {
    animation: section-flash 1.6s ease-out;
}

@keyframes section-flash {
    0% { background: #e8f9ee; }
    100% { background: #fafbfc; }
}

.articles-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 30px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.article-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.article-thumb {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-thumb.placeholder {
    color: rgba(255,255,255,0.3);
    font-size: 28px;
}

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

.article-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.5;
}

.article-info h4 a {
    color: inherit;
}

.article-info h4 a:hover {
    color: #22c55e;
}

.article-info .excerpt {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #aaa;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 侧边栏 */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 24px;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.sidebar-card .sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.qrcode-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.qrcode-wrap img {
    width: 170px;
    height: 170px;
    border-radius: 8px;
}

.follow-btn {
    width: 100%;
    padding: 10px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.follow-btn:hover {
    background: #16a34a;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 20px;
    color: #3b82f6;
    margin-bottom: 6px;
}

.stat-item .num {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-item .label {
    font-size: 11px;
    color: #888;
}

/* ===== 为什么关注 ===== */
.why-us {
    padding: 50px 0;
    background: #fff;
}

.why-us .section-title {
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

.feature-icon.teal { background: #f0fdfa; color: #14b8a6; }
.feature-icon.blue { background: #eff6ff; color: #3b82f6; }
.feature-icon.purple { background: #faf5ff; color: #a855f7; }
.feature-icon.green { background: #f0fdf4; color: #22c55e; }

.feature-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* ===== 资源中心 ===== */
.page-head {
    background: linear-gradient(135deg, #0a1628 0%, #0f2341 100%);
    padding: 56px 0 48px;
}

.page-head h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.page-head h1 span {
    color: #22c55e;
}

.page-head p {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    margin-top: 8px;
}

.head-tips {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.head-tip {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.head-tip i {
    color: #22c55e;
}

.resources {
    padding: 44px 0 60px;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 22px 24px;
    transition: all 0.3s;
}

.resource-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.res-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.res-icon.green { background: #f0fdf4; color: #22c55e; }
.res-icon.blue { background: #eff6ff; color: #3b82f6; }
.res-icon.purple { background: #faf5ff; color: #a855f7; }
.res-icon.orange { background: #fff7ed; color: #f97316; }

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

.res-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.res-title-row h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.res-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.res-tag.free { background: #f0fdf4; color: #16a34a; }
.res-tag.follow { background: #fff7ed; color: #ea580c; }

.res-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.res-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #bbb;
    margin-top: 6px;
}

.res-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.res-download-btn {
    flex-shrink: 0;
    padding: 11px 24px;
    border-radius: 8px;
    border: none;
    background: #22c55e;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.res-download-btn:hover {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}

.res-download-btn.free-btn {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.res-download-btn.free-btn:hover {
    background: #dcfce7;
}

/* ===== 关注公众号弹窗 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.follow-modal {
    background: #fff;
    border-radius: 16px;
    width: 340px;
    max-width: calc(100vw - 40px);
    padding: 32px 28px 28px;
    text-align: center;
    position: relative;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.25s;
}

.modal-overlay.show .follow-modal {
    transform: translateY(0) scale(1);
}

.follow-modal .close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.follow-modal .close-btn:hover {
    background: #e5e7eb;
    color: #333;
}

.follow-modal .wx-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f0fdf4;
    color: #22c55e;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.follow-modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.follow-modal .hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
}

.follow-modal .qr-large {
    width: 200px;
    height: 200px;
    margin: 0 auto 14px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    padding: 8px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    -webkit-user-select: none;
    user-select: none;
}

.follow-modal .qr-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.keyword-steps {
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    margin-bottom: 18px;
}

.keyword-steps .step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin: 4px 0;
}

.keyword-steps .step .n {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.keyword-chip:hover {
    background: #ffedd5;
}

.account-name-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 6px 16px;
    margin-bottom: 18px;
}

.account-name-box .name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.account-name-box .copy-btn {
    border: none;
    background: none;
    color: #3b82f6;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 6px;
}

.account-name-box .copy-btn:hover {
    text-decoration: underline;
}

.follow-modal .done-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: #22c55e;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.follow-modal .done-btn:hover {
    background: #16a34a;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 10001;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== Footer ===== */
.footer {
    background: #0a1628;
    color: rgba(255,255,255,0.6);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 280px 1fr 1fr 200px;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo img {
    height: 34px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.4);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #22c55e;
    color: #fff;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #22c55e;
}

.footer-qrcode img {
    width: 90px;
    height: 90px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.footer-qrcode p {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* 版权行 */
.footer-bottom .footer-copyright {
    margin: 0 0 7px;
    line-height: 1.6;
}

/* 备案行：公安联网备案（图标在编号之前）+ ICP 备案，居中并排 */
.footer-bottom .footer-beian {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.footer-bottom .footer-beian .icp-link,
.footer-bottom .footer-beian .mps-link {
    display: inline-block;
    margin: 0 9px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

/* 公安备案徽章：平台要求以 16x17 显示、且位于备案编号之前 */
.footer-bottom .beian-badge {
    width: 16px;
    height: 17px;
    margin-right: 4px;
    vertical-align: -3px;
    border: 0;
}

.footer-bottom .footer-beian .icp-link:hover,
.footer-bottom .footer-beian .mps-link:hover {
    color: #22c55e;
    text-decoration: underline;
}

/* ===== 文章单页 ===== */
.single-post {
    padding: 40px 0 60px;
}

.single-post .container {
    max-width: 760px;
}

.single-post h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.single-post .post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.single-post .post-content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
}

.single-post .post-content h2 {
    font-size: 20px;
    margin: 28px 0 12px;
    color: #1a1a1a;
}

.single-post .post-content p {
    margin-bottom: 16px;
}

.single-post .post-content img {
    border-radius: 8px;
    margin: 16px 0;
}

.single-post .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    font-size: 14px;
    margin-top: 32px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-visual { margin-top: 30px; }
    .hero-person { width: 300px; }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-layout { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hero-title { font-size: 32px; }
    .topics-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .article-item { flex-direction: column; }
    .article-thumb { width: 100%; height: 140px; }
    .resource-card { flex-direction: column; align-items: flex-start; }
    .res-download-btn { width: 100%; justify-content: center; }
}

/* =========================================================
   站内搜索（搜索层 + 联想下拉 + 搜索结果页）
   ========================================================= */
.navbar .nav-search {
    margin-left: 28px;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
    flex-shrink: 0;
}
.navbar .nav-search:hover { color: #fff; }

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12vh 20px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.search-overlay.show { opacity: 1; visibility: visible; }
.search-panel { width: 100%; max-width: 680px; }
.search-bar {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 12px; padding: 0 18px; height: 56px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.search-bar > i { color: #9ca3af; font-size: 16px; }
.search-bar input {
    flex: 1; min-width: 0; border: none; outline: none;
    font-size: 16px; color: #1a1a1a; background: transparent;
}
.search-bar input::placeholder { color: #9ca3af; }
.search-close {
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: #f3f4f6; color: #666; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: all 0.2s;
}
.search-close:hover { background: #e5e7eb; color: #333; }

.search-hot { margin-top: 18px; display: none; }
.search-hot.show { display: block; }
.hot-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; display: block; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hot-tag {
    padding: 7px 16px; border-radius: 20px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85); font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.hot-tag:hover { background: #22c55e; border-color: #22c55e; color: #fff; }

.search-suggest {
    margin-top: 16px; background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3); display: none;
}
.search-suggest.show { display: block; }
.suggest-item { display: block; padding: 13px 18px; border-bottom: 1px solid #f3f4f6; cursor: pointer; transition: background 0.15s; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item.active { background: #f0fdf4; }
.suggest-title-row { display: flex; align-items: center; gap: 10px; }
.suggest-title { font-size: 14px; font-weight: 500; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.type-tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; flex-shrink: 0; }
.type-tag.article { background: #eff6ff; color: #3b82f6; }
.type-tag.resource { background: #f0fdf4; color: #16a34a; }
.type-tag.topic { background: #faf5ff; color: #a855f7; }
.type-tag.term { background: #fff7ed; color: #ea580c; }

mark.hl { background: #fef08a; color: inherit; padding: 0 2px; border-radius: 2px; }

/* 搜索结果页 */
.search-results-page { background: #fafbfc; min-height: 60vh; padding: 44px 0 60px; }
.results-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.results-head h1 { font-size: 22px; font-weight: 700; color: #1a1a1a; }
.results-head h1 span { color: #22c55e; }
.results-head .count { font-size: 13px; color: #999; }
.result-group { margin-bottom: 30px; }
.result-group-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px;
}
.result-group-title .type-tag { font-size: 12px; padding: 3px 10px; }
.result-item {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff; border: 1px solid #f0f0f0; border-radius: 10px;
    padding: 16px 20px; margin-bottom: 12px; transition: all 0.25s;
}
.result-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-1px); }
.result-item-main { flex: 1; min-width: 0; }
.result-item-title { font-size: 15px; font-weight: 600; color: #1a1a1a; line-height: 1.5; }
.result-item-desc { font-size: 13px; color: #888; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item-go { flex-shrink: 0; color: #3b82f6; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* 无结果兜底 */
.empty-state { text-align: center; padding: 40px 0; }
.empty-state .big-icon { font-size: 44px; color: #d1d5db; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: #999; margin-bottom: 22px; }
.empty-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.empty-follow {
    padding: 12px 28px; background: #22c55e; color: #fff; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.empty-follow:hover { background: #16a34a; }
.recommend-list { max-width: 560px; margin: 28px auto 0; text-align: left; }
.recommend-item { display: block; padding: 10px 0; border-bottom: 1px dashed #e5e7eb; font-size: 14px; color: #3b82f6; }
.recommend-item:hover { color: #1d4ed8; }

@media (max-width: 768px) {
    .navbar .nav-search { margin-left: 12px; }
    .search-overlay { padding: 6vh 16px 0; }
    .search-bar { height: 50px; padding: 0 14px; }
    .search-bar input { font-size: 15px; }
    .search-results-page { padding: 26px 0 40px; }
    .results-head h1 { font-size: 19px; }
    .result-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
    .result-item-go { align-self: flex-end; }
}

/* ===== 文章专栏 / 归档页 ===== */
.column-page { background: #fafbfc; padding: 44px 0 60px; min-height: 60vh; }

.column-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.column-head h1 { font-size: 24px; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.column-head .column-sub { font-size: 13px; color: #999; margin-top: 6px; }

.column-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sort-switch { display: flex; background: #f1f5f9; border-radius: 8px; padding: 3px; flex-shrink: 0; }
.sort-switch button { border: none; background: transparent; padding: 7px 16px; font-size: 13px; color: #64748b; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.sort-switch button.active { background: #fff; color: #22c55e; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

.load-more-wrap { text-align: center; margin-top: 30px; }
.load-more-btn { padding: 11px 36px; border-radius: 8px; border: 1px solid #22c55e; background: #fff; color: #16a34a; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.load-more-btn:hover { background: #22c55e; color: #fff; }
.load-more-btn:disabled { opacity: 0.55; cursor: default; background: #fff; color: #16a34a; }

.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; position: sticky; top: 0; z-index: 30; padding: 10px 0; background: rgba(250, 251, 252, 0.92); backdrop-filter: blur(6px); }
.cat-tab { padding: 8px 20px; border-radius: 20px; background: #fff; border: 1px solid #e5e7eb; font-size: 13px; color: #555; transition: all 0.2s; }
.cat-tab:hover { border-color: #22c55e; color: #22c55e; }
.cat-tab.active { background: #22c55e; border-color: #22c55e; color: #fff; font-weight: 500; }

.column-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.column-main { min-width: 0; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.col-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.25s; }
.col-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }

.col-card-thumb { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%); position: relative; overflow: hidden; }
.col-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.col-card:hover .col-card-thumb img { transform: scale(1.04); }
.col-card-thumb .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(34, 197, 94, 0.25); font-size: 48px; }

.col-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.col-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }

.cat-label { font-size: 11px; padding: 3px 10px; border-radius: 4px; font-weight: 500; }
.cat-label.cat-intro { background: #ccfbf1; color: #0d9488; }
.cat-label.cat-regulation { background: #fef3c7; color: #b45309; }
.cat-label.cat-case { background: #dbeafe; color: #2563eb; }
.cat-label.cat-glossary { background: #f3e8ff; color: #9333ea; }
.cat-label.cat-default { background: #f3f4f6; color: #6b7280; }

.diff-badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.diff-badge.diff-beginner { background: #f0fdf4; color: #16a34a; }
.diff-badge.diff-advanced { background: #faf5ff; color: #a855f7; }

.col-card h3 { font-size: 16px; font-weight: 600; color: #1a1a1a; line-height: 1.5; margin-bottom: 8px; }
.col-card h3 a { color: inherit; }
.col-card h3 a:hover { color: #22c55e; }

.col-card-excerpt { font-size: 13px; color: #888; line-height: 1.65; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.col-card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #aaa; border-top: 1px dashed #eef0f2; padding-top: 12px; }
.col-card-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* 分页 */
.pagination { display: flex; justify-content: center; margin-top: 38px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; color: #666; transition: all 0.2s; }
.pagination .page-numbers:hover { border-color: #22c55e; color: #22c55e; }
.pagination .page-numbers.current { background: #22c55e; border-color: #22c55e; color: #fff; font-weight: 500; }

/* 侧边栏（仅专栏页粘性跟随，首页侧边栏保持原行为） */
.column-layout .sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }

.hot-card .hot-list { margin-top: 4px; }
.hot-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.hot-item:last-child { border-bottom: none; padding-bottom: 2px; }
.hot-rank { width: 22px; height: 22px; border-radius: 6px; background: #f3f4f6; color: #6b7280; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-item:nth-child(1) .hot-rank { background: #fee2e2; color: #ef4444; }
.hot-item:nth-child(2) .hot-rank { background: #ffedd5; color: #f97316; }
.hot-item:nth-child(3) .hot-rank { background: #fef3c7; color: #d97706; }
.hot-item a { font-size: 13px; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-item a:hover { color: #22c55e; }

.topic-mini { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.topic-mini:last-child { border-bottom: none; padding-bottom: 2px; }
.topic-mini-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.topic-mini-icon.blue { background: #eff6ff; color: #3b82f6; }
.topic-mini-icon.green { background: #f0fdf4; color: #16a34a; }
.topic-mini-icon.purple { background: #faf5ff; color: #a855f7; }
.topic-mini-icon.orange { background: #fff7ed; color: #f97316; }
.topic-mini a { font-size: 13px; font-weight: 500; color: #333; }
.topic-mini a:hover { color: #22c55e; }
.topic-mini p { font-size: 11px; color: #aaa; margin-top: 3px; line-height: 1.4; }

/* 专栏页响应式 */
@media (max-width: 1024px) {
    .column-layout { grid-template-columns: 2fr 1fr; gap: 28px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 768px) {
    .column-page { padding: 28px 0 40px; }
    .column-layout { grid-template-columns: 1fr; }
    .column-layout .sidebar { position: static; order: 2; margin-top: 8px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .cat-tabs { margin-bottom: 20px; }
}

@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }
    .column-head h1 { font-size: 21px; }
    .sort-switch { width: 100%; }
    .sort-switch button { flex: 1; justify-content: center; }
}

/* ============================================================
   追加：专题解读页 / 关于页 / 联系页 / 文章详情页
   （与静态版页面视觉一致）
   ============================================================ */

/* —— 通用：呼吸圆点 —— */
.pulse-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: #4ade80; margin-right: 6px; position: relative; vertical-align: 1px;
}
.pulse-dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(74, 222, 128, 0.5); animation: dhs-pulse 1.8s ease-out infinite;
}
@keyframes dhs-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ===== 专题详情页（category.php 专题分类渲染） ===== */
.topic-detail-hero { margin-top: 30px; }
.lecture-head {
    display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px;
    padding: 8px 0 14px; border-bottom: 1px solid #eef0f3;
}
.lecture-head h3 { font-size: 17px; font-weight: 700; color: #1a1a1a; display: flex; align-items: center; gap: 8px; }
.lecture-head h3 i { color: #16a34a; }
.lecture-count { font-size: 12px; font-weight: 500; color: #16a34a; background: #e8f5e9; padding: 2px 10px; border-radius: 999px; }
.lecture-sub { font-size: 12px; color: #a0a4ac; }
.lecture-list { display: flex; flex-direction: column; }
.lecture-item {
    display: flex; align-items: center; gap: 16px; padding: 16px 18px;
    border-bottom: 1px solid #f2f3f5; border-radius: 8px; transition: background 0.2s;
}
.lecture-item:hover { background: #f8faf8; }
.lecture-no { font-size: 15px; font-weight: 700; color: #c3c8d0; font-variant-numeric: tabular-nums; min-width: 30px; transition: color 0.2s; }
.lecture-item:hover .lecture-no { color: #16a34a; }
.lecture-main { flex: 1; min-width: 0; }
.lecture-title { font-size: 15px; font-weight: 600; color: #1a1a1a; display: block; line-height: 1.5; }
.lecture-title:hover { color: #16a34a; }
.lecture-new {
    display: inline-block; font-size: 10px; font-weight: 600; color: #16a34a;
    background: #e8f5e9; border: 1px solid #bbe8c6; padding: 1px 7px; border-radius: 999px;
    margin-right: 8px; vertical-align: 2px;
}
.lecture-meta { display: flex; gap: 18px; font-size: 12px; color: #a0a4ac; margin-top: 5px; }
.lecture-meta i { margin-right: 4px; }
.lecture-read {
    font-size: 12.5px; font-weight: 600; color: #16a34a; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
    opacity: 0; transform: translateX(-4px); transition: all 0.2s;
}
.lecture-item:hover .lecture-read { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) {
    .lecture-read { opacity: 1; transform: none; }
    .lecture-item { gap: 12px; padding: 14px 10px; }
}

/* ===== 专题解读页 ===== */
.topic-hero {
    max-width: 1200px; margin: 34px auto 0; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: stretch; gap: 40px;
    background: linear-gradient(135deg, #0a1628 0%, #0f2341 100%);
    border-radius: 18px; overflow: hidden; position: relative;
}
.topic-hero-info { padding: 36px 40px; display: flex; flex-direction: column; min-width: 0; }
.topic-hero .hero-kicker {
    display: inline-flex; align-items: center; align-self: flex-start;
    background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80; font-size: 12px; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.topic-hero .hero-kicker .pulse-dot { width: 7px; height: 7px; }
.topic-hero h2 { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.topic-hero .hero-desc { font-size: 13.5px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 18px; }
.topic-hero .hero-progress-head { display: flex; gap: 26px; font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.topic-hero .hero-progress-head b { color: #4ade80; font-size: 13px; }
.hero-progress-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.12); overflow: hidden; margin-bottom: 16px; }
.hero-progress-bar .fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #16a34a, #4ade80); transition: width 0.6s; }
.hero-latest {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: rgba(255,255,255,0.06); border-radius: 10px; margin-bottom: 20px;
}
.hero-latest i { color: #4ade80; font-size: 14px; }
.hero-latest .l-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.hero-latest .l-title { font-size: 13px; color: #fff; }
.hero-latest .l-title:hover { color: #4ade80; }
.hero-cta { display: flex; gap: 12px; }
.hero-cta .btn-main {
    padding: 11px 24px; border-radius: 8px; border: none; background: #22c55e; color: #fff;
    font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.hero-cta .btn-main:hover { background: #16a34a; }
.hero-cta .btn-ghost {
    padding: 11px 24px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: transparent;
    color: #fff; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.hero-cta .btn-ghost:hover { border-color: #22c55e; color: #22c55e; }
.topic-hero-visual { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; padding: 30px 40px; min-width: 240px; border-left: 1px solid rgba(255,255,255,0.08); }
.topic-hero-visual .big-icon { width: 92px; height: 92px; border-radius: 24px; background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); display: flex; align-items: center; justify-content: center; font-size: 38px; color: #4ade80; }
.topic-hero-visual .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.topic-hero-visual .chips span { font-size: 11.5px; color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 999px; }

/* 专题卡片网格（与首页 .topic-card 隔离） */
.topic-grid { margin-top: 4px; }
.topic-grid .topic-card {
    border: 1px solid #f0f0f0; border-radius: 14px; overflow: hidden; background: #fff;
    cursor: pointer; transition: box-shadow 0.25s, transform 0.25s;
    scroll-margin-top: 96px; display: flex; flex-direction: column; min-width: 0;
}
.topic-grid .topic-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.topic-grid .topic-card.flash { box-shadow: 0 0 0 3px #16a34a; transform: translateY(-3px); }
.topic-cover { position: relative; padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.topic-cover.green { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); }
.topic-cover.cyan { background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.topic-cover.blue { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); }
.topic-cover.amber { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); }
.topic-cover.purple { background: linear-gradient(135deg, #9333ea 0%, #a855f7 100%); }
.topic-cover.red { background: linear-gradient(135deg, #dc2626 0%, #f87171 100%); }
.topic-cover .cover-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.18); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topic-cover .cover-text { min-width: 0; }
.topic-cover .cover-text .c-name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.topic-cover .cover-text .c-sub { color: rgba(255,255,255,0.8); font-size: 12px; margin-top: 2px; }
.topic-cover .status-badge {
    position: absolute; top: 12px; right: 12px; font-size: 10.5px; padding: 3px 10px;
    border-radius: 999px; background: rgba(10,22,40,0.35); color: #fff; backdrop-filter: blur(4px);
    display: inline-flex; align-items: center;
}
.topic-cover .status-badge .pulse-dot { width: 6px; height: 6px; margin-right: 5px; }
.topic-card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.latest-label { font-size: 11px; color: #a0a4ac; margin-bottom: 6px; }
.latest-title { font-size: 13.5px; font-weight: 600; color: #1a1a1a; line-height: 1.55; margin-bottom: 12px; display: block; }
.latest-title:hover { color: #16a34a; }
.topic-progress-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #666; margin-bottom: 7px; min-width: 0; }
.topic-progress-head b { font-size: 11px; color: #16a34a; font-weight: 500; }
.topic-progress-head b i { margin-right: 3px; }
.topic-progress-bar { height: 6px; border-radius: 3px; background: #f0f2f5; overflow: hidden; margin-bottom: 13px; }
.topic-progress-bar .fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #16a34a, #22c55e); transition: width 0.6s; }
.topic-progress-bar .fill.done { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.topic-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: #a0a4ac; margin-top: auto; }
.topic-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.topic-card-meta .all-read { color: #0d9488; font-weight: 500; }

/* 状态筛选 Tab */
.status-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

/* 侧边栏热门专题（专题页专属列表） */
.sidebar .hot-list { list-style: none; margin: 0; padding: 0; }
.sidebar .hot-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.sidebar .hot-list li:last-child { border-bottom: none; }
.sidebar .hot-list .rank { width: 22px; height: 22px; border-radius: 6px; background: #f3f4f6; color: #6b7280; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar .hot-list .rank.r1 { background: #fee2e2; color: #ef4444; }
.sidebar .hot-list .rank.r2 { background: #ffedd5; color: #f97316; }
.sidebar .hot-list .rank.r3 { background: #fef3c7; color: #d97706; }
.sidebar .hot-list li a { flex: 1; font-size: 13px; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar .hot-list li a:hover { color: #16a34a; }
.sidebar .hot-list .views { font-size: 11px; color: #b0b4bc; flex-shrink: 0; }

/* 配套资源（侧边栏） */
.res-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.res-item:last-child { border-bottom: none; }
.res-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.res-icon.green { background: #f0fdf4; color: #16a34a; }
.res-icon.amber { background: #fff7ed; color: #f97316; }
.res-icon.blue { background: #eff6ff; color: #3b82f6; }
.res-item .r-name { font-size: 13px; font-weight: 600; color: #333; }
.res-item .r-tag { margin-top: 3px; }
.r-tag span { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; }
.r-tag .free { background: #f0fdf4; color: #16a34a; }
.r-tag .follow { background: #fff7ed; color: #f97316; }

/* ===== 关于页 ===== */
.about-page { background: #fafbfc; padding: 0 0 72px; }
.about-hero { background: linear-gradient(135deg, #0a1628 0%, #0f2341 100%); padding: 72px 0 84px; text-align: center; }
.about-hero .hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: #4ade80; font-size: 13px; letter-spacing: 2px; margin-bottom: 18px; }
.about-hero h1 { font-size: 42px; font-weight: 800; color: #fff; line-height: 1.3; }
.about-hero h1 span { color: #22c55e; }
.about-hero .lead { max-width: 640px; margin: 20px auto 0; font-size: 15px; color: rgba(255,255,255,0.72); line-height: 1.9; }
.about-hero .lead b { color: #fff; }
.about-hero .hero-cta { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.about-hero .btn-main {
    padding: 12px 28px; border: none; border-radius: 8px; background: #22c55e; color: #fff;
    font-size: 14.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.about-hero .btn-main:hover { background: #16a34a; }
.about-hero .btn-ghost {
    padding: 12px 28px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; background: transparent;
    color: #fff; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: all 0.2s;
}
.about-hero .btn-ghost:hover { border-color: #22c55e; color: #22c55e; }

.sec-stats { position: relative; margin-top: -36px; padding: 0 20px; }
.stats-bar { max-width: 1080px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 30px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; box-shadow: 0 14px 44px rgba(10,22,40,0.09); }
.stats-bar .stat-item { text-align: center; }
.stats-bar .num { font-size: 34px; font-weight: 800; color: #0a1628; }
.stats-bar .num em { font-style: normal; color: #22c55e; font-size: 20px; }
.stats-bar .label { font-size: 12.5px; color: #8a9099; margin-top: 6px; }
.stats-note { text-align: center; font-size: 11px; color: #c0c4cc; margin-top: 12px; }

.about-section { padding: 0 20px; }
.about-section + .about-section { margin-top: 64px; }
.about-section .sec-head { text-align: center; margin-bottom: 32px; }
.sec-head .sec-kicker { font-size: 11px; letter-spacing: 2.5px; color: #16a34a; font-weight: 600; }
.sec-head h2 { font-size: 26px; font-weight: 700; color: #0a1628; margin-top: 8px; }
.sec-head p { font-size: 13px; color: #8a9099; margin-top: 8px; }

.what-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.what-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 26px 24px; transition: all 0.25s; }
.what-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.07); transform: translateY(-3px); }
.w-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.w-icon.green { background: #f0fdf4; color: #16a34a; }
.w-icon.blue { background: #eff6ff; color: #3b82f6; }
.w-icon.amber { background: #fff7ed; color: #f97316; }
.what-card h3 { font-size: 17px; font-weight: 700; color: #0a1628; margin-bottom: 8px; }
.what-card p { font-size: 13px; color: #666; line-height: 1.75; }
.what-card .w-go { display: inline-block; margin-top: 14px; font-size: 13px; color: #16a34a; font-weight: 500; text-decoration: none; }
.what-card .w-go:hover { text-decoration: underline; }

.principles { max-width: 1080px; margin: 0 auto; background: #0a1628; border-radius: 16px; color: #fff; padding: 44px 40px; }
.principles .sec-head h2 { color: #fff; }
.principles .sec-head p { color: rgba(255,255,255,0.5); }
.prin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.prin-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px 22px; }
.prin-item .p-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(74,222,128,0.14); color: #4ade80; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.prin-item h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.prin-item p { font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.75; }

.testi-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 26px 24px; display: flex; flex-direction: column; }
.testi-card .stars { color: #f59e0b; font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card .quote { font-size: 13.5px; color: #444; line-height: 1.8; flex: 1; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed #f0f0f0; }
.testi-card .avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; flex-shrink: 0; }
.avatar.av1 { background: #3b82f6; }
.avatar.av2 { background: #a855f7; }
.avatar.av3 { background: #16a34a; }
.testi-card .t-name { font-size: 13.5px; font-weight: 600; color: #1a1a1a; }
.testi-card .t-role { font-size: 11.5px; color: #a0a4ac; margin-top: 2px; }

/* FAQ 折叠（关于页 / 联系页共用） */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: rgba(34,197,94,0.4); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-size: 14.5px; font-weight: 600; color: #1a1a1a; cursor: pointer; user-select: none; }
.faq-q .fq-icon { width: 24px; height: 24px; border-radius: 50%; background: #f3f4f6; color: #6b7280; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.25s; }
.faq-item.open .faq-q .fq-icon { background: #22c55e; color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 22px; font-size: 13px; color: #666; line-height: 1.85; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 22px 18px; }
.faq-a b { color: #16a34a; }
.faq-a a { color: #16a34a; }

/* 关注 CTA 大区（关于页） */
.about-section .follow-cta { max-width: 1080px; margin: 56px auto 0; }
.follow-cta {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 18px;
    padding: 46px 40px; text-align: center;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.06);
}
.follow-cta h2 { font-size: 26px; font-weight: 700; color: #0a1628; }
.follow-cta .fc-sub { font-size: 13.5px; color: #8a9099; margin-top: 10px; }
.fc-reasons { display: flex; justify-content: center; gap: 14px; margin: 26px 0 32px; flex-wrap: wrap; }
.fc-reason {
    display: flex; align-items: center; gap: 10px;
    background: #f8fafc; border: 1px solid #eef1f5; border-radius: 999px;
    padding: 9px 18px; font-size: 13px; color: #444;
}
.fc-reason i { color: #22c55e; font-size: 14px; }
.fc-body { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.fc-qr { width: 168px; height: 168px; border-radius: 14px; border: 1px solid #f0f0f0; padding: 8px; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,0.06); }
.fc-qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.fc-qr p { font-size: 12px; color: #8a9099; margin-top: 8px; }
.fc-actions { text-align: left; max-width: 320px; }
.fc-actions p { font-size: 13px; color: #666; line-height: 1.8; margin-bottom: 18px; }
.fc-actions .follow-btn {
    width: 100%; padding: 13px; border: none; border-radius: 8px;
    background: #22c55e; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s;
}
.fc-actions .follow-btn:hover { background: #16a34a; }
.fc-actions .mail-link { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: #a0a4ac; }
.fc-actions .mail-link a { color: #16a34a; }

/* ===== 联系页 ===== */
.contact-page { background: #fafbfc; padding: 0 0 72px; }
.contact-hero { background: linear-gradient(135deg, #0a1628 0%, #0f2341 100%); padding: 64px 0 72px; text-align: center; }
.contact-hero .hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: #4ade80; font-size: 13px; letter-spacing: 2px; margin-bottom: 16px; }
.contact-hero h1 { font-size: 38px; font-weight: 800; color: #fff; }
.contact-hero h1 span { color: #22c55e; }
.contact-hero .lead { max-width: 600px; margin: 16px auto 0; font-size: 14.5px; color: rgba(255,255,255,0.7); line-height: 1.85; }
.contact-hero .lead b { color: #fff; }
.contact-hero .hero-cta { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.contact-hero .btn-main {
    padding: 12px 28px; border: none; border-radius: 8px; background: #22c55e; color: #fff;
    font-size: 14.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.contact-hero .btn-main:hover { background: #16a34a; }
.contact-hero .btn-ghost {
    padding: 12px 28px; border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; background: transparent;
    color: #fff; font-size: 14.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: all 0.2s;
}
.contact-hero .btn-ghost:hover { border-color: #22c55e; color: #22c55e; }

.contact-section { padding: 0 20px; }
.contact-section + .contact-section { margin-top: 56px; }
.channel-main { max-width: 1080px; margin: 0 auto; background: #fff; border: 1px solid #f0f0f0; border-radius: 18px; padding: 40px 44px; box-shadow: 0 10px 34px rgba(10,22,40,0.05); }
.cm-head { text-align: center; margin-bottom: 30px; }
.cm-badge { display: inline-flex; align-items: center; gap: 6px; background: #fef3c7; color: #b45309; font-size: 12px; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
.cm-head h2 { font-size: 24px; font-weight: 700; color: #0a1628; }
.cm-head p { font-size: 13px; color: #8a9099; margin-top: 8px; }
.cm-body { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.cm-qr { width: 176px; height: 176px; border-radius: 14px; border: 1px solid #f0f0f0; padding: 8px; background: #fff; box-shadow: 0 6px 22px rgba(0,0,0,0.06); }
.cm-qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cm-qr p { font-size: 12px; color: #8a9099; margin-top: 8px; text-align: center; }
.cm-info { max-width: 400px; }
.cm-reasons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.cm-reason { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #444; }
.cm-reason i { color: #22c55e; font-size: 14px; width: 16px; text-align: center; }
.cm-sla { font-size: 12px; color: #8a9099; background: #f8fafc; border: 1px solid #eef1f5; border-radius: 8px; padding: 10px 14px; margin-bottom: 18px; }
.cm-sla i { color: #f97316; margin-right: 6px; }
.cm-info .follow-btn {
    width: 100%; padding: 13px; border: none; border-radius: 8px;
    background: #22c55e; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s;
}
.cm-info .follow-btn:hover { background: #16a34a; }

.contact-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 28px 26px; display: flex; flex-direction: column; transition: all 0.25s; }
.contact-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.07); transform: translateY(-3px); }
.cc-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.cc-icon.coral { background: #fef2f2; color: #ef4444; }
.cc-icon.amber { background: #fff7ed; color: #f97316; }
.cc-icon.teal { background: #f0fdfa; color: #14b8a6; }
.contact-card h3 { font-size: 17px; font-weight: 700; color: #0a1628; margin-bottom: 8px; }
.contact-card p { font-size: 13px; color: #666; line-height: 1.75; flex: 1; }
.cc-action {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 18px; padding: 12px; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
    border: 1px solid #e5e7eb; background: #fff; color: #333; text-decoration: none;
}
.cc-action:hover { border-color: #22c55e; color: #16a34a; }
.cc-action.mailto { border-color: rgba(239,68,68,0.3); color: #dc2626; background: #fef2f2; }
.cc-action.mailto:hover { border-color: #ef4444; background: #fee2e2; }
.cc-action.wechat { border-color: rgba(34,197,94,0.3); color: #16a34a; background: #f0fdf4; }
.cc-action.wechat:hover { border-color: #22c55e; background: #dcfce7; }
.cc-action.follow { border-color: rgba(16,185,129,0.3); color: #0d9488; background: #f0fdfa; }
.cc-action.follow:hover { border-color: #14b8a6; background: #ccfbf1; }
.cc-sub { display: block; text-align: center; margin-top: 10px; font-size: 12px; color: #a0a4ac; }

.channels-strip { max-width: 1080px; margin: 0 auto; background: #0a1628; border-radius: 16px; padding: 28px 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cs-item { text-align: center; }
.cs-label { font-size: 11px; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.cs-value { font-size: 16px; color: #fff; font-weight: 600; }
.cs-value a { color: #4ade80; text-decoration: none; }
.cs-value a:hover { text-decoration: underline; }
.cs-copy {
    margin-left: 8px; padding: 3px 12px; border: 1px solid rgba(255,255,255,0.25); border-radius: 6px;
    background: transparent; color: rgba(255,255,255,0.7); font-size: 11px; cursor: pointer; transition: all 0.2s;
}
.cs-copy:hover { border-color: #22c55e; color: #22c55e; }
.cs-note { font-size: 11.5px; color: rgba(255,255,255,0.35); margin-top: 6px; }

/* ===== 文章详情页（single） ===== */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 999; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #16a34a, #22c55e); transition: width 0.1s linear; }

.article-detail { background: #fafbfc; padding: 0 0 64px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12.5px; color: #a0a4ac; padding: 26px 0 0; }
.breadcrumb a { color: #16a34a; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; color: #c0c4cc; }
.breadcrumb .current { color: #666; max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.article-head { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 30px 32px 26px; margin-top: 16px; }
.article-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.article-tags .cat-badge { font-size: 11.5px; padding: 4px 12px; border-radius: 5px; text-decoration: none; font-weight: 500; }
.article-tags .cat-badge.intro { background: #ccfbf1; color: #0d9488; }
.article-tags .cat-badge.regulation { background: #fef3c7; color: #b45309; }
.article-tags .cat-badge.case { background: #dbeafe; color: #2563eb; }
.article-tags .cat-badge.glossary { background: #f3e8ff; color: #9333ea; }
.article-tags .cat-badge.topic-leak { background: #fee2e2; color: #dc2626; }
.article-tags .cat-badge.topic-law9 { background: #cffafe; color: #0891b2; }
.article-tags .cat-badge.topic-dengbao { background: #dbeafe; color: #2563eb; }
.article-tags .cat-badge.topic-ai { background: #f3e8ff; color: #a855f7; }
.article-tags .cat-badge.topic-outbound { background: #ffedd5; color: #d97706; }
.article-tags .cat-badge.topic-governance { background: #dcfce7; color: #16a34a; }
.article-tags .level-badge { font-size: 11.5px; padding: 4px 12px; border-radius: 5px; }
.article-tags .level-badge.beginner { background: #f0fdf4; color: #16a34a; }
.article-tags .level-badge.advanced { background: #faf5ff; color: #a855f7; }
.article-head h1 { font-size: 26px; font-weight: 700; color: #0a1628; line-height: 1.45; }
.article-head .article-lead { font-size: 14px; color: #666; line-height: 1.8; margin-top: 12px; padding-left: 12px; border-left: 3px solid #22c55e; }
.article-meta-line { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #f0f0f0; font-size: 12.5px; color: #a0a4ac; }
.article-meta-line span { display: inline-flex; align-items: center; gap: 5px; }

.post-content { background: #fff; border: 1px solid #f0f0f0; border-radius: 14px; padding: 34px 36px; margin-top: 20px; font-size: 15px; line-height: 1.95; color: #3d4148; }
.post-content h2 { font-size: 20px; font-weight: 700; color: #0a1628; margin: 30px 0 14px; padding-bottom: 8px; border-bottom: 1px solid #eef0f2; scroll-margin-top: 90px; }
.post-content h2:first-child { margin-top: 0; }
.post-content h3 { font-size: 16.5px; font-weight: 700; color: #1a1a1a; margin: 24px 0 10px; }
.post-content p { font-size: 15px; line-height: 1.95; color: #3d4148; margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 22px; }
.post-content li { font-size: 14.5px; line-height: 1.9; color: #3d4148; margin-bottom: 6px; }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 16px 0; }
.post-content blockquote { border-left: 4px solid #22c55e; background: #f0fdf4; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 20px 0; font-size: 14.5px; color: #166534; line-height: 1.8; }
.post-content a { color: #16a34a; }
.post-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
.post-content th { background: #f8fafc; font-weight: 600; color: #1a1a1a; text-align: left; }
.post-content th, .post-content td { border: 1px solid #eef0f2; padding: 10px 14px; line-height: 1.7; }

/* 详情页关注 CTA（深绿渐变横条） */
.article-detail .follow-cta { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 22px 28px; text-align: left; }
.article-detail .follow-cta .cta-text { flex: 1; min-width: 200px; }
.article-detail .follow-cta .cta-text h4 { font-size: 16px; margin-bottom: 6px; }
.article-detail .follow-cta .cta-text p { font-size: 13px; color: rgba(0,0,0,0.55); }
.article-detail .follow-cta .cta-qr { width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 2px solid #e8f5e9; flex-shrink: 0; }
.article-detail .follow-cta .cta-qr img { width: 100%; height: 100%; object-fit: cover; }
.article-detail .follow-cta .follow-btn { width: auto; padding: 12px 26px; flex-shrink: 0; }

/* 上下篇 */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.pn-item { background: #fff; border: 1px solid #f0f0f0; border-radius: 12px; padding: 16px 20px; text-decoration: none; transition: all 0.2s; display: flex; flex-direction: column; }
.pn-item:hover { border-color: #22c55e; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.pn-next { text-align: right; }
.pn-label { font-size: 11.5px; color: #a0a4ac; margin-bottom: 6px; }
.pn-title { font-size: 13.5px; font-weight: 600; color: #333; line-height: 1.5; }

/* 相关推荐 */
.related { margin-top: 34px; }
.related h3 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.related h3::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: #22c55e; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-item { border: 1px solid #f0f0f0; border-radius: 10px; padding: 14px 16px; background: #fff; transition: all 0.2s; display: block; text-decoration: none; }
.related-item:hover { border-color: #22c55e; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-2px); }
.related-item .r-badge { font-size: 11px; color: #16a34a; margin-bottom: 8px; display: block; }
.related-item .r-title { font-size: 13.5px; font-weight: 600; color: #333; line-height: 1.6; display: block; }
.related-item .r-meta { margin-top: 8px; font-size: 11.5px; color: #b0b4bc; display: flex; gap: 10px; }

/* 目录 TOC */
.toc-card .toc-head { cursor: pointer; display: flex; align-items: center; }
.toc-card .toc-head .toc-arrow { margin-left: auto; transition: transform 0.25s; color: #c0c4cc; font-size: 12px; }
.toc-card.open .toc-head .toc-arrow { transform: rotate(180deg); }
.toc-card .toc-list { max-height: 60vh; overflow-y: auto; margin-top: 6px; }
.toc-list li { margin-bottom: 2px; }
.toc-list a {
    display: block; padding: 7px 12px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
    font-size: 12.5px; color: #555; line-height: 1.5; text-decoration: none; transition: all 0.15s;
}
.toc-list a:hover { color: #16a34a; background: #f6f8fa; }
.toc-list a.active { color: #16a34a; background: #f0fdf4; border-left-color: #22c55e; font-weight: 600; }

/* —— 追加响应式 —— */
@media (max-width: 1024px) {
    .topic-hero { flex-direction: column; }
    .topic-hero-visual { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 40px; }
    .what-grid, .testi-grid, .prin-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .topic-hero-info { padding: 26px 22px; }
    .topic-hero-visual { padding: 20px 22px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
    .stats-bar { margin-top: -30px; padding: 22px 6px; }
    .principles { padding: 30px 22px; }
    .faq-q { padding: 16px 18px; font-size: 14px; }
    .what-grid, .testi-grid, .prin-grid, .contact-grid { grid-template-columns: 1fr; }
    .channels-strip { grid-template-columns: 1fr; gap: 20px; }
    .channel-main { padding: 30px 20px; border-radius: 14px; }
    .about-hero h1 { font-size: 32px; }
    .contact-hero h1 { font-size: 30px; }
    .article-head { padding: 24px 20px; }
    .post-content { padding: 22px 20px; }
    .article-detail .follow-cta { flex-direction: column; text-align: center; }
    .article-detail .follow-cta .cta-text { min-width: 0; }
    .prev-next { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .toc-card:not(.open) .toc-list { display: none; }
}

@media (max-width: 640px) {
    .topic-hero .hero-progress-head { gap: 14px; }
    .about-section + .about-section { margin-top: 44px; }
    .follow-cta { padding: 30px 22px; }
    .fc-reasons { gap: 8px; }
    .fc-reason { padding: 8px 14px; font-size: 12px; }
    .cm-body { gap: 24px; }
    .article-head h1 { font-size: 22px; }
    .post-content p { font-size: 14.5px; }
}


/* =========================================================
   移动端导航（汉堡菜单）
   小屏下主导航从横向菜单改为下拉面板。
   注意：本节必须放在文件末尾，以便覆盖上方 768px 断点里
   `.navbar .nav-search { margin-left: 12px }` 等既有声明。
   ========================================================= */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 2px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, color 0.2s;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #22c55e;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    /* 搜索图标与汉堡按钮一起靠右排列 */
    .navbar .nav-search { margin-left: auto; margin-right: 6px; }

    /* 主导航 → 紧贴导航栏底部的下拉面板 */
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100vh - 56px);
        padding: 4px 0;
        overflow-y: auto;
        background: #0d1d33;
        border-top: 1px solid rgba(34, 197, 94, 0.25);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
        -webkit-overflow-scrolling: touch;
    }

    .navbar.menu-open .nav-links { display: flex; }

    /* 竖排铺满：同时兼容默认菜单（a 直连）与自定义菜单（li > a）两种结构 */
    .navbar .nav-links > a,
    .navbar .nav-links > li { display: block; width: 100%; }

    .navbar .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 22px;
        font-size: 14.5px;
        color: rgba(255, 255, 255, 0.82);
    }

    .navbar .nav-links > a + a,
    .navbar .nav-links > li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); }

    /* 当前所在页面高亮 */
    .navbar .nav-links a.active,
    .navbar .nav-links li.current-menu-item > a,
    .navbar .nav-links li.current_page_item > a,
    .navbar .nav-links li.current-menu-ancestor > a {
        color: #22c55e;
        background: rgba(34, 197, 94, 0.09);
    }

    /* 竖排菜单不需要桌面端那条绿色下划线指示条 */
    .navbar .nav-links a.active::after,
    .navbar .nav-links li.active > a::after,
    .navbar .nav-links li.current-menu-item > a::after,
    .navbar .nav-links li.current_page_item > a::after,
    .navbar .nav-links li.current-menu-ancestor > a::after { display: none; }
}

/* =========================================================
   文章详情页：点赞 + 分享栏
   位置：正文下方，关注 CTA 之前
   ========================================================= */
.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 28px 0 0;
    padding: 18px 22px;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 14px;
}

.post-action-like,
.post-action-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .15s;
    -webkit-tap-highlight-color: transparent;
}
.like-btn:hover {
    border-color: #22c55e;
    color: #22c55e;
    transform: translateY(-1px);
}
.like-btn:active { transform: translateY(0); }
.like-btn i { font-size: 15px; transition: transform .2s; }
.like-btn.is-loading i { animation: dhsSpin .8s linear infinite; }
@keyframes dhsSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.like-btn.is-liked {
    background: rgba(34, 197, 94, .08);
    border-color: #22c55e;
    color: #16a34a;
    cursor: default;
    transform: none;
}
.like-btn.is-liked i { animation: dhsPop .35s ease; }
@keyframes dhsPop {
    0%   { transform: scale(.6); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.like-label { font-size: 13px; color: #888; }

.share-label { font-size: 13px; color: #888; margin-right: 2px; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #555;
    font-size: 12.5px;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s, transform .15s;
    -webkit-tap-highlight-color: transparent;
}
.share-btn:hover {
    border-color: #22c55e;
    color: #22c55e;
    transform: translateY(-1px);
}
.share-btn:active { transform: translateY(0); }
.share-btn i { font-size: 14px; }

.share-btn[data-share="wechat"]:hover  { border-color: #07c160; color: #07c160; }
.share-btn[data-share="weibo"]:hover   { border-color: #e6162d; color: #e6162d; }
.share-btn[data-share="qq"]:hover      { border-color: #1296db; color: #1296db; }
.share-btn[data-share="qzone"]:hover   { border-color: #facc15; color: #ca8a04; }

/* === 微信二维码弹窗 === */
.dhs-wechat-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
}
.dhs-wechat-modal.is-open { display: flex; }

.dhs-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: dhsFadeIn .2s ease;
}
@keyframes dhsFadeIn { from { opacity: 0; } to { opacity: 1; } }

.dhs-modal-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px 22px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
    animation: dhsScaleIn .25s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes dhsScaleIn {
    from { transform: scale(.92); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.dhs-modal-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0a1628;
    margin: 0 0 14px;
}

.dhs-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    margin: 0 auto 14px;
    padding: 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}
.dhs-qr-box img,
.dhs-qr-box canvas {
    display: block;
    width: 180px;
    height: 180px;
}
.dhs-qr-box > table {
    margin: 0 auto !important;
}

.dhs-modal-card p {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.7;
}

.dhs-modal-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.dhs-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* === Toast 提示 === */
.dhs-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: rgba(0, 0, 0, .85);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 999999;
    max-width: calc(100vw - 32px);
    text-align: center;
}
.dhs-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.dhs-toast.is-error { background: rgba(220, 38, 38, .95); }

/* === 移动端 === */
@media (max-width: 640px) {
    .post-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }
    .post-action-share { gap: 8px; }
    .post-action-share .share-label { width: 100%; margin: 0; }
    .share-btn { padding: 6px 11px; font-size: 12px; }
    .dhs-modal-card { padding: 24px 20px 18px; max-width: 280px; }
    .dhs-qr-box { width: 180px; height: 180px; }
    .dhs-qr-box img,
    .dhs-qr-box canvas { width: 160px; height: 160px; }
}

/* === 二维码加载中 / 兜底态（库不可用时不留死胡同） === */
.dhs-qr-tip {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.dhs-qr-box.is-fallback {
    height: auto;
    min-height: 200px;
}

.dhs-qr-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    width: 100%;
}
.dhs-qr-fallback i {
    font-size: 30px;
    color: #d0d5dc;
}
.dhs-qr-fallback p {
    margin: 0;
    font-size: 13px;
    color: #999;
}
.dhs-qr-fallback code {
    display: block;
    width: 100%;
    padding: 7px 9px;
    background: #f7f8fa;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    font-size: 11px;
    color: #666;
    line-height: 1.5;
    word-break: break-all;
    text-align: left;
    max-height: 52px;
    overflow: hidden;
}
.dhs-qr-copy {
    margin-top: 2px;
    padding: 7px 20px;
    background: #22c55e;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}
.dhs-qr-copy:hover { background: #16a34a; }
