/* 基础样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fb;
    line-height: 1.6;
}

.site-container {
    position: relative;
}

/* 容器样式 */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(67, 97, 238, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(67, 97, 238, 1);
    transform: scale(1.1);
}

.mobile-menu-btn.active {
    background: rgba(220, 53, 69, 0.9);
    transform: rotate(90deg);
}

/* 头部样式 */
.site-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

.beta-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: normal;
}

.header-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 主要内容区 */
.main-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

.content-area {
    flex: 1;
    padding: 0 1.5rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 侧边栏样式 */
.sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
    height: fit-content;
    transition: all 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-categories-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-categories-btn:hover {
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    transform: rotate(180deg);
}

.toggle-sidebar-btn {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-sidebar-btn:hover {
    color: #666;
    transform: scale(1.1);
}

/* 侧边栏收起时，按钮居中显示 */
.sidebar.collapsed .toggle-sidebar-btn {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 侧边栏收起样式 */
.sidebar.collapsed {
    flex: 0 0 60px;
    padding: 1.5rem 0.5rem;
    overflow: visible;
}

.sidebar.collapsed .sidebar-header h2 {
    display: none;
}

.sidebar.collapsed .category-nav {
    overflow: visible;
    opacity: 1;
    visibility: visible;
}

/* 侧边栏收起时的分类样式 */
.sidebar.collapsed .category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar.collapsed .category-item {
    margin-bottom: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar.collapsed .category-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar.collapsed .category-item a:hover {
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    transform: translateX(5px);
}

/* 侧边栏收起时，分类名称的显示效果 */
.sidebar.collapsed .category-item a span {
    display: none;
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 侧边栏收起时，隐藏count-badge（向右箭头） */
.sidebar.collapsed .category-item .count-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 确保在所有状态下，count-badge都不会影响分类名称的显示 */
.category-item .count-badge {
    position: relative;
    z-index: 10;
}

.sidebar.collapsed .category-item a:hover .count-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 显示分类图标 */
.sidebar.collapsed .category-item a i {
    display: inline-block;
    width: auto;
    font-size: 1.2rem;
}

/* 鼠标悬停时显示分类名称 */
.sidebar.collapsed .category-item a:hover span {
    display: block;
}

/* 侧边栏收起时调整主容器布局 */
.sidebar.collapsed ~ .content-area {
    flex: 1;
}

/* 移除旧的collapsed样式，因为不再使用 */
.category-nav.collapsed {
    display: block;
    opacity: 1;
    visibility: visible;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-item a:hover {
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
}

.category-item.active a {
    background: rgba(67, 97, 238, 0.1);
    border-left: 4px solid #4361ee;
    color: #4361ee;
}

.category-item i {
    width: 20px;
    text-align: center;
}

.count-badge {
    margin-left: auto;
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.sidebar-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.sidebar-footer h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.tips-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.tips-list li::before {
    content: "•";
    color: #4361ee;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 浏览器卡片样式 */
.browser-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.browser-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.browser-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.browser-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.browser-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.browser-info p {
    margin: 0.5rem 0;
    color: #555;
    line-height: 1.5;
}

.browser-info strong {
    color: #333;
}

.browser-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.browser-tags .tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag.tag-free {
    background: #e8f5e8;
    color: #2e7d32;
}

.tag.tag-ai {
    background: #e3f2fd;
    color: #1565c0;
}

.tag.tag-chinese {
    background: #fff3e0;
    color: #e65100;
}

.tag.tag-foreign {
    background: #f3e5f5;
    color: #6a1b9a;
}

.tag.tag-paid {
    background: #ffebee;
    color: #c62828;
}

.tag.tag-ai-support {
    background: #e0f7fa;
    color: #006064;
}

.tag.tag-ai-plugin {
    background: #fff8e1;
    color: #ff6f00;
}

.browser-actions {
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

/* 指南部分样式 */
.guide-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.guide-section h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.guide-content h4 {
    margin: 1.5rem 0 0.5rem 0;
    color: #4361ee;
    font-size: 1.1rem;
}

.guide-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.guide-content li {
    margin: 0.5rem 0;
    color: #555;
}

.guide-content strong {
    color: #333;
}

/* 浏览器对比表格样式 */
.browser-comparison, .api-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.browser-comparison th,
.browser-comparison td,
.api-comparison th,
.api-comparison td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.browser-comparison th,
.api-comparison th {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    font-weight: 600;
}

.browser-comparison tr:nth-child(even),
.api-comparison tr:nth-child(even) {
    background: #f5f7fb;
}

.browser-comparison tr:hover,
.api-comparison tr:hover {
    background: #e3f2fd;
    transition: all 0.3s ease;
}

/* API卡片样式 */
.api-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.api-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.api-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.api-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.api-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.api-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.api-info p {
    margin: 0.5rem 0;
    color: #555;
    line-height: 1.5;
}

.api-info strong {
    color: #333;
}

.api-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.api-tags .tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag.tag-ai {
    background: #e3f2fd;
    color: #1565c0;
}

.tag.tag-foreign {
    background: #f3e5f5;
    color: #6a1b9a;
}

.tag.tag-chinese {
    background: #fff3e0;
    color: #e65100;
}

.tag.tag-paid {
    background: #ffebee;
    color: #c62828;
}

.tag.tag-free {
    background: #e8f5e8;
    color: #2e7d32;
}

.tag.tag-custom {
    background: #e0f7fa;
    color: #006064;
}

.tag.tag-technical {
    background: #fff8e1;
    color: #ff6f00;
}

.tag.tag-compliant {
    background: #f1f8e9;
    color: #558b2f;
}

.api-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* FAQ样式 */
.faq {
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

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

.faq-item h5 {
    margin: 0 0 0.5rem 0;
    color: #4361ee;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* SEO内容样式 */
.seo-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.seo-section h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.seo-content h4 {
    margin: 1.5rem 0 0.5rem 0;
    color: #4361ee;
    font-size: 1.2rem;
}

.seo-content p {
    margin: 0.5rem 0;
    color: #555;
    line-height: 1.6;
}

.seo-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.seo-content li {
    margin: 0.5rem 0;
    color: #555;
}

.seo-content strong {
    color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .browser-cards,
    .api-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .browser-card,
    .api-card {
        padding: 1.25rem;
    }
    
    .guide-section,
    .seo-section {
        padding: 1.5rem;
    }
    
    /* 表格响应式设计 */
    .browser-comparison,
    .api-comparison {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .browser-comparison th,
    .browser-comparison td,
    .api-comparison th,
    .api-comparison td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* 按钮响应式设计 */
    .api-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* 打印样式 */
@media print {
    .browser-cards,
    .api-cards {
        grid-template-columns: 1fr;
    }
    
    .browser-card,
    .api-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .site-header,
    .sidebar,
    .site-footer,
    .mobile-menu-btn {
        display: none;
    }
    
    .main-container {
        flex-direction: column;
    }
    
    .content-area {
        padding: 0;
        box-shadow: none;
    }
}

/* 底部样式 */
.site-footer {
    background: #212529;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (min-width: 1200px) {
    .sidebar {
        flex: 0 0 300px;
    }
}

@media (max-width: 1024px) {
    .header-stats {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .sidebar {
        flex: 0 0 250px;
    }
}

/* 分类块样式 */
.categories-section {
    margin: 2rem 0;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.categories-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
    gap: 1.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 1320px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.category-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 120px;
    height: auto;
    box-sizing: border-box;
}

.category-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-block:hover::before {
    opacity: 1;
}

.category-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-block-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.category-block h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .category-block {
        padding: 1.5rem 0.8rem;
    }
    
    .category-block-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .category-block h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-block {
        padding: 1.2rem 0.5rem;
    }
    
    .category-block-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .category-block h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .site-header {
        padding: 1rem;
    }
    
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo {
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .header-stats {
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .main-container {
        flex-direction: column;
        padding: 1rem 0;
        gap: 1rem;
    }
    
    .sidebar {
        flex: none;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 280px;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        padding-top: 60px;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .content-area {
        padding: 1.5rem;
        margin-top: 20px;
    }
    
    .content-area h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .content-area h1 {
        font-size: 1.3rem;
    }
}

/* 回到顶部按钮样式 */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
}

.back-to-top-btn:active {
    transform: scale(0.9);
}

/* 首页样式 */

/* 介绍部分 */
.intro-section {
    background: linear-gradient(135deg, #f5f7fb, #e3f2fd);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.intro-section h2 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 2rem;
    font-weight: bold;
}

.intro-section p {
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 网站统计 */
.site-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2rem;
    color: #4361ee;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d3748;
}

.stat-label {
    color: #718096;
    font-size: 0.9rem;
}

/* 特点部分 */
.features-section {
    margin-bottom: 2rem;
}

.features-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: bold;
}

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

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 1rem;
    border: 1px solid #e2e8f0;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.feature-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 分类部分 */
.categories-section {
    margin-bottom: 2rem;
}

.categories-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: bold;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card a {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
    transition: all 0.3s ease;
}

.category-card a:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.category-info {
    flex: 1;
}

.category-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
}

.category-info p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

.category-arrow i {
    color: #a0aec0;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.category-card a:hover .category-arrow i {
    transform: translateX(5px);
    color: #4361ee;
}

/* 热门资源推荐部分 */
.latest-resources-section {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.latest-resources-section h3 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: bold;
}

.resource-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    background: linear-gradient(135deg, #f5f7fb, #e3f2fd);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.highlight-card h4 {
    margin: 0 0 0.8rem 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
}

.highlight-card p {
    margin: 0 0 1.2rem 0;
    color: #4a5568;
    line-height: 1.5;
    font-size: 0.95rem;
}

.highlight-card .btn {
    margin-top: 0.5rem;
}

/* AI热点新闻列表样式 */
.hot-news-list {
    background: linear-gradient(135deg, #f5f7fb, #e3f2fd);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.hot-news-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-news-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(149, 165, 166, 0.2);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hot-news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-news-list li:hover {
    transform: translateX(10px);
}

.hot-news-list a {
    text-decoration: none;
    color: #2d3748;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.5;
    flex: 1;
    margin-right: 1rem;
}

.hot-news-list a:hover {
    color: #4361ee;
    text-decoration: underline;
}

/* 新闻列表中的发布时间样式 */
.news-item-date {
    color: #718096;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    background: rgba(149, 165, 166, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

/* 新闻详情页中的发布时间样式 */
.news-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(149, 165, 166, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border-left: 3px solid #4361ee;
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: linear-gradient(135deg, #f5f7fb, #e3f2fd);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-link:hover {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.pagination-link.active {
    color: white;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-color: #4361ee;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.pagination-link.active:hover {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.4);
}

.pagination-ellipsis {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 0.5rem;
    display: inline-block;
}

/* 分页的响应式设计 */
@media (max-width: 768px) {
    .pagination {
        gap: 0.3rem;
        padding: 0.8rem;
    }
    
    .pagination-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .pagination-link i {
        font-size: 0.8rem;
    }
    
    /* 在移动设备上优化显示，只显示当前页、首页、末页、上一页和下一页 */
    /* 注意：:contains() 是jQuery伪类，不是标准CSS，这里使用通用选择器简化显示 */
    .pagination {
        justify-content: space-between;
    }
}

/* 针对SEO的优化样式 */
.pagination-link {
    /* 确保链接文本对搜索引擎可见 */
    position: relative;
    z-index: 1;
}

/* 确保分页区域的内容对搜索引擎友好 */
.pagination {
    /* 避免使用可能被搜索引擎忽略的复杂样式 */
    clear: both;
    overflow: hidden;
}

/* FAQ部分 */
.faq-section {
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.faq-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: bold;
}

.faq {
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.faq-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item:hover {
    background: rgba(67, 97, 238, 0.05);
    transform: translateX(5px);
}

.faq-item h5 {
    margin: 0 0 0.8rem 0;
    color: #4361ee;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-section {
        padding: 1.5rem;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
    
    .site-stats {
        gap: 1.5rem;
    }
    
    .resource-highlights {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .highlight-card {
        padding: 1.2rem;
    }
    
    .latest-resources-section,
    .faq-section {
        padding: 1.5rem;
    }
    
    .latest-resources-section h3,
    .faq-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .highlight-card .btn {
        width: 100%;
        text-align: center;
    }
}

/* 平滑过渡效果 */
* {
    transition: all 0.3s ease;
}