:root {
    /* Color Palette */
    --color-rock-dark: #121214;  /* 岩石黑 - 背景基调 */
    --color-rock-gray: #2c2c2e;  /* 岩石灰 - 次级背景 */
    --color-snow-white: #f0f2f5; /* 雪山白 - 主要文字 */
    --color-cold-grey: #8b9bb4;  /* 冷灰 - 次要文字/辅助 */
    --color-accent-orange: #ff5722; /* 警示橙 - 强调/按钮 */
    --color-accent-blue: #00bcd4;   /* 冰蓝 - 科技感/Hover */
    
    /* Typography */
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-heading: 'Impact', 'Arial Black', sans-serif; /* 粗犷字体 */

    /* Spacing */
    --spacing-container: 120px;
    --spacing-md: 2rem;
    
    /* Mobile Spacing */
    --spacing-container-mobile: 60px;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-rock-dark);
    color: var(--color-snow-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* 简单的噪点纹理模拟岩石质感 */
    background-image: radial-gradient(transparent 0%, var(--color-rock-dark) 100%), repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 10px);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Navigation */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(18, 18, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-cold-grey);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-snow-white);
}

@media (max-width: 768px) {
    .nav-links a:active {
        color: var(--color-accent-blue);
    }
}

.nav-toggle {
    display: none;
}

/* Footer */
footer {
    background-color: var(--color-rock-gray);
    padding: 4rem 5%;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-cold-grey);
    opacity: 0.6;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Navigation */
    #navbar {
        padding: 1rem 4%;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 32px;
        margin-right: 8px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 20, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
        gap: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
    
    .nav-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--color-snow-white);
        margin: 5px 0;
        transition: all 0.3s;
    }
    
    /* Container */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        height: 100vh;
        min-height: 600px;
        max-height: 100vh;
        margin: 0;
        padding: 0;
        /* 确保没有额外的间距 */
    }
    
    /* Hero 视频和图片移动端适配 */
    .hero-bg {
        position: absolute;
        top: 0 !important;
        left: 0;
        width: 100%;
        height: 100% !important;
        margin: 0;
        padding: 0;
        /* 移动端不需要额外的parallax高度，确保从顶部开始 */
    }
    
    .hero-video,
    .hero-fallback-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        object-fit: cover;
        object-position: center center;
        /* 确保视频和图片在移动端填满整个hero区域，从顶部开始 */
    }
    
    .hero-content {
        transform: translateY(-30px);
        padding: 0 1rem;
    }
    
    .hero-logo {
        width: 80px;
        margin-bottom: 0.8rem;
    }
    
    .brand-name {
        font-size: 2.5rem;
        letter-spacing: 0.5rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.3rem;
    }
    
    .scroll-indicator {
        width: 24px;
        height: 40px;
        bottom: 20px;
    }
    
    .scroll-indicator span {
        width: 5px;
        height: 5px;
    }
    
    /* Slogan Section */
    .slogan-section {
        padding: 60px 0;
    }
    
    .slogan-text {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .slogan-sub {
        font-size: 0.85rem;
        letter-spacing: 0.15rem;
    }
    
    /* Product Section */
    .new-products {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-image-placeholder {
        height: 200px;
        font-size: 1rem;
    }
    
    .product-card h3 {
        font-size: 1.2rem;
    }
    
    .product-card p {
        font-size: 0.85rem;
    }
    
    /* Footer */
    footer {
        padding: 3rem 4%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-info p,
    .footer-contact p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Video adjustments for mobile */
    .hero-video,
    .hero-fallback-img {
        object-fit: cover;
    }
}

/* Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
    .brand-name {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.2rem;
    }
    
    .slogan-text {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    #navbar {
        padding: 0.8rem 3%;
    }
    
    /* 小屏设备的视频优化 */
    .hero-video,
    .hero-fallback-img {
        /* 确保在小屏设备上也能正确显示 */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-snow-white);
    margin: 0;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Extra height for parallax */
    z-index: -1;
    margin: 0;
    padding: 0;
}

.hero-bg img,
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-fallback-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: none; /* 默认隐藏，如果视频加载失败则显示 */
    object-fit: cover;
    object-position: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* 确保视频在移动端也能正确显示 */
    min-width: 100%;
    min-height: 100%;
    display: block;
    background: #000; /* 视频加载时的背景色 */
}

/* 针对竖屏视频（3:4）的优化 */
@media (min-aspect-ratio: 4/3) {
    .hero-video {
        /* 在宽屏上，视频可能会被裁剪上下部分，确保居中显示主要内容 */
        object-position: center center;
    }
}

@media (max-aspect-ratio: 3/4) {
    .hero-video,
    .hero-fallback-img {
        /* 在竖屏设备上，视频可以完整显示 */
        object-fit: cover;
        object-position: center;
    }
}

/* 移动端视差优化 - 减少性能消耗 */
@media (max-width: 768px) {
    .hero-bg.parallax {
        /* 移动端禁用视差效果以提升性能 */
        transform: none !important;
        /* 移动端不需要额外的parallax高度 */
        height: 100% !important;
    }
    
    /* 移动端视频和图片的优化 - 确保3:4视频正确显示 */
    .hero-bg {
        /* 确保背景容器从顶部开始，没有空隙 */
        top: 0 !important;
        left: 0;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .hero-video,
    .hero-fallback-img {
        /* 移动端确保视频和图片完全覆盖hero区域，从顶部开始 */
        position: absolute;
        top: 0 !important;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        object-fit: cover;
        object-position: center center;
    }
    
    /* 确保hero容器本身也没有空隙 */
    .hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* 横屏移动设备 */
    @media (orientation: landscape) and (max-width: 768px) {
        .hero-video,
        .hero-fallback-img {
            /* 横屏时，3:4的视频会被上下裁剪，确保主要内容居中 */
            object-fit: cover;
            object-position: center center;
        }
    }
    
    /* 竖屏移动设备 - 3:4视频的最佳适配 */
    @media (orientation: portrait) and (max-width: 768px) {
        .hero-video,
        .hero-fallback-img {
            /* 竖屏时，3:4的视频比例与设备匹配，使用cover填充 */
            object-fit: cover;
            object-position: center center;
            /* 由于视频是3:4，在竖屏设备上可以很好地适配 */
        }
    }
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,20,0.3), rgba(18,18,20,0.8));
}

.hero-content {
    text-align: center;
    z-index: 1;
    transform: translateY(-50px); /* Slight offset */
}

.hero-logo {
    width: 120px;
    height: auto;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.brand-name {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    color: var(--color-cold-grey);
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-snow-white);
    border-radius: 15px;
    opacity: 0.7;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--color-snow-white);
    border-radius: 50%;
    margin: 10px auto 0;
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Slogan Section */
.slogan-section {
    padding: var(--spacing-container) 0;
    text-align: center;
    background: var(--color-rock-dark);
}

@media (max-width: 768px) {
    .slogan-section {
        padding: var(--spacing-container-mobile) 0;
    }
}

.slogan-text {
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slogan-sub {
    font-size: 1rem;
    letter-spacing: 0.2rem;
    color: var(--color-accent-orange);
    opacity: 0.8;
}

/* Product Preview */
.new-products {
    padding: var(--spacing-container) 0;
    background: var(--color-rock-gray);
}

@media (max-width: 768px) {
    .new-products {
        padding: var(--spacing-container-mobile) 0;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.btn-text {
    color: var(--color-accent-blue);
    font-weight: bold;
    letter-spacing: 1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--color-accent-blue);
}

/* 移动端触摸反馈 */
@media (max-width: 768px) {
    .product-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .btn-text:active {
        opacity: 0.7;
    }
    
    /* 移除移动端的hover效果，使用active代替 */
    .product-card:hover {
        transform: none;
    }
}

.product-image-placeholder {
    height: 300px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-cold-grey);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    color: var(--color-cold-grey);
    font-size: 0.9rem;
}
