/* 全局样式 */
:root {
    --primary-color: #0056b3;
    --secondary-color: #2d8ae0;
    --accent-color: #00a1ff;
    --bg-color: #ffffff;
    --bg-alt-color: #f7f9fc;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* 按钮样式 */
.primary-button, .secondary-button, .cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 部分标题样式 */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* 头部导航栏 */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 180px;
    height: 40px;
}

nav ul.menu {
    display: flex;
    list-style: none;
}

nav ul.menu li {
    margin-left: 25px;
}

nav ul.menu li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul.menu li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin-bottom: 5px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* 英雄区域 */
.hero {
    padding: 80px 0;
    background-color: var(--bg-alt-color);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: 2.8rem;
    color: var(--primary-color);
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-svg {
    width: 100%;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 服务部分 */
.services {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--bg-alt-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon svg {
    width: 80px;
    height: 80px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 优势部分 */
.advantages {
    padding: 80px 0;
    background-color: var(--bg-alt-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.advantage-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 86, 179, 0.08);
    position: absolute;
    top: 10px;
    right: 20px;
}

.advantage-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* CTA 横幅 */
.cta-banner {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-banner h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.cta-banner p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 案例部分 */
.cases {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background-color: var(--bg-alt-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.case-industry {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* 关于我们部分 */
.about {
    padding: 80px 0;
    background-color: var(--bg-alt-color);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-values {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 联系部分 */
.contact {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-alt-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.contact-icon {
    margin-right: 15px;
}

.contact-icon svg {
    width: 40px;
    height: 40px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* 页脚部分 */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-services, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-logo p {
    margin-top: 15px;
    color: #999;
}

footer h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #ccc;
}

footer ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    nav ul.menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    nav ul.menu.active {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
    }
    
    nav ul.menu li {
        margin: 15px 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .service-grid, .advantages-grid, .case-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services, .advantages, .cases, .about, .contact {
        padding: 60px 0;
    }
    
    .contact-content, .about-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}
