/* ========== 首页轮播屏升级版样式 ========== */
/* 配色：深翠绿(#0B5E42) → 暖金(#D4A843) */
/* 动画：纯CSS transform + opacity，60帧流畅 */

/* 轮播容器 */
.hd-banner {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #0B5E42 0%, #1A7A5A 50%, #D4A843 100%);
    box-shadow: 0 4px 20px rgba(11, 94, 66, 0.3), 0 0 40px rgba(212, 168, 67, 0.15);
}

/* 轮播轨道 */
.hd-banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 单帧样式 */
.hd-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hd-slide.hd-slide--active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* 背景渐变层 - 每帧不同色调 */
.hd-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hd-slide-bg--1 { background: linear-gradient(135deg, #0B5E42 0%, #1A7A5A 60%, #2D9B6E 100%); }
.hd-slide-bg--2 { background: linear-gradient(135deg, #C62828 0%, #D32F2F 50%, #E53935 100%); }
.hd-slide-bg--3 { background: linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #42A5F5 100%); }
.hd-slide-bg--4 { background: linear-gradient(135deg, #F57C00 0%, #FF9800 50%, #FFB74D 100%); }
.hd-slide-bg--5 { background: linear-gradient(135deg, #7B1FA2 0%, #9C27B0 50%, #BA68C8 100%); }
.hd-slide-bg--6 { background: linear-gradient(135deg, #00838F 0%, #0097A7 50%, #26C6DA 100%); }
.hd-slide-bg--recruit { 
    background: linear-gradient(135deg, #D4A843 0%, #E6C35C 30%, #F5D76E 60%, #D4A843 100%);
    animation: recruitGlow 3s ease-in-out infinite;
}

@keyframes recruitGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

/* 内容层 */
.hd-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 90%;
}

/* 标签 */
.hd-slide-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* 标题 */
.hd-slide-title {
    font-size: clamp(16px, 4.5vw, 22px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* 描述 */
.hd-slide-desc {
    font-size: clamp(12px, 3vw, 14px);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ========== 招商帧特殊样式 ========== */
.hd-slide-content--recruit {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hd-recruit-badge {
    display: inline-block;
    background: linear-gradient(135deg, #C62828, #E53935);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hd-recruit-title {
    font-size: clamp(20px, 5.5vw, 28px);
    font-weight: 900;
    color: #5D4037;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hd-recruit-subtitle {
    font-size: clamp(13px, 3.5vw, 16px);
    color: #6D4C41;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.hd-recruit-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hd-recruit-feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5D4037;
    font-weight: 500;
}

.hd-recruit-feature i {
    color: #2E7D32;
    font-weight: bold;
}

.hd-recruit-btn {
    display: inline-block;
    background: linear-gradient(135deg, #C62828, #E53935);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hd-recruit-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.4);
}

/* ========== 轮播指示器 ========== */
.hd-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hd-dot.hd-dot--active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
    .hd-banner {
        height: 140px;
        border-radius: 8px;
    }
    .hd-slide-tag { font-size: 10px; padding: 2px 8px; }
    .hd-recruit-features { gap: 8px; }
    .hd-recruit-btn { padding: 8px 20px; font-size: 13px; }
}

@media (max-width: 375px) {
    .hd-banner { height: 120px; }
    .hd-slide-content { padding: 0 12px; }
    .hd-slide-content--recruit { padding: 12px 14px; }
    .hd-recruit-features { gap: 6px; }
    .hd-recruit-feature { font-size: 11px; }
}

/* ========== 触摸滑动支持 ========== */
.hd-banner {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
