/* 全局样式与变量 */
:root {
    --bg-color: #0f172a;
    /* 企业深蓝 */
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-color: #0ea5e9;
    /* 专业蓝 */
    --accent-hover: #0284c7;
    --glass-bg: rgba(15, 23, 42, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Noto Sans SC', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 移除自定义光标 */
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

::-webkit-scrollbar-track {
    background: transparent;
    display: none;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    display: none;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
    display: none;
}

/* 确保body占满高度 */
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    /* 增加行高 */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Firefox隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE和Edge */

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 字体排版 */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: #fff;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* 容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* 导航栏 - 顶部样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    background: transparent;
    /* 初始完全透明 */
    border-bottom: none;
    /* 移除边框 */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}

/* 导航栏滚动后状态 - 毛玻璃效果 */
.navbar.scrolled {
    padding: 15px 60px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: none;
    /* 滚动后也无边框 */
}

/* 恢复导航链接样式 */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* 黑色logo变白色 */
.logo img {
    filter: brightness(0) invert(1);
    height: 38px;
    width: auto;
    margin-right: 14px;
}

.logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    /* 无列表符号 */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.navbar.hidden {
    top: -120px;
}

/* 首屏区域 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* 防止溢出 */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 飞机图片背景 */
    background: url('assets/hero-new.jpg') no-repeat center center/cover;
    z-index: 0;
    /* 轻微叠加层 */
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 渐变叠加 */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4) 50%, var(--bg-color));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding-top: 60px;
    /* 顶部导航栏偏移 */
}

.hero h1 {
    font-size: 4.5rem;
    /* 大而权威 */
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 6px;
    /* 轻微圆角 */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(14, 165, 233, 0.3);
}

/* 区块过渡 - 渐变遮罩 */
.section {
    padding: 80px 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* 统一背景 */
    background-color: var(--bg-color);
}

/* 首页全屏区块 */
.section-fullscreen {
    padding: 0;
    min-height: 100vh;
}

/* 交替区块背景 */
.section:nth-of-type(even) {
    background: linear-gradient(to bottom, var(--bg-color), #0b1120, var(--bg-color));
}

.section-dark {
    /* 移除硬背景色 */
    background-color: transparent;
}

/* 区块底部渐变分隔 */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    /* 大渐变区域 */
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
    pointer-events: none;
    z-index: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* 自适应内容高度 */
    grid-auto-rows: minmax(350px, auto);
}

.bento-item {
    background: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    /* 圆角 */
    overflow: hidden;
    position: relative;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    /* 链接包裹 */
    color: inherit;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-item.span-2 {
    grid-column: span 2;
}

.bento-item {
    position: relative;
    overflow: hidden;
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.bento-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
    /* 低透明度作为背景 */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bento-item:hover .bento-img-bg {
    opacity: 0.25;
    transform: scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 1;
    pointer-events: none;
    /* 点击穿透到卡片 */
}

.bento-icon {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.bento-item h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #fff;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* --- 子页面样式 --- */

.page-hero {
    position: relative;
    height: 60vh;
    /* 比首页首屏短 */
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.page-hero .hero-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), var(--bg-color));
}

.content-block {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.content-block h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.content-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 关于我们区块样式 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stats-grid-single-logo {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: -16px auto 0;
}

.stats-grid-single-logo .stat-item {
    background: #ffffff;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-logo {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 合作伙伴网格 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-item {
    background: var(--surface-color);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s;
}

.partner-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: var(--accent-color);
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-date {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* 页脚 - 全屏样式 */
.footer-pro {
    /* 背景图片 */
    background: url('assets/footer-bg.jpg') no-repeat center center/cover;
    position: relative;
    z-index: 1;
    border-top: none;
    padding: 0;
    text-align: center;

    /* 全视口覆盖 */
    min-height: 100vh;
    width: 100%;
    margin: 0;

    display: flex;
    flex-direction: column;
}

/* 页脚 - 标准样式 */
.footer-standard {
    background-color: #020617;
    border-top: 1px solid #1e293b;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-standard .footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.footer-standard .footer-copyright {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.85rem;
}

/* 页脚 - 简洁样式 */
.footer-minimal {
    background-color: var(--bg-color); /* 匹配页面背景 */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* 细微边框 */
    padding: 40px 0; /* 标准内边距 */
    text-align: center;
    /* 保持在底部 */
    width: 100%;
    margin-top: auto; /* flex容器中推到底部 */
}

.footer-minimal .footer-copyright {
    margin: 0;
    padding: 0;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
}

/* 全局重置 */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* 防止横向滚动 */
    background-color: var(--bg-color);
    /* 设置基础颜色避免白屏 */
    scroll-behavior: smooth;
    /* 平滑滚动 */
}

/* 顶部渐变遮罩 */
.footer-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 渐变遮罩 */
    background: linear-gradient(to bottom,
            var(--bg-color) 0%,
            var(--bg-color) 10%,
            /* 遮盖图片顶部边缘 */
            rgba(15, 23, 42, 0.95) 25%,
            rgba(2, 6, 23, 0.6) 50%,
            rgba(2, 6, 23, 0.7) 100%);
    z-index: -1;
}

.footer-pro .container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 100vh;
}

.footer-cta {
    margin-top: auto;
    margin-bottom: auto;
}

.footer-cta h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.footer-copyright {
    margin-top: 0;
    padding: 20px 0 40px;
    /* 底部间距 */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.85rem;
    width: 100%;
}

.cn-icp-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 0.75rem;
    color: #64748b;
}

.beian-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    vertical-align: middle; /* 与前面的版权文字基线对齐 */
}

.beian-link img {
    width: 16px;
    height: 16px;
    display: block;
    position: relative;
    top: -1px; /* 略微上移，保证与文字更平齐 */
}

/* 响应式 */
@media (max-width: 1024px) {
    :root {
        --container-width: 100%;
    }

    .container {
        padding: 0 30px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .navbar {
        min-width: 600px;
        padding: 14px 30px;
    }

    /* 平板适配 */
    .about-content {
        gap: 30px;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bento-item {
        padding: 30px;
        min-height: 300px;
    }

    .bento-item.span-2 {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* 移动端更小 */
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* 移动端导航栏 */
    .navbar {
        top: 20px;
        /* 自动宽度适应内容 */
        width: auto;
        min-width: 0;
        max-width: 90%;
        padding: 10px 24px;
        /* 居中 */
        left: 50%;
        transform: translateX(-50%);
        /* flex容器收缩适应内容 */
        justify-content: center;
    }

    .logo {
        margin: 0;
        /* 移除默认边距 */
    }

    .logo img {
        height: 28px;
        margin-right: 8px;
    }

    .logo span {
        font-size: 1.1rem;
        white-space: nowrap;
        /* 防止文字换行 */
    }

    .nav-links {
        display: none;
        /* 移动端完全隐藏 */
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

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

    .footer-cta h2 {
        font-size: 2rem;
        /* 移动端页脚调整 */
    }

    .footer-pro .container {
        padding: 0 20px;
    }

    /* 移动端适配 */
    .about-content {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
