/*
Theme Name: Infitech Networking Solution
Theme URI: https://infi-tech.com.my
Author: Infitech Team
Description: Custom WordPress Theme for Infitech Networking Solution.
Version: 1.0
Text Domain: infitech
*/
@charset "UTF-8";

/* 全局强制重置：杀掉所有默认蓝色链接和下划线 */
* { box-sizing: border-box; margin: 0; padding: 0; text-decoration: none !important; list-style: none !important; }
a { color: inherit !important; text-decoration: none !important; }

:root {
    --neon: #73D3F1;       /* 使用你指定的天青蓝  */
    --bg-dark: #ffffff;    /* 背景改为纯白  */
    --card-dark: #f8fafc;  /* 卡片改为浅灰  */
    --text-grey: #64748b;  /* 辅助文字颜色  */
}

body { background: var(--bg-dark); color: #1a202c; font-family: 'Inter', sans-serif; padding-top: 100px; overflow-x: hidden; line-height: 1.6; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* NAVBAR (极致液态玻璃特效)  */
.navbar { 
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%); 
    width: 90%; max-width: 1100px; height: 65px; z-index: 10000;
    border-radius: 50px;
    
    /* 👇 核心液态玻璃参数 👇 */
    background: rgba(255, 255, 255, 0.25) !important; /* 超低透明度，让背后的东西透出来 */
    backdrop-filter: blur(24px) saturate(180%) !important; /* 极强烈的毛玻璃模糊 + 增加透过去颜色的鲜艳度 */
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important; /* 兼容苹果手机/Mac的Safari浏览器 */
    border: 1px solid rgba(255, 255, 255, 0.7) !important; /* 模拟玻璃边缘的白色反光高光 */
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.06), /* 悬浮在空中的柔和阴影 */
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important; /* 玻璃内部顶端的一丝内发光，增加厚度感 */
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; padding: 0 35px; }
.logo { font-size: 22px; font-weight: 900; color: #1a202c !important; letter-spacing: 1px; }
.logo span { color: var(--neon); }

.nav-links { display: flex !important; align-items: center; gap: 5px; height: 100%; }
.nav-links li { height: 100%; display: flex; align-items: center; position: relative; }
.nav-links a { color: var(--text-grey) !important; font-size: 13px; font-weight: 800; padding: 8px 16px; border-radius: 50px; transition: 0.3s; }

/* NAVBAR 当前页面高亮特效  */
.nav-links a.active { color: var(--neon) !important; text-shadow: none; }
.nav-links a:hover { color: var(--neon) !important; background: rgba(115, 211, 241, 0.1); }

/* 下拉菜单隔离 */
.has-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; }

/* 核心内容区 */
.hero { text-align: center; padding: 100px 0 80px; }
.hero h1 { font-size: clamp(36px, 7vw, 70px); font-weight: 900; letter-spacing: -1px; line-height: 1.1; color: #1a202c; }
.hero h1 span { color: var(--neon); -webkit-text-stroke: 0; }
.hero p { color: var(--text-grey); max-width: 600px; margin: 20px auto; font-size: 18px; }

.btn-primary { 
    display: inline-block; margin-top: 30px; padding: 16px 40px; 
    background: var(--neon); color: #fff !important; border: none; 
    font-weight: 800; border-radius: 5px; transition: 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(115, 211, 241, 0.3); }

.mission-flex { display: flex; align-items: center; gap: 60px; padding: 60px; background: var(--card-dark); border-left: 4px solid var(--neon); border-radius: 10px; margin: 60px 0; }
.mission-img img { width: 100%; border-radius: 8px; filter: none; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.mission-text p { color: var(--text-grey); }

/* 项目卡片 */
.project-card { background: #ffffff; border: 1px solid rgba(0,0,0,0.05); border-radius: 12px; overflow: hidden; transition: 0.4s; }
.swiper-slide:hover .project-card { transform: translateY(-8px); border-color: var(--neon); box-shadow: 0 10px 30px rgba(115,211,241,0.1); }
.slide-img { width: 100% !important; height: 260px !important; object-fit: cover !important; display: block; filter: none; transition: 0.4s; }
.swiper-slide:hover .slide-img { filter: none; }
.project-info h3 { padding: 25px !important; font-size: 18px !important; font-weight: 800 !important; color: #1a202c !important; text-align: center; }

/* FOOTER (绝对强制修复丑蓝色链接)  */
.tech-footer { background: #f8fafc; padding: 100px 0 40px; margin-top: 100px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.f-logo { font-size: 24px; font-weight: 900; color: #1a202c !important; margin-bottom: 20px; display: block; }
.f-logo span { color: var(--neon); }
.footer-h { color: #1a202c; font-size: 14px; font-weight: 900; margin-bottom: 25px; letter-spacing: 1px; }
.footer-col p { color: var(--text-grey); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: var(--text-grey) !important; font-size: 14px; transition: 0.3s; }
.footer-col a:hover { color: var(--neon) !important; }

.footer-bottom { border-top: 1px solid rgba(0,0,0,0.05); margin-top: 60px; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-grey); }

/* 强制 FB/IG/WA 颜色 */
.social-links a { color: var(--neon) !important; font-weight: 800; font-size: 14px; margin: 0 5px; transition: 0.3s; text-decoration: none !important; }
.social-links a:hover { color: #1a202c !important; }

/* 移动端适配 ( 针对 Celcom 风格和排版乱象的绝对修复 ) */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 22px; height: 2px; background: var(--neon); border-radius: 2px; }

@media (max-width: 991px) {
    .hamburger { display: flex; }
    /* 手机端导航栏变全宽 */
    .navbar { width: 100% !important; border-radius: 0 !important; top: 0 !important; left: 0 !important; transform: none !important; height: 70px !important; background: #ffffff !important; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .nav-container { padding: 0 20px; }

    /* Celcom 风格菜单：100%全宽，纯白实心背景，直接遮住底部文字  */
    .nav-links { 
        position: fixed !important; top: 70px !important; left: 0 !important; width: 100% !important; 
        height: 100vh !important; background: #ffffff !important; border-radius: 0 !important; border: none !important;
        flex-direction: column !important; padding: 0 !important; display: none !important; 
        box-shadow: none !important; z-index: 999999 !important; overflow-y: auto;
    }
    .nav-links.active { display: flex !important; }

    /* 菜单项：一行一个，带底部分割线 */
    .nav-links li { 
        width: 100% !important; height: auto !important; border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
        display: flex !important; flex-direction: column !important; justify-content: flex-start !important; align-items: stretch !important;
    }
    .nav-links a { 
        width: 100% !important; text-align: left !important; padding: 20px 25px !important; 
        font-size: 16px !important; color: #1a202c !important; border-radius: 0 !important; font-weight: 800 !important; 
    }

    /* 手机端二级菜单：浅灰底色，缩进对齐 */
    .has-dropdown.open .sub-menu { 
        display: block !important; position: static !important; transform: none !important; 
        width: 100% !important; margin: 0 !important; border: none !important; 
        background: #f8fafc !important; padding: 0 !important;
    }
    .has-dropdown.open .sub-menu a { padding-left: 45px !important; font-size: 14px !important; font-weight: 600 !important; opacity: 0.8; }
    
    /* 核心排版锁死：所有并排区块全部变单列  */
    .footer-grid, .feature-grid, .contact-grid, .details-wrapper, .projects-grid, .project-meta-grid { 
        grid-template-columns: 1fr !important; width: 100% !important; gap: 30px !important;
    }
    .mission-flex { flex-direction: column; padding: 30px; text-align: center; }
    .hero { padding-top: 50px; }
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; gap: 20px; text-align: center; } }

/* =====================================
   6. CONTACT PAGE (独立页面样式)
===================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin-bottom: 80px; }
.contact-info-panel, .contact-form-panel { 
    background: #ffffff; 
    border: 1px solid rgba(0,0,0,0.05); 
    padding: 40px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.info-block { margin-bottom: 30px; }
.info-block h3 { color: var(--neon); font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; font-weight: 800; }
.info-block p { color: var(--text-grey); font-size: 15px; }
.map-container { width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid rgba(115, 211, 241, 0.3); margin-top: 20px; }
.map-container iframe { 
    filter: grayscale(100%); 
    display: block; 
    transition: 0.5s;
}
.map-container iframe:hover { filter: none; }

.contact-form-panel h3 { color: #1a202c; font-size: 20px; margin-bottom: 30px; font-weight: 800; border-bottom: 1px solid rgba(115, 211, 241, 0.2); padding-bottom: 15px; }

/* 表单错位锁死：强制 Label 在上，Input 占满 100%  */
.form-group { margin-bottom: 20px; display: flex !important; flex-direction: column !important; align-items: flex-start !important; width: 100% !important; }
.form-group label { color: #1a202c; font-size: 12px; font-weight: 800; margin-bottom: 8px; letter-spacing: 1px; }

.cyber-form input, .cyber-form select, .cyber-form textarea { 
    background: #f8fafc; 
    border: 1px solid rgba(0,0,0,0.1); 
    color: #1a202c; 
    padding: 15px; 
    border-radius: 6px; 
    font-family: 'Inter', sans-serif; 
    font-size: 14px; 
    transition: 0.3s; 
    width: 100% !important;
}
.cyber-form input:focus, .cyber-form select:focus, .cyber-form textarea:focus { 
    outline: none; 
    border-color: var(--neon); 
    box-shadow: 0 0 15px rgba(115,211,241,0.15); 
    background: #ffffff; 
}
.cyber-form select option { background: #ffffff; color: #1a202c; }

@media (max-width: 991px) {
    .contact-info-panel, .contact-form-panel { padding: 30px 20px; }
}

/* =====================================
   7. CYBER TOAST NOTIFICATIONS (原样保留)
===================================== */
.cyber-toast-container { position: fixed; top: 90px; right: 20px; z-index: 999999; display: flex; flex-direction: column; gap: 15px; pointer-events: none; }
.cyber-toast {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(115, 211, 241, 0.3); border-left: 4px solid var(--neon);
    color: #1a202c; padding: 16px 25px; border-radius: 8px; font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateX(120%); opacity: 0; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; align-items: center; gap: 15px; position: relative; overflow: hidden;
}
.cyber-toast.show { transform: translateX(0); opacity: 1; }
.cyber-toast::after { content: ''; position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: var(--neon); animation: toastProgress 3s linear forwards; }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }
.cyber-toast.error { border-left-color: #ff3366; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.cyber-toast.error::after { background: #ff3366; }
.cyber-toast.error .toast-icon { color: #ff3366 !important; }

/* =====================================
   8. FORM VALIDATION EFFECTS (原样保留)
===================================== */
.cyber-form .input-error { border-color: #ff3366 !important; background: #fff5f5 !important; }
@keyframes cyberShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.shake-anim { animation: cyberShake 0.4s ease-in-out; }

/* =====================================
   9. SINGLE PROJECT PAGE (原样保留)
===================================== */
.single-project-page { padding-bottom: 100px; }
.project-hero { text-align: center; padding: 60px 0 40px; }
.cyber-badge { display: inline-block; background: rgba(115, 211, 241, 0.1); color: var(--neon); padding: 6px 15px; border-radius: 50px; font-size: 12px; font-weight: 800; letter-spacing: 2px; margin-bottom: 20px; border: 1px solid rgba(115, 211, 241, 0.2); }
.project-title-wrapper h1 { font-size: clamp(32px, 5vw, 55px); font-weight: 900; margin-bottom: 40px; color: #1a202c; }
.project-cover-image { width: 100%; max-height: 500px; overflow: hidden; border-radius: 20px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.project-cover-image img.img-fluid { width: 100%; height: 100%; object-fit: cover; display: block; filter: none; transition: 0.5s; }
.no-cover-placeholder { background: #f8fafc; height: 300px; display: flex; align-items: center; justify-content: center; color: var(--text-grey); font-weight: 800; letter-spacing: 2px; }
.project-meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 40px auto; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 30px 0; }
.meta-card h4 { color: var(--neon); font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; }
.meta-card p { color: #1a202c; font-size: 16px; font-weight: 600; }
.project-content-area { max-width: 800px; margin: 0 auto 80px; }
.content-wrapper { color: var(--text-grey); font-size: 17px; line-height: 1.8; }
.content-wrapper h2, .content-wrapper h3 { color: #1a202c; margin: 40px 0 20px; font-weight: 800; }
.content-wrapper img { max-width: 100%; height: auto; border-radius: 12px; margin: 30px 0; border: 1px solid rgba(0,0,0,0.05); }
.content-wrapper ul { margin-left: 20px; margin-bottom: 20px; list-style: disc !important; }
.project-cta { margin-top: 60px; }
.cta-box { background: #f8fafc; border: 1px solid var(--neon); padding: 60px 40px; text-align: center; border-radius: 20px; }
.cta-box h2 { color: #1a202c; font-size: 28px; font-weight: 900; margin-bottom: 15px; }
.cta-box p { color: var(--text-grey); font-size: 16px; margin-bottom: 30px; }

/* =====================================
   10. ALL PROJECTS PAGE (原样保留)
===================================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 60px; }
.project-grid-item { transition: 0.4s; }
.project-grid-item:hover { transform: translateY(-10px); }
.cyber-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.cyber-pagination .page-numbers { display: inline-block; padding: 10px 20px; background: #f8fafc; color: var(--text-grey); border: 1px solid rgba(0,0,0,0.05); border-radius: 8px; font-weight: 800; font-size: 13px; transition: 0.3s; }
.cyber-pagination .page-numbers:hover, .cyber-pagination .current { background: rgba(115,211,241,0.1); color: var(--neon); border-color: var(--neon); }

/* =====================================
   11. SERVICE PAGE (原样保留)
===================================== */
.service-page { background: var(--bg-dark); text-align: center; } 
.service-hero { 
    position: relative; padding: 100px 0 60px; overflow: hidden;
    background: linear-gradient(to bottom, rgba(115,211,241,0.05), transparent);
}
.hero-glow { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(circle, rgba(115,211,241,0.1) 0%, transparent 70%); z-index: 0; pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { margin-top: 15px; font-size: 48px; font-weight: 900; color: #1a202c; }
.hero-content p { color: var(--text-grey); max-width: 600px; margin: 20px auto; font-size: 18px; }

.feature-grid { 
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; 
    margin: 40px auto; text-align: left;
}
.feature-card { background: #ffffff !important; border: 1px solid rgba(0,0,0,0.05) !important; padding: 40px; border-radius: 15px; transition: 0.4s; }
.feature-card:hover { border-color: var(--neon); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(115,211,241,0.1); }
.f-icon { color: var(--neon); font-size: 24px; font-weight: 900; margin-bottom: 20px; opacity: 0.8; font-family: 'Space Mono', monospace; }

.service-details { padding: 80px 0; text-align: left; }
.details-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.details-text h2 { font-size: 32px; color: #1a202c; margin-bottom: 20px; }
.details-visual { border: 1px solid rgba(115,211,241,0.2); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.05); }
.details-visual img { width: 100%; display: block; }

.service-cta { margin-bottom: 100px; }
.cta-inner { background: #f8fafc; border: 1px solid var(--neon); padding: 60px; border-radius: 25px; text-align: center; }

/* =====================================
   12. 动态菜单 & 下拉菜单修复 (原样保留，加居中)
===================================== */
/* 修复：关闭 WP 默认常亮，权限交给 JS 的 active */
.nav-links .current-menu-item > a {
    color: var(--text-grey) !important;
    background: transparent !important;
}
.nav-links > li.current-menu-item > a::after {
    display: none !important;
}
.nav-links a.active, .nav-links a.jx-active {
    color: var(--neon) !important;
    background: rgba(115, 211, 241, 0.1) !important;
}
.nav-links a.active::after, .nav-links a.jx-active::after {
    content: ''; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: var(--neon); border-radius: 50%;
}

.nav-links .menu-item-has-children { position: relative; }
.nav-links .menu-item-has-children:hover > .sub-menu { display: block !important; }

/* 电脑端下拉菜单对齐 */
.nav-links .sub-menu { 
    display: none !important; position: absolute; top: 60px; left: 50%; transform: translateX(-50%);
    background: #ffffff !important; 
    border: 1px solid rgba(115, 211, 241, 0.3) !important; 
    border-radius: 12px; min-width: 220px; padding: 10px !important; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important; z-index: 1001;
    text-align: center;
}

.nav-links .sub-menu li { width: 100%; margin: 0 !important; padding: 0 !important; }

.nav-links .sub-menu a { 
    display: block !important; padding: 12px 0 !important; width: 100% !important;
    color: #1a202c !important; text-align: center !important; 
    border-radius: 8px; background: transparent !important; transition: 0.3s; 
}
.nav-links .sub-menu .current-menu-item a::after { display: none !important; }
.nav-links .sub-menu a:hover { background: rgba(115, 211, 241, 0.05) !important; color: var(--neon) !important; }

/* 针对产品展示页的细节加固  */
.feature-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 电脑端 3 列 */
    gap: 30px !important;
    margin-top: 50px !important;
}

.feature-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 15px !important;
    padding: 40px !important;
    transition: 0.3s !important;
    text-align: left !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02) !important;
}

.feature-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--neon) !important;
}

/* 截图里的 01, 02 这种大数字样式 */
.feature-card .f-icon {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: var(--neon) !important; /* 天青蓝数字 */
    opacity: 0.5 !important;
    margin-bottom: 20px !important;
    font-family: 'Space Mono', monospace;
}

.feature-card h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    margin-bottom: 15px !important;
}

.feature-card p {
    color: var(--text-grey) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* 手机端自动变单列，防止排版乱  */
@media (max-width: 991px) {
    .feature-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 产品详情内页布局锁  */
.single-products .content-wrapper {
    max-width: 1100px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* 左边文字宽点，右边放图 */
    gap: 60px;
    align-items: center;
}

.single-products .product-content {
    text-align: left;
}

.single-products .product-content h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #1a202c;
}

.single-products .product-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-grey);
    margin-bottom: 30px;
}

.single-products .product-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(115, 211, 241, 0.1);
    border: 1px solid rgba(115, 211, 241, 0.2);
}

/* 手机端详情页自动变单列 */
@media (max-width: 991px) {
    .single-products .content-wrapper {
        grid-template-columns: 1fr !important;
        padding: 0 20px;
        text-align: center;
    }
    .single-products .product-visual {
        order: -1; /* 图片排到上面 */
    }
}

/* =====================================
   产品详情页专业“整容”样式
===================================== */
.single-product-page {
    padding: 100px 0;
    background: #ffffff;
}

.product-hero-flex {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* 黄金比例分栏 */
    gap: 80px;
    align-items: center;
}

/* 左侧文字样式 */
.product-main-title {
    font-size: 55px;
    font-weight: 900;
    color: #1a202c;
    margin: 20px 0 30px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.product-description-content {
    font-size: 18px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 40px;
}

.product-description-content p {
    margin-bottom: 20px;
}

.cta-note {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 15px;
    font-weight: 600;
}

/* 右侧图片样式（带投影和天青蓝边框） */
.visual-inner {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
    border: 1px solid rgba(115, 211, 241, 0.2);
    transition: 0.5s;
}

.visual-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 50px 100px rgba(115, 211, 241, 0.15);
}

.featured-product-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 手机端适配：文字在上，图在下，全部居中  */
@media (max-width: 991px) {
    .product-hero-flex {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 50px;
    }
    
    .product-main-title {
        font-size: 36px;
    }
    
    .product-info-column {
        order: 1; /* 字变到下面 */
    }
    
    .product-visual-column {
        order: -1; /* 图变到上面 */
    }
    
    .product-cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================================
    极致精修补丁：只增加，不删除 
   ============================================================ */
/* 1. 产品详情页：左文右图分栏效果 */
.single-product-page { 
    padding: 120px 0; 
    background: radial-gradient(circle at top right, rgba(115, 211, 241, 0.05), transparent 45%); 
}

.product-hero-flex { 
    display: grid !important; 
    grid-template-columns: 1.15fr 0.85fr !important; 
    gap: 100px; 
    align-items: center; 
}

.product-main-title { 
    font-size: clamp(40px, 6vw, 70px) !important; 
    font-weight: 900 !important; 
    color: #000 !important; 
    letter-spacing: -3px !important; 
    line-height: 1.0 !important;
    margin-bottom: 30px !important;
}

.cyber-badge { 
    display: inline-block; background: rgba(115, 211, 241, 0.15); color: var(--neon); 
    padding: 8px 20px; border-radius: 4px; font-size: 10px; font-weight: 900; 
    letter-spacing: 3px; margin-bottom: 35px; border: 1px solid var(--neon); 
    text-transform: uppercase;
}

.visual-inner { 
    border-radius: 35px; overflow: hidden; 
    box-shadow: 0 60px 110px -25px rgba(0,0,0,0.18); 
    border: 1px solid rgba(115, 211, 241, 0.25); 
    transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.visual-inner:hover { transform: translateY(-15px) rotate(1deg); }

/* 2. 手机端物理隔绝：实心白底防止重叠 */
@media (max-width: 991px) {
    .nav-links { 
        background: #ffffff !important; 
        z-index: 999999 !important; 
        box-shadow: 0 40px 60px rgba(0,0,0,0.1) !important;
    }
    .product-hero-flex { grid-template-columns: 1fr !important; gap: 50px; text-align: center; }
    .product-visual-column { order: -1; } /* 手机端图在上 */
}

/* 全局平滑滚动补丁 */
html {
    scroll-behavior: smooth !important;
}

/* 抵消固定导航栏的高度，防止标题被挡住 */
#home, #about, #projects, #contact, #mission {
    scroll-margin-top: 100px;
}

/* ==========================================
   📱 手机端专属适配 (修复 Logo 尴尬断行问题)
   ========================================== */
@media screen and (max-width: 768px) {
    /* 强制 Logo 保持在一行，绝对不准劈开单词 */
    .logo, .f-logo, .site-logo, header a {
        font-size: 16px !important;       /* 字号稍微缩小，确保能塞进屏幕 */
        white-space: nowrap !important;   /* 核心绝招：强行在一行显示，不准换行 */
        word-break: normal !important;    /* 取消无情的单词切断 */
        letter-spacing: -0.5px !important;/* 字母稍微收紧一点点 */
    }
}

/* ==========================================
   📱 手机端下拉菜单：彻底根除溢出 Bug
   ========================================== */
@media (max-width: 991px) {
    /* 1. 将菜单从 fixed 改为 absolute，让它随网页自然滚动 */
    .nav-links { 
        position: absolute !important; /* 不再是 fixed 全屏 */
        top: 70px !important; 
        left: 0 !important; 
        width: 100% !important; 
        height: auto !important; /* 关键：高度不再锁死，让内容决定高度 */
        background: #ffffff !important; 
        flex-direction: column !important; 
        padding: 0 !important; 
        display: none !important; 
        z-index: 999999 !important;
        /* 移除 overflow-y，让网页原生的滚动机制去处理 */
    }
    
    .nav-links.active { display: flex !important; }

    /* 2. 手风琴菜单展开逻辑 */
    .nav-links .sub-menu { 
        display: none !important; 
        position: static !important; 
        transform: none !important; 
        width: 100% !important; 
        background: #f8fafc !important; 
        padding: 0 !important;
    }

    /* 确保菜单项可以点击 */
    .nav-links li { 
        width: 100% !important; 
        border-bottom: 1px solid rgba(0,0,0,0.03) !important; 
    }
    
    /* 3. 这里的 padding 留足，防止被底部 Safari 栏挡住 */
    .nav-links li:last-child { padding-bottom: 50px; } 

    /* 4. 重点：当菜单打开时，强行禁止背景页面的滚动，防止“双重滑动”Bug */
    body.menu-open { 
        overflow: hidden !important; 
        height: 100% !important; 
    }
}