/* Global Styles */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
}

/* Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.0);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.glass-nav:hover {
    background: rgba(255, 255, 255, 0.98);
}

.glass-nav.scrolled .nav-link,
.glass-nav:hover .nav-link { color: #1e3a8a; } /* Dark blue text */

.glass-nav.scrolled .logo-text,
.glass-nav:hover .logo-text { color: #1e3a8a; }

.nav-link { color: white; font-weight: 400; font-size: 0.95rem; letter-spacing: 1px; }
.logo-text { color: white; }

/* Navigation - Dark Mode / Solid (for internal pages) */
.glass-nav.solid-nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.glass-nav.solid-nav .nav-link,
.glass-nav.solid-nav .logo-text { color: #1e3a8a; }

/* Mobile Menu Overlay */
#mobile-menu {
    transition: opacity 0.3s ease;
}

/* Hero Section (Index) */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: black;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
    z-index: 0;
}

.hero-video.active {
    opacity: 1;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    pointer-events: none;
}

.text-wrapper {
    position: relative;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    line-height: 1.4;
    max-width: 90%;
}

.text-active .main-title {
    opacity: 1;
    transform: translateY(0);
}

/* Cards & Hover Effects */
.feature-card {
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Animations */
.ken-burns {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); transform-origin: center center; }
    100% { transform: scale(1.15); transform-origin: center center; }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active + .modal-content,
.modal-content.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Announcement Cards */
.announcement-card {
    transition: all 0.3s ease;
}
.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.announcement-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 1.4rem; letter-spacing: 0.1em; }
}
