:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-primary: #121212;
    --text-secondary: #4a4a4a;
    --accent: #000000;
    --border: #e0e0e0;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.grid {
    display: grid;
    gap: 1px;
    background-color: var(--border);
}

.section-padding {
    padding: 120px 0;
}

/* Header */
/* Header - 12 Column Grid Alignment */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    border-bottom: 1px solid transparent;
}

header.header-scrolled {
    transform: translateY(0);
    border-bottom: 1px solid var(--border);
}

header .container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    height: 100%;
    padding: 0;
    max-width: 100%;
}

.header-logo {
    grid-column: span 3;
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-right: 1px solid var(--border);
}

.header-logo img {
    height: 32px;
    width: auto;
}

nav {
    grid-column: span 9;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    height: 100%;
}

nav ul li {
    border-left: 1px solid var(--border);
}

nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 40px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
}

nav a:hover,
nav a.item-active {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Mega Menu Refactored */
.mega-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1500;
}

.mega-menu.active {
    max-height: 60vh;
}

.mega-menu-content {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-top: none;
}

.menu-column {
    grid-column: span 3;
    padding: 60px 40px;
    border-right: 1px solid var(--border);
}

.menu-column:last-child {
    border-right: none;
}

.menu-column h4 {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.menu-column ul li {
    margin-bottom: 12px;
}

.menu-column a {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    display: block;
    padding: 0;
    text-transform: none;
}

.menu-column a:hover {
    color: var(--text-secondary);
    background: transparent;
}

/* Hero Section - Immersive Overhaul */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 url('hero_new.png') no-repeat center;
    background-size: cover;
    color: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

/* Blueprint/Grid Overlay */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 40px;
}

.hero h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -4px;
    text-transform: uppercase;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: none;
    padding-left: 0;
}

/* Technical Data Overlays */
.hero-data-point {
    position: absolute;
    z-index: 5;
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.data-top-left {
    top: 120px;
    left: 40px;
}

.data-top-right {
    top: 120px;
    right: 40px;
    text-align: right;
}

.data-bottom-left {
    bottom: 40px;
    left: 40px;
}

.data-bottom-right {
    bottom: 40px;
    right: 40px;
    text-align: right;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid System for Sections */
.main-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-top: 1px solid var(--border);
}

.grid-item {
    padding: 60px 40px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.grid-item:nth-child(4n) {
    border-right: none;
}

/* Specific Content Styles */
.title-box {
    grid-column: span 12;
    padding: 100px 40px;
    border-bottom: 1px solid var(--border);
}

.title-box h2 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

.content-card {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    background: var(--bg-primary);
    transition: var(--transition);
}

.content-card:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.content-card span {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.content-card h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.content-card p {
    font-size: 1rem;
    line-height: 1.5;
}

.footer {
    padding: 80px 0 40px;
    background: #161616;
    color: #f4f4f4;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.footer-brand {
    grid-column: span 3;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer-nav-col {
    grid-column: span 2;
}

.footer-nav-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer-nav-col ul li {
    margin-bottom: 12px;
}

.footer-nav-col a {
    font-size: 0.875rem;
    color: #c6c6c6;
    transition: color 0.2s ease;
}

.footer-nav-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #393939;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copy {
    font-size: 0.75rem;
    color: #a8a8a8;
}

.beian-links {
    display: flex;
    gap: 24px;
    font-size: 0.75rem;
}

.beian-links a {
    color: #a8a8a8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.beian-links a:hover {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .footer-brand {
        grid-column: span 6;
        margin-bottom: 40px;
    }

    .footer-nav-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-nav-col {
        grid-column: span 3;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive adjustments for new hero */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-right {
        display: none;
    }

    .hero-left {
        padding: 40px;
        border-right: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .content-card {
        grid-column: span 6;
    }

    .grid-item:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .content-card {
        grid-column: span 12;
        border-right: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    nav {
        display: none;
    }
}