/* ========== 全局变量与基础样式 ========== */
:root {
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --gray-dark: #222222;
    --gray-medium: #555555;
    --gray-light: #EEEEEE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
}

/* ========== 动画定义 ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 8px rgba(0,255,255,0.6), 0 0 15px rgba(255,0,255,0.4); }
    50% { text-shadow: 0 0 15px rgba(0,255,255,0.9), 0 0 30px rgba(255,0,255,0.7); }
}

/* ========== 导航栏 ========== */
header {
    background-color: var(--primary-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--gray-medium);
}

/* ========== Logo样式 ========== */
.logo-container {
    height: 50px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%) contrast(200%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeIn 0.6s ease-out forwards;
}

.logo-container:hover .logo-img {
    filter: grayscale(0%) contrast(100%);
    transform: scale(1.05) rotate(-2deg);
}

/* ========== 主要内容区域 ========== */
/* ========== 主要内容区域（主横幅） ========== */
.hero {
    padding: 180px 1% 5px;
    text-align: center;
    /* 原有背景相关样式可删除（如 background-size、background-position），替换为以下： */
    position: relative; /* 父容器相对定位，用于子元素绝对定位 */
    min-height: 100vh; /* 让横幅占满屏幕高度（可选，根据需求调整） */
    overflow: hidden; /* 隐藏视频超出容器的部分（避免滚动条） */
}

/* 新增：视频背景样式 */
.hero-video {
    position: absolute; /* 视频绝对定位，作为背景 */
    top: 0;
    left: 0;
    width: 100%; /* 视频宽度铺满容器 */
    height: 100%; /* 视频高度铺满容器 */
    object-fit: cover; /* 视频保持比例，铺满容器（裁剪超出部分，避免拉伸变形） */
    z-index: -1; /* 视频层级在文字下方（确保文字可见） */
    opacity: 0.8; /* 调整视频透明度（可选，避免文字与视频对比度不足，0-1之间） */
}

/* 原有文字样式保持不变（h1、p 部分） */
.hero h1 {
    font-size: 8rem;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #00f5ff, #ff00ff, #00ff88);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 6s ease infinite, glowPulse 2.5s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: white;
    /* 可选：若视频过亮，给文字加阴影增强可读性 */
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* ========== 业务介绍部分 ========== */
.services {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-black);
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--primary-white);
    border: 1px solid var(--gray-light);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ========== 合作区域 ========== */
.cooperate {
    padding: 80px 5%;
    background: var(--gray-light);
    text-align: center;
}

.qr-card {
    display: inline-block;
    background: var(--primary-white);
    border: 1px solid var(--gray-light);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    padding: 30px 40px;
    border-radius: 12px;
}

.qr-card p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--gray-medium);
}

.qr-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    transition: transform 0.3s;
}

.qr-card:hover .qr-img {
    transform: scale(1.05);
}

/* ========== 页脚 ========== */
footer {
    background-color: var(--gray-dark);
    color: var(--primary-white);
    padding: 60px 5% 30px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p,
.footer-column a {
    color: var(--gray-light);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--primary-white);
}

.copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .navbar {
        flex-direction: column;
        padding: 15px 5%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }

    .logo-container {
        height: 40px;
        margin-bottom: 10px;
    }

    .logo-img {
        max-width: 150px;
    }

    /* 高亮文字效果 */
    .highlight-text {
        display: inline-block;
        background: linear-gradient(90deg, #00f5ff, #ff00ff, #00ff88);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: textGradient 6s ease infinite, glowPulse 2.5s ease-in-out infinite;
        cursor: pointer;
        transition: transform 0.3s ease;
    }


    /* 悬停放大效果 */
    .highlight-text:hover {
        transform: scale(1.08);
    }
    #contact {
        background-color: #2c3e50;
        color: #ecf0f1;
        padding: 3rem 5% 2rem;
        margin-top: 3rem;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto 2rem;
    }

    .footer-column h3 {
        color: #fff;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--blue);
        display: inline-block;
    }

    .footer-column p {
        color: #ddd;
        margin-bottom: 0.8rem;
        line-height: 1.6;
    }

    .record-info {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
        margin-bottom: 1rem;
    }

    .copyright {
        text-align: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #bbb;
        font-size: 0.9rem;
    }

    .copyright p {
        margin-bottom: 0.5rem;
    }

    .copyright a:hover,
    .security-filing a:hover {
        text-decoration: underline;
        color: var(--blue);
        transition: color 0.3s ease;
    }

    @media (max-width: 768px) {
        .footer-content {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .footer-column h3 {
            display: block;
            text-align: center;
        }
    }

}


.cooperate-content {
    text-align: center;
    position: relative;
    padding-bottom: 50px;
    padding-top: 0px;
    background-color: #fffbe6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cooperate-banner .banner-img {
    max-width: 80%;
    margin-bottom: 1rem;
}

.qr-card {
    margin-top: 1rem;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* 彩带样式 */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: red;
    opacity: 0.9;
    border-radius: 3px;
    animation: fall linear infinite;
}

/* 随机漂浮动画 */
@keyframes fall {
    0% {
        transform: translateY(300px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100%) rotate(360deg);
        opacity: 0;
    }
}