* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #e0e0e0; background: #060a14; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === 动态电路背景 === */
.bg-circuit { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.circuit-svg { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.circuit-path { fill: none; stroke: url(#lineGrad); stroke-width: 1; stroke-dasharray: 800; stroke-dashoffset: 800; animation: drawLine 4s linear infinite; }
.circuit-path.delay1 { animation-delay: 1s; }
.circuit-path.delay2 { animation-delay: 2s; }
.circuit-path.delay3 { animation-delay: 3s; }
.circuit-path-v { fill: none; stroke: url(#lineGradV); stroke-width: 1; stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawLineV 5s linear infinite; }
.circuit-path-v.delay1 { animation-delay: 1.2s; }
.circuit-path-v.delay2 { animation-delay: 2.4s; }
.circuit-path-v.delay3 { animation-delay: 3.6s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes drawLineV { to { stroke-dashoffset: 0; } }
.circuit-node { fill: rgba(64, 158, 255, 0.7); animation: pulse 2s ease-in-out infinite; }
.circuit-node.delay1 { animation-delay: 0.5s; }
.circuit-node.delay2 { animation-delay: 1s; }
.circuit-node.delay3 { animation-delay: 1.5s; }
@keyframes pulse { 0%, 100% { r: 3; opacity: 0.3; } 50% { r: 7; opacity: 1; } }

/* 六边形网格 */
.hex-grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hex { position: absolute; width: 80px; height: 92px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); border: 1px solid rgba(64, 158, 255, 0.06); background: rgba(64, 158, 255, 0.02); animation: hexPulse 4s ease-in-out infinite; animation-delay: var(--delay); }
.hex:nth-child(1) { top: 10%; left: 5%; }
.hex:nth-child(2) { top: 30%; left: 15%; }
.hex:nth-child(3) { top: 60%; left: 8%; }
.hex:nth-child(4) { top: 80%; left: 18%; }
.hex:nth-child(5) { top: 15%; right: 8%; }
.hex:nth-child(6) { top: 45%; right: 12%; }
.hex:nth-child(7) { top: 65%; right: 5%; }
.hex:nth-child(8) { top: 85%; right: 15%; }
@keyframes hexPulse { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }

/* 数据流粒子 */
.data-flow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.flow-particle { position: absolute; width: 5px; height: 5px; background: #409EFF; border-radius: 50%; box-shadow: 0 0 10px #409EFF, 0 0 20px rgba(64, 158, 255, 0.4); }
.fp1 { top: 20%; animation: flowH 7s linear infinite; }
.fp2 { top: 40%; animation: flowH 10s linear infinite 2s; }
.fp3 { top: 55%; animation: flowH 8s linear infinite 4s; }
.fp4 { top: 70%; animation: flowH 9s linear infinite 1s; }
.fp5 { top: 85%; animation: flowH 11s linear infinite 3s; }
@keyframes flowH { 0% { left: -20px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* 扫描线 */
.scan-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, rgba(64, 158, 255, 0.15), transparent); animation: scanDown 6s linear infinite; }
@keyframes scanDown { 0% { top: -2px; } 100% { top: 100%; } }

/* === 导航 === */
.header { position: fixed; top: 0; left: 0; right: 0; background: rgba(6, 10, 20, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(64, 158, 255, 0.15); z-index: 1000; }
.nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; color: #409EFF; }
.logo-icon { font-size: 24px; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; list-style: none; gap: 28px; }
.nav-links a { text-decoration: none; color: #6b7a94; font-weight: 500; font-size: 14px; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #409EFF; }
.menu-toggle { display: none; flex-direction: column; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: #6b7a94; margin: 4px 0; }

/* === Hero === */
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(160deg, #060a14 0%, #0d1526 40%, #0a1628 100%); position: relative; padding-top: 80px; z-index: 1; }
.hero-grid { display: flex; max-width: 1200px; margin: 0 auto; padding: 0 20px; gap: 50px; align-items: center; width: 100%; }
.hero-content { flex: 1; }
.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(64, 158, 255, 0.08); border: 1px solid rgba(64, 158, 255, 0.25); border-radius: 20px; font-size: 12px; color: #409EFF; margin-bottom: 20px; letter-spacing: 1.5px; }
.hero h1 { font-size: 42px; color: #fff; margin-bottom: 12px; }
.highlight { color: #409EFF; }
.hero-subtitle { font-size: 18px; color: #6b7a94; margin-bottom: 8px; }
.hero-desc { font-size: 14px; color: #4a5568; max-width: 480px; margin-bottom: 24px; }
.hero-stats { display: flex; gap: 36px; margin-bottom: 28px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 700; color: #409EFF; }
.stat-text { font-size: 12px; color: #4a5568; }
.hero-buttons { display: flex; gap: 14px; }
.btn { padding: 11px 26px; border-radius: 6px; text-decoration: none; font-weight: 500; font-size: 14px; transition: all 0.3s; cursor: pointer; border: none; }
.btn-primary { background: #409EFF; color: #fff; }
.btn-primary:hover { background: #337ecc; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(64, 158, 255, 0.4); }
.btn-outline { background: transparent; color: #409EFF; border: 1px solid rgba(64, 158, 255, 0.4); }
.btn-outline:hover { background: rgba(64, 158, 255, 0.1); }

/* === 仪表盘预览 === */
.hero-visual { flex: 1; max-width: 440px; }
.dashboard-preview { background: rgba(15, 20, 35, 0.9); border-radius: 12px; border: 1px solid rgba(64, 158, 255, 0.2); overflow: hidden; box-shadow: 0 0 60px rgba(64, 158, 255, 0.08), inset 0 0 30px rgba(64, 158, 255, 0.03); }
.dash-header { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(30, 40, 65, 0.6); border-bottom: 1px solid rgba(64, 158, 255, 0.1); }
.dash-dot { width: 7px; height: 7px; border-radius: 50%; }
.dash-dot.red { background: #ef4444; }
.dash-dot.yellow { background: #eab308; }
.dash-dot.green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dash-title { margin-left: 8px; font-size: 11px; color: #6b7a94; flex: 1; }
.dash-time { font-size: 11px; color: #409EFF; font-family: monospace; }
.dash-body { padding: 14px; }
.dash-metric { margin-bottom: 14px; }
.metric-label { font-size: 11px; color: #4a5568; margin-bottom: 3px; }
.metric-value { font-size: 16px; font-weight: 600; color: #e0e0e0; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status-dot.online { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.metric-bar { height: 3px; background: rgba(30, 40, 65, 0.8); border-radius: 2px; }
.metric-fill { height: 100%; background: linear-gradient(90deg, #337ecc, #409EFF); border-radius: 2px; }
.dash-alerts { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(30, 40, 65, 0.8); }
.alert-item { font-size: 11px; color: #6b7a94; padding: 3px 0; }
.alert-item.success { color: #22c55e; }

/* === 通用区块 === */
.section { padding: 90px 0; position: relative; z-index: 1; }
.section-dark { background: rgba(10, 15, 28, 0.85); backdrop-filter: blur(4px); }
.section-title { text-align: center; font-size: 28px; margin-bottom: 12px; color: #fff; font-weight: 600; }
.section-desc { text-align: center; color: #4a5568; font-size: 14px; margin-bottom: 50px; }

/* === 架构流程 === */
.arch-flow { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; flex-wrap: nowrap; overflow-x: auto; padding: 20px 0; }
.arch-node { text-align: center; padding: 18px 16px; background: rgba(15, 20, 35, 0.8); border: 1px solid #1e2841; border-radius: 10px; min-width: 110px; flex-shrink: 0; transition: all 0.3s; }
.arch-node:hover, .arch-node.highlight-node { border-color: #409EFF; box-shadow: 0 0 20px rgba(64, 158, 255, 0.15); transform: translateY(-3px); }
.arch-icon { font-size: 26px; margin-bottom: 6px; }
.arch-label { font-size: 12px; font-weight: 600; color: #e0e0e0; margin-bottom: 2px; }
.arch-sub { font-size: 10px; color: #4a5568; }
.arch-arrow { width: 36px; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.arrow-line { width: 28px; height: 2px; background: linear-gradient(90deg, rgba(64, 158, 255, 0.2), rgba(64, 158, 255, 0.6)); }
.arrow-dot { position: absolute; width: 4px; height: 4px; background: #409EFF; border-radius: 50%; animation: arrowMove 1.5s linear infinite; }
@keyframes arrowMove { 0% { left: 0; opacity: 0; } 50% { opacity: 1; } 100% { left: 26px; opacity: 0; } }

/* === 架构卡片 === */
.arch-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.arch-card { background: rgba(15, 20, 35, 0.8); border: 1px solid #1e2841; border-radius: 10px; padding: 22px; transition: border-color 0.3s; }
.arch-card:hover { border-color: #409EFF; }
.arch-card-icon { font-size: 24px; margin-bottom: 10px; }
.arch-card h4 { color: #409EFF; font-size: 14px; margin-bottom: 8px; }
.arch-card p { color: #6b7a94; font-size: 13px; line-height: 1.6; }

/* === 关于 === */
.about-content { display: flex; gap: 50px; align-items: flex-start; }
.about-highlight { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px; background: rgba(64, 158, 255, 0.04); border-left: 3px solid #409EFF; border-radius: 0 8px 8px 0; }
.highlight-num { font-size: 44px; font-weight: 700; color: #409EFF; }
.highlight-text { font-size: 13px; color: #6b7a94; line-height: 1.4; }
.about-text p { color: #6b7a94; margin-bottom: 10px; font-size: 14px; }
.about-timeline { flex: 1; }
.timeline-item { position: relative; padding-left: 28px; padding-bottom: 28px; border-left: 2px solid #1e2841; }
.timeline-dot { position: absolute; left: -5px; top: 0; width: 8px; height: 8px; background: #1e2841; border: 2px solid #409EFF; border-radius: 50%; }
.timeline-dot.active { background: #409EFF; box-shadow: 0 0 8px rgba(64, 158, 255, 0.5); }
.timeline-year { font-size: 11px; color: #409EFF; font-weight: 600; }
.timeline-content h4 { color: #e0e0e0; margin: 3px 0; font-size: 15px; }
.timeline-content p { color: #4a5568; font-size: 12px; }

/* === 项目卡片 === */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { background: rgba(15, 20, 35, 0.8); border-radius: 10px; padding: 22px; border: 1px solid #1e2841; transition: all 0.3s; position: relative; }
.project-card:hover { border-color: #409EFF; transform: translateY(-3px); box-shadow: 0 8px 30px rgba(64, 158, 255, 0.1); }
.project-card.industrial { border-top: 3px solid #409EFF; }
.project-card.energy { border-top: 3px solid #22c55e; }
.project-card.spare { border-top: 3px solid #a855f7; }
.project-card.tracking { border-top: 3px solid #eab308; }
.project-card.appointment { border-top: 3px solid #06b6d4; }
.project-card.diagnosis { border-top: 3px solid #f97316; }
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card-badge { position: absolute; top: 14px; right: 14px; padding: 3px 9px; background: rgba(64, 158, 255, 0.1); color: #409EFF; border-radius: 4px; font-size: 10px; }
.project-card h3 { color: #e0e0e0; font-size: 15px; margin-bottom: 6px; }
.project-card p { color: #4a5568; font-size: 12px; margin-bottom: 10px; line-height: 1.5; }
.card-features { list-style: none; margin-bottom: 10px; }
.card-features li { font-size: 11px; color: #6b7a94; padding: 2px 0 2px 12px; position: relative; }
.card-features li::before { content: '›'; position: absolute; left: 0; color: #409EFF; }
.project-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { padding: 2px 8px; background: rgba(64, 158, 255, 0.08); color: #409EFF; border-radius: 3px; font-size: 10px; }

/* === 技能 === */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-category { background: rgba(15, 20, 35, 0.8); border-radius: 10px; padding: 22px; border: 1px solid #1e2841; transition: border-color 0.3s; }
.skill-category:hover { border-color: #409EFF; }
.skill-icon { font-size: 24px; margin-bottom: 10px; }
.skill-category h3 { color: #e0e0e0; font-size: 14px; margin-bottom: 10px; }
.skill-list { list-style: none; }
.skill-list li { padding: 5px 0; color: #6b7a94; font-size: 12px; border-bottom: 1px solid #1e2841; }
.skill-list li:last-child { border-bottom: none; }

/* === 看板 === */
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dash-card { background: rgba(15, 20, 35, 0.8); border-radius: 10px; border: 1px solid #1e2841; overflow: hidden; }
.dash-card-header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgba(30, 40, 65, 0.4); border-bottom: 1px solid rgba(64, 158, 255, 0.08); }
.dash-card-icon { font-size: 18px; }
.dash-card-header h4 { color: #e0e0e0; font-size: 13px; }
.dash-card-body { padding: 16px; }
.dash-stat { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #1e2841; }
.dash-stat:last-child { border-bottom: none; }
.dash-stat-num { font-size: 16px; font-weight: 600; color: #e0e0e0; }
.dash-stat-num.green { color: #22c55e; }
.dash-stat-num.yellow { color: #eab308; }
.dash-stat-num.red { color: #ef4444; }
.dash-stat-label { font-size: 12px; color: #4a5568; }

/* === 联系 === */
.contact-content { display: flex; gap: 50px; }
.contact-info { flex: 1; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-icon { font-size: 22px; }
.contact-label { display: block; font-size: 11px; color: #4a5568; margin-bottom: 2px; }
.contact-value { font-size: 14px; color: #e0e0e0; }
.contact-form { flex: 1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 11px 14px; margin-bottom: 10px; background: rgba(15, 20, 35, 0.8); border: 1px solid #1e2841; border-radius: 6px; color: #e0e0e0; font-size: 13px; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: #409EFF; }
.contact-form select option { background: #0f1423; color: #e0e0e0; }

/* === 页脚 === */
.footer { background: #060a14; border-top: 1px solid #1e2841; padding: 35px 0; position: relative; z-index: 1; }
.footer-content { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 700; color: #409EFF; margin-bottom: 8px; }
.footer p { color: #4a5568; font-size: 12px; }
.copyright { margin-top: 8px; }

/* === 响应式 === */
@media (max-width: 1024px) {
    .projects-grid, .dashboard-grid, .arch-details { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: rgba(6, 10, 20, 0.98); border-bottom: 1px solid #1e2841; flex-direction: column; padding: 16px; }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
    .hero-grid { flex-direction: column; text-align: center; }
    .hero-content { order: 2; }
    .hero-visual { order: 1; max-width: 100%; }
    .hero-stats, .hero-buttons { justify-content: center; }
    .about-content, .contact-content { flex-direction: column; }
    .projects-grid, .dashboard-grid, .skills-grid, .arch-cards { grid-template-columns: 1fr; }
    .arch-flow { flex-direction: column; }
    .arch-arrow { transform: rotate(90deg); width: 40px; height: 30px; }
}
