@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Noto+Serif+SC:wght@400;700;900&family=JetBrains+Mono:wght@300;400;600&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ═══════════════════════════════════════════
   惠州市智汇新科技有限公司 - 工业未来主义设计系统
   Aesthetic: Industrial Futurism + Editorial Brutalism
   ═══════════════════════════════════════════ */

:root {
    /* 调色板 - 高对比度工业风 */
    --bg: #0c0c0f;
    --bg-elevated: #121218;
    --bg-card: #16161d;
    --surface: #1e1e28;
    
    --text-primary: #f0f0f5;
    --text-secondary: #8a8a9a;
    --text-muted: #55555f;
    
    --accent-cyan: #00f5d4;
    --accent-orange: #ff6b35;
    --accent-violet: #7b61ff;
    
    --border: #2a2a35;
    --border-light: #3a3a45;
    --border-accent: rgba(0, 245, 212, 0.3);
    
    /* 排版尺度 */
    --font-display: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
    --font-body: 'Noto Sans SC', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    /* 间距 */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;
    
    /* 动效 */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    
    /* 其他 */
    --nav-height: 72px;
    --max-width: 1280px;
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg);
    line-height: 1.75;
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background: var(--accent-cyan);
    color: var(--bg);
}

/* 噪点纹理叠加 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(12, 12, 15, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    background: rgba(12, 12, 15, 0.95);
    border-bottom-color: var(--border-accent);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    position: relative;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-cyan);
    transition: left 0.4s var(--ease-out-expo);
    z-index: -1;
}

.logo:hover .logo-icon::before {
    left: 0;
}

.logo:hover .logo-icon {
    color: var(--bg);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
}

/* ===== 页面标题区 ===== */
.page-header {
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
    background: var(--bg);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 80px 80px,
        linear-gradient(0deg, var(--border) 1px, transparent 1px) 0 0 / 80px 80px;
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-orange);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.page-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-orange);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.breadcrumb {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-top: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-cyan);
}

.breadcrumb span {
    color: var(--border-light);
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 32px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 245, 212, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: inset 0 0 20px rgba(0, 245, 212, 0.05);
}

.btn-ghost {
    background: transparent;
    color: var(--accent-cyan);
    padding: 12px 0;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

/* ===== 区块标题系统 ===== */
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-orange);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent-orange);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.75;
    max-width: 560px;
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section-header-center .section-label {
    justify-content: center;
}

.section-header-center .section-desc {
    margin: 0 auto;
}

/* ===== 通用卡片 ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: var(--space-xl);
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-cyan);
    transition: height 0.5s var(--ease-out-expo);
}

.card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.card:hover::before {
    height: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 20px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.card-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

/* ===== 分割线 ===== */
.divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-2xl) 0;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: var(--accent-cyan);
}

/* ===== 数据展示 ===== */
.data-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.data-value {
    font-family: var(--font-mono);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 300;
    color: var(--accent-cyan);
    line-height: 1;
    letter-spacing: -0.03em;
}

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 0;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 160px;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    text-decoration: none;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--space-md);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: var(--space-lg);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent-cyan);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
    z-index: 999;
    font-family: var(--font-mono);
    font-size: 18px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-cyan);
    color: var(--bg);
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

/* ===== 动画系统 ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(12, 12, 15, 0.98);
        flex-direction: column;
        padding: var(--space-xl);
        gap: 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-bottom a {
        margin: 0 var(--space-sm);
    }
}
