/* /www/wwwroot/we.xiami.co/views/client/css/ad-card.css */

/* 广告卡片样式（保持不变） */
.ad-card-container {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    padding: 20px 0;
    margin-bottom: 20px;
    position: relative;
}

.ad-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.ad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #ff6b35, #ffa726);
}

.ad-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ffa726);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-title {
    color: #1a237e;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ad-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ad-description strong {
    color: #ff6b35;
}

.ad-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    background: #f5f7ff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
}

.feature-item i {
    color: #4caf50;
    margin-right: 5px;
}

.ad-interaction {
    padding-left: 30px;
    border-left: 2px dashed #e0e0e0;
}

@media (max-width: 991px) {
    .ad-interaction {
        padding-left: 0;
        border-left: none;
        border-top: 2px dashed #e0e0e0;
        padding-top: 25px;
        margin-top: 25px;
    }
}

.ad-select-group {
    margin-bottom: 20px;
}

.ad-select-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.ad-select-label i {
    color: #1a237e;
    margin-right: 10px;
    font-size: 18px;
}

.ad-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.ad-select:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.ad-actions {
    margin-top: 25px;
}

.ad-btn {
    background: linear-gradient(135deg, #1a237e, #283593);
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 15px;
}

.ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.3);
}

.ad-btn i {
    margin-right: 8px;
}

.ad-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ad-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.ad-links a:hover {
    color: #1a237e;
    text-decoration: underline;
}

.ad-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.ad-close:hover {
    background: #ff6b35;
    color: white;
}

.ad-timer {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ad-timer span {
    color: #1a237e;
    font-weight: 500;
}

.countdown {
    display: flex;
    gap: 15px;
}

.countdown-item {
    background: white;
    padding: 8px 15px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: bold;
}

.countdown-item span {
    color: #ff6b35;
    font-size: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ad-card {
        padding: 20px;
    }
    
    .ad-title {
        font-size: 20px;
    }
    
    .ad-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .countdown {
        gap: 8px;
    }
    
    .countdown-item {
        padding: 6px 10px;
    }
    
    .countdown-item span {
        font-size: 16px;
    }
}

/* 通知动画 */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* =========================================== */
/* 独立的社交媒体Logo区域（新增样式） */
/* =========================================== */

.social-media-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 25px 0;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-media-container {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.social-media-section .social-media-title {
    text-align: center;
    color: #1a237e;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-media-section .social-media-title i {
    color: #ff6b35;
    font-size: 22px;
}

.social-media-section .social-logos-container {
    position: relative;
    height: 65px;
    overflow: hidden;
    padding: 5px 0;
}

.social-media-section .social-logos-track {
    display: flex;
    gap: 30px;
    animation: slideLogos 30s linear infinite;
    position: absolute;
    left: 0;
    top: 0;
}

.social-media-section .social-logos-track:hover {
    animation-play-state: paused;
}

.social-media-section .social-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    transition: all 0.3s ease;
}

.social-media-section .social-logo-item:hover {
    transform: translateY(-5px);
}

.social-media-section .social-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 22px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 社交媒体Logo颜色（只保留有效的平台） */
.social-logo.facebook { background: linear-gradient(135deg, #1877f2, #0d5cb6); }
.social-logo.twitter { background: linear-gradient(135deg, #1da1f2, #0c85d0); }
.social-logo.instagram { background: linear-gradient(135deg, #e4405f, #c13584); }
.social-logo.youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.social-logo.linkedin { background: linear-gradient(135deg, #0077b5, #005582); }
.social-logo.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.social-logo.telegram { background: linear-gradient(135deg, #0088cc, #006699); }
.social-logo.skype { background: linear-gradient(135deg, #00AFF0, #0087D1); }

.social-media-section .social-name {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.social-media-section .social-logo-item:hover .social-logo {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.social-media-section .social-logo-item:hover .social-name {
    color: #1a237e;
    font-weight: 600;
}

/* 独立的动画效果 */
@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-70px * 8 - 30px * 7)); /* 8个logo + 7个间隙 */
    }
}

/* Logo弹跳动画 */
@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.social-media-section .social-logo-item:hover .social-logo {
    animation: logoBounce 0.5s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-media-section {
        padding: 20px 0;
        margin-top: 15px;
    }
    
    .social-media-container {
        padding: 15px;
    }
    
    .social-media-section .social-media-title {
        font-size: 16px;
    }
    
    .social-media-section .social-logos-container {
        height: 55px;
    }
    
    .social-media-section .social-logo {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .social-media-section .social-logo-item {
        min-width: 60px;
    }
    
    .social-media-section .social-logos-track {
        gap: 20px;
    }
    
    .social-media-section .social-name {
        font-size: 10px;
    }
}

/* 删除原有的 .ad-social-media 样式，因为现在使用独立的 .social-media-section */
.ad-social-media {
    display: none;
}
/* =========================================== */
/* 社交媒体Logo区域（使用Font Awesome） */
/* =========================================== */

.social-media-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 25px 0;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.social-media-container {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.social-media-section .social-media-title {
    text-align: center;
    color: #1a237e;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.social-media-section .social-media-title i {
    color: #ff6b35;
    font-size: 22px;
}

.social-media-section .social-logos-container {
    position: relative;
    height: 65px;
    overflow: hidden;
    padding: 5px 0;
}

.social-media-section .social-logos-track {
    display: flex;
    gap: 30px;
    animation: slideLogos 35s linear infinite;
    position: absolute;
    left: 0;
    top: 0;
}

.social-media-section .social-logos-track:hover {
    animation-play-state: paused;
}

.social-media-section .social-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    transition: all 0.3s ease;
}

.social-media-section .social-logo-item:hover {
    transform: translateY(-5px);
}

.social-media-section .social-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 22px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 社交媒体Logo颜色（Font Awesome版本） */
.social-logo.facebook { background: linear-gradient(135deg, #1877f2, #0d5cb6); }
.social-logo.twitter { background: linear-gradient(135deg, #1da1f2, #0c85d0); }
.social-logo.instagram { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-logo.youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }
.social-logo.linkedin { background: linear-gradient(135deg, #0077b5, #005582); }
.social-logo.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.social-logo.telegram { background: linear-gradient(135deg, #0088cc, #006699); }
.social-logo.skype { background: linear-gradient(135deg, #00AFF0, #0087D1); }
.social-logo.tiktok { background: linear-gradient(135deg, #000000, #25f4ee); }
.social-logo.discord { background: linear-gradient(135deg, #5865f2, #4752c4); }

.social-media-section .social-name {
    font-size: 12px;
    color: #555;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.social-media-section .social-logo-item:hover .social-logo {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.social-media-section .social-logo-item:hover .social-name {
    color: #1a237e;
    font-weight: 600;
}

/* 独立的动画效果 */
@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-70px * 10 - 30px * 9)); /* 10个logo + 9个间隙 */
    }
}

/* Logo弹跳动画 */
@keyframes logoBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

.social-media-section .social-logo-item:hover .social-logo {
    animation: logoBounce 0.5s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-media-section {
        padding: 20px 0;
        margin-top: 15px;
    }
    
    .social-media-container {
        padding: 15px;
    }
    
    .social-media-section .social-media-title {
        font-size: 16px;
    }
    
    .social-media-section .social-logos-container {
        height: 55px;
    }
    
    .social-media-section .social-logo {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .social-media-section .social-logo-item {
        min-width: 60px;
    }
    
    .social-media-section .social-logos-track {
        gap: 20px;
    }
    
    .social-media-section .social-name {
        font-size: 10px;
    }
}