.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 6rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
}

/* RTL: mirror hero layout so text block stays on reading start side */
html[dir="rtl"] .hero { flex-direction: row-reverse; }
html[dir="rtl"] .hero-cta { flex-direction: row-reverse; }

/* 修改背景光晕效果，防止溢出 */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(circle at center, var(--pink-tint-08), transparent 70%);
    pointer-events: none;
    z-index: -1; /* 确保在内容下方 */
}
/* RTL: place glow on the other side to sit behind image */
html[dir="rtl"] .hero::before { right: auto; left: -10%; }

.hero-content {
    width: 45%;
    min-width: 480px;
    margin-top: -3rem;
    padding-top: 2rem;
}

.hero-title {
    font-size: clamp(2.75rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-light) 30%, var(--pink-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.4;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin: 3rem 0;
    padding: 0;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-light) 30%, var(--pink-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding: 0;
}

.hero-btn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    text-decoration: none;
    margin: 0 0.5rem;
}

/* JP: slightly bolder hero buttons for better legibility */
html[lang="ja"] .hero-btn { font-weight: 600; }

/* Arabic typographic tweaks: avoid negative tracking */
html[dir="rtl"] .hero-title,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .hero-btn { letter-spacing: 0; }

.hero-btn-primary {
    background: var(--pink-primary);
    color: var(--text-light);
    border: none;
}

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

.hero-btn-secondary {
    background: var(--surface-hover);
    color: var(--text-light);
    border: 1px solid var(--color-border);
}

.hero-btn-secondary:hover {
    background: var(--surface-active);
    transform: translateY(-2px);
}

.hero-image {
    width: 55%;
    min-width: 580px;
    padding-right: 0;
}

.hero-clip-view {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    cursor: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    background: var(--surface-overlay);
    backdrop-filter: blur(10px);
}

.hero-clip-view:hover {
    transform: translateY(-5px);
}

.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: clip-path 0.2s ease;
}

.hero-container-bottom {
    z-index: 1;
}

.hero-container:not(.hero-container-bottom) {
    z-index: 2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.hero-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--pink-primary);
    box-shadow: 0 0 15px var(--pink-primary);
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--pink-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: 0 0 15px var(--pink-primary);
    pointer-events: none;
}

.hero-slider-icon {
    font-size: 12px;
    color: var(--text-light);
}

@media (max-width: 1200px) {
    .hero {
        padding: 5rem 3rem;
    }

    .hero-content {
        min-width: 420px;
    }

    .hero-image {
        min-width: 520px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 4rem 2rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-content {
        width: 100%;
        min-width: auto;
        max-width: 600px;
        margin-top: -2rem;
        padding-top: 1rem;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        min-width: auto;
        max-width: 700px;
        margin-top: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 734px) {
    .hero-title {
        font-size: clamp(2rem, 5vw, 4rem);
    }
    .hero-stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 2.5rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-stat-item {
        width: 100%;
        max-width: 200px;
    }
}

/* Light mode hero enhancements */
html[data-theme="light"] .hero::before {
    background: radial-gradient(circle at center, var(--pink-tint-05), transparent 70%);
}

html[data-theme="light"] .hero-btn-primary {
    background: var(--color-accent);
    box-shadow: 0 1px 3px rgba(255, 55, 95, 0.2), 0 1px 2px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .hero-btn-primary:hover {
    background: var(--color-accent-strong);
    box-shadow: 0 4px 6px rgba(255, 55, 95, 0.25), 0 2px 4px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .hero-btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--color-text);
}

html[data-theme="light"] .hero-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .hero-clip-view {
    background: rgba(249, 249, 249, 0.8);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .hero-clip-view:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.10), 0 5px 10px rgba(0, 0, 0, 0.06);
}
