/* ═══════════════════════════════════════════════════════════════
   郑州米至信息科技有限责任公司 - 企业官网样式
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #06b6d4;
    --bg-dark: #0f172a;
    --bg-section: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   Navbar
   ═══════════════════════════════════════════════════════════════ */

.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-text {
    letter-spacing: 1px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 20px !important;
    border-radius: 8px;
    transition: var(--transition);
    margin: 0 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.06);
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 30%, #f0f9ff 60%, #ecfeff 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--bg-dark);
    margin-bottom: 1rem;
}

.dot {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-btn {
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    box-shadow: 0 10px 25px -8px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    letter-spacing: 1px;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -8px rgba(37, 99, 235, 0.5);
}

/* Code Window Graphic */
.code-window {
    background: var(--bg-dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 460px;
    margin-left: auto;
    transform: perspective(800px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition);
}

.code-window:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
}

.code-header {
    background: #1e293b;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
}

.dot-red {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ef4444;
}

.dot-yellow {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
}

.dot-green {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
}

.code-body {
    padding: 24px 20px;
}

.code-body pre {
    margin: 0;
    color: #e2e8f0;
    font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.k { color: #c084fc; }
.fn { color: #60a5fa; }
.v { color: #fbbf24; }
.s { color: #34d399; }

/* ═══════════════════════════════════════════════════════════════
   Section Common
   ═══════════════════════════════════════════════════════════════ */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-dark);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   About
   ═══════════════════════════════════════════════════════════════ */

.about {
    background: var(--white);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-features {
    padding-left: 40px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    background: var(--white);
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateX(6px);
}

.feature-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.feature-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Services
   ═══════════════════════════════════════════════════════════════ */

.services {
    background: var(--bg-section);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    height: 100%;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
    border-radius: 14px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
}

.service-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════════════════════════ */

.contact {
    background: var(--white);
}

.contact-card {
    background: var(--bg-section);
    border-radius: var(--radius);
    padding: 48px 40px;
    border: 1px solid var(--border);
}

.contact-item {
    padding: 16px 0;
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    color: var(--primary);
}

.contact-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════════ */

footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 48px 0 0;
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-info p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-contact p {
    font-size: 0.9rem;
    margin: 0 0 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    margin-top: 36px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
        text-align: center;
    }
    .hero-desc {
        margin: 0 auto 2rem;
    }
    .about-features {
        padding-left: 0;
        margin-top: 40px;
    }
    .feature-card:hover {
        transform: none;
    }
    section {
        padding: 70px 0;
    }
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .code-window {
        margin: 30px auto 0;
    }
    .contact-card {
        padding: 30px 20px;
    }
    .service-card {
        margin-bottom: 16px;
    }
}

/* Helper: Remove container padding on full-width hero */
.hero .container {
    position: relative;
    z-index: 1;
}
