/* 分类页面特定样式 */
.type-header {
    margin-bottom: 30px;
}

.type-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.type-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 3px;
}

.type-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 800px;
}

.type-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.type-item {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.type-item:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.type-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.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;
}

.app-recommend-section{
    margin-bottom: 10px;
}

/* 广告样式 */
.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;
    margin-top: 10px;
}

.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;
}

@media (max-width: 768px) {
    .ad-item {
        width: 100%;
        flex: 0 1 auto !important;
    }
    
    .popup-ad {
        width: 80px;
        height: 100px;
        bottom: 5px;
        left: 5px;
    }
}