/**
 * DripSafe Theme - Hero区域 CSS
 * 优化版本：增强视觉效果和科技感
 * 深水涟漪设计 v3.1
 */

.ds-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0;
}

.ds-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 科技感渐变背景 */
.ds-hero__gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #0a1628 0%,
        #1a365d 25%,
        #0066CC 50%,
        #00D4FF 75%,
        #0a1628 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 科技网格效果 */
.ds-hero__grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 102, 204, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

/* 涟漪动画 */
.ds-hero__ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ds-hero__ripple::before,
.ds-hero__ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: ripple 6s ease-in-out infinite;
}

.ds-hero__ripple::after {
    animation-delay: 3s;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.2) 0%, transparent 70%);
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* 光晕效果 */
.ds-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.ds-hero__glow--1 {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: rgba(0, 102, 204, 0.4);
    animation: glowPulse 6s ease-in-out infinite;
}

.ds-hero__glow--2 {
    bottom: 20%;
    right: 20%;
    width: 250px;
    height: 250px;
    background: rgba(0, 212, 255, 0.3);
    animation: glowPulse 6s ease-in-out infinite 3s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.ds-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.ds-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* 渐变文字 */
.ds-text-gradient {
    background: linear-gradient(90deg, #00D4FF, #0066CC, #00D4FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.ds-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.6;
}

.ds-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* 按钮样式 */
.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.ds-btn--primary {
    background: linear-gradient(135deg, #00D4FF, #0066CC);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.ds-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.ds-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.ds-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 统计数字 */
.ds-hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.ds-stat {
    text-align: center;
}

.ds-stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00D4FF;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.ds-stat__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ds-hero {
        min-height: 50vh;
        padding: 40px 0;
    }

    .ds-hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .ds-hero__subtitle {
        font-size: var(--ds-text-base, 16px);
    }

    .ds-hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 30px;
    }

    .ds-btn {
        width: 100%;
        justify-content: center;
    }

    .ds-hero__stats {
        gap: 24px;
    }

    .ds-stat__number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .ds-hero {
        padding: 30px 0;
    }

    .ds-hero__stats {
        gap: 16px;
    }

    .ds-stat__number {
        font-size: 1.5rem;
    }
}

/* 暗黑模式适配 */
[data-theme="dark"] .ds-hero__gradient {
    background: linear-gradient(
        135deg,
        #0a1628 0%,
        #1a365d 25%,
        #0066CC 50%,
        #00D4FF 75%,
        #0a1628 100%
    );
}

[data-theme="dark"] .ds-hero__grid {
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
}

[data-theme="dark"] .ds-btn--primary {
    background: linear-gradient(135deg, #00D4FF, #0066CC);
}

[data-theme="dark"] .ds-btn--secondary {
    background: rgba(0, 0, 0, 0.3);
}

/* 减少动画 (无障碍) */
@media (prefers-reduced-motion: reduce) {
    .ds-hero__gradient,
    .ds-hero__grid,
    .ds-hero__ripple::before,
    .ds-hero__ripple::after,
    .ds-hero__glow--1,
    .ds-hero__glow--2 {
        animation: none;
    }

    .ds-text-gradient {
        animation: none;
        background: #00D4FF;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}
