/* =========================================
   1. 全局变量与基础设置 (Variables & Base)
   ========================================= */
:root {
    /* 核心配色 - 从参考图提取 */
    --color-primary: #0066CC; /* 科技蓝 */
    --color-primary-light: #3399FF; /* 亮蓝高光 */
    --color-text-main: #333333; /* 深灰主文本 */
    --color-text-light: #666666; /* 浅灰副文本 */
    --color-bg-body: #F0F4F8; /* 极淡的蓝灰色背景 */
    --color-white: #FFFFFF;
    
    /* 功能性颜色 */
    --glass-bg: rgba(255, 255, 255, 0.75); /* 毛玻璃背景色 */
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* 字体栈 */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    /* 布局变量 */
    --header-height: 80px;
    --container-width: 1200px;
    --border-radius-lg: 24px; /* 卡片圆角 */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-jp);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    /* 页面整体背景渐变 */
    background: linear-gradient(180deg, #E6F0FF 0%, #F0F4F8 100%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 通用容器 */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* =========================================
   2. 顶部毛玻璃导航栏 (Glass Header)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    /* 核心毛玻璃特效 */
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo区域 */
.site-branding a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #0A2540; /* 深蓝Logo色 */
}

/* 主菜单 */
.main-navigation .menu-list {
    display: flex;
    gap: 40px;
}

.main-navigation a {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text-main);
    position: relative;
    padding: 5px 0;
}

/* 菜单悬停与激活状态 */
.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-primary);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* 语言切换器 */
.language-switcher {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-active {
    color: var(--color-text-main);
    font-weight: 700;
}

.lang-sep {
    font-size: 12px;
    opacity: 0.5;
}

/* =========================================
   3. Hero 轮播区域 (Hero Slider)
   ========================================= */
.hero-section {
    position: relative;
    height: 75vh; /* 设定高度 */
    min-height: 600px;
    margin-top: var(--header-height); /* 为固定导航留出空间 */
    border-radius: 0 0 40px 40px; /* 底部大圆角 */
    overflow: hidden;
    /* 外部大阴影 */
    box-shadow: 0 20px 80px rgba(0, 40, 120, 0.2);
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 蓝色科技感遮罩层 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 核心渐变遮罩 - 还原图中的蓝色氛围 */
    background: linear-gradient(135deg, rgba(0, 24, 85, 0.7) 0%, rgba(0, 102, 204, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding-bottom: 80px; /* 向上提一点，为下方卡片留空间 */
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 50px;
    opacity: 0.9;
}

/* 科技感按钮 */
.tech-button {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    font-weight: 700;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.6);
}

/* Swiper 分页器自定义点 */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 5px;
    background: var(--color-white);
}

/* 文字入场动画类 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-slide-active .fade-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }


/* =========================================
   4. 服务卡片重叠区域 (Overlap Services)
   ========================================= */
.services-overlap-section {
    position: relative;
    z-index: 10;
    /* 核心：负边距实现重叠效果 */
    margin-top: -100px;
    padding-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    background: var(--color-white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    /* 卡片深度阴影 */
    box-shadow: 0 20px 60px rgba(0, 60, 160, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 60, 160, 0.15);
}

.card-icon img {
    width: 80px;
    height: auto;
    /* 简单的把图标变蓝的滤镜，实际项目中建议使用SVG内联修改fill色 */
    filter: drop-shadow(0 10px 20px rgba(0, 102, 204, 0.2));
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0A2540;
}

.card-content p {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.card-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link .arrow {
    transition: transform 0.3s ease;
}

.card-link:hover .arrow {
    transform: translateX(5px);
}

/* =========================================
   5. 最新情报区域 (News Section)
   ========================================= */
.latest-news-section {
    padding-bottom: 100px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #0A2540;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-item {
    /* 简单的左侧边框装饰 */
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
}

.news-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 12px;
}

.news-title a {
    color: var(--color-text-main);
}

.news-title a:hover {
    color: var(--color-primary);
}

.news-date {
    font-family: var(--font-en);
    font-size: 14px;
    color: #999;
}

/* =========================================
   6. 全设备深度响应式适配 (Responsive & Mobile Menu)
   ========================================= */

/* 默认隐藏移动端按钮 */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

    .mobile-menu-btn .bar {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-text-main);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

        .mobile-menu-btn .bar:nth-child(1) {
            top: 0;
        }

        .mobile-menu-btn .bar:nth-child(2) {
            top: 11px;
        }

        .mobile-menu-btn .bar:nth-child(3) {
            top: 22px;
        }

    /* 汉堡菜单激活时的 "X" 动画 */
    .mobile-menu-btn.is-active .bar:nth-child(1) {
        top: 11px;
        transform: rotate(45deg);
        background-color: var(--color-primary);
    }

    .mobile-menu-btn.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.is-active .bar:nth-child(3) {
        top: 11px;
        transform: rotate(-45deg);
        background-color: var(--color-primary);
    }


/* --- 平板端适配 (Tablet Landscape, max-width: 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        padding: 30px;
    }

    .card-icon img {
        width: 60px;
    }

    .news-list {
        gap: 20px;
    }

    .footer-container {
        gap: 40px;
    }

    .footer-links-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* --- 移动端适配 (Mobile Portrait & Tablet, max-width: 768px) --- */
@media (max-width: 768px) {
    /* 导航栏与移动菜单 */
    .mobile-menu-btn {
        display: block;
    }

    /* 将导航和语言切换器转换为全屏毛玻璃菜单 */
    .main-navigation, .language-switcher {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .main-navigation {
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transform: translateY(-20px);
    }

        .main-navigation .menu-list {
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }

        .main-navigation a {
            font-size: 20px;
            font-weight: 700;
        }

    .language-switcher {
        top: auto;
        bottom: 40px;
        height: auto;
        z-index: 1000;
        justify-content: center;
        transform: translateY(20px);
    }

    /* 菜单展开状态 */
    body.menu-open {
        overflow: hidden;
    }

        body.menu-open .main-navigation,
        body.menu-open .language-switcher {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

    /* Hero 轮播区域 */
    .hero-section {
        height: 60vh;
        min-height: 500px;
        border-radius: 0 0 20px 20px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .tech-button {
        padding: 14px 36px;
        font-size: 16px;
    }

    .swiper-pagination-bullet-active {
        width: 20px;
    }

    /* 服务卡片 */
    .services-overlap-section {
        margin-top: -60px; /* 减小移动端的重叠幅度 */
        padding-bottom: 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px;
        flex-direction: column; /* 手机端图标和文字垂直排列 */
        align-items: flex-start;
        gap: 15px;
    }

    /* 新闻区域 */
    .latest-news-section {
        padding-bottom: 60px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-item {
        padding-bottom: 15px;
        border-bottom: 1px solid #E2E8F0;
    }

    /* 底部 CTA 与 Footer */
    .footer-cta-section {
        padding: 20px 0 60px;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-card {
        padding: 25px;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .cta-icon {
        width: 50px;
        height: 50px;
    }

        .cta-icon svg {
            width: 24px;
            height: 24px;
        }

    .site-footer-main {
        padding: 50px 0 30px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-brand-area {
        width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links-area {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    /* 标题装饰线居中 */
}

/* --- 小屏手机适配 (Small Mobile, max-width: 480px) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .tech-button {
        width: 100%;
        box-sizing: border-box;
    }
    /* 按钮全宽，方便点击 */
    .site-header {
        padding: 0 10px;
    }
}

/* =========================================
   7. 底部 CTA (Call to Action) 区域
   ========================================= */
.footer-cta-section {
    padding: 60px 0 100px;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* CTA 卡片容器：默认带有科技感的微弱边框和阴影 */
.cta-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 40px rgba(0, 40, 100, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 102, 204, 0.08);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text-main);
}

    /* 悬停时的左侧蓝色进度条特效 */
    .cta-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: var(--color-primary);
        transition: width 0.4s ease;
        opacity: 0.1;
    }

    .cta-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 102, 204, 0.12);
        border-color: rgba(0, 102, 204, 0.2);
    }

        .cta-card:hover::before {
            width: 100%;
            opacity: 0.02; /* 悬停时背景微微变蓝 */
        }

.cta-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* 圆形发光图标 */
.cta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #E6F0FF 0%, #FFFFFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.1);
}

    .cta-icon svg {
        width: 30px;
        height: 30px;
    }

.cta-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.cta-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    z-index: 2;
}

    .cta-arrow svg {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }

.cta-card:hover .cta-arrow svg {
    transform: translateX(8px);
}

/* =========================================
   8. 网站全局底部 (Site Footer)
   ========================================= */
.site-footer-main {
    background-color: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    padding: 80px 0 40px;
    color: var(--color-text-main);
}

.footer-container {
    display: flex;
    gap: 80px;
    justify-content: space-between;
}

/* 左侧品牌区 */
.footer-brand-area {
    width: 320px;
    flex-shrink: 0;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 24px;
    /* 如果背景较白，可为Logo添加极其轻微的阴影提升质感 */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.02));
}

.footer-company-name {
    font-weight: 700;
    font-size: 16px;
    color: #0A2540;
    margin-bottom: 12px;
}

.copyright {
    font-family: var(--font-en);
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 28px;
}

/* 社交媒体按钮 */
.footer-social {
    display: flex;
    gap: 16px;
}

    .footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #F1F5F9;
        color: #64748B;
        transition: all 0.3s ease;
    }

        .footer-social a:hover {
            background-color: var(--color-primary);
            color: #FFFFFF;
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0, 102, 204, 0.2);
        }

    .footer-social svg {
        width: 20px;
        height: 20px;
    }

/* 右侧多列链接区 */
.footer-links-area {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    flex-grow: 1;
}

.footer-heading {
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

    /* 标题底部蓝色短线装饰 */
    .footer-heading::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 24px;
        height: 2px;
        background-color: var(--color-primary);
    }

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .footer-menu a {
        font-size: 14px;
        color: #475569;
        transition: color 0.3s ease, transform 0.3s ease;
        display: inline-block;
    }

        .footer-menu a:hover {
            color: var(--color-primary);
            transform: translateX(4px);
        }

/* =========================================
   底部响应式适配
   ========================================= */
@media (max-width: 1200px) {
    .footer-container {
        gap: 50px;
    }
}

@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        gap: 50px;
    }

    .footer-links-area {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand-area {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-area {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-card {
        padding: 30px;
    }

    .cta-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cta-arrow {
        justify-content: center;
    }
}