/* 首页专用样式 */

/* 软件介绍区域 */
.software-intro-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

.intro-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.intro-header h1,
.intro-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.intro-header p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 功能特点网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.1), rgba(0, 81, 119, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* 软件展示区域 */
.software-showcase {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-xl);
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.showcase-text {
    flex: 1;
}

.showcase-text h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.showcase-text p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.showcase-list li i {
    color: var(--success-color);
    font-size: 16px;
}

.showcase-image {
    flex: 1;
    text-align: center;
}

.showcase-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 统计数据区域 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    color: var(--white);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

/* 轮播图区域 */
.hero-section {
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.hero-slide {
    display: none;
    padding: 40px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-slide.active {
    display: flex;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #23282d;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.hero-image {
    flex: 0 0 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 推荐文章区域 - 现代化网格布局 */
.recommend-section {
    margin-bottom: var(--spacing-xl);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

@media (min-width: 1400px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background: var(--primary-color);
    color: var(--white);
    padding: 4px var(--spacing-sm);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.article-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: 4px var(--spacing-sm);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.article-badge.latest {
    background: var(--success-color);
    color: var(--white);
}

.article-badge.recommended {
    background: var(--warning-color);
    color: var(--white);
}

.article-source {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.article-source a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-source a:hover {
    text-decoration: underline;
}

.article-content {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-summary {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 热门文章区域 - 现代化布局 */
.popular-section {
    margin-bottom: var(--spacing-xl);
}

.popular-card {
    position: relative;
    border-left: 3px solid var(--warning-color);
}

.popular-card:hover {
    border-left-color: var(--danger-color);
}

.article-badge.popular {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    top: auto;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
}

.popular-rank {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--warning-color), var(--danger-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(255, 185, 0, 0.4);
    z-index: 3;
    border: 2px solid var(--white);
}

.popular-card:nth-child(1) .popular-rank {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.5);
}

.popular-card:nth-child(2) .popular-rank {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    box-shadow: 0 2px 12px rgba(192, 192, 192, 0.5);
}

.popular-card:nth-child(3) .popular-rank {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    box-shadow: 0 2px 12px rgba(205, 127, 50, 0.5);
}

.popular-views {
    color: var(--danger-color);
    font-weight: 600;
}

.popular-views i {
    color: var(--danger-color);
}

.article-likes {
    color: var(--text-muted);
}

.article-likes i {
    color: #ff6b6b;
}

/* 侧边栏样式 - 现代化布局 */
.latest-articles {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.latest-article {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.latest-article:hover {
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: var(--shadow);
}

.latest-article:last-child {
    margin-bottom: 0;
}

.latest-article-image {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.latest-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-article-content {
    flex: 1;
    min-width: 0;
}

.latest-article-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.latest-article-content h4 a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.latest-article-content h4 a:hover {
    color: var(--primary-color);
}

.latest-article-meta {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
}

.latest-article-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 4px var(--spacing-sm);
    border-radius: 15px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: inline-block;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.friend-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.friend-links a {
    background: var(--bg-light);
    color: var(--text-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius);
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: block;
    text-align: center;
}

.friend-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-header h1,
    .intro-header h2 {
        font-size: 28px;
    }
    
    .intro-header p {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .showcase-content {
        flex-direction: column;
    }
    
    .showcase-image {
        order: -1;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .hero-slide {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .hero-content {
        max-width: none;
        margin-bottom: 20px;
    }
    
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-image {
        flex: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        padding: 20px 15px;
        min-height: 250px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}