:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

/* 向上滚动时隐藏导航栏 */
header.nav-hidden {
    transform: translateY(-100%);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

main {
    margin-top: 60px;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero 部分样式 */
.hero {
    text-align: center;
    position: relative;
    height: 45vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
}

/* 轮播容器 */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 轮播幻灯片 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 第一个幻灯片 - 蓝色主题 */
.slide:nth-child(1) {
    background-image: linear-gradient(rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.2)),
                      url('../assets/images/hero-bg-1.svg');
    background-color: #EEF2FF;  /* 浅蓝色背景 */
}

/* 第二个幻灯片 - 紫色主题 */
.slide:nth-child(2) {
    background-image: linear-gradient(rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.2)),
                      url('../assets/images/hero-bg-2.svg');
    background-color: #F5F3FF;  /* 浅紫色背景 */
}

/* 第三个幻灯片 - 青色主题 */
.slide:nth-child(3) {
    background-image: linear-gradient(rgba(6, 182, 212, 0.1), rgba(6, 182, 212, 0.2)),
                      url('../assets/images/hero-bg-3.svg');
    background-color: #ECFEFF;  /* 浅青色背景 */
}

.slide.active {
    opacity: 1;
}

/* 幻灯片内容 */
.slide-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 45vh;
}

/* 轮播控制器 */
.slider-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 3;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 保持原有的文字和按钮样式 */
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-group {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem;
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--primary-color);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    background: var(--secondary-color);
}

.cta-button.secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* 添加动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 服务区块整体样式 */
#services {
    background: var(--light-bg);
    padding: 6rem 2rem;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* 服务卡片网格布局 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

/* 服务卡片样式 */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 服务图标样式 */
.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.service-card:hover .service-icon img {
    filter: brightness(0) invert(1);
}

/* 服务卡片标题 */
.service-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* 服务卡片描述文本 */
.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 服务卡片链接按钮 */
.service-card .learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: color 0.3s ease;
}

.service-card .learn-more:hover {
    color: var(--secondary-color);
}

/* 表单样式 */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    display: flex;
    gap: 1rem;
}

input, textarea, select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    width: 100%;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: var(--secondary-color);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-info {
    text-align: left;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-contact {
    text-align: left;
}

.footer-contact h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

/* 通用标题样式 */
h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }

    .hero {
        height: 60vh;
        min-height: 350px;
        padding-top: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero-text {
        font-size: 0.95rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .cta-group {
        bottom: 3rem;
        padding: 0 1rem;
    }

    .slider-controls {
        bottom: 0.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon img {
        width: 30px;
        height: 30px;
    }

    .form-group {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-info, .footer-contact {
        text-align: center;
    }

    .slide-content {
        padding: 1.5rem;
        min-height: 60vh;
    }
}

/* 案例展示部分 */
#portfolio {
    background: white;
    padding: 6rem 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.view-case {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid white;
    border-radius: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-case:hover {
    background: white;
    color: var(--primary-color);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 2rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.portfolio-content h3 {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.portfolio-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .portfolio-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }
}

/* 联系我们部分样式 */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* 左侧信息部分 */
.contact-info {
    padding-right: 2rem;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    text-align: left;
}

.contact-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.feature-icon {
    width: 45px;
    height: 45px;
    margin-right: 1.2rem;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-icon img {
    width: 22px;
    height: 22px;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-content p {
    color: #666;
    font-size: 0.95rem;
}

.direct-contact {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #ddd;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-method i {
    margin-right: 1rem;
    color: var(--primary-color);
}

/* 右侧表单部分 */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper textarea {
    min-height: 90px;
    padding-top: 1rem;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        padding-right: 0;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .form-group {
        grid-template-columns: 1fr;
    }
} 