/* ==================================== */
/*  璞金财经 - 杂志风格样式表               */
/*  黑白主调 + 彩色装饰元素                  */
/* ==================================== */

:root {
    --primary: #1a1a1a;
    --secondary: #333;
    --text: #2c2c2c;
    --text-light: #666;
    --text-muted: #999;
    --bg: #ffffff;
    --bg-light: #f8f8f8;
    --bg-gray: #f2f3f4;
    --border: #e8e8e8;
    --border-light: #f0f0f0;
    --accent: #000;
    --hover: #c00;
    --gold: #d4a017;
    --max-width: 1260px;
    /* 分类色系 */
    --cat-1: #2563eb;   /* 宏观经济 - 蓝 */
    --cat-2: #dc2626;   /* 股市财经 - 红 */
    --cat-3: #d97706;   /* 基金投资 - 金 */
    --cat-4: #059669;   /* 理财规划 - 绿 */
    --cat-5: #7c3aed;   /* 房地产 - 紫 */
    --cat-6: #0891b2;   /* 金融科技 - 青 */
    --cat-7: #4f46e5;   /* 国际经济 - 靛 */
    --cat-8: #1e293b;   /* 商业观察 - 墨 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.1);
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state-img {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}
.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.empty-state-desc {
    font-size: 14px;
    color: var(--text-muted);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶栏 ========== */
.top-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    border-bottom: 1px solid #333;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a {
    color: #aaa;
    margin-right: 20px;
}
.top-bar a:hover { color: #fff; }
.top-bar .top-left a:first-child {
    color: var(--gold);
    font-weight: 500;
    letter-spacing: .5px;
}
.top-bar .top-right a { margin-left: 0; margin-right: 0; }
.top-bar .top-right a + a { margin-left: 18px; }

/* ========== 主头部 ========== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    height: 68px;
}
.header-inner .logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
}
.header-inner .logo::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--hover);
    border-radius: 50%;
    margin-left: 2px;
    vertical-align: super;
}
.header-inner .logo:hover { color: var(--accent); }

/* 主导航 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 0;
    margin: 0 12px;
    min-width: 0;
}
.main-nav a {
    padding: 0 10px;
    height: 68px;
    line-height: 68px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: #c00; }
.main-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 3px;
    background: #c00;
    transition: all .25s ease;
    opacity: 0;
}
.main-nav a:hover::before {
    left: 14px;
    right: 14px;
    opacity: 1;
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: #c00;
}
.main-nav a.active::before { display: none; }

/* 移动端导航按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 头部搜索 */
.header-search { position: relative; }
.header-search .search-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.header-search .search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,26,26,.08);
}
.header-search input {
    border: none;
    outline: none;
    padding: 8px 12px;
    width: 160px;
    font-size: 13px;
    background: var(--bg-light);
}
.header-search input:focus { background: #fff; }
.header-search button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: background .2s;
}
.header-search button:hover { background: #333; }

/* ========== 头条焦点区 ========== */
.featured-section {
    background: linear-gradient(180deg, var(--bg-gray) 0%, #fff 100%);
    padding: 24px 0;
    position: relative;
}
.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.featured-grid {
    display: flex;
    gap: 20px;
}
.featured-main {
    flex: 0 0 66%;
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
}
.featured-main .slider-container {
    position: relative;
}
.featured-main .slider-item {
    position: relative;
    display: none;
}
.featured-main .slider-item.active {
    display: block;
}
.featured-main .slider-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    background: #0b1220;
    display: block;
    transition: transform .4s;
}
.featured-main .slider-item:hover img { transform: scale(1.02); }
.featured-main .slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: #fff;
}
.featured-main .slider-caption h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}
.featured-main .slider-caption p {
    font-size: 14px;
    color: #ccc;
}
.slider-dots {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: flex;
    gap: 8px;
}
.slider-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .25s;
}
.slider-dots span.active {
    background: #fff;
    transform: scale(1.2);
}

/* 右侧小图卡片 */
.featured-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 420px;
}
.featured-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    min-height: 0;
    box-shadow: var(--shadow-sm);
}
.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #0b1220;
    transition: transform .4s;
    position: absolute;
    top: 0;
    left: 0;
}
.featured-card:hover img { transform: scale(1.02); }
.featured-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.featured-card .card-overlay h3 {
    font-size: 15px;
    color: #fff;
    line-height: 1.4;
}
.featured-card .card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 2px;
}

/* ========== 主内容区 ========== */
.main-content-area {
    padding: 30px 0;
    background: var(--bg-gray);
    min-height: 600px;
}

/* ========== 首页广告位 ========== */
.home-ad-layout {
    position: relative;
    width: 100%;
}
.home-ad-main {
    position: relative;
    z-index: 1;
}
.home-ad-side {
    width: 120px;
    z-index: 90;
}
.home-ad-side .home-ad-link {
    display: block;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .2s, box-shadow .2s;
}
.home-ad-side .home-ad-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.home-ad-side img {
    width: 120px;
    height: auto;
    display: block;
}
.home-ad-banner-section {
    padding: 0 0 20px;
    background: linear-gradient(180deg, #fff 0%, var(--bg-gray) 100%);
}
.home-ad-banner {
    display: block;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
    background: #1a1a1a;
    min-height: 60px;
}
.home-ad-banner:hover {
    box-shadow: var(--shadow-md);
}
.home-ad-banner img {
    width: 100%;
    height: auto;
    min-height: 60px;
    max-height: 120px;
    object-fit: cover;
    display: block;
}

/* 宽屏：三栏布局，左右竖幅广告（需足够视口宽度，避免挤压轮播） */
@media (min-width: 1500px) {
    .home-ad-layout {
        display: grid;
        grid-template-columns: 120px minmax(0, var(--max-width)) 120px;
        gap: 20px;
        max-width: calc(var(--max-width) + 280px);
        margin: 0 auto;
        padding: 0 20px;
        align-items: start;
    }
    .home-ad-left {
        grid-column: 1;
        grid-row: 1;
        position: sticky;
        top: 100px;
    }
    .home-ad-main {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }
    .home-ad-right {
        grid-column: 3;
        grid-row: 1;
        position: sticky;
        top: 100px;
    }
    .home-ad-main .container {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

/* 非超宽屏：隐藏左右竖幅广告，轮播顶格显示，仅保留横幅广告 */
@media (max-width: 1499px) {
    .home-ad-side {
        display: none !important;
    }
    .home-ad-layout {
        display: block;
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0;
    }
    .home-ad-main .container {
        max-width: var(--max-width);
        padding-left: 20px;
        padding-right: 20px;
    }
}

.content-layout {
    display: flex;
    gap: 30px;
}
.content-left {
    flex: 1;
    min-width: 0;
}
.content-right {
    flex: 0 0 300px;
}

/* ========== 分类Tab ========== */
.category-tabs {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
    background: #fff;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
.category-tabs .tab-item {
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-light);
    position: relative;
    transition: all .2s;
    border: none;
    background: none;
}
.category-tabs .tab-item:hover { color: var(--primary); }
.category-tabs .tab-item.active {
    color: var(--primary);
    background: #f8f8f8;
}
.category-tabs .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}
.category-tabs .tab-more {
    margin-left: auto;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--text-muted);
}
.category-tabs .tab-more:hover { color: var(--primary); }

/* ========== 文章列表（带缩略图） ========== */
.article-list-modern {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-list-modern .article-item-modern {
    display: flex;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background .2s;
}
.article-list-modern .article-item-modern:last-child { border-bottom: none; }
.article-list-modern .article-item-modern:hover {
    background: #fafafa;
}
.article-list-modern .article-item-modern {
    position: relative;
}
.article-list-modern .article-item-modern::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 0;
    height: 1px;
    background: var(--border-light);
}
.article-list-modern .article-item-modern:last-child::after { display: none; }
.article-list-modern .article-thumb {
    flex: 0 0 180px;
    height: 120px;
    margin-right: 22px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}
.article-list-modern .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.article-list-modern .article-item-modern:hover .article-thumb img {
    transform: scale(1.08);
}
/* 缩略图占位 - 无图片时显示渐变色块 */
.article-thumb img[src=""],
.article-thumb img:not([src]) {
    display: none;
}
.article-thumb:empty::before,
.article-thumb:has(img[src=""])::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #999;
}

/* 不同颜色的文章占位图 */
.article-thumb.ph-1 { background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%) !important; }
.article-thumb.ph-2 { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%) !important; }
.article-thumb.ph-3 { background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%) !important; }
.article-thumb.ph-4 { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important; }
.article-thumb.ph-5 { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important; }
.article-thumb.ph-6 { background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%) !important; }
.article-thumb.ph-7 { background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%) !important; }
.article-thumb.ph-8 { background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%) !important; }
.article-list-modern .article-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.article-list-modern .article-body .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-list-modern .article-body .title:hover { color: var(--hover); }
.article-list-modern .article-body .summary {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.article-list-modern .article-body .meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}
.article-list-modern .article-body .meta .cat-tag {
    background: var(--bg-light);
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    border-left: 2px solid var(--primary);
}
.article-list-modern .article-body .tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.article-list-modern .article-body .tags a {
    font-size: 11px;
    color: var(--text-muted);
    padding: 1px 6px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
}
.article-list-modern .article-body .tags a:hover {
    color: var(--primary);
    border-color: var(--border);
}

/* 热门文章热度指示器 */
.hot-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 500;
}
.hot-indicator::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ef4444' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8 6 4 10 4 14c0 4.4 3.6 8 8 8s8-3.6 8-8c0-4-4-8-8-12zm0 18c-2.2 0-4-1.8-4-4 0-2 2-4.5 4-7 2 2.5 4 5 4 7 0 2.2-1.8 4-4 4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 加载更多 */
.load-more {
    text-align: center;
    padding: 30px 0;
}
.load-more .btn-load {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    background: #fff;
}
.load-more .btn-load:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== 右侧边栏 ========== */
.content-right .sidebar-block {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.sidebar-block .block-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-block .block-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--hover);
    border-radius: 2px;
    flex-shrink: 0;
}

/* 热门排行 */
.hot-list { list-style: none; }
.hot-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list .rank-num {
    flex: 0 0 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: 4px;
}
.hot-list li:nth-child(1) .rank-num { background: #ef4444; color: #fff; }
.hot-list li:nth-child(2) .rank-num { background: #f97316; color: #fff; }
.hot-list li:nth-child(3) .rank-num { background: #eab308; color: #fff; }
.hot-list a {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-list a:hover { color: var(--hover); }

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-cloud a {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
    transition: all .2s;
}
.tag-cloud a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* 推荐侧边卡片 */
.side-article-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.side-article-item:last-child { border-bottom: none; padding-bottom: 0; }
.side-article-item .side-thumb {
    flex: 0 0 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}
.side-article-item .side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.side-article-item:hover .side-thumb img { transform: scale(1.08); }
.side-article-item .side-info {
    flex: 1;
    min-width: 0;
}
.side-article-item .side-info h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.side-article-item .side-info .side-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== 通用文章列表 ========== */
.category-section,
.search-section,
.latest-section {
    background: var(--bg-gray);
    min-height: 400px;
    padding: 20px 0 40px;
}
.category-section .article-list,
.search-section .article-list,
.latest-section .article-list {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.tag-top {
    display: inline-block;
    background: linear-gradient(135deg, #c00, #ef4444);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}
.tag-recommend {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

/* ========== 分页 ========== */
.pagination-wrap {
    text-align: center;
    padding: 30px 0;
}
.pagination-wrap a,
.pagination-wrap span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    border-radius: 4px;
    transition: all .2s;
}
.pagination-wrap a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-light);
}
.pagination-wrap .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== 页脚 ========== */
.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #fff;
    padding: 50px 0 0;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--hover), var(--gold));
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #fff;
    position: relative;
    padding-left: 14px;
}
.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.footer-col p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.8;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    color: #aaa;
    font-size: 13px;
    transition: all .2s;
    padding-left: 0;
}
.footer-col ul a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    color: #666;
    font-size: 13px;
}

/* ========== 页面头 ========== */
.page-header {
    background: linear-gradient(135deg, #f0f0f0 0%, #fafafa 50%, #f5f5f5 100%);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,0,0,.03) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.page-header h1 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.page-header h1::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--hover);
    margin: 12px auto 0;
    border-radius: 2px;
}
.page-header p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* ========== 文章详情 ========== */
.article-detail {
    background: #fff;
    padding: 30px 0;
}
.article-detail .detail-container {
    max-width: 800px;
    margin: 0 auto;
}
.article-header h1 {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 16px;
}
.article-header .meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.article-cover {
    margin: 24px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}
.article-content p { margin-bottom: 1.5em; }
.article-content img {
    max-width: 100%;
    margin: 24px auto;
    border-radius: 6px;
    display: block;
    box-shadow: var(--shadow-sm);
}

/* 文章标签 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
}
.article-tags::before {
    content: '?';
    font-size: 14px;
    color: var(--text-muted);
    align-self: center;
}
.article-tags .tag-item {
    padding: 4px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    transition: all .2s;
}
.article-tags .tag-item:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* 文章上下篇 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.article-navigation > div { flex: 1; min-width: 0; }
.article-navigation > div:only-child { text-align: center; max-width: 60%; margin: 0 auto; }
.article-navigation a {
    display: block;
    padding: 16px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all .25s;
    text-decoration: none;
}
.article-navigation a:hover {
    border-color: var(--primary);
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.article-navigation .nav-label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}
.article-navigation .nav-title {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.article-navigation a:hover .nav-title {
    color: var(--hover);
}
.article-navigation .nav-next { text-align: right; }

/* 相关文章 */
.related-articles { margin-top: 40px; }
.related-articles h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.related-articles h3::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--hover);
    border-radius: 2px;
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.article-grid .article-card {
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    transition: all .25s;
    overflow: hidden;
}
.article-grid .article-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.article-grid .article-card .article-image {
    height: 120px;
    overflow: hidden;
}
.article-grid .article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.article-grid .article-card:hover .article-image img {
    transform: scale(1.08);
}
.article-grid .article-card .article-info {
    padding: 12px;
}
.article-grid .article-card h3 {
    font-size: 14px;
    border: none;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-grid .article-card .article-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 搜索高亮 */
.highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 0 2px;
    border-radius: 2px;
}

/* ========== 缩略图分类角标 ========== */
.article-thumb {
    position: relative;
    overflow: hidden;
}
.thumb-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 3px;
    z-index: 2;
    letter-spacing: .5px;
    backdrop-filter: blur(4px);
}

/* 文章Badge */
.tag-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: 500;
    vertical-align: middle;
}
.tag-top-badge {
    background: linear-gradient(135deg, #c00, #ef4444);
    color: #fff;
}
.tag-rec-badge {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    color: #fff;
}

/* 文章标签行 */
.article-tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.article-tag-item {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all .2s;
}
.article-tag-item:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-light);
}

/* 加载更多按钮 */
.load-more-wrap {
    text-align: center;
    padding: 24px 0 10px;
}
.load-more-wrap .btn-load {
    display: inline-block;
    padding: 10px 50px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: all .25s;
    background: #fff;
}
.load-more-wrap .btn-load:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
}
.load-more-wrap .btn-load:disabled {
    cursor: default;
    opacity: .7;
}
.load-more-wrap .btn-load:disabled:hover {
    border-color: var(--border);
    color: var(--text-muted);
    background: #fff;
    box-shadow: none;
}

/* 关于我们页面装饰 */
.about-section .about-content {
    position: relative;
}
.about-section .about-content h2 {
    position: relative;
    display: inline-block;
}
.about-section .about-content h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--hover);
    margin-top: 8px;
    border-radius: 2px;
}
.about-section .about-content h3 {
    position: relative;
    display: inline-block;
}
.about-section .about-content h3::after {
    content: '';
    display: block;
    width: 40%;
    height: 2px;
    background: var(--primary);
    margin-top: 8px;
    border-radius: 2px;
}
.about-section .about-content ul {
    background: var(--bg-light);
    padding: 20px 24px;
    border-radius: 6px;
    border-left: 3px solid var(--hover);
    margin-top: 16px;
}
.about-section .about-content ul li {
    margin-bottom: 8px !important;
    padding-left: 4px;
}
.about-section .about-content ul li:last-child { margin-bottom: 0 !important; }

/* 回到顶部按钮 */
#back-to-top {
    transition: opacity .3s, transform .3s !important;
}
#back-to-top:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.3) !important;
}

/* 热门标签特殊样式 */
.article-tags .tag-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .featured-main .slider-item img { height: 320px; }
    .featured-side { display: none; }
    .featured-main { flex: 1; }
    .content-right { display: none; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .main-nav a {
        padding: 0 8px;
        font-size: 13px;
    }
    .header-search input { width: 130px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-inner { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 10px; align-items: center; }
    .header-inner .logo { font-size: 20px; flex: 1; min-width: 0; }
    .nav-toggle { display: flex; order: 2; }
    .header-search { order: 3; width: 100%; }
    .header-search .search-box { width: 100%; }
    .header-search input { width: 100%; flex: 1; }
    .main-nav {
        order: 4;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px 0 4px;
        border-top: 1px solid var(--border);
        max-height: 60vh;
        overflow-y: auto;
    }
    .main-nav.is-open { display: flex; }
    .main-nav a {
        height: auto;
        line-height: 1.4;
        padding: 12px 4px;
        font-size: 15px;
        border-bottom: 1px solid var(--border-light);
    }
    .main-nav a:last-child { border-bottom: none; }
    .main-nav a::before,
    .main-nav a.active::after { display: none; }
    .main-nav a.active { background: var(--bg-gray); border-radius: 4px; }

    .featured-section { padding: 12px 0; }
    .featured-main .slider-item img { height: 220px; }
    .featured-main .slider-caption { padding: 16px; }
    .featured-main .slider-caption h2 { font-size: 18px; }

    .article-list-modern .article-item-modern {
        flex-direction: column;
        padding: 16px;
    }
    .article-list-modern .article-thumb {
        flex: none;
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 12px;
    }
    .article-list-modern .article-body .title { font-size: 16px; }

    .category-tabs { overflow-x: auto; }
    .category-tabs .tab-item {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .content-right { display: none; }
    .article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .featured-main .slider-item img { height: 180px; }
    .featured-main .slider-caption h2 { font-size: 15px; }
    .article-list-modern .article-thumb { height: 140px; }
}
