/* ====================================
   Global Styles – Dark Theme (fixed)
   ==================================== */

/* Root design tokens – hard-coded for dark UI */
:root {
    /* layout */
    --header-height: 48px;
    --header-height-mobile: 56px;

    /* palette */
    --bg-color: #1f2029;
    --text-color: #ffffff;
    --nav-bg: rgba(31, 32, 41, 0.7);
    --nav-text: #ffffff;
    --divider: rgba(255, 255, 255, 0.6);
    --elevated-bg: rgba(255, 255, 255, 0.03);
    --elevated-border: rgba(255, 255, 255, 0.09);
    --shadow: 0 0 20px rgba(0, 255, 247, 0.07);
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Base HTML & Body ===== */
html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: var(--header-height);
    overscroll-behavior-y: contain;
}

body {
    min-height: 100vh;
    background: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== Main screen ===== */
.main-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    overflow: visible;
    position: relative;
}

/* Utility: clamp full-screen sections */
.fullpage-clamp {
    overflow: hidden;
}

/* ===== Header / Nav ===== */
.major-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 32px;
    margin-right: 0.5rem;
}

.vertical {
    width: 1px;
    height: 24px;
    background: var(--divider);
    margin-right: 0.5rem;
}

.nav {
    margin-left: auto;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
}

.nav__link {
    cursor: pointer;
}

.nav__link a {
    color: var(--nav-text);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav__link a:hover,
.nav__link.active a {
    opacity: 1;
}

/* ===== Mobile burger ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--nav-text);
    cursor: pointer;
    z-index: 1001;
}

/* ===== Hero / Parallax ===== */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: opacity;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-content h2 {
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.85;
}

/* ===== Ant Design Select Tweaks ===== */
.language-select .ant-select-selector {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-color) !important;
}

.language-select .ant-select-selection-item {
    color: var(--text-color) !important;
}

.language-select .ant-select-arrow {
    color: var(--text-color) !important;
}

.language-select.ant-select-focused .ant-select-selector {
    border-color: transparent !important;
    box-shadow: none !important;
}

/* ===== Drawer (mobile) ===== */
.drawer-menu {
    background-color: var(--bg-color);
    padding: 20px;
}

.drawer-menu a {
    color: var(--text-color);
    font-size: 1.2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .major-nav {
        height: var(--header-height-mobile);
        padding: 0 0.75rem;
    }
    .nav__links,
    .nav-logo {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .main-section,
    .hero-section {
        height: calc(100vh - var(--header-height-mobile));
        min-height: 350px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .main-section,
    .hero-section {
        min-height: 220px;
    }
}

/* ===== VR Corner Override ===== */
.vrcorner-section {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.vrcorner-section.fullpage-clamp {
    overflow: visible !important;
}

/* ===== CoreTechSection Override ===== */
.main-section.coretech-section {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
/* ===== CoreTechSection 全局 Override ===== */
.coretech-section {
    /* 继续允许内部滚动 */
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;

    /* 重新成为一个 snap 目标 */
    scroll-snap-align: start !important;
}

