/* --- style.css (SolidWorks 离线版 - 视觉霸气优化) --- */

/* 全局变量与重置 */
:root {
    /* 主色调：SolidWorks 工业红渐变 */
    --brand-dark: #b91c1c;  /* 深红 */
    --brand-light: #ef4444; /* 亮红 */
    --brand-gradient: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    
    /* 辅助色 */
    --text-dark: #1f2937;    /* 工业灰文本 */
    --text-gray: #4b5563;
    --bg-base: #f3f4f6;      /* 极淡灰背景 */
    
    /* 阴影 */
    --shadow-sm: 0 4px 6px -1px rgba(185, 28, 28, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(185, 28, 28, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", "Segoe UI", sans-serif; }
body { 
    background-color: var(--bg-base); 
    color: var(--text-dark); 
    overflow-x: hidden; 
    /* 机械感背景光晕 */
    background-image: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(185, 28, 28, 0.05) 0%, transparent 20%);
}
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* SVG 图标通用样式 */
svg { fill: currentColor; vertical-align: middle; display: inline-block; }

/* 1. 顶部导航 */
.header { 
    background: rgba(255, 255, 255, 0.95);
    height: 70px; display: flex; justify-content: center; position: sticky; top:0; z-index: 1000; 
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}
.header-container { width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { 
    color: #b91c1c; font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; cursor: pointer; letter-spacing: -0.5px; text-transform: uppercase;
}
.logo span { font-weight: 400; color: #4b5563; font-size: 18px; text-transform: none; margin-left: 5px; }
.logo svg { width: 28px; height: 28px; }
.logo:hover { opacity: 0.8; transform: scale(1.02); }

.header-btn {
    background: var(--brand-gradient); 
    color: #fff; padding: 10px 25px; border-radius: 4px; 
    font-size: 14px; margin-left: 10px; font-weight: bold; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.header-btn svg { width: 16px; height: 16px; }
.header-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5); }

/* 2. Hero 区域 (本地图片) */
.hero {
    /* 引用本地图片 */
    background: linear-gradient(120deg, rgba(20, 20, 20, 0.9) 0%, rgba(127, 29, 29, 0.8) 100%), 
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 560px; /* 增高高度 */
    color: #fff; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}
.hero::before {
    content: ''; position: absolute; width: 400px; height: 400px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    top: -100px; right: -50px; transform: rotate(45deg); animation: float 10s infinite ease-in-out;
}
@keyframes float { 0%,100% {transform: rotate(45deg) translateY(0);} 50% {transform: rotate(45deg) translateY(-20px);} }

.hero-container { width: 1200px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 2; }
.hero-text h1 { font-size: 56px; font-weight: 900; margin-bottom: 20px; line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; }
.hero-text h2 { font-size: 22px; font-weight: 400; opacity: 0.9; margin-bottom: 40px; font-family: "Segoe UI", sans-serif; }
.hero-tags { display: flex; gap: 10px; }
.hero-tags span { 
    background: rgba(0,0,0,0.3); backdrop-filter: blur(5px);
    padding: 8px 16px; border-radius: 4px; font-size: 14px; 
    border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; gap: 8px;
}
.hero-tags span svg { color: #f87171; width: 16px; height: 16px; }

.btn-hero {
    display: inline-block; margin-top: 40px; padding: 16px 50px; font-size: 18px; font-weight: bold; color: #b91c1c; 
    background: #fff; border-radius: 4px; transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.btn-hero:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 15px 40px rgba(0,0,0,0.4); background: #fef2f2; }

/* 3D 盒子 - 尺寸加大 */
.hero-box-3d {
    width: 340px; height: 340px; /* 加大尺寸 */
    background: rgba(185, 28, 28, 0.2); 
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateY(-25deg) rotateX(15deg);
    border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
}

/* 3. 产品列表 */
.products-section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; position: relative; }
.section-header h2 { font-size: 36px; color: #1f2937; font-weight: 800; z-index: 2; position: relative; }
.section-header::after { 
    content: 'DESIGN'; position: absolute; top: -40px; left: 50%; transform: translateX(-50%); 
    font-size: 100px; color: rgba(185, 28, 28, 0.05); font-weight: 900; pointer-events: none; z-index: 1;
}

.product-grid {
    width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.card {
    background: #fff; border-radius: 8px; padding: 25px;
    box-shadow: var(--shadow-sm); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
}
.card::before {
    content:''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: var(--brand-gradient);
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card-head { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.icon-box {
    width: 44px; height: 44px; 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); 
    color: #b91c1c;
    border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900;
}
.card:hover .icon-box { background: var(--brand-gradient); color: #fff; transform: rotate(45deg); transition: 0.3s; }

.card-title { font-weight: 800; font-size: 17px; color: #1f2937; }
.card-desc { font-size: 13px; color: #4b5563; line-height: 1.6; height: 42px; overflow: hidden; margin-bottom: 20px; }

.sys-info { 
    margin-bottom: 20px; font-size: 12px; color: #7f1d1d; font-weight: 600; 
    background: #fef2f2; padding: 8px 12px; border-radius: 4px; display: flex; align-items: center; gap: 6px;
}
.sys-info svg { color: #dc2626; width: 14px; height: 14px; }

.btn-download {
    display: block; width: 100%; padding: 12px 0; border-radius: 4px; 
    background: linear-gradient(90deg, #b91c1c, #dc2626); 
    color: #fff; font-weight: bold; text-align: center;
    font-size: 14px; transition: 0.3s; position: relative; overflow: hidden;
}
.btn-download::after {
    content:''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}
.btn-download:hover { background: linear-gradient(90deg, #991b1b, #b91c1c); box-shadow: 0 5px 15px rgba(185, 28, 28, 0.4); }
.btn-download:hover::after { left: 100%; }

/* 4. 文档与协作 (本地图片) */
.info-section { 
    padding: 100px 0; margin-top: 60px; position: relative;
    background: #fff;
}
.info-section::before {
    content:''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, #f3f4f6 0%, #fff 100%); z-index: 1; transform: skewY(-3deg); transform-origin: top left;
}

.info-header { text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }
.info-header h2 { font-size: 32px; color: #1f2937; font-weight: 800; }
.info-header h2 span { color: #ef4444; background: -webkit-linear-gradient(0deg, #b91c1c, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.info-box {
    position: relative; z-index: 2; width: 1200px; margin: 0 auto; display: flex; border-radius: 8px; overflow: hidden; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); background: #fff;
}
.info-content { width: 45%; padding: 70px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.info-content h3 { font-size: 28px; margin-bottom: 25px; color: #111827; line-height: 1.3; font-weight: 700; }
.info-content p { font-size: 16px; color: #374151; line-height: 1.8; margin-bottom: 40px; }
.info-img { 
    width: 55%; 
    /* 引用本地图片 */
    background: url('../images/info-bg.jpg') center/cover; 
    position: relative;
}
.info-img::after {
    content:''; position: absolute; top:0; left:0; width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(31, 41, 55, 0.4), transparent);
}

/* 5. 常见问题 (本地纹理) */
.faq-section { 
    background: #111827; padding: 100px 0; color: #fff; 
    /* 引用本地纹理 */
    background-image: url('../images/texture.png'); 
    position: relative;
}
.faq-wrap { 
    width: 1000px; margin: 0 auto; display: flex; border-radius: 8px; overflow: hidden; 
    background: rgba(31, 41, 55, 0.8); backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255,255,255,0.1);
}
.faq-nav { width: 300px; background: rgba(0,0,0,0.3); display: flex; flex-direction: column; }
.nav-item { 
    padding: 25px 30px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); 
    font-size: 15px; color: #d1d5db; transition: 0.3s; display: flex; justify-content: space-between; align-items: center;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-item.active { 
    background: #7f1d1d; color: #fecaca; font-weight: bold; 
    border-left: 4px solid #ef4444;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}
.nav-item svg { width: 10px; height: 16px; }

.faq-content-area { flex: 1; padding: 50px; background: #1f2937; color: #f3f4f6; min-height: 350px; }
.tab-content { display: none; animation: slideUp 0.4s ease-out; }
.tab-content.active { display: block; }
.tab-content h3 { color: #ef4444; margin-bottom: 20px; font-size: 24px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.tab-content h3 svg { width: 24px; height: 24px; }
.tab-content p { font-size: 15px; line-height: 1.8; color: #d1d5db; }
@keyframes slideUp { from {opacity: 0; transform: translateY(10px);} to {opacity: 1; transform: translateY(0);} }

/* 页脚 */
footer { background: #000; color: #9ca3af; text-align: center; padding: 60px 0; font-size: 13px; }
footer strong { color: #fecaca; font-size: 18px; display: block; margin-bottom: 10px; }

/* 响应式 */
@media (max-width: 1200px) { .header-container, .hero-container, .product-grid, .info-box { width: 100%; padding: 0 20px; } .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .hero { height: auto; padding: 100px 0; text-align: center; clip-path: none; } .hero-container { flex-direction: column; } .hero-box-3d { margin-top: 50px; } .hero-tags { justify-content: center; } .product-grid { grid-template-columns: repeat(2, 1fr); } .info-box { flex-direction: column; } .info-content, .info-img { width: 100%; height: 350px; } .faq-wrap { flex-direction: column; width: 95%; } .faq-nav { width: 100%; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }