/* =====================================================
 * 首页 Hero 区域 - 日间模式（蓝天白云、水天倒影、波光粼粼）
 * 支持主题切换（暗色/护眼模式在theme.css中覆盖）
 * ===================================================== */

.hero-section {
    position: relative;
    overflow: hidden;
    margin: calc(-1 * var(--header-height) - 32px) calc(-50vw + 50%) 32px;
    width: 100vw;
    /* 蓝天渐变背景 */
    background: linear-gradient(180deg,
        #87CEEB 0%,      /* 天空蓝 */
        #B0E0E6 30%,     /* 粉蓝色 */
        #E0F4FF 55%,     /* 浅蓝接近地平线 */
        #FFE4B5 75%,     /* 水面暖色调 */
        #87CEEB 100%     /* 倒影天空 */
    );
    color: #1a365d;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* 天空渐变层 */
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 60%, rgba(135, 206, 235, 0.2) 0%, transparent 60%);
}

/* 云朵层 - 已移除 */
.hero-pattern {
    position: absolute;
    inset: 0;
    display: none;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 80px 32px 52px;
    z-index: 1;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-subtitle {
    font-size: 16px;
    color: #334155;
    margin-bottom: 28px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-vip-btn,
.hero-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border-radius: 28px;
    font-size: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5), 0 0 30px rgba(249, 115, 22, 0.2); }
}

/* 水面倒影区域 */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px 32px;
    background: linear-gradient(180deg,
        rgba(255, 228, 181, 0.6) 0%,
        rgba(135, 206, 235, 0.4) 50%,
        rgba(135, 206, 235, 0.6) 100%
    );
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    /* 水面波光效果 */
    overflow: hidden;
}

/* 波光粼粼动画层 */
.hero-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.1) 2px,
            rgba(255, 255, 255, 0.1) 4px
        );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.hero-stat-num {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1e40af;
}

.hero-stat-label {
    font-size: 12px;
    color: #475569;
    opacity: 0.9;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.5), transparent);
}

/* =====================================================
 * 日间模式：水面波光粼粼效果
 * ===================================================== */

/* 水面波纹层 */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background:
        linear-gradient(180deg,
            transparent 0%,
            rgba(135, 206, 235, 0.1) 20%,
            rgba(135, 206, 235, 0.2) 50%,
            rgba(255, 228, 181, 0.15) 100%
        );
    pointer-events: none;
    z-index: 0;
}

/* 波光点 */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 2px at 10% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(circle 2px at 25% 75%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(circle 3px at 40% 68%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
        radial-gradient(circle 2px at 55% 72%, rgba(255, 255, 255, 0.9) 0%, transparent 100%),
        radial-gradient(circle 2px at 70% 78%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
        radial-gradient(circle 3px at 85% 70%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(circle 2px at 15% 82%, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
        radial-gradient(circle 2px at 35% 85%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(circle 2px at 60% 88%, rgba(255, 255, 255, 0.8) 0%, transparent 100%),
        radial-gradient(circle 2px at 80% 83%, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    animation: sparkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 日间模式隐藏星星（星星仅在夜间模式显示） */
.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: none; /* 白天不显示星星 */
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.6),
                0 0 12px 2px rgba(144, 202, 255, 0.3);
    animation: starTwinkle var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0;
}

.star::before,
.star::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.star::before {
    width: 1px;
    height: 8px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5);
}

.star::after {
    width: 8px;
    height: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5);
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.3); }
    20% { opacity: 1; transform: scale(1); }
    40% { opacity: 0.6; transform: scale(0.7); }
    60% { opacity: 1; transform: scale(1.1); }
    80% { opacity: 0.2; transform: scale(0.4); }
}

/* 移动端减少星星密度 */
@media (max-width: 768px) {
    .star:nth-child(4n+2),
    .star:nth-child(3n+1) { display: none; }
}

/* 流星动画 */
.shooting-star {
    position: absolute;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
    transform: rotate(-35deg);
    animation: shoot var(--shoot-duration) linear infinite;
    animation-delay: var(--shoot-delay);
    opacity: 0;
}

.shooting-star::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(144, 202, 255, 0.5);
}

@keyframes shoot {
    0% { opacity: 0; transform: rotate(-35deg) translateX(100px); }
    8% { opacity: 1; transform: rotate(-35deg) translateX(-200px); }
    15% { opacity: 1; transform: rotate(-35deg) translateX(-400px); }
    20%, 100% { opacity: 0; transform: rotate(-35deg) translateX(-500px); }
}

/* =====================================================
 * 护眼主题（Eye-Care Mode）Hero 区域适配
 * ===================================================== */
[data-theme="eye-care"] .hero-section {
    background: linear-gradient(135deg, #e8dcc8 0%, #d9cdb8 50%, #c9bdA8 100%);
    color: #5a4a2e;
}

[data-theme="eye-care"] .hero-section::after {
    display: none; /* 隐藏水面效果 */
}

[data-theme="eye-care"] .hero-bg::after {
    display: none; /* 隐藏波光点 */
}

[data-theme="eye-care"] .hero-title {
    background: linear-gradient(135deg, #5a3e1b 0%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
}

[data-theme="eye-care"] .hero-subtitle {
    color: #7a6444;
    opacity: 1;
}

[data-theme="eye-care"] .hero-stats {
    background: rgba(90, 62, 27, 0.08);
    border-top-color: rgba(90, 62, 27, 0.15);
}

[data-theme="eye-care"] .hero-stats::before {
    display: none; /* 隐藏波光效果 */
}

[data-theme="eye-care"] .hero-stat-num {
    color: #5a3e1b;
}

[data-theme="eye-care"] .hero-stat-label {
    color: #8a7454;
    opacity: 1;
}

[data-theme="eye-care"] .hero-stat-divider {
    background: rgba(90, 62, 27, 0.2);
}

[data-theme="eye-care"] .star,
[data-theme="eye-care"] .shooting-star {
    display: none;
}
