/* ============================================
   Weste.Net 2026 - Modern Tech Portal Stylesheet
   现代IT资讯门户风格 - 全面升级版
   ============================================ */

/* ============================================
   重置与基础样式
   ============================================ */

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

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-attachment: fixed;
    color: #1e293b;
    line-height: 1.7;
    min-height: 100vh;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4f46e5, #7c3aed);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul, ol {
    list-style: none;
}

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

/* ============================================
   CSS变量 - 现代科技配色
   ============================================ */

:root {
    /* 主色调 - 科技蓝紫渐变 */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-bg: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    --primary-glow: rgba(99, 102, 241, 0.4);

    /* 辅助色 - 活力橙 */
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;
    --accent-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);

    /* AI特色色 - 霓虹粉紫 */
    --ai-primary: #ec4899;
    --ai-secondary: #a855f7;
    --ai-gradient: linear-gradient(135deg, #ec4899, #a855f7, #6366f1);
    --ai-glow: rgba(236, 72, 153, 0.3);

    /* 文字颜色 */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* 背景色 */
    --bg-page: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-solid: #ffffff;
    --bg-hover: rgba(99, 102, 241, 0.05);

    /* 边框 */
    --border-color: rgba(148, 163, 184, 0.2);
    --border-light: rgba(226, 232, 240, 0.8);

    /* 阴影 - 现代层次感 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* 圆角 */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* 分类色 - 现代渐变 */
    --section-news: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --section-tech: linear-gradient(135deg, #10b981, #059669);
    --section-hardware: linear-gradient(135deg, #06b6d4, #0891b2);
    --section-game: linear-gradient(135deg, #f97316, #ea580c);
    --section-devops: linear-gradient(135deg, #a855f7, #7c3aed);
    --section-elec: linear-gradient(135deg, #14b8a6, #0d9488);
    --section-ai: linear-gradient(135deg, #ec4899, #a855f7);
}

/* ============================================
   布局容器
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    counter-reset: hot-counter;
}

.main-content {
    flex: 1;
    padding: 24px 0;
}

/* ============================================
   头部导航 - 现代毛玻璃效果
   ============================================ */

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all var(--transition-normal);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin-left: -12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.logo:hover {
    background: var(--bg-hover);
}

.logo-img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--ai-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-item:hover {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
}

.nav-item.active {
    color: var(--primary);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--ai-secondary));
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    z-index: 101;
    transition: all var(--transition-normal);
}

.menu-toggle:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
}

.menu-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    position: relative;
    transition: all var(--transition-normal);
    margin: 0 auto;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-normal);
    border-radius: 1px;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

/* 菜单打开状态 */
.menu-toggle.active .menu-icon {
    background: transparent;
}

.menu-toggle.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.mobile-nav.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary);
}

.mobile-nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

/* 子导航 */
.sub-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.sub-nav {
    display: flex;
    gap: 8px;
    height: 48px;
    align-items: center;
    overflow-x: auto;
}

.sub-nav-item {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.sub-nav-item:hover {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.sub-nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--ai-secondary));
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ============================================
   焦点区域 - 现代卡片设计
   ============================================ */

.hero-section {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

/* 轮播 */
.hero-slider {
    position: relative;
    background: var(--bg-card-solid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 360px;
    border: 1px solid var(--border-color);
}

.slide {
    display: none;
    position: absolute;
    inset: 0;
    color: inherit;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide:hover .slide-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.slide-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 28px 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
}

.slide-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--primary), var(--ai-secondary));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
    box-shadow: 0 4px 12px var(--primary-glow);
    letter-spacing: 0.5px;
}

.slide-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 轮播控制 */
.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 28px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.slider-dot.active {
    width: 28px;
    border-radius: var(--radius-full);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    z-index: 10;
    opacity: 0;
    transition: all var(--transition-normal);
}

.hero-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow-prev { left: 20px; }
.slider-arrow-next { right: 20px; }

/* Arrow Icons */
.slider-arrow-prev::before,
.slider-arrow-next::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.slider-arrow-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.slider-arrow-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* 热门列表 */
.hero-sidebar {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.sidebar-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--ai-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-more {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-normal);
}

.sidebar-more:hover {
    color: var(--primary);
}

.hot-icon {
    font-size: 18px;
}

.hot-list {
    display: flex;
    flex-direction: column;
    counter-reset: hot-counter;
}

.hot-item {
    display: flex;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-normal);
    counter-increment: hot-counter;
}

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

.hot-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.hot-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: var(--text-muted);
    border-radius: var(--radius-xs);
    flex-shrink: 0;
}

.hot-rank::before {
    content: counter(hot-counter);
}

.hot-item:nth-child(1) .hot-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.hot-item:nth-child(2) .hot-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.4);
}

.hot-item:nth-child(3) .hot-rank {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.4);
}

.hot-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
    flex: 1;
}

.hot-item:hover .hot-title {
    color: var(--primary);
}

/* ============================================
   AI资讯模块 - 霓虹渐变风格
   ============================================ */

.ai-section {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ai-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.ai-header h2 {
    font-size: 20px;
    font-weight: 700;
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-badge {
    padding: 5px 12px;
    background: var(--ai-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px var(--ai-glow);
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.ai-more {
    margin-left: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.ai-more:hover {
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* AI标签 */
.ai-tags {
    display: flex;
    gap: 10px;
    margin-left: 16px;
}

.ai-tags a {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ai-primary);
    background: rgba(236, 72, 153, 0.1);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.ai-tags a:hover {
    background: rgba(236, 72, 153, 0.2);
    color: var(--ai-secondary);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ai-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ai-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.ai-card:hover {
    border-color: var(--ai-primary);
    box-shadow: var(--shadow-lg), 0 0 20px var(--ai-glow);
    transform: translateY(-4px);
}

.ai-card:hover::before {
    opacity: 1;
}

.ai-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.ai-card:hover .ai-card-title {
    background: var(--ai-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-card-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--ai-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

/* ============================================
   热门专题
   ============================================ */

.topics-section {
    margin-bottom: 24px;
}

/* Banner广告 */
.banner-ad {
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.banner-ad a {
    display: block;
}

.banner-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-ad:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary), var(--ai-secondary));
    border-radius: var(--radius-full);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.topic-card {
    display: flex;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.topic-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.topic-image {
    width: 170px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    margin: 14px 0 14px 14px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.topic-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform var(--transition-slow);
}

.topic-card:hover .topic-image img {
    transform: scale(1.05);
}

.topic-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.topic-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.topic-card:hover .topic-title {
    color: var(--primary);
}

.topic-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   分类板块 - 现代卡片设计
   ============================================ */

.category-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--header-accent, var(--primary));
    opacity: 0.8;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0%, 100% { left: -50%; }
    50% { left: 100%; }
}

.category-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 各栏目图标背景 */
.section-news .category-icon { background: var(--section-news); --header-accent: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.section-tech .category-icon { background: var(--section-tech); --header-accent: linear-gradient(90deg, #10b981, #059669); }
.section-hardware .category-icon { background: var(--section-hardware); --header-accent: linear-gradient(90deg, #06b6d4, #0891b2); }
.section-game .category-icon { background: var(--section-game); --header-accent: linear-gradient(90deg, #f97316, #ea580c); }
.section-devops .category-icon { background: var(--section-devops); --header-accent: linear-gradient(90deg, #a855f7, #7c3aed); }
.section-elec .category-icon { background: var(--section-elec); --header-accent: linear-gradient(90deg, #14b8a6, #0d9488); }

.category-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 50px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.category-more:hover {
    color: var(--primary);
    background: var(--bg-hover);
}

.category-more::after {
    content: '';
    font-size: 18px;
    font-weight: 600;
}

/* 分类子链接 */
.category-sub-links {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.category-sub-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.category-sub-links a:hover {
    color: var(--primary);
    background: var(--bg-hover);
}

/* 分类内容 */
.category-body {
    display: grid;
    grid-template-columns: 320px 1fr;
}

/* 焦点文章 */
.category-featured {
    padding: 24px;
    border-right: 1px solid var(--border-light);
}

.category-featured-card {
    display: block;
    cursor: pointer;
}

.category-featured-card:hover .category-featured-title {
    color: var(--primary);
}

.category-featured-image {
    width: 100%;
    padding-bottom: 56.25%;
    background: linear-gradient(135deg, #37474f 0%, #546e7a 100%);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.category-featured-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-featured-card:hover .category-featured-image img {
    transform: scale(1.03);
}

.category-featured-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: rgba(255,255,255,0.25);
}

.category-featured-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.section-news .category-featured-tag { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.15)); color: #2563eb; }
.section-tech .category-featured-tag { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15)); color: #059669; }
.section-hardware .category-featured-tag { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(8, 145, 178, 0.15)); color: #0891b2; }
.section-game .category-featured-tag { background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(234, 88, 12, 0.15)); color: #ea580c; }
.section-devops .category-featured-tag { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(124, 58, 237, 0.15)); color: #7c3aed; }
.section-elec .category-featured-tag { background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(13, 148, 136, 0.15)); color: #0d9488; }

.category-featured-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 12px;
    transition: color var(--transition-normal);
}

.category-featured-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-featured-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-featured-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.category-featured-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-color: var(--border-color);
}

.category-featured-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
}

.category-featured-item:hover .category-featured-item-title {
    color: var(--primary);
}

/* 文章列表 */
.category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border-light);
}

.category-list-item {
    background: var(--bg-card-solid);
    padding: 18px 22px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
}

.category-list-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    width: fit-content;
}

.section-news .category-list-tag { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(29, 78, 216, 0.12)); color: #2563eb; }
.section-tech .category-list-tag { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.12)); color: #059669; }
.section-hardware .category-list-tag { background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(8, 145, 178, 0.12)); color: #0891b2; }
.section-game .category-list-tag { background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(234, 88, 12, 0.12)); color: #ea580c; }
.section-devops .category-list-tag { background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(124, 58, 237, 0.12)); color: #7c3aed; }
.section-elec .category-list-tag { background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(13, 148, 136, 0.12)); color: #0d9488; }

.category-list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    transition: color var(--transition-normal);
}

.category-list-item:hover .category-list-title {
    color: var(--primary);
}

.category-list-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   底部 - 现代深色主题
   ============================================ */

.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #94a3b8;
    padding: 48px 0 28px;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--ai-secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: brightness(1.2);
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--ai-secondary));
    border-radius: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: #64748b;
    transition: all var(--transition-normal);
    padding: 4px 0;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 13px;
    color: #475569;
}

.footer-copyright a {
    color: #64748b;
}

.footer-copyright a:hover {
    color: #fff;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--ai-secondary));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* 移动端底部导航 */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    padding: 8px 0 6px;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
}

.mobile-nav-item svg {
    opacity: 0.6;
    transition: all var(--transition-normal);
}

.mobile-nav-item.active {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.mobile-nav-item.active svg {
    opacity: 1;
}

.mobile-nav-item:hover {
    color: var(--primary);
}

.mobile-nav-item:hover svg {
    opacity: 1;
}

/* ============================================
   文章详情页样式
   ============================================ */

/* 文章页面布局 */
.article-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
}

/* 文章头部 */
.article-header {
    padding: 28px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.article-main .article-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    border-radius: var(--radius-full);
    margin-bottom: 18px;
}

.article-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--text-primary), #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* 文章正文 */
.article-content {
    padding: 28px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 20px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), transparent);
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 14px;
}

.article-image {
    margin: 28px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.article-image figcaption {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 28px;
    font-size: 16px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content strong {
    font-weight: 600;
    color: var(--primary);
}

/* 引用块 */
.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.article-content blockquote cite {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

/* 代码块 */
.article-code-block {
    margin: 24px 0;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-code-block pre {
    padding: 20px 24px;
    overflow-x: auto;
}

.article-code-block code {
    font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.7;
}

/* 文章底部 */
.article-footer {
    padding: 24px 28px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.article-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tag-item {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.article-tag-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary);
    border-color: var(--primary);
}

/* keyword 样式（与 article-tag-item 相同） */
.article-tags .keyword {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.article-tags .keyword:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary);
    border-color: var(--primary);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.share-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.share-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--ai-secondary));
    color: #fff;
    border-color: transparent;
}

/* 相关推荐 */
.article-related {
    padding: 24px 28px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    margin-top: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--ai-secondary));
    border-radius: var(--radius-full);
}

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

.related-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.related-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-color: var(--border-color);
}

.related-tag {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.related-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.related-item:hover .related-item-title {
    color: var(--primary);
}

/* ============================================
   分类栏目页面样式
   ============================================ */

/* 面包屑导航 */
.breadcrumb {
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: var(--radius-sm);
}

.breadcrumb a:hover {
    color: var(--primary);
    background: var(--bg-hover);
}

.breadcrumb ol a::after {
    content: '>';
    margin-left: 10px;
    color: var(--text-muted);
}

.breadcrumb ol a:last-child::after {
    content: '';
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* 分类页面布局 */
.category-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.article-card {
    display: flex;
    gap: 22px;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.article-card-image {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #37474f 0%, #546e7a 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

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

.article-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 无图片文章卡片 */
.article-card-no-image {
    padding: 20px 24px;
}

.article-card-no-image .article-card-content {
    gap: 12px;
}

.article-card-no-image .article-card-title {
    font-size: 17px;
}

.article-card-no-image .article-card-excerpt {
    -webkit-line-clamp: 3;
}

.article-card-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    border-radius: var(--radius-full);
    width: fit-content;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.45;
    transition: color var(--transition-normal);
}

.article-card:hover .article-card-title {
    color: var(--primary);
}

.article-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 32px 0;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.pagination-item:hover {
    color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-color: var(--primary);
}

.pagination-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--ai-secondary));
    border-color: transparent;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.pagination-item.disabled {
    color: var(--text-muted);
    background: rgba(241, 245, 249, 0.5);
    cursor: not-allowed;
    border-color: transparent;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-muted);
}

/* 分类侧边栏 */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.article-sidebar .sidebar-section {
    margin-bottom: 20px;
}

.article-sidebar .sidebar-section:last-child {
    margin-bottom: 0;
}

/* 相关分类 */
.related-categories {
    display: flex;
    flex-direction: column;
    counter-reset: hot-counter;
}

.related-category-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

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

.related-category-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.related-category-icon {
    font-size: 20px;
}

.related-category-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.related-category-item:hover .related-category-name {
    color: var(--primary);
}

/* ============================================
   动画效果
   ============================================ */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 页面加载动画 */
.category-section,
.ai-section,
.hero-slider,
.hero-sidebar,
.topic-card,
.article-card {
    animation: slideUp 0.5s ease forwards;
}

.category-section:nth-child(2) { animation-delay: 0.1s; }
.category-section:nth-child(3) { animation-delay: 0.2s; }
.category-section:nth-child(4) { animation-delay: 0.3s; }
.category-section:nth-child(5) { animation-delay: 0.4s; }

.topic-card:nth-child(1) { animation-delay: 0.1s; }
.topic-card:nth-child(2) { animation-delay: 0.2s; }
.topic-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   响应式设计
   ============================================ */

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1.5fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .category-page-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: none;
    }

    .article-page-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav {
        display: block;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        min-height: 220px;
    }

    .slide-title {
        font-size: 18px;
    }

    .slide-content {
        padding: 40px 20px 20px;
    }

    .slider-dots {
        right: 20px;
        bottom: 16px;
    }

    .hero-sidebar {
        max-height: 360px;
    }

    .category-body {
        grid-template-columns: 1fr;
    }

    .category-featured {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .ai-grid {
        grid-template-columns: 1fr;
    }

    .ai-tags {
        display: none;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        flex-direction: column;
    }

    .topic-image {
        width: calc(100% - 28px);
        height: 140px;
        margin: 14px;
    }

    .category-list {
        grid-template-columns: 1fr;
    }

    .category-sub-links {
        display: none;
    }

    .category-more {
        margin-left: auto;
    }

    .footer-inner {
        display: none;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .footer {
        padding: 24px 0 90px;
    }

    /* 分类页面移动端 */
    .article-card {
        flex-direction: column;
        padding: 18px;
    }

    .article-card-image {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        position: relative;
    }

    .article-card-image img {
        position: absolute;
        inset: 0;
    }

    .breadcrumb {
        padding: 10px 0;
    }

    /* 文章详情页移动端 */
    .article-title {
        font-size: 24px;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .article-content {
        padding: 20px;
    }

    .article-content p, .article-content li {
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-footer {
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    /* 分页移动端 */
    .pagination-item.pagination-prev,
    .pagination-item.pagination-next {
        font-size: 0;
        padding: 0;
        min-width: 40px;
    }

    .pagination-item.pagination-prev::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(-135deg);
        margin-right: 0;
    }

    .pagination-item.pagination-next::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .slide-image {
        height: 220px;
    }

    .slide-title {
        font-size: 16px;
    }

    .ai-section {
        padding: 20px;
    }

    .category-featured {
        padding: 18px;
    }

    .category-list-item {
        padding: 14px 18px;
    }

    .article-header,
    .article-content,
    .article-related {
        padding: 20px;
    }
}

/* ============================================
   暗色模式支持（可选）
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* 可以在这里添加暗色模式样式 */
}

/* ============================================
   打印样式
   ============================================ */

@media print {
    .header,
    .footer,
    .mobile-bottom-nav,
    .banner-ad,
    .sidebar-section {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .article-content {
        box-shadow: none;
        border: none;
    }
}
