/* ============================
   深圳市泓联智讯科技有限公司 - 企业官网
   共享样式表
   ============================ */

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

:root {
    --primary: #0A4D8C;
    --primary-light: #1976D2;
    --primary-dark: #063056;
    --accent: #00B4D8;
    --accent-light: #48CAE4;
    --bg-light: #F7F9FC;
    --bg-gray: #EEF2F7;
    --text-dark: #1A2B3C;
    --text-body: #4A5568;
    --text-light: #8B95A1;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(10, 77, 140, 0.06);
    --shadow-md: 0 4px 20px rgba(10, 77, 140, 0.10);
    --shadow-lg: 0 10px 40px rgba(10, 77, 140, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

/* ===== Section ===== */
.section {
    padding: 80px 0;
}

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

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(10, 77, 140, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 77, 140, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.navbar-brand .brand-text .name {
    font-size: 1.0625rem;
}

.navbar-brand .brand-text .sub {
    font-size: 0.6875rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 1px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar-nav a {
    font-size: 0.9375rem;
    color: var(--text-body);
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.navbar-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary);
}

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

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 24px;
}

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

.footer-brand .navbar-brand {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col ul li a:hover {
    color: var(--accent-light);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
    }

    .navbar-nav.active {
        transform: translateY(0);
    }

    .navbar-toggle {
        display: flex;
    }

    .section {
        padding: 56px 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 0.9375rem;
    }

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

    .footer-contact li {
        justify-content: center;
    }
}
