/* 更明确的重置样式 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 确保所有元素的默认样式一致 */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.7;
    background-color: #fff;
    overflow-x: hidden;
}

/* 其他原有样式保持不变... */
:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3d72;
    --secondary-color: #6c757d;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: #333;
    line-height: 1.7;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: var(--dark-color) !important;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(44, 90, 160, 0.1);
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(44, 90, 160, 0.1);
    color: var(--primary-color);
}

/* 顶部横幅 */
.top-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 0;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.banner-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.banner-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 主要内容区域 */
.main-content {
    padding: 0.5rem 0;
}

/* 侧边栏样式 */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* 分类导航 */
.category-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav li {
    margin-bottom: 0.5rem;
}

.category-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--light-color);
    border-radius: 6px;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.category-nav a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.category-nav i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.category-count {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.category-nav a:hover .category-count {
    background: rgba(255, 255, 255, 0.2);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--light-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 内容卡片 */
.content-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.card-header {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header a {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-body {
    padding: 0.5rem;
}

/* 软件网格 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.software-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.software-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.software-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.software-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-free {
    background: var(--success-color);
    color: white;
}

.badge-premium {
    background: var(--accent-color);
    color: white;
}

.badge-trial {
    background: var(--warning-color);
    color: var(--dark-color);
}

.software-content {
    padding: 1.25rem;
}

.software-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.software-description {
    color: var(--secondary-color);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.software-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.software-rating {
    color: #ffc107;
}

/* 文章列表 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    display: flex;
    padding: 1rem 0 0.1rem 0;
    border-bottom: 1px solid var(--light-color);
}

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

.article-image {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    margin: 0.5rem;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.article-title a {
    color: var(--dark-color);
}

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

.article-meta {
    font-size: 0.8rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.article-meta span {
    margin-right: 1rem;
}

.article-meta i {
    margin-right: 0.3rem;
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* 特色板块 */
.feature-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    padding: 0.1rem;
    margin: 0.5rem 0;
}

.feature-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 0.2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-stats {
        margin-top: 1.5rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-image {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-text h1 {
        font-size: 1.8rem;
    }
}

/* 工具类 */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}