:root {
    --text-main: #1A202C;
    --text-light: #4A5568;
    
    /* Themes */
    --hero-bg: #FFFFFF;
    
    --jiapu-bg: #FAF3E0;
    --jiapu-text: #8B1C1C;
    --jiapu-tag: rgba(139, 28, 28, 0.1);
    
    --xinrushui-bg: #0B132B;
    --xinrushui-text: #F8FAFC;
    --xinrushui-tag: rgba(248, 250, 252, 0.15);
    
    --kura-bg: #FFF6C5;
    --kura-text: #4A4A4A;
    --kura-tag: rgba(217, 119, 6, 0.15);
    --kura-accent: #D97706;
}

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

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    color: var(--text-main);
    background-color: var(--hero-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.container.reverse {
    flex-direction: row-reverse;
}

/* Base Typography */
h1, h2, h3 { line-height: 1.2; }

/* Themes & Sections */
.product-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.theme-hero {
    background: url('product-images/hero-bg.png') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    position: relative;
}

.theme-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

.theme-jiapu {
    background: var(--jiapu-bg);
    color: var(--jiapu-text);
}
.theme-jiapu .section-tag { background: var(--jiapu-tag); color: var(--jiapu-text); }
.theme-jiapu .product-desc { color: rgba(139, 28, 28, 0.8); }

.theme-xinrushui {
    background: var(--xinrushui-bg);
    color: var(--xinrushui-text);
}
.theme-xinrushui .section-tag { background: var(--xinrushui-tag); color: var(--xinrushui-text); }
.theme-xinrushui .product-desc { color: rgba(248, 250, 252, 0.7); }
.theme-xinrushui .product-slogan { color: #A0AEC0; }

.theme-kura {
    background: var(--kura-bg);
    color: var(--kura-text);
}
.theme-kura .section-tag { background: var(--kura-tag); color: var(--kura-accent); }
.theme-kura .product-desc { color: rgba(74, 74, 74, 0.8); }
.theme-kura .product-slogan { color: var(--kura-accent); }


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2; /* 浮于毛玻璃层之上 */
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.logo-svg {
    width: 40px;
    height: 40px;
    animation: slowRotate 30s linear infinite;
}
@keyframes slowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.header-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: #EDF2F7;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 10px;
    margin-top: 40px; /* 为了弥补顶部被导航栏占据的空间 */
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}



.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #EDF2F7;
    margin-bottom: 40px; /* 拉开副标题和卡片的距离 */
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Hero Products Intro */
.hero-products-intro {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10;
}

.intro-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 30px;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.intro-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff; /* 给没有圆角的透明logo加个漂亮的白色打底 */
    padding: 2px;
}

.intro-text {
    text-align: left;
}

.intro-text h4 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.intro-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.scroll-indicator {
    margin-top: 50px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover .mouse { opacity: 1; }

.mouse .wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

/* Info Elements */
.product-info {
    flex: 1;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.product-slogan {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.product-desc {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Phone Mockup Gallery */
.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    width: 290px;
    height: 645px; /* 根据实际截图比例(580x1289)调整 */
    box-sizing: content-box; /* 核心修复：确保 width/height 真正等于内部屏幕尺寸，不受 border 挤压 */
    border: 6px solid #222; 
    border-radius: 18px; 
    background: #000; 
    position: relative;
    box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scroll-behavior: smooth;
    background: #fff;
    border-radius: 6px;
}

.screen::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 改回 cover 避免两侧露出白边 */
    object-position: center top; /* 确保图片完全处于正中央并从顶部排列对齐 */
    background-color: #000;
    scroll-snap-align: start;
    -webkit-user-drag: none; 
    filter: blur(0.2px); /* 使用极轻微的物理模糊解决部分屏幕硬件强行锐化的锯齿 */
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(0,0,0,0.6);
    transform: scale(1.3);
}

.theme-xinrushui .dot { background: rgba(255,255,255,0.2); }
.theme-xinrushui .dot.active { background: rgba(255,255,255,0.8); }

/* Footer */
.theme-footer {
    background: #111;
    color: #fff;
}

.footer .container {
    flex-direction: column;
    padding: 60px 40px;
    gap: 20px;
    text-align: center;
}

.footer-title {
    font-size: 2rem;
}

.footer p { color: #888; }

.contact-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-qr {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-qr:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-section .contact-text {
    font-size: 0.9rem;
    color: #bbb;
    letter-spacing: 1px;
    margin: 0;
}

.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; width: 100%; font-size: 0.9rem; }

/* Smooth Reveal Animations */
.reveal-left, .reveal-right, .reveal-item {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

    .reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-item { transform: translateY(30px); }

.reveal-container.active .reveal-left,
.reveal-container.active .reveal-right,
.reveal-container.active .reveal-item {
    opacity: 1;
    transform: translate(0);
}

/* Slightly delay the right items (e.g. phones sliding in after text) */
.reveal-container.active .reveal-right { transition-delay: 0.2s; }

/* Responsive Media Queries */
@media (max-width: 968px) {
    .header-nav { display: none; } /* 移动端隐藏顶部导航以求简洁 */
    .container, .container.reverse {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .product-section { min-height: auto; padding: 60px 0; }
    .hero-title { font-size: 3.5rem; }
    
    .reveal-left, .reveal-right { transform: translateY(40px); } /* Bottom slide up on mobile instead of sides */
}

@media (max-width: 600px) {
    .header-container { padding: 15px 20px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.3rem; margin-bottom: 20px; }
    .intro-card { width: 100%; padding: 12px 20px; }
    .hero-products-intro { gap: 10px; margin-top: 10px; }
    .scroll-indicator { margin-top: 30px; }
    .product-title { font-size: 2.5rem; }
    .phone-mockup { width: 280px; height: 622px; border-width: 10px; } /* 保持 580x1289 比例 */
}
