/* ================= 1. 基础重置 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
}

/* 为下方主内容留出导航栏的空间 */
main {
    margin-top: 80px; 
    min-height: 100vh;
}

/* ================= 2. 顶部导航栏 ================= */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo 与公司名称 */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0271C0; /* 主题蓝 */
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none; /* 去掉小黑点 */
    gap: 30px;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none; /* 去掉下划线 */
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #0271C0;
}

/* 语言切换下拉框 */
.lang-switcher select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.lang-switcher select:focus {
    border-color: #0271C0;
}

/* ================= 3. 第一模块：首屏轮播 ================= */
.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.hero-overlay p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 5px;
}

.carousel-control:hover {
    background: #0271C0;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: #0271C0;
}

/* ================= 4. 第二模块：关于我们 & 管理团队 ================= */
.about-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0271C0;
    margin: 15px auto 0;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: justify;
}

.about-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlight-text {
    font-weight: 600;
    color: #0271C0;
    border-left: 4px solid #0271C0;
    padding-left: 15px;
    background-color: #f4f9fd;
    border-radius: 0 5px 5px 0;
}

.about-metrics {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 80px;
    padding: 40px 0;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.metric-item {
    text-align: center;
}

.theme-text {
    font-size: 3rem;
    color: #0271C0;
    font-weight: bold;
    margin-bottom: 10px;
}

.team-section {
    margin-top: 50px;
}

.team-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-card-gm {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    border-top: 4px solid #0271C0;
}

.gm-image-wrapper {
    flex: 0 0 300px;
}

.gm-info {
    flex: 1;
}

.gm-name {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.gm-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #0271C0;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid #0271C0;
}

.gm-desc {
    color: #555;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member .team-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.team-member h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 5px;
}

.member-title {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.member-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* 响应式：手机端适配 */
@media (max-width: 768px) {
    .team-card-gm {
        flex-direction: column;
        text-align: center;
    }
    .gm-quote {
        border-left: none;
        border-bottom: 2px solid #0271C0;
        padding-bottom: 10px;
    }
}
/* ================= 第三模块：为什么选择我们 ================= */
.why-us-section {
    padding: 80px 20px;
    background-color: #f4f7f6; /* 与“关于我们”的纯白背景区分开，增加层次感 */
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: -20px;
    margin-bottom: 50px;
}

.advantages-grid {
    display: grid;
    /* 自动适应屏幕，最小宽度 300px，排不下就自动换行 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent; /* 预留底部边框位置 */
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #0271C0; /* 鼠标悬停时底部亮起主题色 */
}

/* 背景大数字水印效果 */
.card-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(2, 113, 192, 0.05); /* 极淡的主题蓝 */
    z-index: 0;
    pointer-events: none; /* 防止数字挡住文字点击 */
}

.advantage-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.advantage-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
/* ================= 第四模块：项目案例 ================= */
.projects-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.project-category {
    font-size: 1.5rem;
    color: #0271C0;
    margin-bottom: 30px;
    padding-left: 15px;
    border-left: 4px solid #0271C0;
}

.projects-grid {
    display: grid;
    /* 采用两列布局，在小屏幕上自动变成一列 */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* 控制图片容器，超出部分隐藏，为悬停放大做准备 */
.project-img-wrapper {
    width: 100%;
    /* 强制设置为 16:9 比例 */
    aspect-ratio: 16 / 9; 
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* 图片缩放动画时间 */
}

/* 鼠标悬停在卡片上时，里面的图片微微放大 5% */
.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-content h4 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.project-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* 手机端适配：当屏幕小于 500px 时，缩小卡片的最小宽度，防止溢出屏幕 */
@media (max-width: 500px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= 第五模块：合作伙伴 ================= */
.partners-section {
    padding: 60px 20px;
    background-color: #f4f7f6; /* 使用浅灰底色 */
}

/* 轮播外部容器：溢出隐藏，并且增加两端渐隐的蒙版效果（极其高级） */
.partners-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden; 
    padding: 10px 0; /* 上下留一点呼吸空间给阴影 */
    /* 左右边缘增加渐变透明过渡，让 Logo 消失得更自然 */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* 内部列表容器：改成纯 CSS 动画引擎 */
.partners-list {
    display: flex;
    gap: 20px;
    width: max-content; /* 关键：打破宽度限制，让 40 个 Logo 完全一字排开 */
    
    /* 30s 是滚动一圈的时间，linear 代表匀速，infinite 代表无限循环 */
    animation: scroll-marquee 30s linear infinite; 
}

/* 隐藏原生丑陋的滚动条 (双保险) */
.partners-list::-webkit-scrollbar {
    display: none;
}
.partners-list {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 高级交互：鼠标悬停在 Logo 上时，滚动暂停，方便用户查看 */
.partners-list:hover {
    animation-play-state: paused; 
}

/* 丝滑滚动动画定义 */
@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 恰好向左平移一半的距离（即原来的 20 个 Logo + 间距） */
        transform: translateX(calc(-50% - 10px)); 
    }
}

/* 统一的白色画框 */
.partner-item {
    flex: 0 0 auto; /* 确保卡片不会收缩，尺寸不变 */
    width: 180px; /* 尺寸仍保持 180x100 */
    height: 100px;
    background-color: #ffffff; /* 纯白背景 */
    border-radius: 8px; /* 边框半径 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* 内边距 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); /* 阴影 */
    transition: all 0.3s ease; /* 过渡效果 */
    
    /* 核心魔法：默认变成灰度，并稍微透明一点 */
    filter: grayscale(100%) opacity(60%);
    cursor: pointer;
}

/* 鼠标悬停时：恢复彩色、恢复不透明、稍微浮起并加深阴影 */
.partner-item:hover {
    filter: grayscale(0%) opacity(100%);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* 保证 Logo 在画框内不变形 */
.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 等比缩放，绝对不拉伸 */
}
/* ================= 第六模块：联系我们 (页脚) ================= */
.site-footer {
    background-color: #0b1320; /* 深色午夜蓝背景 */
    color: #a0aec0; /* 浅灰蓝文字 */
    /* 核心修改：设置水平 Padding，给内容留出呼吸空间 (上 右 下 左) */
    padding: 80px 40px 0 40px; 
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1.5fr; /* 左侧稍窄，右侧给长地址留足空间 */
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #ffffff; /* 标题用纯白，提亮 */
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* 标题下方的蓝色细线点缀 */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #0271C0;
}

.footer-brand {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-slogan {
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 联系信息列表 */
.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.contact-list a {
    color: #0271C0;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-list a:hover {
    color: #4da3ff; /* 悬停时变亮蓝 */
}

/* 社交媒体按钮 */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    /* 使用 flex 居中图标 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 设置一个固定的圆形或正方形大小 */
    width: 36px;
    height: 36px;
    /* 移除多余的 padding */
    padding: 0;
    /* 保持边框和初始颜色，并裁切为圆形 */
    border: 1px solid #2d3748;
    color: #a0aec0; /* 初始图标颜色 */
    text-decoration: none;
    border-radius: 50%; /* 圆形按钮 */
    transition: all 0.3s;
}

/* 确保图标本身居中并调整大小 */
.social-icon i {
    font-size: 1.2rem;
}

.social-icon:hover {
    background-color: #0271C0;
    border-color: #0271C0;
    color: #ffffff;
}

/* 最底部的版权信息栏 */
.footer-bottom {
    background-color: #070d15; /* 比主体更深一号的颜色 */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #1a202c;
}

/* 手机端响应式适配：变成单列堆叠 */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* ================= 致谢声明样式 ================= */
.footer-bottom .container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 让版权声明和 Gemini 驱动之间有一点小间距 */
}

.powered-by {
    font-size: 0.85rem;
    color: #4a5568; /* 偏暗的灰蓝色，低调不抢戏 */
    letter-spacing: 0.5px;
}

/* Gemini 专属渐变色特效 */
.gemini-highlight {
    background: linear-gradient(90deg, #4285f4, #9b72cb, #d96570);
    /* 先写标准属性，再写带前缀的属性 */
    background-clip: text; 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}
/* ================= 手机端导航栏专项优化 ================= */
@media (max-width: 768px) {
    /* 1. 缩小 Logo 和字号，防止撑开屏幕 */
    .brand img {
        height: 30px;
    }
    .brand-name {
        font-size: 1rem;
    }

    /* 2. 默认隐藏菜单列表，并改为垂直排列 */
    .nav-menu {
        position: absolute;
        top: 70px; /* 导航栏高度 */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column; /* 垂直排列 */
        gap: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; /* 默认隐藏 */
    }

    /* 3. 当菜单被激活时显示 */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 0;
    }

    /* 4. 显示“汉堡图标”按钮 */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: #0271C0;
        cursor: pointer;
    }

    /* 5. 语言切换器在手机端也单独占一行 */
    .lang-switcher {
        padding: 15px 0;
    }
}

/* 电脑端默认隐藏“汉堡图标” */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}