/* ===================================================================
   style.css (Hero Section Dark Theme)
   =================================================================== */

/* 1. Global Styles and Reset */
body, h1, h2, h3, p, ul, li, section, header, nav, main, footer, button, input, a { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; color: #333; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
body { line-height: 1.6; background-color: #f8f8f8; overflow-x: hidden; scroll-behavior: smooth; }

/* 2. Navigation Bar Styles */
.navbar { background-color: #000; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; position: fixed; width: 100%; top: 0; left: 0; z-index: 1000; }
.navbar .logo a { font-size: 2.2em; font-weight: bold; color: #fff; }
nav.desktop-nav { display: flex; align-items: center; gap: 40px; }
.desktop-nav .central-nav-items { display: flex; align-items: center; gap: 40px; }
.desktop-nav .central-nav-items li a { color: #fff; font-size: 1.05em; }
.login-button { background-color: #007bff; color: #fff !important; padding: 10px 25px; border-radius: 5px; font-weight: bold; border: none; cursor: pointer; }
.login-button:hover { background-color: #0056b3; }

/* 3. Main Content & Sections */
main { padding-top: 74px; }
.info-section { background-color: #fff; padding: 80px 20px; text-align: center; margin-top: 20px; }
.full-width-video-section { width: 100%; height: 99vh; overflow: hidden; position: relative; background-color: #000; }
.full-width-video-section .full-width-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; }
.hero-section { text-align: center; padding: 100px 20px; }
.hero-content { max-width: 460px; margin: 0 auto; }
.hero-content h1 { font-size: 2.2em; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); }
.hero-content p { font-size: 0.9em; color: #555; margin-top: 15px; }
.hero-buttons { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }
.hero-buttons .btn { padding: 12px 30px; font-size: 1.1em; font-weight: bold; border: 2px solid; border-radius: 5px; cursor: pointer; }
.hero-buttons .primary-btn { background-color: #007bff; color: #fff; border-color: #007bff; }
.hero-buttons .secondary-btn { background-color: transparent; color: #007bff; border-color: #007bff; }

/* 【新增】为英雄区添加暗色主题 */
.hero-section.dark-theme {
    background-color: #000;
}
.hero-section.dark-theme .hero-content h1,
.hero-section.dark-theme .hero-content p {
    color: #fff; /* 将内部文字设为白色 */
}
.hero-section.dark-theme .secondary-btn {
    color: #fff; /* 让边框按钮的文字也变成白色 */
    border-color: #fff; /* 边框也变成白色 */
}
.hero-section.dark-theme .secondary-btn:hover {
    background-color: #fff;
    color: #000;
}


/* 4. Product Showcase & Other Sections (No Changes) */
.product-showcase-section { padding: 0; margin-top: 20px; }
.product-long-videos-grid { display: flex; width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.product-card { flex: 1 1 33.33%; height: 350px; perspective: 1500px; cursor: pointer; }
.product-card .flipper { position: relative; width: 100%; height: 100%; transition: transform 0.8s; transform-style: preserve-3d; }
.product-card.flipped .flipper { transform: rotateY(180deg); }
.product-card .front, .product-card .back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; overflow: hidden; }
.product-card .front video { width: 100%; height: 100%; object-fit: cover; }
.product-card .back { background: linear-gradient(45deg, #222, #444); transform: rotateY(180deg); display: flex; justify-content: center; align-items: center; text-align: center; color: #fff; }
.product-card .back .product-info { opacity: 0; transition: opacity 0.5s 0.3s; }
.product-card.flipped .back .product-info { opacity: 1; }
.product-card .back .fa-solid { font-size: 5em; margin-bottom: 20px; text-shadow: 0 0 10px rgba(0,0,0,0.7); }
.product-card .back h3 { font-size: 2.2em; text-shadow: 0 0 10px rgba(0,0,0,0.7); }
.warkai-background-video-section { position: relative; padding: 100px 20px; color: #fff; text-align: center; height: 300px; }
.warkai-background-video-section .section-background-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; background-color: #000;}
.warkai-background-video-section .background-video { height: 100%; width: 100%; object-fit: contain; opacity: 0.7; }
.footer { background-color: #000; color: #fff; text-align: center; padding: 30px 20px; font-size: 0.9em; margin-top: 20px; }

/* 5. Mobile & Responsive (No Changes) */
.menu-toggle, .mobile-nav { display: none; }
@media (max-width: 768px) {
    .navbar nav.desktop-nav { display: none; }
    .menu-toggle { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; }
    .hamburger-bar { width: 30px; height: 3px; background: #fff; border-radius: 10px; }
    .mobile-nav { display: none; flex-direction: column; width: 100%; background-color: rgba(0,0,0,0.95); position: absolute; top: 74px; left: 0; z-index: 999; }
    .mobile-nav.open { display: flex; }
    .mobile-nav ul { width: 100%; }
    .mobile-nav li { text-align: center; }
    .mobile-nav li a { display: block; padding: 15px; color: #fff; border-bottom: 1px solid #444; }
    .mobile-nav .login-button-mobile { display: block; margin: 15px; padding: 12px; text-align: center; }
    .hero-content { max-width: 90%; }
    .hero-content h1 { font-size: 2.2em; line-height: 1.2; font-weight: bold; }
    .product-long-videos-grid { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; }
    .product-card { flex: 0 0 100%; height: 70vh; scroll-snap-align: center; }
    .product-card:active .flipper { transform: rotateY(180deg); }
}