/**
 * TrustyGEO Ads - 前台样式
 */

/* 轮播容器 */
.tgads-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.tgads-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

/* 单张幻灯片 */
.tgads-slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.tgads-slide-image-wrapper {
    width: 100%;
    cursor: default;
}

.tgads-slide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.tgads-slide-link {
    display: block;
}

/* 导航容器（指示器 + 标题） */
.tgads-slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* 圆点导航 */
.tgads-slider-dots {
    display: flex;
    gap: 16px;
}

.tgads-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--tgads-indicator-color, rgba(255, 255, 255, 0.7));
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tgads-slider-dot:hover {
    border-color: var(--tgads-indicator-color, rgba(255, 255, 255, 1));
}

.tgads-slider-dot.active {
    width: 20px;
    height: 8px;
    border-radius: 4px;
    background: var(--tgads-indicator-color, rgba(255, 255, 255, 0.95));
    border-color: transparent;
}

/* 标题显示 */
.tgads-slider-titles {
    color: var(--tgads-indicator-color, rgba(255, 255, 255, 0.95));
    text-align: center;
    position: relative;
    min-height: 36px;
    transform: translateY(-10px);
}

.tgads-slider-title {
    display: none;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tgads-title-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.tgads-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tgads-slider-title.active {
    display: block;
    animation: tgadsTitleFadeIn 0.4s ease;
}

/* 标题箭头 */
.tgads-title-arrow {
    margin-left: 4px;
}

@keyframes tgadsTitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 箭头导航 */
.tgads-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    color: var(--tgads-indicator-color, rgba(255, 255, 255, 0.9));
    opacity: 1;
}

.tgads-slider-arrow:hover {
    background: transparent;
    box-shadow: none;
    color: var(--tgads-indicator-color, rgba(255, 255, 255, 1));
    transform: translateY(-50%);
}

.tgads-slider-arrow svg {
    width: 48px;
    height: 48px;
    stroke-width: 1;
}

.tgads-slider-prev {
    left: 20px;
}

.tgads-slider-next {
    right: 20px;
}

/* 单张 Banner */
.tgads-single-banner {
    width: 100%;
    overflow: hidden;
}

.tgads-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.tgads-banner-link {
    display: block;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tgads-slider-arrow {
        width: 48px;
        height: 48px;
    }
    
    .tgads-slider-arrow svg {
        width: 36px;
        height: 36px;
    }
    
    .tgads-slider-prev {
        left: 15px;
    }
    
    .tgads-slider-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .tgads-slider-arrow {
        width: 44px;
        height: 44px;
    }
    
    .tgads-slider-arrow svg {
        width: 32px;
        height: 32px;
    }
    
    .tgads-slider-prev {
        left: 10px;
    }
    
    .tgads-slider-next {
        right: 10px;
    }
    
    .tgads-slider-nav {
        bottom: 12px;
        gap: 8px;
    }

    .tgads-slider-dots {
        gap: 16px;
    }
    
    .tgads-slider-dot {
        width: 6px;
        height: 6px;
        border-width: 1px;
    }
    
    .tgads-slider-dot.active {
        width: 16px;
        height: 6px;
        border-radius: 3px;
    }
    
    .tgads-slider-title {
        font-size: 20px;
    }
    
    .tgads-slider-titles {
        transform: translateY(-10px);
    }
}

/* 淡入淡出效果（备用） */
.tgads-slider--fade .tgads-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tgads-slider--fade .tgads-slide.active {
    position: relative;
    opacity: 1;
}

/* 滑动效果 */
.tgads-slider--slide .tgads-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.tgads-slider--slide .tgads-slide {
    flex-shrink: 0;
    display: block;
}

/* Hero 区域特殊样式 */
.tgads-slider.hero-slider {
    height: 50vw;
}

.tgads-slider.hero-slider .tgads-slide {
    height: 100%;
}

.tgads-slider.hero-slider .tgads-slide-image-wrapper {
    width: 100%;
    height: 100%;
}

.tgads-slider.hero-slider .tgads-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .tgads-slider.hero-slider {
        height: 200vw;
        max-height: 752px;
    }
}
