/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    margin: 0;
    border-radius: 0 !important;
    position: relative;
    z-index: 1;
}

/* 主内容区域 */
main.container {
    margin-top: -15px;
    padding-top: 0;
}

/* 移除所有section的圆角 */
section {
    border-radius: 0 !important;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
}

/* 第一个section紧贴hero区域 */
section:first-of-type {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* 分类卡片 */
.category-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border-left: 4px solid;
    position: relative;
}

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

/* 分类头部 */
.category-header {
    background: white;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 分类头部内容 */
.category-header-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.category-header-right {
    flex-shrink: 0;
    margin-left: 20px;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-title {
    margin-bottom: 4px;
}

/* 特色推荐卡片 */
.featured-card {
    height: 100%;
    border-radius: 10px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.download-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.card-img-container {
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.os-logo {
    max-height: 100px;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.card:hover .os-logo {
    transform: scale(1.08);
}

/* 统计卡片 */
.stats-card {
    background: rgba(255,255,255,0.15);
    border-radius: 12px !important;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.stats-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.stats-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

/* 按钮样式 */
.btn-hero {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: #667eea; /* 改为深色背景 */
    color: white; /* 改为白色文字 */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 快速导航卡片 */
.quick-nav-card {
    height: 100%;
    border-radius: 12px !important;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark-color);
    text-decoration: none !important;
    border: 1px solid #e9ecef;
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.quick-nav-card i {
    transition: transform 0.3s ease, color 0.3s ease !important;
    transform: translateZ(0);
}

.quick-nav-card:hover {
    background-color: var(--card-hover-bg, #3498db);
    border-color: var(--card-hover-bg, #3498db);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.quick-nav-card:hover .quick-nav-text,
.quick-nav-card:hover h5,
.quick-nav-card:hover p {
    color: white !important;
}

.quick-nav-card:hover i {
    transform: scale(1.1) !important;
    color: inherit !important;
}

.quick-nav-content {
    position: relative;
    z-index: 2;
}

/* section标题 */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: var(--dark-color);
    border-bottom: 2px solid #f0f0f0;
}

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

/* 热门和最新下载 */
.popular-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.popular-latest-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    background: white;
}

.popular-latest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.popular-latest-card .d-flex {
    align-items: center;
}

.popular-latest-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 5px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .stats-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .quick-nav-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-header-right {
        margin-left: 0;
        width: 100%;
    }
    
    .category-header-right .btn {
        width: 100%;
        text-align: center;
    }
    
    .popular-latest-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .featured-card {
        margin-bottom: 15px;
    }
    
    .card-img-container {
        height: 140px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* 伪静态提示 - 修改部分 */
.rewrite-hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9); /* 改为白色带透明度 */
    margin-top: 10px;
}

.rewrite-hint code {
    background: rgba(255,255,255,0.15); /* 改为半透明白色背景 */
    color: rgba(255,255,255,0.9); /* 改为白色文字 */
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.3); /* 添加边框增强可视性 */
}

/* 图标颜色也要调整 */
.rewrite-hint .bi-link-45deg {
    color: rgba(255,255,255,0.9);
}