/* ============================================
   INMES 易脉科技 - 主页样式
   Design: Cyber / Tech-forward Dark Theme
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: rgba(15, 15, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 212, 255, 0.15);

    --text-primary: #e8e8f0;
    --text-secondary: #9090a8;
    --text-muted: #606078;

    --accent-cyan: #00d4ff;
    --accent-purple: #7b2fff;
    --accent-blue: #1e6fff;
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --accent-gradient-h: linear-gradient(135deg, #00e5ff, #9b4dff);

    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.08), 0 0 80px rgba(123, 47, 255, 0.05);
    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
    font-family: inherit; font-size: inherit; color: inherit;
    border: none; outline: none; background: none;
}

/* ---------- Particle Canvas ---------- */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Glass Card ---------- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}
.glass-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: translateY(-2px);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Section Container ---------- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    padding: 4px 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    background: rgba(0, 212, 255, 0.05);
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: all var(--transition);
    padding: 16px 0;
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.nav-logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--accent-gradient);
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
}
.nav-logo .logo-text { color: var(--text-primary); }
.nav-logo .logo-highlight { color: var(--accent-cyan); }

.nav-links {
    display: flex;
    gap: 4px;
}
.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 100px;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

/* Grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease both;
}
.badge-dot {
    width: 8px; height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s 0.1s ease both;
}
.title-line { display: block; }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.3s ease both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 32px rgba(0, 212, 255, 0.45);
    transform: translateY(-2px);
}
.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.1);
}
.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.orb-1 {
    width: 400px; height: 400px;
    background: var(--accent-cyan);
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}
.orb-2 {
    width: 300px; height: 300px;
    background: var(--accent-purple);
    bottom: -50px; left: -50px;
    animation: float 10s 1s ease-in-out infinite;
}
.orb-3 {
    width: 200px; height: 200px;
    background: var(--accent-blue);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: float 6s 2s ease-in-out infinite;
}

.circuit-lines {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    opacity: 0.5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeInUp 0.8s 0.6s ease both;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 100px;
    position: relative;
}
.scroll-wheel {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}
.scroll-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ---------- About Section ---------- */
.about {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    padding: 36px 32px;
    text-align: center;
}
.about-card .card-icon {
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
}
.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.about-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Products Section ---------- */
.products {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}
.product-visual {
    position: relative;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.product-glow {
    position: absolute;
    width: 100px; height: 100px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}
.product-icon-lg {
    position: relative;
    z-index: 1;
    color: var(--accent-cyan);
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.product-subtitle {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    text-transform: uppercase;
}
.product-features {
    margin-bottom: 24px;
}
.product-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 2;
}
.product-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 6px; height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    transition: gap var(--transition);
}
.product-link:hover { gap: 12px; }

/* ---------- Features Section ---------- */
.features {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
}

.feature-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    background: rgba(255, 255, 255, 0.01);
}
.feature-item:hover {
    border-color: var(--border-glow);
    background: rgba(0, 212, 255, 0.03);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.7;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Stats Section ---------- */
.stats {
    position: relative;
    z-index: 2;
    padding: 80px 0;
    overflow: hidden;
}
.stats-bg {
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.04;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ---------- Industries Section ---------- */
.industries {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    background: var(--bg-secondary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    padding: 40px 24px;
    text-align: center;
    cursor: default;
}
.industry-card .industry-icon {
    width: 72px; height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(0, 212, 255, 0.06);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    transition: all var(--transition);
}
.industry-card:hover .industry-icon {
    background: rgba(0, 212, 255, 0.12);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.15);
}
.industry-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ---------- Contact Section ---------- */
.contact {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    margin-top: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon-circle {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 50%;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.contact-value {
    font-size: 1rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form-card {
    padding: 40px;
}
.contact-form-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.9rem;
    color: var(--text-primary);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.04);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.footer-logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--accent-gradient);
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
}
.footer-logo .logo-highlight { color: var(--accent-cyan); }

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.footer-links li {
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-cyan); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

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

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 24px; }
}

/* Scroll-reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }

    .about-grid,
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    .nav-links {
        display: none;
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }

    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; max-width: 280px; }

    .section-title { font-size: 1.8rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-value { font-size: 2.2rem; }

    .industries-grid { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr; }

    .contact-form-card { padding: 28px 20px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .feature-item { flex-direction: column; gap: 12px; padding: 24px; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 16px 60px; }
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .industries-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .glass-card { padding: 24px 20px; }
}
