/* =============================================
   跨境合规文库 - 前端样式
   主色：#165DFF 商务简约风
   ============================================= */

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: #1d2129;
    background: #f5f6f7;
    line-height: 1.6;
    font-size: 14px;
}
a { color: #165DFF; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0e42d2; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== 变量 ===== */
:root {
    --primary: #165DFF;
    --primary-dark: #0e42d2;
    --primary-light: #e8f0ff;
    --text: #1d2129;
    --text-secondary: #4e5969;
    --text-light: #86909c;
    --bg: #f5f6f7;
    --bg-white: #ffffff;
    --border: #e5e6eb;
    --border-light: #f2f3f5;
    --success: #00b42a;
    --warning: #ff7d00;
    --danger: #f53f3f;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
    --container: 1200px;
}

/* ===== 布局 ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
#app { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; padding: 24px 0; }

/* ===== 顶部导航 ===== */
.site-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo { font-size: 20px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.logo-text { background: linear-gradient(135deg, var(--primary), #4080ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }
.has-dropdown > a::after { content: '▾'; margin-left: 4px; font-size: 12px; }
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 160px;
    display: none;
    flex-direction: column;
    gap: 0;
}
.has-dropdown:hover .dropdown { display: flex; }
.dropdown a { padding: 8px 20px; border-radius: 0; }
.dropdown a:hover { background: var(--primary-light); }

/* 搜索框 */
.search-box { width: 280px; }
.search-box form { display: flex; align-items: center; background: var(--bg); border-radius: 20px; padding: 4px; }
.search-box input {
    flex: 1;
    border: none;
    background: none;
    padding: 6px 14px;
    outline: none;
    font-size: 14px;
}
.search-box button {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    transition: background 0.2s;
}
.search-box button:hover { background: var(--primary-dark); }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; padding: 4px; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: 0.3s; }

/* ===== 横幅 ===== */
.banner {
    background: linear-gradient(135deg, #165DFF 0%, #0e42d2 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.banner-inner { max-width: var(--container); margin: 0 auto; }
.banner-title { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.banner-subtitle { font-size: 16px; opacity: 0.9; margin-bottom: 32px; }
.banner-search { max-width: 600px; margin: 0 auto; }
.banner-search form { display: flex; gap: 8px; }
.banner-search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
}
.banner-search button {
    padding: 14px 32px;
    background: #fff;
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}
.banner-search button:hover { background: #f0f0f0; transform: translateY(-1px); }

/* ===== 区域标题 ===== */
.section-title { font-size: 20px; font-weight: 700; color: var(--text); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.more-link { font-size: 14px; color: var(--text-secondary); }
.more-link:hover { color: var(--primary); }

/* ===== 分类卡片 ===== */
.home-container { display: flex; flex-direction: column; gap: 32px; }
.category-cards { margin-bottom: 0; }
.cate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cate-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-light);
}
.cate-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.cate-card-icon {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700;
}
.cate-card-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cate-card-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* ===== 文档列表 ===== */
.doc-section { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.doc-list { display: flex; flex-direction: column; gap: 0; }
.doc-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    transition: padding-left 0.2s;
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { padding-left: 8px; }
.doc-item-main { display: flex; flex-direction: column; gap: 6px; }
.doc-item-title { font-size: 16px; font-weight: 500; line-height: 1.5; }
.doc-item-title a { color: var(--text); }
.doc-item-title a:hover { color: var(--primary); }
.doc-item-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.doc-item-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-light); align-items: center; }
.doc-cate { background: var(--primary-light); color: var(--primary); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.doc-cate:hover { background: var(--primary); color: #fff; }

/* ===== 徽章 ===== */
.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    vertical-align: middle;
}
.badge-crawl { background: #fff7e8; color: var(--warning); }
.badge-manual { background: #e8ffea; color: var(--success); }
.badge-success { background: #e8ffea; color: var(--success); }
.badge-warning { background: #fff7e8; color: var(--warning); }
.badge-danger { background: #ffece8; color: var(--danger); }

/* ===== 推荐区块 ===== */
.recommend-section { background: var(--primary-light); border-radius: var(--radius); padding: 24px; }
.recommend-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.recommend-item { background: #fff; border-radius: var(--radius); padding: 16px; transition: all 0.3s; border: 1px solid transparent; }
.recommend-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.recommend-item h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.recommend-item p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.recommend-cate { font-size: 12px; color: var(--primary); }

/* ===== 热门列表 ===== */
.home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hot-list { display: flex; flex-direction: column; gap: 12px; }
.hot-item { display: flex; align-items: center; gap: 12px; }
.hot-item a { flex: 1; color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-item a:hover { color: var(--primary); }
.hot-views { font-size: 12px; color: var(--text-light); }

/* 排名 */
.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px; height: 24px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    background: var(--border-light);
    color: var(--text-light);
    flex-shrink: 0;
}
.rank-1 { background: #f53f3f; color: #fff; }
.rank-2 { background: #ff7d00; color: #fff; }
.rank-3 { background: #ffc60a; color: #fff; }

/* ===== 标签云 ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-large .tag { font-size: 14px; padding: 6px 14px; }
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    color: var(--text-secondary);
    border-radius: 14px;
    font-size: 13px;
    transition: all 0.2s;
}
.tag:hover { background: var(--primary); color: #fff; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }
.empty-state p { margin-bottom: 8px; }
.empty-tip { font-weight: 600; margin-top: 16px; }
.empty-suggest { text-align: left; max-width: 300px; margin: 12px auto; }
.empty-suggest li { list-style: disc; margin-left: 20px; margin-bottom: 4px; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    transition: all 0.2s;
    border: 1px solid var(--border);
}
.btn:hover { background: var(--border-light); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-download { background: var(--primary); color: #fff; padding: 10px 24px; font-size: 15px; }
.btn-download:hover { background: var(--primary-dark); }

/* ===== 面包屑 ===== */
.breadcrumb { background: #fff; padding: 12px 0; font-size: 13px; color: var(--text-light); }
.breadcrumb .container { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 4px; color: var(--text-light); }
.breadcrumb .current { color: var(--text); }

/* ===== 列表页 ===== */
.list-container { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.filter-tabs { display: flex; gap: 4px; }
.filter-tab {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.filter-tab:hover { background: var(--bg); }
.filter-tab.active { background: var(--primary); color: #fff; }
.filter-info { font-size: 13px; color: var(--text-light); }

/* ===== 详情页 ===== */
.detail-container { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.detail-main { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.detail-title { font-size: 26px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; color: var(--text); }
.detail-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-light); padding-bottom: 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; flex-wrap: wrap; }
.detail-meta a { color: var(--text-light); }
.detail-meta a:hover { color: var(--primary); }
.detail-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.detail-content p { margin-bottom: 16px; }
.detail-content h2, .detail-content h3 { margin: 24px 0 12px; font-weight: 600; }
.detail-content img { border-radius: var(--radius); margin: 16px 0; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-content th, .detail-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.detail-content th { background: var(--bg); font-weight: 600; }
.detail-content a { color: var(--primary); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; transition: text-decoration-color 0.2s; }
.detail-content a:hover { text-decoration-color: var(--primary); }

.detail-attach { margin-top: 32px; padding: 20px; background: var(--primary-light); border-radius: var(--radius); }
.detail-attach h3 { font-size: 16px; margin-bottom: 12px; }

/* FAQ区块 */
.faq-section { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--border-light); }
.faq-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.faq-item { margin-bottom: 16px; }
.faq-item h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* 相关推荐 */
.detail-related { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--border-light); }
.related-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); transition: all 0.2s; }
.related-item:hover { background: var(--primary-light); }
.related-item-title { font-size: 14px; color: var(--text); font-weight: 500; }
.related-item-meta { font-size: 12px; color: var(--text-light); }

/* ===== 侧边栏 ===== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sidebar-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: inline-block; }
.sidebar-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-list li { display: flex; align-items: center; gap: 8px; }
.sidebar-list a { flex: 1; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-list a:hover { color: var(--primary); }
.sidebar-list .empty { color: var(--text-light); text-align: center; padding: 20px 0; }

.doc-info-list { display: flex; flex-direction: column; gap: 12px; }
.doc-info-item { display: flex; justify-content: space-between; font-size: 13px; }
.doc-info-item .label { color: var(--text-light); }
.doc-info-item a { color: var(--primary); }

.ad-slot { text-align: center; }
.ad-text { font-size: 13px; color: var(--text-light); padding: 12px 0; }

/* ===== 搜索页 ===== */
.search-container { max-width: 900px; margin: 0 auto; }
.search-header { margin-bottom: 24px; }
.search-title { font-size: 24px; font-weight: 700; }
.keyword-highlight { color: var(--primary); }
.search-count { font-size: 16px; color: var(--text-light); font-weight: 400; }
.search-form-wrapper { margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; }
.search-input { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 15px; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--primary); }
.search-btn { padding: 12px 28px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 500; }
.search-btn:hover { background: var(--primary-dark); }
.search-hot-words { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.hot-label { font-size: 13px; color: var(--text-light); }

/* ===== 采集预览页 ===== */
.crawl-preview-container { max-width: 900px; margin: 0 auto; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.page-desc { color: var(--text-secondary); margin-bottom: 24px; }
.crawl-form { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-group .required { color: var(--danger); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.input-lg { font-size: 16px; }

.preview-result { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.preview-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.preview-info { display: flex; gap: 24px; padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 13px; flex-wrap: wrap; }
.preview-info .label { color: var(--text-light); }
.preview-section { margin-bottom: 24px; }
.preview-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.preview-box { padding: 16px; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border-light); font-size: 14px; line-height: 1.7; max-height: 400px; overflow-y: auto; }
.preview-title-box { font-size: 18px; font-weight: 600; }
.preview-links { padding: 12px 16px; background: var(--bg); border-radius: var(--radius-sm); }
.preview-links li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.preview-action { padding-top: 20px; border-top: 2px solid var(--border-light); }
.save-form { margin-top: 12px; }

/* ===== 分页 ===== */
.pagination { margin-top: 24px; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: 4px; list-style: none; }
.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: all 0.2s;
}
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination li.disabled span { color: var(--text-light); cursor: not-allowed; }
.pagination li.ellipsis span { border: none; background: none; }

/* ===== 底部 ===== */
.site-footer { background: #1d2129; color: #c9cdd4; padding: 40px 0 20px; margin-top: 40px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; color: #c9cdd4; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid #3a3d40; padding-top: 20px; text-align: center; font-size: 13px; }
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: #c9cdd4; }
.footer-bottom a:hover { color: #fff; }

/* ===== 提示框 ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #ffece8; color: var(--danger); }
.alert-success { background: #e8ffea; color: var(--success); }
.alert-warning { background: #fff7e8; color: var(--warning); }

/* ===== 图片懒加载 ===== */
img[data-src] { opacity: 0; transition: opacity 0.3s; }
img[data-src].loaded { opacity: 1; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .list-container, .detail-container { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
}

@media (max-width: 768px) {
    .header-inner { gap: 16px; padding: 0 16px; }
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); padding: 8px; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 12px 16px; }
    .dropdown { position: static; box-shadow: none; display: block; padding: 0; }
    .has-dropdown:hover .dropdown { display: block; }
    .mobile-menu-toggle { display: flex; }
    .search-box { width: 100%; max-width: 200px; }
    
    .banner { padding: 40px 16px; }
    .banner-title { font-size: 24px; }
    .banner-subtitle { font-size: 14px; }
    .banner-search form { flex-direction: column; }
    .banner-search button { width: 100%; }
    
    .cate-grid { grid-template-columns: repeat(2, 1fr); }
    .home-bottom { grid-template-columns: 1fr; }
    .container { padding: 0 12px; }
    
    .detail-main { padding: 20px 16px; }
    .detail-title { font-size: 20px; }
    .detail-meta { gap: 12px; font-size: 12px; }
    .related-grid { grid-template-columns: 1fr; }
    
    .filter-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .form-row { flex-direction: column; gap: 0; }
    
    .footer-links { grid-template-columns: 1fr; gap: 20px; }
    
    .pagination li a, .pagination li span { min-width: 32px; height: 32px; font-size: 13px; }
}

/* ===== 跨境相关话题页 ===== */
.topics-container { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.topics-header { text-align: center; margin-bottom: 32px; }
.topics-title { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.topics-subtitle { color: var(--text-secondary); font-size: 15px; }

.topics-cloud-section { margin-bottom: 40px; }
.topics-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.topic-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.topic-tag:hover { background: var(--primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.topic-weight-10 { font-size: 18px; padding: 10px 20px; }
.topic-weight-9 { font-size: 17px; }
.topic-weight-8 { font-size: 16px; }
.topic-weight-7 { font-size: 15px; }
.topic-weight-6 { font-size: 14px; }
.topic-weight-5 { font-size: 13px; }
.topic-weight-4 { font-size: 12px; }
.topic-weight-dynamic { font-size: 13px; background: #fff7e8; color: #ff7d00; }
.topic-weight-dynamic:hover { background: #ff7d00; color: #fff; }

.topics-cate-section { margin-bottom: 40px; }
.topics-cate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topics-cate-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.topics-cate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.topics-cate-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.topics-cate-header h3 { font-size: 17px; font-weight: 600; }
.topics-cate-header .more { font-size: 13px; color: var(--text-light); }
.topics-cate-header .more:hover { color: var(--primary); }
.topics-doc-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border-light); }
.topics-doc-list li:last-child { border-bottom: none; }
.topics-doc-list a { color: var(--text); font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topics-doc-list a:hover { color: var(--primary); }
.topics-doc-date { color: var(--text-light); font-size: 12px; margin-left: 8px; }
.topics-mini-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #f2f3f5;
    color: var(--text-secondary);
}
.mini-tag:hover { background: var(--primary-light); color: var(--primary); }

@media (max-width: 1024px) {
    .topics-cate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .topics-cate-grid { grid-template-columns: 1fr; }
    .topics-title { font-size: 24px; }
    .topic-weight-10 { font-size: 15px; }
}

