/* --- 核心变量 --- */
:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --primary: #3b82f6;     /* 科技蓝 */
    --accent: #6366f1;      /* 探索紫 */
    --text-main: #f4f4f5;
    --text-body: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-text: linear-gradient(135deg, #60a5fa, #a78bfa);
    --gradient-bg: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(99,102,241,0.1));
    --container-width: 1200px;
}

/* --- 基础重置 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'PingFang SC', 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    /* 科技感网格背景 */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- 通用工具类 --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-gradient { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-padding { padding: 8rem 0; }

/* 通用 SVG 图标样式 */
.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: middle; }

/* --- 按钮样式 --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 2rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5); transform: translateY(-2px); }

.btn-outline {
    background: transparent; border-color: rgba(255,255,255,0.2); color: white;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(59,130,246,0.05); }

/* --- 导航栏 --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
nav {
    height: 80px; display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 10px; color: white; }
.logo svg { width: 32px; height: 32px; fill: var(--primary); }
.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.nav-menu { display: flex; gap: 2.5rem; }
.nav-menu a { font-size: 0.9rem; color: var(--text-body); position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: white; }
.nav-menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

/* --- Hero 首屏 --- */
.hero {
    height: 90vh; display: flex; align-items: center; position: relative;
    padding-top: 80px;
}
.hero-content { max-width: 700px; z-index: 2; }
.hero h1 {
    font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; font-weight: 700;
}
.hero p {
    font-size: 1.2rem; color: var(--text-body); margin-bottom: 2.5rem; max-width: 600px;
}
.hero-bg {
    position: absolute; right: -10%; top: 20%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 60%);
    border-radius: 50%; filter: blur(80px); pointer-events: none;
}

/* --- 统计数据 --- */
.stats-bar {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 2rem 0; background: rgba(24, 24, 27, 0.5);
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.stat-item h3 { font-size: 2.5rem; color: white; margin-bottom: 0.2rem; }
.stat-item p { color: var(--text-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* --- 服务板块 --- */
.section-header { text-align: center; margin-bottom: 5rem; }
.section-tag {
    color: var(--primary); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 1rem;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-body); max-width: 600px; margin: 0 auto; }

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem;
}
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 3rem; border-radius: 12px; transition: 0.4s; position: relative; overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px); border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(59,130,246,0.15);
}
.icon-box {
    width: 60px; height: 60px; background: rgba(59,130,246,0.1);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem; color: var(--primary);
}
.icon-box svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.service-card p { color: var(--text-body); font-size: 0.95rem; margin-bottom: 1.5rem; }
.service-list li {
    display: flex; align-items: center; gap: 10px; color: var(--text-body);
    font-size: 0.9rem; margin-bottom: 0.5rem;
}
.service-list li svg { width: 16px; height: 16px; color: var(--primary); }

/* --- 研发流程 --- */
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.process-item {
    position: relative; padding: 2rem; background: rgba(255,255,255,0.02);
    border-radius: 8px; border: 1px solid var(--border); transition: 0.3s;
}
.process-item:hover { background: rgba(255,255,255,0.04); }
.step-num {
    font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.05);
    position: absolute; top: 10px; right: 20px;
}
.process-icon { color: var(--accent); margin-bottom: 1rem; }
.process-icon svg { width: 40px; height: 40px; }
.process-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-item p { font-size: 0.85rem; color: var(--text-body); }

/* --- 为什么选择我们 (侧边图) --- */
.about-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-text h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.feature-row { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.feature-icon {
    width: 50px; height: 50px; flex-shrink: 0; background: var(--gradient-bg);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.about-image {
    width: 100%; height: 500px; background: #111; border-radius: 12px;
    border: 1px solid var(--border); position: relative; overflow: hidden;
    background-image: linear-gradient(45deg, #111 25%, #1a1a1a 25%, #1a1a1a 50%, #111 50%, #111 75%, #1a1a1a 75%, #1a1a1a 100%);
    background-size: 20px 20px;
}
/* 模拟代码编辑器界面 */
.code-window {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 85%; height: 70%; background: #09090b; border: 1px solid var(--border);
    border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); padding: 20px;
    font-family: 'Courier New', monospace; font-size: 14px; color: #a1a1aa;
}
.code-line { margin-bottom: 8px; }
.code-key { color: #f472b6; } /* Pink */
.code-str { color: #a78bfa; } /* Purple */
.code-fn { color: #60a5fa; } /* Blue */

/* --- Footer --- */
footer {
    background: #000; border-top: 1px solid var(--border); padding: 5rem 0 2rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem;
}
.footer-info p { color: var(--text-body); margin-top: 1rem; max-width: 300px; font-size: 0.9rem; }
.footer-info .logo img {
    width: 32px;
    height: 32px;
}
.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-body); font-size: 0.9rem; }
.footer-col ul li a:hover { color: white; }

.footer-bottom {
    text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2); font-size: 0.85rem;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-menu { display: none; } /* 移动端应添加折叠菜单 */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .process-grid { grid-template-columns: 1fr; }
    .about-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

