.hero-container {
    position: relative;
}

.hero-section {
    position: relative;
    overflow: visible;
    border-radius: 0;
    padding: clamp(24px, 4vw, 32px) 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-primary);
    transform: translateZ(0);
    transition: opacity var(--transition-base), transform var(--transition-base);
    max-width: 720px;
    margin: 0 auto;
}


.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section.hidden {
    display: block;
    opacity: 0;
    transform: translateY(-28px);
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-section.visible {
    opacity: 1;
}

.hero-section.is-ready {
    animation: heroFadeIn 0.6s var(--transition-bounce) forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-surface {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 4vw, 48px);
}

.hero-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

.hero-column {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.65);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: clamp(460px, 60vw, 620px);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform var(--transition-bounce), box-shadow var(--transition-base), background var(--transition-base);
}

.hero-btn.primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-strong) 100%);
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(124, 58, 237, 0.35);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
}

.hero-btn.ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.hero-btn .btn-arrow {
    font-size: 1.2rem;
    transition: transform var(--transition-base);
}

.hero-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    backdrop-filter: blur(6px);
}

.feature-chip .chip-icon {
    font-size: 1rem;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 24px);
}

.hero-stat-card {
    position: relative;
    padding: clamp(18px, 2.6vw, 22px);
    border-radius: 22px;
    background: rgba(10, 16, 28, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.hero-stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
}

.hero-stat-card .stat-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.hero-stat-card .stat-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-stat-card .stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-stat-card .stat-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
}

.hero-stat-card .value-number {
    min-width: 40px;
}

.hero-stat-card .value-suffix {
    font-size: 0.86rem;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
}

.hero-stat-card.accent {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.24), rgba(59, 130, 246, 0.18));
}

.hero-stat-card.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(45, 212, 191, 0.16));
}

.hero-stat-card.warning {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(249, 115, 22, 0.18));
}

.hero-stat-card.muted {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.08));
}

/* Hero Search Box - Google-style search */
.hero-search-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.hero-main-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.search-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.search-input-wrapper .search-icon {
    font-size: 1.1rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

.hero-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.site-selector {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    flex-shrink: 0;
    min-width: 120px;
}

.site-selector:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.site-selector:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.site-selector option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}

/* 响应式设计：移动端优化 */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
    }

    .hero-search-input {
        flex: 1 1 100%;
        min-width: 0;
    }

    .site-selector {
        flex: 1 1 auto;
        min-width: 100px;
    }

    .search-button {
        flex: 1 1 auto;
    }
}

.search-button {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

/* Quick Filters - Subtle like Google */
.quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 2px;
}

.quick-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.quick-filter-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: rgba(139, 92, 246, 1);
}

.filter-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.filter-dot.green {
    background: #10b981;
}

@media (max-width: 1024px) {
    .hero-columns {
        grid-template-columns: 1fr;
    }

    .hero-stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: clamp(24px, 7vw, 32px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-hot-sites {
        padding: clamp(18px, 5vw, 24px);
    }

    .hot-site-pill {
        grid-template-columns: auto 1fr auto;
    }

    .hot-site-pill .pill-rank {
        order: 3;
        justify-self: flex-end;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.55);
    }
}
