
/* 主内容区域布局 */
.main-container {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    padding: 6px 12px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
}

/* 广告样式 */
.ad-container {
    margin: 0;
}

.ad-section {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.ad-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ad-section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    position: relative;
    padding-left: 10px;
}

.ad-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 2px;
}

.ad-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.ad-item {
    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.ad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ad-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ad-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.ad-content {
    padding: 5px;
    text-align: center;
}

.ad-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
}

.ad-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

/* 漂浮广告样式 */
.popup-ad {
    position: fixed;
    bottom: 5px;
    left: 5px;
    width: 120px;
    height: 150px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    z-index: 9999;
    overflow: hidden;
    display: none;
}

.popup-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.popup-ad-content {
    width: 100%;
    height: 100%;
}

.popup-ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* APP推荐样式 */
.app-recommend-section {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    background-color: transparent;
}

.app-recommend-section .section-header {
    margin-bottom: 15px;
}

.app-recommend-section .section-title {
    color: white;
    font-size: 20px;
}

.app-recommend-section .section-title::before {
    background: white;
}

.app-promo-content {
    padding: 10px 0;
}

.app-promo-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.app-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.app-item {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 15px 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.app-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon-default {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.app-info {
    text-align: center;
}

.app-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-desc {
    font-size: 11px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.app-meta {
    font-size: 10px;
    color: var(--text-light);
}

.app-rating {
    color: #f5a623;
}

.app-category {
    background: var(--bg-color);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.app-platform {
    margin-left: 4px;
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-toggle {
        align-self: flex-start;
    }
    
    .ad-item {
        width: 100%;
        flex: 0 1 auto !important;
    }
    
    .popup-ad {
        width: 80px;
        height: 100px;
        bottom: 5px;
        left: 5px;
    }
}
        /* 主内容区域布局 */
        .main-container {
            max-width: 100%;
            margin: 40px auto;
            padding: 0 20px;
            display: flex;
            gap: 30px;
        }
        
        .main-content {
            flex: 1;
        }
        
        .section {
            margin-bottom: 10px
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 24px;
            font-weight: bold;
            color: var(--text-color);
            position: relative;
            padding-left: 15px;
        }
        
        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 20px;
            background: var(--primary-color);
            border-radius: 2px;
        }
        
        .view-toggle {
            display: flex;
            gap: 5px;
            background: var(--card-bg);
            border-radius: 8px;
            padding: 4px;
        }
        
        .view-btn {
            padding: 6px 12px;
            border: none;
            background: none;
            border-radius: 6px;
            cursor: pointer;
            color: var(--text-light);
            transition: all 0.3s;
        }
        
        .view-btn.active {
            background: var(--primary-color);
            color: white;
        }
        
        /* 广告样式 */
        .ad-container {
            margin: 0;
        }
        
        .ad-section {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 10px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-color);
            margin-bottom: 20px;
        }
        
        .ad-section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .ad-section-title {
            font-size: 18px;
            font-weight: bold;
            color: var(--text-color);
            position: relative;
            padding-left: 10px;
        }
        
        .ad-section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 16px;
            background: var(--primary-color);
            border-radius: 2px;
        }
        
        .ad-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 10px;
        }
        
        .ad-item {
            flex: 0 0 calc(50% - 10px);
            box-sizing: border-box;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }
        
        .ad-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .ad-link {
            display: block;
            text-decoration: none;
            color: inherit;
        }
        
        .ad-image {
            width: 100%;
            height: 80px;
            object-fit: cover;
            border-bottom: 1px solid var(--border-color);
        }
        
        .ad-content {
            padding: 5px;
            text-align: center;
        }
        
        .ad-title {
            font-size: 16px;
            font-weight: bold;
            color: var(--text-color);
            margin-bottom: 8px;
        }
        
        .ad-description {
            font-size: 14px;
            color: var(--text-light);
            line-height: 1.4;
        }
        
        /* 漂浮广告样式 */
        .popup-ad {
            position: fixed;
            bottom: 5px;
            left: 5px;
            width: 120px;
            height: 150px;
            background: var(--card-bg);
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            border: 1px solid var(--border-color);
            z-index: 9999;
            overflow: hidden;
            display: none;
        }
        
        .popup-ad-close {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 24px;
            height: 24px;
            background: rgba(0,0,0,0.5);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
        }
        
        .popup-ad-content {
            width: 100%;
            height: 100%;
        }
        
        .popup-ad-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* APP推荐样式 */
        .app-recommend-section {
            margin-bottom: 10px;
        }
        
        .app-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            justify-content: flex-start;
        }
        
        .app-item {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 15px 10px;
            text-align: center;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            cursor: pointer;
            flex-shrink: 0;
        }
        
        .app-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
            border-color: var(--primary-color);
        }
        
        .app-link {
            text-decoration: none;
            color: inherit;
            display: block;
        }
        
        .app-icon {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .app-icon-default {
            background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 28px;
        }
        
        .app-info {
            text-align: center;
        }
        
        .app-name {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-color);
            margin-bottom: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .app-desc {
            font-size: 11px;
            color: var(--text-light);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-bottom: 4px;
        }
        
        .app-meta {
            font-size: 10px;
            color: var(--text-light);
        }
        
        .app-rating {
            color: #f5a623;
        }
        
        .app-category {
            background: var(--bg-color);
            padding: 1px 6px;
            border-radius: 4px;
            margin-left: 4px;
        }
        
        .app-platform {
            margin-left: 4px;
        }
        
        @media (max-width: 768px) {
            .main-container {
                padding: 0 15px;
            }
            
            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .view-toggle {
                align-self: flex-start;
            }
            
            .ad-item {
                width: 100%;
                flex: 0 1 auto !important;
            }
            
            .popup-ad {
                width: 80px;
                height: 100px;
                bottom: 5px;
                left: 5px;
            }
        }