/*网站链接专用样式文件，包含广告位、友情链接等组件样式。*/
.advertisement-section {
    background-color: white;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 10px;
}

.advertisement-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.advertisement-item {
    display: block;
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.advertisement-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.advertisement-item:hover .advertisement-img {
    transform: scale(1.03);
}

.banner-advertisement {
    background-color: white;
    border-radius: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    flex-shrink: 0;
}

.banner-advertisement .advertisement-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.banner-advertisement .advertisement-item {
    display: block;
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.banner-advertisement .advertisement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner-advertisement .advertisement-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.banner-advertisement .advertisement-item:hover .advertisement-img {
    transform: scale(1.03);
}

.banner-advertisement .advertisement-item:only-child {
    flex: 1 1 100%;
}

.friend-links-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px;
}

.friend-link-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.friend-link-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.friend-link-select:hover {
    border-color: #666;
}

.friend-link-select:focus {
    border-color: #007bff;
    outline: none;
}

@media (max-width: 992px) {
    .banner-advertisement .advertisement-container {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .banner-advertisement .advertisement-container {
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .banner-advertisement .advertisement-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .banner-advertisement .advertisement-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .advertisement-container {
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .advertisement-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .advertisement-item {
        flex: 1 1 100%;
    }
}