/* ============================================
 * aiqilvse1.0 - 首页 Hero 幻灯片（v6 · fenglipos 淡色 3D 风格）
 * 参考 fenglipos.com hero 模块：
 * - 淡色渐变背景（随主题色变化，突出主题）
 * - 白色徽章 + 深色文字 + 渐变关键词
 * - 右侧图片卡带 3D 透视（rotateY）+ 大阴影
 * - 图片卡上叠加 2 个浮动小卡（float-card，悬浮动画）
 * ============================================ */

/* --- 轮播容器 --- */
.aqs-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(180deg, #EAF2FF 0%, #F7FAFF 100%);
    margin-top: 70px;
    max-height: 600px;
    min-height: 300px;
}

/* 轨道 */
.aqs-slider-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 每一张幻灯片 */
.aqs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
}

.aqs-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 背景 - 淡色渐变（PHP 内联生成，随主题色变化） */
.aqs-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 装饰光斑（fenglipos hero::before/::after 风格） */
.aqs-slide-deco {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.aqs-slide-deco::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,105,255,.10), transparent 70%);
    top: -180px;
    right: -120px;
}
.aqs-slide-deco::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,217,204,.10), transparent 70%);
    bottom: -160px;
    left: -100px;
}
.aqs-layout-2 .aqs-slide-deco::before,
.aqs-layout-6 .aqs-slide-deco::before {
    left: -120px;
    right: auto;
}
.aqs-layout-2 .aqs-slide-deco::after,
.aqs-layout-6 .aqs-slide-deco::after {
    right: -100px;
    left: auto;
}

/* 内部容器 - flex 布局 */
.aqs-slide-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* --- 文字区 --- */
.aqs-slide-text {
    flex: 1.1;
    max-width: 560px;
    color: #1e293b;
    perspective: 800px;
}

/* 标题 3D 微立体感 */
.aqs-slide-title {
    transform: perspective(800px) rotateX(.6deg);
    transform-origin: left bottom;
}

.aqs-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid rgba(30, 41, 59, .08);
    color: var(--accent, #3b82f6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0, 105, 255, .08);
}

.aqs-slide-badge i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent, #3b82f6);
    box-shadow: 0 0 10px var(--accent, #3b82f6);
    flex-shrink: 0;
    animation: aqs-pulse 1.5s infinite;
}

@keyframes aqs-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,.45); }
    50% { box-shadow: 0 0 0 6px rgba(59,130,246,0); }
}

.aqs-slide-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 18px;
    color: #1e293b;
    letter-spacing: .5px;
}

.aqs-slide-title .grad {
    background: linear-gradient(120deg, var(--accent, #3b82f6), #d4af37 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.aqs-slide-desc {
    font-size: 15px;
    line-height: 2;
    color: #475569;
    margin: 0 0 28px;
}

.aqs-slide-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.aqs-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent, #3b82f6), color-mix(in srgb, var(--accent, #3b82f6) 80%, #000));
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 105, 255, .25);
    transition: all .25s;
    border: none;
    cursor: pointer;
}

.aqs-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 105, 255, .35);
}

.aqs-slide-btn span {
    font-size: 18px;
    transition: transform .25s;
}

.aqs-slide-btn:hover span {
    transform: translateX(4px);
}

/* --- 图片区（3D 透视卡片） --- */
.aqs-slide-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 540px;
    position: relative;
    perspective: 1000px;
}

.aqs-slide-visual .aqs-main-img {
    max-width: 100%;
    max-height: 470px;
    border-radius: 22px;
    box-shadow:
        0 30px 60px -12px rgba(30, 41, 59, .35),
        0 0 0 1px rgba(255,255,255,.7),
        0 12px 24px -8px rgba(59, 130, 246, .18);
    object-fit: cover;
    transform: perspective(1000px) rotateY(-13deg) rotateX(2deg);
    transition: transform .45s ease, box-shadow .45s ease;
    will-change: transform;
}

.aqs-slide.active:hover .aqs-main-img {
    transform: perspective(1000px) rotateY(-4deg) rotateX(0);
    box-shadow:
        0 40px 80px -12px rgba(30, 41, 59, .4),
        0 0 0 1px rgba(255,255,255,.85),
        0 16px 30px -8px rgba(59, 130, 246, .22);
}

/* 图片卡背后的装饰色块（增强3D层次） */
.aqs-slide-visual::before {
    content: '';
    position: absolute;
    width: 86%;
    height: 86%;
    left: 7%;
    top: 7%;
    border-radius: 26px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #3b82f6) 22%, #fff), color-mix(in srgb, var(--accent, #3b82f6) 6%, #fff));
    transform: perspective(1000px) rotateY(8deg) translateX(16px) translateY(10px);
    z-index: -1;
    box-shadow: 0 24px 50px -16px rgba(59, 130, 246, .28);
}

/* 图片卡底部倒影光带 */
.aqs-slide-visual::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -14px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(30, 41, 59, .18), transparent 70%);
    filter: blur(6px);
    z-index: -2;
}

/* --- 浮动小卡（float-card） --- */
.aqs-float-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 18px 40px -8px rgba(30, 41, 59, .25),
        0 0 0 1px rgba(255,255,255,.9);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: aqs-float 4s ease-in-out infinite;
    z-index: 3;
    transform: translateZ(40px);
}

.aqs-float-card .aqs-fc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #E8F1FF;
    flex-shrink: 0;
}

.aqs-float-card .aqs-fc-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    white-space: nowrap;
}

.aqs-float-card .aqs-fc-txt {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.aqs-fc-1 {
    top: -18px;
    left: -34px;
}

.aqs-fc-2 {
    bottom: -16px;
    right: -26px;
    animation-delay: 2s;
}

@keyframes aqs-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- 布局2/6：右文左图 --- */
.aqs-layout-2 .aqs-slide-inner,
.aqs-layout-6 .aqs-slide-inner {
    flex-direction: row-reverse;
}

.aqs-layout-2 .aqs-main-img,
.aqs-layout-6 .aqs-main-img {
    transform: perspective(1000px) rotateY(13deg) rotateX(2deg);
}

.aqs-layout-2 .aqs-slide.active:hover .aqs-main-img,
.aqs-layout-6 .aqs-slide.active:hover .aqs-main-img {
    transform: perspective(1000px) rotateY(4deg) rotateX(0);
}

.aqs-layout-2 .aqs-slide-visual::before,
.aqs-layout-6 .aqs-slide-visual::before {
    transform: perspective(1000px) rotateY(-8deg) translateX(-16px) translateY(10px);
}

/* --- 布局3：居中背景+文字 --- */
.aqs-layout-3 .aqs-slide-inner {
    justify-content: center;
    text-align: center;
}

.aqs-layout-3 .aqs-slide-text {
    max-width: 760px;
    margin: 0 auto;
}

.aqs-layout-3 .aqs-slide-visual {
    display: none;
}

.aqs-layout-3 .aqs-slide-cta {
    justify-content: center;
}

/* --- 布局4：左文右图（图片大卡） --- */
.aqs-layout-4 .aqs-slide-visual {
    max-width: 560px;
}

.aqs-layout-4 .aqs-main-img {
    max-height: 480px;
}

/* --- 布局5：左文右图竖版（竖图卡片） --- */
.aqs-layout-5 .aqs-slide-visual {
    max-width: 420px;
}

.aqs-layout-5 .aqs-main-img {
    max-height: 480px;
    border-radius: 20px;
}

/* --- 指示器（点） --- */
.aqs-slider-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.aqs-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(30, 41, 59, .25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.aqs-slider-dot.active,
.aqs-slider-dot:hover {
    background: var(--accent, #3b82f6);
    border-color: rgba(255, 255, 255, .8);
    transform: scale(1.2);
}

/* --- 箭头 --- */
.aqs-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(30, 41, 59, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    color: #1e293b;
    font-size: 32px;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aqs-slider-arrow:hover {
    background: #fff;
    border-color: var(--accent, #3b82f6);
    color: var(--accent, #3b82f6);
    transform: translateY(-50%) scale(1.1);
}

.aqs-slider-prev { left: 20px; }
.aqs-slider-next { right: 20px; }

/* ============================================
 * 响应式适配
 * ============================================ */
@media (max-width: 768px) {
    .aqs-slider {
        margin-top: 60px;
        height: 520px;
        min-height: 400px;
        max-height: 520px;
    }

    .aqs-slide-inner {
        flex-direction: column !important;
        justify-content: center;
        gap: 20px;
        padding: 0 24px;
        text-align: center;
    }

    .aqs-slide-text {
        max-width: 100%;
    }

    .aqs-slide-badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 14px;
    }

    .aqs-slide-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .aqs-slide-desc {
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.8;
    }

    .aqs-slide-cta {
        justify-content: center;
    }

    .aqs-slide-btn {
        padding: 11px 28px;
        font-size: 14px;
    }

    .aqs-slide-visual {
        max-width: 280px;
        display: none;
    }

    .aqs-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
        line-height: 36px;
    }

    .aqs-slider-prev { left: 8px; }
    .aqs-slider-next { right: 8px; }

    .aqs-slider-dots {
        bottom: 14px;
        gap: 10px;
    }

    .aqs-slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* --- 超小屏 --- */
@media (max-width: 480px) {
    .aqs-slide-title { font-size: 21px; }
    .aqs-slide-desc { display: none; }
    .aqs-slider-arrow { display: none; }
}
