/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
    color: white;
}

.btn-primary {
    background-color: #007bff;
}

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

.btn-secondary:hover {
    background-color: #545b62;
}

/* 导航栏样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin: 0 15px;
}

.nav ul li a {
    color: #333;
    font-weight: 500;
}

.nav ul li a:hover {
    color: #007bff;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 250px;
}

.search-btn {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 轮播图样式 */
.banner {
    position: relative;
    margin-bottom: 30px;
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* 内容区块样式 */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.more {
    color: #007bff;
    font-weight: 500;
}

/* 应用网格样式 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.app-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
}

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

.app-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.app-icon img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
}

.app-info h3 {
    margin-bottom: 5px;
}

.app-info h3 a {
    color: #333;
}

.app-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.app-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.rating {
    color: #ffc107;
    margin-right: 10px;
}

.size {
    margin-right: 10px;
}

.downloads {
    color: #666;
}

.download-btn {
    padding: 6px 12px;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.download-btn:hover {
    background-color: #218838;
    color: white;
}

/* 分类网格样式 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.category-icon {
    margin-bottom: 10px;
}

.category-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.category-card h3 {
    margin-bottom: 5px;
    color: #333;
}

.category-card p {
    color: #666;
    font-size: 14px;
}

/* 应用列表样式 */
.app-list .app-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.app-rank {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    width: 40px;
    text-align: center;
}

.app-list .app-icon {
    margin-right: 15px;
}

.app-list .app-icon img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.app-details {
    flex: 1;
}

.app-details h3 {
    margin-bottom: 5px;
}

.app-details h3 a {
    color: #333;
}

.app-details p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.app-list .app-meta {
    margin-bottom: 0;
}

/* 页面标题样式 */
.page-header {
    background: white;
    padding: 30px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.breadcrumb {
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #007bff;
}

/* 筛选栏样式 */
.filter-bar {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.filter-group label {
    margin-right: 10px;
    font-weight: 500;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-item {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
}

.page-item.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-item:hover:not(.active) {
    background-color: #f8f9fa;
}

/* 应用详情样式 */
.app-detail-header {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-icon-large {
    margin-right: 30px;
    flex-shrink: 0;
}

.app-icon-large img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
}

.app-info-large {
    flex: 1;
}

.app-info-large h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.app-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 16px;
}

.app-meta-large {
    margin-bottom: 20px;
}

.meta-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.meta-item .label {
    color: #666;
    margin-right: 5px;
}

.meta-item .value {
    font-weight: 500;
}

.download-actions {
    display: flex;
    gap: 15px;
}

.download-actions .btn {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
}

/* 应用截图样式 */
.app-screenshots {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-screenshots h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.screenshot-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 10px;
}

.screenshot-item {
    flex-shrink: 0;
}

.screenshot-item img {
    width: 200px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 应用详细介绍样式 */
.app-description-full {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-description-full h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.app-description-full p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 更新日志样式 */
.app-updates {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-updates h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.update-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.update-item h4 {
    margin-bottom: 10px;
    color: #333;
}

.update-item ul {
    padding-left: 20px;
}

.update-item li {
    margin-bottom: 5px;
    color: #666;
}

/* 相关应用样式 */
.related-apps {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-apps h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

/* 底部样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav ul {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 5px 10px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content {
        bottom: 20px;
        left: 20px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .app-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .app-icon-large {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .download-actions {
        justify-content: center;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-group {
        margin-bottom: 10px;
    }
}