/* style.css - ZZFG Final Fixed Version (Menu Bug Fix) */

/* =========================================
   1. 全局设置 (Global Settings)
   ========================================= */
:root {
    --primary: #0071e3;          
    --primary-hover: #0077ed;    
    --text-main: #1d1d1f;        
    --text-light: #86868b;       
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-dark: #111111;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
}

html { overflow-y: scroll; scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    color: var(--text-main); 
    line-height: 1.8; 
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }

.container { 
    width: 90%;          
    max-width: 1440px;   
    margin: 0 auto;      
    padding: 0;          
}

/* =========================================
   2. 动画定义 (Keyframes)
   ========================================= */
@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes flowLine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes textFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* =========================================
   3. 导航栏 (Navbar)
   ========================================= */
.navbar { 
    position: sticky; top: 0; 
    background: rgba(255,255,255,0.92); 
    backdrop-filter: blur(20px); 
    z-index: 999; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container { 
    display: flex; justify-content: space-between; align-items: center; height: 64px; position: relative;
}

.nav-left { display: flex; align-items: center; z-index: 1001; }

.navbar .logo {
    position: relative; z-index: 1; border-radius: 12px; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; padding: 3px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); background: transparent;
}
.navbar .logo::before {
    content: ''; position: absolute; z-index: -1; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, var(--primary) 25%, #00f0ff 50%, var(--primary) 75%, transparent 100%);
    animation: rotateGradient 2s linear infinite; opacity: 0; transition: opacity 0.3s ease;
}
.navbar .logo img { position: relative; z-index: 2; border-radius: 9px; background: #fff; height: 32px; width: auto; display: block; }
.navbar .logo:hover { transform: scale(1.15); box-shadow: 0 10px 25px rgba(0, 113, 227, 0.25); }
.navbar .logo:hover::before { opacity: 1; }

.story-link {
    margin-left: 10px; padding-left: 10px; border-left: 1px solid #e5e5e5; height: 18px;           
    display: flex; align-items: center; font-size: 12px; font-weight: 700; color: #666;            
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; position: relative;
}
.story-link:hover { color: var(--primary); border-left-color: var(--primary); }

/* Nav Links - Desktop */
.nav-links { 
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; gap: 30px; align-items: center; white-space: nowrap;
}
.nav-links a { font-size: 14px; font-weight: 500; color: #333; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-links a::after, .story-link::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, #00f0ff 50%, var(--primary) 80%, transparent 100%);
    background-size: 200% 100%; opacity: 0; transform: scaleX(0); transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.nav-links a:hover::after, .story-link:hover::after { opacity: 1; transform: scaleX(1); animation: flowLine 2s linear infinite; }
.story-link::after { width: calc(100% - 10px); left: 10px; }

.nav-actions { display: flex; align-items: center; gap: 15px; z-index: 1001; }
.menu-toggle { display: none; cursor: pointer; font-size: 20px; color: #333; }

.btn-sm, .btn-primary { 
    font-size: 14px; font-weight: 500; color: #fff; background: var(--primary); border: 1px solid var(--primary);
    padding: 8px 20px; border-radius: 20px; transition: 0.2s; display: inline-block; cursor: pointer;
}
.btn-sm:hover, .btn-primary:hover { background: var(--primary-hover); }

.back-link { font-size: 13px; color: #666; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.back-link:hover { color: var(--primary); }

/* =========================================
   4. HERO 区域
   ========================================= */
.hero { position: relative; height: 700px; background-color: #f5f5f7; overflow: hidden; display: flex; align-items: center; }
.video-background { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; z-index: 0; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }

.hero-container { position: relative; z-index: 2; width: 90%; max-width: 1440px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: flex-start; }
.hero-text-box { max-width: 480px; color: #1d1d1f; margin-right: auto; }
.hero-tag { color: var(--primary); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.hero h1 { font-size: clamp(40px, 4.5vw, 68px); line-height: 1.1; margin-bottom: 24px; font-weight: 700; color: #1d1d1f; }
.hero p { font-size: 18px; color: #515154; margin-bottom: 35px; font-weight: 400; line-height: 1.6; }
.hero-btns { display: flex; gap: 15px; }

.btn-outline-white { background: transparent; color: #1d1d1f; border: 1px solid #1d1d1f; padding: 12px 30px; font-size: 16px; border-radius: 30px; font-weight: 500; }
.btn-outline-white:hover { background: rgba(0,0,0,0.05); color: #000; border-color: #000; }
.hero-btns .btn-primary { padding: 12px 30px; font-size: 16px; border-radius: 30px; }

/* =========================================
   5. 通用布局
   ========================================= */
.product-section { padding: 100px 0; }
.bg-light { background: var(--bg-light); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.reverse .product-text { order: 1; }

.badge { color: var(--primary); background: rgba(0,113,227,0.1); padding: 5px 12px; border-radius: 15px; font-size: 12px; font-weight: 600; display:inline-block; margin-bottom:15px; }
.product-text h2 { font-size: 42px; font-weight: 700; margin-bottom: 5px; color: var(--text-main); }
.product-text h3 { font-size: 22px; color: var(--text-light); font-weight: 400; margin-bottom: 25px; }
.product-text p { line-height: 1.9; margin-bottom: 30px; }
.feature-list li { margin-bottom: 15px; display: flex; align-items: center; font-size: 16px; color: #424245; }
.feature-list i { color: var(--primary); width: 25px; margin-right: 5px; }
.link-arrow { color: var(--primary); font-weight: 600; display: inline-block; margin-top: 25px; }

.img-hover-zoom { display: block; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.img-hover-zoom:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.img-hover-zoom img { width: 100%; transition: transform 0.6s ease; }
.img-hover-zoom:hover img { transform: scale(1.05); }

.section-header.center { text-align: center; margin-bottom: 60px; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card-light { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--shadow-sm); transition: transform 0.4s ease; }
.card-light:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.highlight-border { border: 1px solid rgba(0,113,227,0.2); }
.card-img-link { display: block; overflow: hidden; height: 320px; background: #f9f9f9; }
.card-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; transform-origin: center bottom; }
.card-light:hover .card-img-link img { transform: scale(1.03) translateY(-5px); }

.card-body { padding: 40px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 24px; margin-bottom: 10px; color: #1d1d1f; }
.card-body .desc { color: #86868b; font-size: 15px; margin-bottom: 25px; flex-grow: 1; }
.card-body ul li { color: #515154; margin-bottom: 8px; font-size: 14px; display: flex; align-items: center; }
.card-body ul li i { color: var(--primary); width: 24px; }
.full-width { width: 100%; display: block; text-align: left; margin-top: 25px; }
.btn-secondary { background: rgba(0,0,0,0.05); color: #1d1d1f; padding: 12px 0; border-radius: 30px; font-weight: 600; font-size: 16px; border: 1px solid rgba(0,0,0,0.1); text-align: center; display: block; }
.btn-secondary:hover { background: rgba(0,0,0,0.1); }
.card-body .btn-primary { display: block; text-align: center; padding: 12px 0; font-size: 16px; border-radius: 30px; width: 100%; }

/* =========================================
   6. 品牌故事
   ========================================= */
.brand-story-section { padding: 100px 0; background: linear-gradient(135deg, #050a10 0%, #001524 100%); color: #fff; position: relative; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 80px; align-items: start; position: relative; z-index: 2; }
.story-tag { color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.brand-story-section h2 { 
    font-size: 56px; line-height: 1.1; font-weight: 800; margin-bottom: 25px; 
    background: linear-gradient(120deg, #ffffff 0%, #ffffff 40%, #00f0ff 50%, #0071e3 60%, #ffffff 80%, #ffffff 100%);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: textFlow 5s linear infinite;
}
.story-line { width: 60px; height: 4px; background: var(--primary); border-radius: 2px; }
.story-image-container { margin-top: 20px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.story-image-container img { width: 100%; filter: brightness(0.9); transition: 0.5s; }
.story-image-container:hover img { filter: brightness(1); transform: scale(1.02); }
.story-text h3 { font-size: 24px; margin-bottom: 30px; font-weight: 400; color: #fff; opacity: 0.9; }
.story-body p { color: #a1a1a6; font-size: 17px; margin-bottom: 25px; line-height: 2.0; }
.story-quote {
    margin: 35px 0; padding: 30px; background: rgba(255,255,255,0.05); border-left: 4px solid #a4e626; backdrop-filter: blur(10px);
    font-size: 26px; font-weight: 700; line-height: 1.6;
    background: linear-gradient(120deg, #ffffff 0%, #00f0ff 50%, #0071e3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.story-en-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #a1a1a6; font-family: monospace; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.mission-text { flex: 1; }
.mission-logo-wrap {
    position: relative; z-index: 1; width: 66px; height: 66px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.mission-logo-wrap::before {
    content: ''; position: absolute; z-index: -1; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent 0%, var(--primary) 20%, #00f0ff 50%, var(--primary) 80%, transparent 100%); animation: rotateGradient 10s linear infinite;
}
.mission-logo-wrap img { position: relative; z-index: 2; width: 60px; height: 60px; border-radius: 6px; background: #fff; }

/* =========================================
   7. 详情页 & Footer
   ========================================= */
.product-header { padding: 80px 0; display: flex; align-items: center; min-height: 500px; border-bottom: 1px solid #f0f0f0; }
.product-header.light-mode { background: #fff; color: #333; }
.product-header.dark-mode { background: #111; color: #fff; }
.product-header .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.ph-text h1 { font-size: 48px; line-height: 1.1; margin-bottom: 10px; font-weight: 700; }
.ph-text p { font-size: 18px; line-height: 1.8; margin-bottom: 30px; opacity: 0.9; }
.price-tag { display: inline-block; border: 1px solid var(--primary); color: var(--primary); padding: 5px 15px; border-radius: 20px; margin-top: 10px; font-weight: 600; }

.video-section { padding: 80px 0; background: #fafafa; text-align: center; }
.section-title h2 { font-size: 32px; margin-bottom: 40px; font-weight: 600; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.video-item video { width: 100%; border-radius: 16px; margin-bottom: 15px; box-shadow: var(--shadow-sm); }
.features-detail { padding: 100px 0; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 100px; align-items: center; }
.feature-row.reverse .f-text { order: 1; }
.f-text h3 { font-size: 32px; margin-bottom: 20px; color: var(--text-main); }
.f-text p { font-size: 17px; color: #666; line-height: 1.8; }
.f-img img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-md); }
.specs-section { padding: 80px 0; background: #f9f9f9; }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; background: #fff; padding: 40px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.spec-item span { display: block; color: #888; font-size: 12px; text-transform: uppercase; margin-bottom: 5px; }
.spec-item strong { font-size: 18px; color: #333; font-weight: 600; }

footer { background: #f5f5f7; padding: 60px 0 30px; margin-top: auto; border-top: 1px solid #e5e5e5; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 60px !important; margin-bottom: 15px; border-radius: 12px; transition: 0.3s; }
.footer-logo:hover { transform: scale(1.05); box-shadow: 0 5px 25px rgba(0,0,0,0.2); }
.footer-col h4 { font-size: 14px; color: #1d1d1f; font-weight: 600; margin-bottom: 15px; }
.footer-col a { display: block; margin-bottom: 8px; color: #515154; font-size: 13px; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-col p { color: #86868b; font-size: 12px; line-height: 1.8; margin-bottom: 10px; }
.simple-footer { text-align: center; color: #888; padding: 30px 0; }
.footer-hub-intro h5 { color: #222; font-size: 0.9rem; font-weight: 800; margin-bottom: 8px; margin-top: 15px; }
.footer-hub-intro p { color: #666; font-size: 0.85rem; margin-bottom: 15px; }
.hub-bottom-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #ddd; padding-top: 12px; }
.download-link { color: #000; font-size: 0.9rem; font-weight: 700; }
.download-link:hover { color: var(--primary); }
.os-support-icons { color: #888; font-size: 1.3rem; }
.os-support-icons i { margin-left: 12px; cursor: pointer; transition: 0.3s; }
.os-support-icons i:hover { color: #000; transform: translateY(-3px); }

/* =========================================
   8. MOBILE RESPONSIVE (Fixes)
   ========================================= */
@media screen and (max-width: 768px) {
    
    .navbar .container { padding: 0 20px; }
    
    /* 核心修复：添加 transform: none */
    .nav-links {
        display: none; 
        position: fixed; 
        top: 64px; left: 0; 
        width: 100%; height: auto;
        background-color: #ffffff; 
        flex-direction: column; 
        padding: 10px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
        border-top: 1px solid #eee;
        z-index: 10000;
        transform: none; /* 关键！清除PC端的-50%位移 */
    }

    .nav-links.active { display: flex; }

    .nav-links li { width: 100%; text-align: center; }

    .nav-links a {
        display: block; padding: 15px 0;
        font-size: 16px; color: #333;
        border-bottom: 1px solid #f5f5f7;
    }
    .nav-links a::after { display: none; }
    
    .nav-actions .btn-primary { display: none; }
    .menu-toggle { display: block; font-size: 22px; color: #1d1d1f; cursor: pointer; }

    /* Hero Fix */
    .hero { height: auto; display: flex; flex-direction: column; background: #fff; padding: 0; }
    .video-background { position: relative; width: 100%; height: 280px; order: -1; overflow: hidden; }
    .video-background video { width: 100%; height: 100%; object-fit: cover; }
    .hero-container { width: 100%; padding: 40px 24px; order: 1; background: #fff; text-align: center; }
    .hero-text-box { max-width: 100%; margin: 0; color: #1d1d1f; }
    .hero h1 { font-size: 34px; color: #1d1d1f; margin-bottom: 15px; }
    .hero p { color: #666; font-size: 16px; margin-bottom: 30px; }
    .hero-btns { justify-content: center; }
    .btn-outline-white { color: #1d1d1f; border-color: #1d1d1f; }

    /* Layout Stack Fix */
    .product-grid, .product-grid.reverse, .grid-2-col, .story-grid { display: flex; flex-direction: column-reverse; gap: 30px; }
    .feature-row, .feature-row.reverse { display: flex; flex-direction: column-reverse; gap: 30px; margin-bottom: 60px; }
    
    .product-image, .story-visual { width: 100%; max-width: 100%; }
    .container { width: 100%; padding: 0 20px; }
    .product-section, .features-detail { padding: 50px 0; }
    .product-text, .ph-text { text-align: center; padding: 0 10px; }
    .ph-text h1 { font-size: 32px; }
    .product-header .container { display: flex; flex-direction: column-reverse; gap: 20px; }
    .video-grid { display: flex; flex-direction: column; gap: 30px; }
    .specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px; }
    .footer-content { display: flex; flex-direction: column; text-align: left; gap: 40px; }
    .story-en-footer { flex-direction: column-reverse; align-items: flex-start; }
    .shopify-sim-container { justify-content: center; flex-direction: column; }
    .btn-shopify-sim { width: 100%; justify-content: center; }
	
/* =========================================
   SIPO Powered By 标识样式 (带链接版)
   ========================================= */
.sipo-tag {
    display: block;                /* 关键：让链接像段落一样独占一行 */
    font-size: 11px !important;
    color: #999;                   /* 浅灰色 */
    margin-top: 8px;
    text-transform: uppercase;     /* 全大写 */
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.8;
    font-family: monospace;
    transition: all 0.3s ease;
    text-decoration: none;         /* 关键：去掉链接默认的下划线 */
}

/* 鼠标悬停效果 */
.sipo-tag:hover {
    color: var(--primary);         /* 悬停变品牌色 */
    opacity: 1;
    letter-spacing: 2px;           /* 字间距微张动画 */
    text-decoration: none;         /* 确保悬停也没下划线 */
}

/* 手机端微调 */
@media screen and (max-width: 768px) {
    .sipo-tag {
        font-size: 10px !important;
        margin-top: 5px;
    }
}	
}

