/* --- style.css --- */

/* 全局变量与重置 */
:root {
    --brand-red: #e60012;
    --tech-blue: #0696d7;
    --text-dark: #1f1f1f;
    --bg-light: #f4f7f9;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- 通用 SVG 图标样式 (新增) --- */
svg.icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    fill: currentColor; /* 跟随文字颜色 */
    position: relative;
    top: -1px;
}

/* 1. 顶部导航 */
.header { background: #000; height: 60px; display: flex; justify-content: center; position: sticky; top:0; z-index: 1000; }
.header-container { width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo:hover { opacity: 0.8; }
/* Logo 特殊大小 */
.logo svg.icon { width: 24px; height: 24px; fill: var(--brand-red); }

.header-btn {
    background: var(--tech-blue); color: #fff; padding: 8px 20px; border-radius: 4px; font-size: 14px; margin-left: 10px; font-weight: bold;
}
.header-btn:hover { background: #0077b5; }

/* 2. Hero 区域 */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%), 
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 480px; color: #fff; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hero-container { width: 1200px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 2; }
.hero-text h1 { font-size: 48px; font-weight: 800; margin-bottom: 15px; }
.hero-text h2 { font-size: 24px; font-weight: 400; opacity: 0.9; margin-bottom: 30px; }
.hero-tags span { 
    background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 4px; font-size: 13px; margin-right: 10px; 
    border: 1px solid rgba(255,255,255,0.2); display: inline-flex; align-items: center; gap: 6px;
}
/* Hero 标签图标颜色 */
.hero-tags svg.icon { fill: #fff; width: 14px; height: 14px; }

.btn-hero {
    display: inline-block; margin-top: 30px; padding: 12px 40px; font-size: 16px; font-weight: bold; color: #fff; 
    background: #000; border-radius: 4px; transition: 0.3s;
}
.btn-hero:hover { background: #333; }

.hero-box-3d {
    width: 260px; height: 260px; background: linear-gradient(145deg, #e60012, #b9000e);
    transform: perspective(1000px) rotateY(-20deg) rotateX(10deg);
    border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
}
/* 3D盒子大图标 */
.hero-box-3d svg.icon-lg { width: 100px; height: 100px; fill: rgba(255,255,255,0.9); margin-bottom: 10px; }

/* 3. 产品列表 */
.products-section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 50px; position: relative; }
.section-header h2 { font-size: 32px; color: #111; font-weight: 800; }
.section-header::after { content: 'AutoCAD'; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-size: 80px; color: rgba(0,0,0,0.03); font-weight: 800; pointer-events: none; }
.product-grid {
    width: 1200px; margin: 0 auto; padding: 0 20px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card {
    background: #fff; border-radius: 8px; padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: 0.3s;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
    border-top: 3px solid var(--brand-red);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.icon-box {
    width: 32px; height: 32px; background: var(--brand-red); color: #fff;
    border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold;
}
.card-title { font-weight: 700; font-size: 16px; color: #222; }
.card-desc { font-size: 12px; color: #666; line-height: 1.6; height: 40px; overflow: hidden; margin-bottom: 15px; }
.sys-info { 
    margin-bottom: 15px; font-size: 13px; color: #333; font-weight: 500; 
    background: #f5f5f5; padding: 5px 10px; border-radius: 4px; display: flex; align-items: center; gap: 5px;
}
/* 系统图标微调 */
.sys-info svg.icon { fill: #333; width: 14px; height: 14px; }

.btn-download {
    display: block; width: 100%; padding: 8px 0; border-radius: 4px; 
    background: #000; color: #fff; font-weight: bold; text-align: center;
    font-size: 14px; transition: 0.3s;
}
.btn-download:hover { background: #333; }

/* 4. 设计与制造 */
.info-section { padding: 80px 0; background: #ecf0f5; margin-top: 60px; }
.info-header { text-align: center; margin-bottom: 40px; }
.info-header h2 { font-size: 28px; color: var(--tech-blue); font-weight: 800; }
.info-header h2 span { color: #333; }
.info-box {
    width: 1200px; margin: 0 auto; display: flex; border-radius: 10px; overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); background: #fff;
}
.info-content { width: 45%; padding: 60px; display: flex; flex-direction: column; justify-content: center; background: #f0f7ff; }
.info-content h3 { font-size: 24px; margin-bottom: 20px; color: #222; line-height: 1.4; }
.info-content p { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 30px; }
.info-img { 
    width: 55%; 
    background: url('../images/info-bg.jpg') center/cover; 
}

/* 5. 常见问题 */
.faq-section { 
    background: #111827; padding: 60px 0; color: #fff; 
    background-image: url('../images/texture.png'); 
}
.faq-wrap { width: 1000px; margin: 0 auto; display: flex; border-radius: 8px; overflow: hidden; background: #1f2937; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.faq-nav { width: 300px; background: rgba(0,0,0,0.2); }
.nav-item { padding: 20px 25px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; color: #ccc; transition: 0.2s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-item.active { background: #fff; color: #000; font-weight: bold; border-left: 5px solid var(--brand-red); }
.faq-content-area { flex: 1; padding: 40px; background: #fff; color: #333; min-height: 300px; }
.tab-content { display: none; animation: fadeEffect 0.5s; }
.tab-content.active { display: block; }
.tab-content h3 { color: var(--tech-blue); margin-bottom: 15px; font-size: 20px; }
.tab-content p { font-size: 14px; line-height: 1.8; color: #555; }
@keyframes fadeEffect { from {opacity: 0;} to {opacity: 1;} }

/* 页脚 */
footer { background: #000; color: #666; text-align: center; padding: 40px 0; font-size: 12px; }

/* 响应式 */
@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: 60px 0; } .hero-container { flex-direction: column; text-align: center; } .hero-box-3d { margin-top: 40px; } .product-grid { grid-template-columns: repeat(2, 1fr); } .info-box { flex-direction: column; } .info-content, .info-img { width: 100%; height: 300px; } .faq-wrap { flex-direction: column; width: 95%; } .faq-nav { width: 100%; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }