/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #f0f4f8; /* 更有质感的浅灰色 */
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
    /* 新增颜色变量 */
    --hero-bg: #e8f4fd;
    --services-bg: #fff;
    --about-bg: #f9f4e8;
    --cases-bg: #fff;
    --team-bg: #f0f7ff;
    --news-bg: #fff;
    --contact-bg: #f8f0e5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: #2980b9;
}

.read-more i {
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    flex: 1;
}

.nav-links {
    flex: 2;
}

.nav-links ul {
    display: flex;
    justify-content: center;
}

.nav-links ul li {
    margin: 0 15px;
}

.nav-links ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links ul li a:hover::after,
.nav-links ul li a.active::after {
    width: 100%;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* 英雄区域样式 */
.hero {
    padding: 150px 0 100px;
    background-color: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(52, 152, 219, 0.05);
    z-index: 0;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
}

/* 服务区域样式 */
.services {
    padding: 100px 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: var(--about-bg);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--gray-color);
    margin: 0;
}

/* 案例展示样式 */
.cases {
    padding: 100px 0;
    background-color: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.case-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.case-card:hover img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px;
    color: white;
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
}

.case-card:hover .case-overlay {
    transform: translateY(0);
    opacity: 1;
}

.case-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.case-overlay p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.view-details {
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.view-details:hover {
    color: var(--primary-color);
}

.view-details i {
    margin-left: 5px;
    transition: var(--transition);
}

.view-details:hover i {
    transform: translateX(5px);
}

.view-more-cases {
    text-align: center;
}

/* 团队介绍样式 */
.team {
    padding: 100px 0;
    background-color: var(--team-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.team-info p {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 35px;
    height: 35px;
    background-color: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 新闻动态样式 */
.news {
    padding: 100px 0;
    background-color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    display: flex;
    align-items: center;
    color: var(--gray-color);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.news-date i {
    margin-right: 5px;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.news-content h3 a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.view-more-news {
    text-align: center;
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: var(--contact-bg);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--gray-color);
}

.contact-social {
    margin-top: 30px;
}

.contact-social h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    color: var(--primary-color);
    margin-right: 15px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-social a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* 页脚样式 */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 70px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo img {
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li,
.footer-services ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

.footer-privacy a {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    transition: var(--transition);
}

.footer-privacy a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .about .container {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        order: 1;
        margin-top: 50px;
    }

    .about-content {
        order: 2;
    }

    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
    }

    .nav-links ul li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-privacy a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}