:root { --purple: #B026FF; --bg: #0a0a0a; --card-bg: #111; --text: #eee; --dim: #888; }
body { background: var(--bg); color: var(--text); font-family: sans-serif; margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
a { text-decoration: none !important; color: inherit; transition: 0.3s; }

/* 导航 */
nav { display: flex; justify-content: space-between; padding: 15px 5%; border-bottom: 1px solid #222; position: sticky; top: 0; background: rgba(10,10,10,0.95); z-index: 1000; backdrop-filter: blur(10px); }
.nav-logo-img { 
    height: 60px; 
    width: auto; 
    object-fit: contain; 
}
.nav-links a { color: var(--dim); margin-left: 25px; font-size: 13px; text-transform: uppercase; }
.nav-links a:hover { color: var(--purple); text-shadow: 0 0 8px var(--purple); }

/* 通用页脚 */
.brand-footer { background: #050505; border-top: 1px solid #222; padding: 60px 10% 30px; margin-top: 80px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 25px; text-transform: uppercase; font-size: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 14px; color: var(--dim); }
.footer-col a:hover { color: var(--purple); padding-left: 5px; }
.footer-bottom { border-top: 1px solid #111; padding-top: 30px; text-align: center; color: #444; font-size: 12px; margin-top: 40px; }

@media (max-width: 900px) { .footer-container { grid-template-columns: 1fr 1fr; } }
/* --- 通用网格背景样式 --- */
.bg-carbon {
    background-color: #131313;
    background-image:
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%, transparent 75%, #0a0a0a 75%, #0a0a0a),
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%, transparent 75%, #0a0a0a 75%, #0a0a0a);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    min-height: 100vh;
}
.bg-stripes {
    background-color: #111;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.03) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        transparent 1px,
        transparent 15px /* 调整线条间距 */
    );
    min-height: 100vh;
}
.bg-dots {
    background-color: #111;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px; /* 调整点的疏密 */
    min-height: 100vh;
}
.bg-speed-twill {
    background-color: #0e0e0e; /* 深灰底色 */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 2px, /* 亮线宽度 */
        transparent 2px,
        transparent 8px /* 间距宽度 */
    );
    min-height: 100vh;
}
/* --- CSS 模拟矩形编织 (Geometric Weave) --- */
.bg-carbon-weave {
    background-color: #111; /* 缝隙颜色 */
    
    /* 利用两个错位的渐变层，制造出方块穿插的效果 */
    background-image: 
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a),
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%, transparent 75%, #1a1a1a 75%, #1a1a1a);
        
    /* 这是控制方块位置的关键 */
    background-position: 0 0, 10px 10px;
    
    /* 这是控制方块大小的关键 */
    background-size: 20px 20px;
    
    min-height: 100vh;
}
/* =========================================
   鼠标紫色轨迹特效样式
   ========================================= */

/* 轨迹点的基本样式 */
.mouse-trail-dot {
    position: absolute;
    /* 使用您网站定义的紫色变量，如果没定义则使用默认紫色 */
    background-color: var(--purple, #b026ff); 
    width: 12px;  /* 圆点起始大小 */
    height: 12px; /* 圆点起始大小 */
    border-radius: 50%; /* 变成圆形 */
    
    /* 关键属性：让鼠标事件穿透圆点 */
    /* 如果不加这个，你的鼠标就会点在这个点上，导致无法点击网页上的链接或按钮 */
    pointer-events: none; 
    
    /* 确保它浮在最上层，但不遮挡header/footer (根据需要调整z-index) */
    z-index: 9999; 

    /* 居中定位修正，让圆心对准鼠标尖端 */
    transform: translate(-50%, -50%); 
    
    /* 应用消失动画 */
    /* 0.8s 是轨迹持续时间，forwards 让动画停在最后状态 */
    animation: trailFadeOut 0.8s ease-out forwards;
}

/* 定义消失的动画关键帧 */
@keyframes trailFadeOut {
    0% {
        opacity: 0.7; /* 初始透明度，稍微透明一点不那么刺眼 */
        transform: translate(-50%, -50%) scale(1); /* 初始大小 */
    }
    100% {
        opacity: 0;   /* 最后完全透明 */
        transform: translate(-50%, -50%) scale(0.2); /* 最后缩小到0.2倍 */
    }
}
/* =========================================
   移动端深度适配 (Mobile Responsive Fixes) - 修复版 V2
   ========================================= */
@media (max-width: 900px) {

    /* --- 1. 修复顶部导航栏 (Header) --- */
    nav {
        flex-direction: column; /* 上下排列 */
        align-items: center;    /* 关键：让内容水平居中，防止被拉伸变形 */
        padding: 15px 0;
        background: rgba(10,10,10,0.98);
    }

    .nav-logo-img {
        /* 修复顶部 Logo */
        height: auto !important; /* 强制取消固定高度 */
        width: 120px;            /* 设定一个合适的宽度 */
        max-width: 80%;          /* 防止超出屏幕 */
        object-fit: contain;     /* 保持比例，绝不拉伸 */
        margin-bottom: 15px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;         /* 允许换行，防止文字竖排 */
        gap: 15px 20px;          /* 行间距和列间距 */
    }

    .nav-links a {
        margin-left: 0;
        font-size: 13px;
        white-space: nowrap;     /* 防止文字换行变竖排 */
    }


    /* --- 2. 修复首页大 Logo (竹竿问题核心) --- */
    .hero {
        height: auto;
        padding: 100px 20px;
        min-height: 80vh;
    }

    .hero-logo {
        /* 核心修复代码 */
        height: auto !important;  /* 关键：高度自动，随宽度缩放 */
        width: 60%;               /* 宽度占屏幕 60% */
        max-width: 250px;         /* 最大不超过 250px */
        object-fit: contain;      /* 保持图片比例 */
        margin-bottom: 30px;
    }

    /* 修复文字排版 */
    .hero-sub {
        font-size: 16px;
        letter-spacing: 2px;
        white-space: normal;      /* 允许正常换行 */
    }

    .hero-intro {
        font-size: 14px;
        padding: 0 10px;
        text-align: justify;      /* 两端对齐更整齐 */
    }


    /* --- 3. 其他页面适配 --- */
    .hero-big-text {
        font-size: 40px !important;
        line-height: 1.2;
    }
    
    /* 针对关于我们页面的中文大标题 */
    h1.hero-big-text[style*="font-size: 100px"] {
        font-size: 50px !important; 
    }

    .category-container, .model-list, .support-grid, .matrix, .page-header {
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .cat-grid, .model-list, .support-grid, .matrix {
        grid-template-columns: 1fr; /* 单列布局 */
    }

    .big-title {
        font-size: 36px;
    }
    
    .detail-hero {
        flex-direction: column; /* 详情页改为上下布局 */
        padding: 40px 5%;
        gap: 30px;
    }
    .hero-left {
        height: 300px; /* 详情页图片高度减小 */
        width: 100%;
    }
    
    /* 参数卡片适配 */
    .spec-card {
        width: 100%;
        padding: 20px;
    }
    .sc-grid {
        grid-template-columns: 1fr; /* 参数单列显示 */
        gap: 20px;
    }
    
    /* 页脚适配 */
    .footer-container {
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .footer-col {
        margin-bottom: 30px;
    }
}