/* Category Page Themes - Custom Styles for Each Category */

/* Base Category Page Styles */
body.category-page {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: "Microsoft YaHei", SimHei, sans-serif;
    min-height: 100vh;
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ====================
   游戏攻略 - Blue Theme
   ==================== */
.category-youxigonglue .category-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8cc2 100%);
    padding: 60px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(30, 60, 114, 0.5);
}

.category-youxigonglue .category-header::before {
    content: '🎮';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.category-youxigonglue .category-title {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.category-youxigonglue .category-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.category-youxigonglue .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.category-youxigonglue .article-card {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(46, 134, 222, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-youxigonglue .article-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #4a90e2;
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.4);
}

/* ====================
   更新公告 - Red Theme
   ==================== */
.category-gengxingonggao .category-header {
    background: linear-gradient(135deg, #8b0000 0%, #c0392b 50%, #e74c3c 100%);
    padding: 60px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(192, 57, 43, 0.5);
}

.category-gengxingonggao .category-header::before {
    content: '📢';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.category-gengxingonggao .category-title {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.category-gengxingonggao .category-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.category-gengxingonggao .article-timeline {
    position: relative;
    padding-left: 50px;
}

.category-gengxingonggao .article-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

.category-gengxingonggao .article-card {
    background: linear-gradient(135deg, #2c1a1a 0%, #3a2020 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #e74c3c;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-gengxingonggao .article-card::before {
    content: '';
    position: absolute;
    left: -52px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    border: 3px solid #0a0a0a;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.category-gengxingonggao .article-card:hover {
    transform: translateX(10px);
    border-left-width: 6px;
    box-shadow: 0 8px 30px rgba(231, 76, 60, 0.4);
}

/* ====================
   玩家分享 - Green Theme
   ==================== */
.category-wanjiafenxiang .category-header {
    background: linear-gradient(135deg, #155724 0%, #27ae60 50%, #2ecc71 100%);
    padding: 60px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(39, 174, 96, 0.5);
}

.category-wanjiafenxiang .category-header::before {
    content: '👥';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.category-wanjiafenxiang .category-title {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.category-wanjiafenxiang .category-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.category-wanjiafenxiang .article-masonry {
    column-count: 3;
    column-gap: 30px;
}

.category-wanjiafenxiang .article-card {
    background: linear-gradient(135deg, #1a2e1a 0%, #203820 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    break-inside: avoid;
    border: 2px solid rgba(46, 204, 113, 0.3);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-wanjiafenxiang .article-card:hover {
    transform: scale(1.05);
    border-color: #2ecc71;
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.4);
}

.category-wanjiafenxiang .author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.category-wanjiafenxiang .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* ====================
   新手指南 - Gold Theme
   ==================== */
.category-xinshouzhian .category-header {
    background: linear-gradient(135deg, #b8860b 0%, #e67e22 50%, #f39c12 100%);
    padding: 60px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(230, 126, 34, 0.5);
}

.category-xinshouzhian .category-header::before {
    content: '📚';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
}

.category-xinshouzhian .category-title {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.category-xinshouzhian .category-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.category-xinshouzhian .article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-xinshouzhian .article-card {
    background: linear-gradient(135deg, #2e2416 0%, #3a2c1a 100%);
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 2px solid rgba(243, 156, 18, 0.3);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.category-xinshouzhian .article-card:hover {
    transform: translateX(15px);
    border-color: #f39c12;
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.4);
}

.category-xinshouzhian .article-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.category-xinshouzhian .beginner-badge {
    display: inline-block;
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 10px;
}

/* ====================
   Common Article Card Elements
   ==================== */
.article-card .article-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s;
}

.article-card .article-title a {
    color: inherit;
    text-decoration: none;
}

.article-card:hover .article-title {
    color: #ffd700;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-excerpt {
    color: #ccc;
    line-height: 1.6;
    font-size: 14px;
}

/* NEW Badge */
.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .category-wanjiafenxiang .article-masonry {
        column-count: 2;
    }

    .category-youxigonglue .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-wanjiafenxiang .article-masonry {
        column-count: 1;
    }

    .category-youxigonglue .article-grid {
        grid-template-columns: 1fr;
    }

    .category-xinshouzhian .article-card {
        flex-direction: column;
        text-align: center;
    }
}