/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: '微软雅黑', '思源黑体', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F5F7FA;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
header {
    background-color: #003366;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #D4AF37;
}

.logo .slogan {
    font-size: 14px;
    opacity: 0.9;
}

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1000;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 导航菜单 */
.nav-menu {
    display: block;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.1);
}

/* 移动端菜单样式 */
.nav-menu.active {
    display: block;
}

/* 汉堡菜单动画 */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 轮播图 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: #003366;
}

.slideshow-container {
    position: relative;
    height: 100%;
}

.mySlides {
    display: none;
    height: 100%;
    position: relative;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 20px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #D4AF37;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* 核心业务 */
.core-business {
    padding: 80px 0;
    background-color: #fff;
}

.core-business h2 {
    text-align: center;
    font-size: 36px;
    color: #003366;
    margin-bottom: 60px;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.business-item {
    text-align: center;
    padding: 30px;
    background-color: #F5F7FA;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.business-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.business-item .icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #003366;
}

.business-item h3 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 15px;
}

.business-item p {
    font-size: 16px;
    color: #666;
}

/* 关于我们简介 */
.about-brief, .services-brief, .cases-brief {
    padding: 80px 0;
    background-color: #F5F7FA;
    text-align: center;
}

.about-brief h2, .services-brief h2, .cases-brief h2 {
    font-size: 36px;
    color: #003366;
    margin-bottom: 30px;
}

.about-brief p, .services-brief p, .cases-brief p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #003366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #D4AF37;
    color: #003366;
    transform: translateY(-2px);
}

/* 服务项目简介 */
.services-grid, .cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item, .case-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover, .case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-item h3, .case-item h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 20px;
}

.service-item p, .case-item p {
    color: #666;
    font-size: 16px;
}

/* 页面标题 */
.page-title {
    background-color: #003366;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 18px;
    opacity: 0.9;
}

/* 关于我们页面 */
.about-us {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text, .about-image {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 法定代表人简介 */
.founder {
    padding: 80px 0;
    background-color: #F5F7FA;
}

.founder h3 {
    text-align: center;
    font-size: 28px;
    color: #003366;
    margin-bottom: 50px;
}

.founder-content {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.founder-image, .founder-text {
    flex: 1;
    min-width: 300px;
}

.founder-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    display: block;
}

.founder-text h4 {
    font-size: 24px;
    color: #003366;
    margin-bottom: 15px;
}

.founder-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 团队优势 */
.team-advantages {
    padding: 80px 0;
    background-color: #fff;
}

.team-advantages h3 {
    text-align: center;
    font-size: 28px;
    color: #003366;
    margin-bottom: 50px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background-color: #F5F7FA;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.advantage-item .icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: #003366;
}

.advantage-item h4 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 15px;
}

.advantage-item p {
    font-size: 16px;
    color: #666;
}

/* 服务项目页面 */
.service-section {
    padding: 80px 0;
    background-color: #fff;
}

.service-section.bg-gray {
    background-color: #F5F7FA;
}

.service-section h3 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 40px;
    text-align: center;
}

.service-content {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.service-text, .service-image {
    flex: 1;
    min-width: 300px;
}

.service-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-text h4 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 15px;
}

.service-text ul, .service-text ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-text li {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.service-text .note {
    color: #ff6b6b;
    font-weight: bold;
}

.service-text .highlight {
    color: #D4AF37;
    font-weight: bold;
    font-size: 18px;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 案例展示页面 */
.case-categories {
    padding: 40px 0;
    background-color: #F5F7FA;
}

.categories-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    color: #003366;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover, .tab-btn.active {
    background-color: #003366;
    color: #fff;
    transform: translateY(-2px);
}

.case-section {
    padding: 80px 0;
    background-color: #fff;
}

.case-section h3 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 40px;
    text-align: center;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.case-item {
    background-color: #F5F7FA;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 30px;
}

.case-content h4 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 20px;
}

.case-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.client-review {
    background-color: rgba(0, 51, 102, 0.05);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #D4AF37;
}

.review-label {
    font-weight: bold;
    color: #003366;
}

/* 联系方式页面 */
.contact-info {
    padding: 80px 0;
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-details, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-details h3, .contact-form h3 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 30px;
    color: #003366;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-text h4 {
    color: #003366;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-text p {
    color: #666;
    font-size: 16px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #003366;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* 地图 */
.map-section {
    padding: 80px 0;
    background-color: #F5F7FA;
}

.map-section h3 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 40px;
    text-align: center;
}

.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 底部信息 */
footer {
    background-color: #003366;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3, .footer-wechat h3, .footer-license h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #D4AF37;
}

.footer-info p {
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0.9;
}

.wechat-qr, .license-img {
    max-width: 200px;
    margin: 0 auto;
}

.wechat-qr img, .license-img img {
    width: 100%;
    border-radius: 5px;
    border: 2px solid #D4AF37;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom a {
    color: #D4AF37;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 显示汉堡菜单 */
    .menu-toggle {
        display: flex;
    }
    
    /* 隐藏默认导航菜单 */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #003366;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* 移动端导航菜单样式 */
    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .nav-menu a {
        font-size: 18px;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    /* 调整header容器样式 */
    header .container {
        flex-direction: row;
        gap: 20px;
        flex-wrap: nowrap;
    }
    
    /* 调整logo大小 */
    .logo h1 {
        font-size: 20px;
    }
    
    .logo .slogan {
        font-size: 12px;
    }
    
    .banner {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .core-business h2,
    .about-brief h2,
    .services-brief h2,
    .cases-brief h2,
    .page-title h2 {
        font-size: 28px;
    }
    
    .business-grid,
    .services-grid,
    .cases-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-content,
    .founder-content,
    .service-content,
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image img,
    .founder-image img,
    .service-image img {
        max-width: 100%;
    }
    
    .categories-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .banner {
        height: 300px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .core-business,
    .about-brief,
    .services-brief,
    .cases-brief,
    .about-us,
    .founder,
    .team-advantages,
    .service-section,
    .case-section,
    .contact-info,
    .map-section {
        padding: 50px 0;
    }
    
    .business-item,
    .service-item,
    .case-item,
    .advantage-item {
        padding: 20px;
    }
}

/* 滚动渐显效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 占位图片样式 */
.placeholder-img {
    background-color: #f5f7fa;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 200px;
}

.placeholder-content {
    text-align: center;
    color: #666;
    padding: 20px;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #003366;
}

.placeholder-content p {
    margin: 5px 0;
    line-height: 1.5;
}

/* 特殊占位图片样式 */
.about-image.placeholder-img,
.service-image.placeholder-img,
.contact-image.placeholder-img {
    min-height: 300px;
}

.founder-image.placeholder-img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
}

.case-image.placeholder-img {
    height: 200px;
    min-height: auto;
}

.wechat-qr.placeholder-img,
.license-img.placeholder-img {
    max-width: 200px;
    height: 200px;
    margin: 0 auto;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}