/* ========================================
   Terrastill Hero Styles
   ======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    background: #050505;
}

body {
    margin: 0;
    background: #050505;
    color: #ffffff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: white;
    text-decoration: none;
}

/* ===== 全屏 Hero ===== */
.hero-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050505;
}

.hero-fullscreen video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 5, 0.45) 0%,
        rgba(5, 5, 5, 0.70) 50%,
        rgba(5, 5, 5, 0.92) 100%
    );
    z-index: 1;
}

/* ===== 呼吸灯 - 2厘米直径，边缘朦胧 ===== */
.glow-orb {
    position: absolute;
    top: 24%;
    left: calc(50% - 140px);
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
    pointer-events: none;
    background: radial-gradient(
        circle at 40% 40%,
        rgba(255, 240, 220, 0.35) 0%,
        rgba(255, 220, 180, 0.15) 25%,
        rgba(255, 200, 150, 0.06) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    box-shadow:
        0 0 60px 30px rgba(255, 220, 180, 0.10),
        0 0 120px 60px rgba(255, 200, 150, 0.05),
        0 0 200px 100px rgba(255, 180, 130, 0.03);
    transition: opacity 2.5s ease, transform 0.4s ease;
}

.glow-orb.show {
    opacity: 1;
    pointer-events: auto;
    animation: glowBreathTop 5s ease-in-out infinite;
}

.glow-orb:hover {
    transform: translate(-50%, -50%) scale(1.12);
}

@keyframes glowBreathTop {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.40;
        box-shadow: 
            0 0 60px 30px rgba(255, 220, 180, 0.06),
            0 0 120px 60px rgba(255, 200, 150, 0.03),
            0 0 200px 100px rgba(255, 180, 130, 0.02);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.90;
        box-shadow: 
            0 0 80px 40px rgba(255, 220, 180, 0.15),
            0 0 160px 80px rgba(255, 200, 150, 0.08),
            0 0 260px 130px rgba(255, 180, 130, 0.04);
    }
}

/* ===== 中央文字 ===== */
.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 2s ease, transform 2s ease;
    padding: 0 24px;
}

.hero-text.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-text h1 {
    font-size: 82px;
    font-weight: 200;
    letter-spacing: 20px;
    margin-bottom: 16px;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.06);
}

.hero-text .sub-line {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 12px;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 14px;
}

.hero-text .tagline {
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.42);
    max-width: 620px;
    margin: 0 auto;
}

/* ===== 底部滚动指示器 ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.scroll-indicator.show {
    opacity: 0.6;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: scrollPulse 2.5s ease-in-out infinite;
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

@keyframes scrollPulse {
    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(0.4);
        opacity: 0.1;
    }
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0);
    backdrop-filter: blur(0px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    opacity: 0;
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.70);
    backdrop-filter: blur(14px);
    padding: 18px 60px;
    pointer-events: auto;
    opacity: 1;
}

.logo {
    font-size: 22px;
    letter-spacing: 5px;
    font-weight: 300;
}

.logo a {
    color: white;
    text-decoration: none;
}

nav a {
    margin-left: 36px;
    font-size: 13px;
    letter-spacing: 3px;
    opacity: 0.65;
    transition: opacity 0.3s ease;
    color: white;
    text-decoration: none;
}

nav a:hover {
    opacity: 1;
}

/* ===== 底部光感 ===== */
.page-footer-glow {
    position: relative;
    padding: 100px 60px 80px;
    background: #050505;
    overflow: hidden;
}

.page-footer-glow::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 220, 180, 0.06) 0%,
        rgba(255, 200, 150, 0.03) 40%,
        rgba(255, 255, 255, 0) 70%
    );
    filter: blur(40px);
    z-index: 0;
    animation: footerGlow 6s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% {
        opacity: 0.3;
        transform: translateX(-50%) scale(0.9);
    }
    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
}

.page-footer-glow > * {
    position: relative;
    z-index: 1;
}

/* ===== 测试页 ===== */
#test-section {
    min-height: 100vh;
    padding: 120px 60px 80px;
    background: #050505;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#test-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 220, 180, 0.04) 0%,
        rgba(255, 200, 150, 0.02) 50%,
        rgba(255, 255, 255, 0) 70%
    );
    filter: blur(30px);
}

#test-section h2 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

#test-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
    max-width: 600px;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 62px;
        letter-spacing: 14px;
    }
    .hero-text .sub-line {
        font-size: 24px;
        letter-spacing: 8px;
    }
    .hero-text .tagline {
        font-size: 16px;
        letter-spacing: 4px;
    }
    .glow-orb {
        width: 60px;
        height: 60px;
        top: 22%;
        left: calc(50% - 120px);
    }
    #test-section h2 {
        font-size: 36px;
        letter-spacing: 6px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 18px 28px;
        flex-wrap: wrap;
    }
    .site-header.scrolled {
        padding: 14px 28px;
    }
    .hero-text h1 {
        font-size: 44px;
        letter-spacing: 10px;
    }
    .hero-text .sub-line {
        font-size: 20px;
        letter-spacing: 6px;
    }
    .hero-text .tagline {
        font-size: 14px;
        letter-spacing: 4px;
        max-width: 90%;
    }
    .glow-orb {
        width: 50px;
        height: 50px;
        top: 20%;
        left: calc(50% - 100px);
    }
    nav a {
        margin-left: 20px;
        font-size: 11px;
        letter-spacing: 2px;
    }
    .logo {
        font-size: 18px;
        letter-spacing: 3px;
    }
    .scroll-indicator {
        bottom: 24px;
    }
    .scroll-line {
        height: 30px;
    }
    #test-section {
        padding: 80px 24px 60px;
    }
    #test-section h2 {
        font-size: 28px;
        letter-spacing: 4px;
    }
    .page-footer-glow {
        padding: 60px 24px 40px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px;
        letter-spacing: 6px;
    }
    .hero-text .sub-line {
        font-size: 16px;
        letter-spacing: 4px;
    }
    .hero-text .tagline {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .glow-orb {
        width: 40px;
        height: 40px;
        top: 18%;
        left: calc(50% - 80px);
    }
    .site-header {
        padding: 14px 16px;
        flex-direction: column;
        gap: 6px;
    }
    .site-header.scrolled {
        padding: 10px 16px;
    }
    nav a {
        margin-left: 14px;
        font-size: 10px;
        letter-spacing: 1px;
    }
    .logo {
        font-size: 16px;
        letter-spacing: 2px;
    }
    #test-section h2 {
        font-size: 22px;
        letter-spacing: 3px;
    }
    #test-section p {
        font-size: 14px;
    }
}