/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #2c5aa0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2c5aa0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    color: #2c5aa0;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-contact {
    background: #2c5aa0;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.btn-contact:hover {
    background: #1e4080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Banner区域 */
.banner {
    position: relative;
    height: 480px;
    margin-top: 70px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 25%, #0f3460 50%, #1a5f7a 75%, #0f3460 100%);
    background-image: url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.3) 0%, rgba(22, 33, 62, 0.2) 50%, rgba(26, 95, 122, 0.3) 100%);
    z-index: 1;
}

.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.banner-content p {
    font-size: 22px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

/* 数据统计栏 */
.stats-bar {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    padding: 40px 0;
    color: #fff;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-number .plus,
.stat-number .percent {
    font-size: 32px;
}

.stat-label {
    font-size: 15px;
    opacity: 0.95;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 30px;
    color: #2c5aa0;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-line {
    width: 50px;
    height: 3px;
    background: #2c5aa0;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    margin-bottom: 18px;
    text-align: justify;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5aa0;
    font-weight: 600;
    margin-top: 15px;
    font-size: 14px;
}

.btn-more:hover {
    gap: 12px;
    color: #1e4080;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* 产品与服务 */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 30px;
    color: #2c5aa0;
    margin-bottom: 15px;
    font-weight: bold;
}

.section-line-center {
    width: 50px;
    height: 3px;
    background: #2c5aa0;
    margin: 0 auto 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.15);
}

.service-image {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 20px;
    color: #2c5aa0;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5aa0;
    font-weight: 600;
    font-size: 14px;
}

.service-link:hover {
    gap: 12px;
}

/* 项目案例 */
.projects-section {
    padding: 80px 0;
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.project-image {
    position: relative;
    height: 200px;
    width: 380px;
    min-width: 380px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f1f8 0%, #d0e4f5 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image-wrapper {
    position: relative;
    width: 380px;
    min-width: 380px;
    height: 200px;
}

.project-mobile-overlay {
    position: absolute;
    right: 20px;
    top: 40px;
    width: 70px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
    border: 3px solid #fff;
    z-index: 5;
}

.project-mobile-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .project-mobile-overlay {
    animation: floatPhone 0.5s ease;
}

@keyframes floatPhone {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tag {
    background: #e8f1f8;
    color: #2c5aa0;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
    width: fit-content;
    font-weight: 600;
}

.project-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.project-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
}

.projects-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.project-small-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.project-small-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.project-small-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-small-card:hover img {
    transform: scale(1.05);
}

.project-small-content {
    padding: 15px;
    background: #fff;
}

.project-tag-small {
    background: #e8f1f8;
    color: #2c5aa0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 8px;
}

.project-small-content h4 {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.text-center {
    text-align: center;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #e0e0e0;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-map img {
    width: 100%;
    height: auto;
}

.contact-info h2 {
    font-size: 28px;
    color: #2c5aa0;
    margin-bottom: 20px;
    font-weight: bold;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 22px;
    color: #2c5aa0;
    margin-top: 3px;
}

.contact-item h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item p {
    font-size: 14px;
    color: #666;
}

.contact-qrcode {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-qrcode img {
    width: 110px;
    height: 110px;
    margin: 0 auto 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.contact-qrcode p {
    font-size: 13px;
    color: #666;
}

/* 底部 */
.footer {
    background: #2c5aa0;
    color: #fff;
    padding: 25px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
}

.footer-logo img {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-copyright p {
    font-size: 13px;
    margin: 4px 0;
    opacity: 0.9;
}

/* 动画定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 滚动进入动画 - 修正版 */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 初始状态 - 用于JS动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: #fff;
        width: 100%;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-right {
        display: none;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .stats-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image-wrapper {
        width: 100%;
        min-width: unset;
        height: 200px;
    }
    
    .project-image {
        width: 100%;
        min-width: unset;
        height: 200px;
    }
    
    .project-mobile-overlay {
        display: none;
    }
    
    .projects-more-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* 卡片悬停效果增强 */
.service-card,
.project-card,
.project-small-card {
    cursor: pointer;
}

.service-card:hover .service-content h3,
.project-card:hover .project-content h3 {
    color: #1e4080;
}

/* 按钮悬停效果 */
.btn-contact,
.btn-more,
.service-link {
    cursor: pointer;
}

/* 图片加载占位 */
.service-image,
.project-image,
.project-small-card img,
.about-image,
.contact-map {
    background: linear-gradient(135deg, #e8f1f8 0%, #d0e4f5 100%);
}

/* 页面头部通用样式 */
.page-header {
    position: relative;
    height: 280px;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

.page-header h1 {
    position: relative;
    z-index: 1;
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 12px;
}

.page-header p {
    position: relative;
    z-index: 1;
    font-size: 16px;
    opacity: 0.95;
}