:root {
    --primary-blue: #0A2E5C;
    --secondary-blue: #16427C;
    --accent-green: #00FF88;
    --accent-cyan: #00D4FF;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #0A1628;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 46, 92, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-green);
}

.company-name {
    font-size: 1.2rem;
    color: var(--text-white);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-green);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(0,255,136,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 46, 92, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-blue);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-white);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--text-white);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(10px); }
}

.animate-fade-in {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--text-white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.products {
    padding: 5rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.product-image {
    background: var(--gradient-primary);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.4rem;
    color: var(--primary-blue);
}

.product-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.product-link {
    display: inline-block;
    padding: 0 1.5rem 1.5rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-link:hover {
    color: var(--accent-cyan);
    padding-left: 2rem;
}

.stats {
    background: var(--gradient-primary);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--text-white);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-green);
    display: inline;
}

.stat-unit {
    font-size: 2rem;
    color: var(--accent-green);
    font-weight: bold;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cases-preview {
    padding: 5rem 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.case-card {
    background: var(--text-white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.case-image {
    background: var(--gradient-primary);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.case-placeholder {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.case-icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: var(--primary-blue);
}

.case-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.case-link {
    display: inline-block;
    padding: 0 1.5rem 1.5rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.case-link:hover {
    color: var(--accent-cyan);
}

.news {
    padding: 5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--gradient-primary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-white);
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
}

.news-image {
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder {
    width: 100%;
    height: 100%;
}

.news-icon {
    width: 100%;
    height: 100%;
}

.news-image-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-content {
    padding: 2rem;
}

.news-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-card p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.news-link {
    display: inline-block;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--accent-cyan);
    padding-left: 0.5rem;
}

.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 70px;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
}

.page-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

.news-detail {
    padding: 5rem 0;
    background: var(--bg-light);
}

.news-detail .news-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--text-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-detail .news-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.news-detail .news-content h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
    position: relative;
    padding-left: 15px;
}

.news-detail .news-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: var(--gradient-accent);
    border-radius: 5px;
}

.news-detail .news-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.news-detail .news-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }

    .page-hero .hero-title {
        font-size: 2.2rem;
    }

    .page-hero .hero-subtitle {
        font-size: 1.1rem;
    }
}

.cta {
    background: var(--gradient-accent);
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-grid .footer-section:first-child {
    max-width: 350px;
}

/* 右侧三个板块的容器 */
.footer-right {
    display: grid;
    grid-template-columns: 0.5fr 1fr 0.7fr;
    gap: 2rem;
}

/* 限制联系方式文本宽度 */
.footer-section:nth-child(3) ul li:last-child {
    max-width: 250px;
    word-break: break-word;
}

/* 调整板块顺序：关于爱科特、快速链接、联系方式、微信公众号 */
.footer-grid .footer-section:nth-child(1) {
    grid-column: 1;
}
.footer-grid .footer-section:nth-child(2) {
    grid-column: 2;
}
.footer-grid .footer-section:nth-child(3) {
    grid-column: 3;
}
.footer-grid .footer-section:nth-child(4) {
    grid-column: 4;
}

.footer-section h3 {
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 电话、邮箱链接固定绿色 */
.footer-section a[href^="tel:"],
.footer-section a[href^="mailto:"] {
    color: var(--accent-green);
}

.footer-section a:hover {
    color: var(--accent-green);
}

/* 备案号链接样式 */
.footer-bottom a {
    color: var(--accent-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.footer-qr {
    display: flex;
    justify-content: flex-start;
}

.footer-qr-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-blue);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1.1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 200px;
    }

    .news-card h3 {
        font-size: 1.2rem;
    }

    .news-detail .news-content {
        padding: 2rem;
    }

    .news-detail .news-content h3 {
        font-size: 1.5rem;
    }

    /* ===== Footer 移动端响应式：单列堆叠 ===== */
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .footer-right {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    /* 重置桌面端 grid-column 强制定位 */
    .footer-grid .footer-section:nth-child(1),
    .footer-grid .footer-section:nth-child(2),
    .footer-grid .footer-section:nth-child(3),
    .footer-grid .footer-section:nth-child(4) {
        grid-column: unset;
    }
    .footer-grid .footer-section:first-child {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .news-content {
        padding: 1.5rem;
    }

    .news-image {
        height: 180px;
    }

    .news-detail .news-content {
        padding: 1.5rem;
    }

    .news-detail .news-content h3 {
        font-size: 1.3rem;
    }
}
