/* 基础样式和重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #3a86ff;
    --secondary-color: #3a0ca3;
    --accent-color: #ff006e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

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

ul {
    list-style: none;
}

img {
    max-width: 150%;
    height: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #2a75e6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2) !important;
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white!important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.highlight {
    color: var(--primary-color);
}

/* 隐藏元素样式 */
.hidden {
    display: none !important;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* 英雄区域样式 - 优化版 */
.hero {
    padding: 40px 0 120px; /* 增加内边距，提升空间感 */
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf5 100%);
    position: relative;
    overflow: hidden;
    min-height: 92vh; /* 确保英雄区域至少占满整个视口高度 */
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px; /* 添加间距，避免元素过于拥挤 */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    padding: 20px 0;
}

.hero-content h1 {
    font-size: 3.5rem; /* 增大标题字体 */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
    font-size: 1.1rem; /* 增大正文字体 */
    margin-bottom: 2rem;
    color: var(--gray-color);
    line-height: 1.7;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    position: relative;
    animation: float 6s ease-in-out infinite; /* 添加浮动动画 */
}

.hero-image img {
    border-radius: 15px; /* 添加圆角 */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15); /* 增强阴影 */
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.03); /* 悬停放大效果 */
}

/* 添加装饰性元素 */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 300px;
    height: 300px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 0, 110, 0.08);
    border-radius: 50%;
    z-index: 0;
}

/* 浮动动画 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 0 100px;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 服务区域样式 */
.services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    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: 80px;
    height: 80px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* 案例展示样式 */
.portfolio {
    background-color: #f8f9fa;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    margin-bottom: 10px;
    color: white;
}

.portfolio-overlay p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

/* 客户评价样式 */
.testimonials {
    padding: 100px 0;
}

/* 轮播图样式 */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    padding: 20px;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1.2rem;
    margin: 0 3px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    margin: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-prev, .slider-next {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    background-color: white;
}

/* 价格方案样式 */
.pricing {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.pricing-card.premium {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 152, 0, 0.15);
    z-index: 15;
}

.pricing-card.premium .popular-tag {
    background-color: #ff9800;
}

.pricing-card.premium .btn {
    background-color: #ff9800;
    border-color: #ff9800;
}

.pricing-card.premium .btn:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}

.popular-tag {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    padding: 5px 0;
    font-weight: 600;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.price {
    margin: 20px 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--gray-color);
}

.pricing-features {
    padding: 30px;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pricing-features i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.pricing-features .fa-check {
    color: #4caf50;
}

.pricing-features .fa-times {
    color: #f44336;
}

.pricing-card .btn {
    display: block;
    width: 80%;
    margin: 0 auto 30px;
}

/* 联系表单样式 */
.contact {
    padding: 20px 0;
    background-color: var(--light-color);
}

.contact .container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

/* 1440x500长方形容器框样式 */
.contact-rectangle {
    width: 1440px;
    height: 450px;
    background-color: #fff;
    border: 1px solid #f5f5f5;
    border-radius: 10px;
    margin: 0 auto 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 20px;
}

.contact-image {
    max-height: 100%;
    max-width: 50%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
    margin-left: 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-logo {
    width: 850px;
    height: 50px;
    object-fit: contain;
}

.logo-description {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    width: 850px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 1500px) {
    .contact-rectangle {
        width: 100%;
        max-width: 1440px;
    }
}

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

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: center;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-item.vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-item.vertical .info-icon {
    margin-right: 0;
    margin-bottom: 15px;
}

.info-item.vertical .info-text {
    max-width: 200px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.info-icon:hover i {
    color: white;
}

/* 二维码弹窗样式 */
.qrcode-container {
    position: relative;
}

.qrcode-popup {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: none;
    margin-left: 15px;
}

.qrcode-container:hover .qrcode-popup {
    display: block;
    animation: fadeIn 0.3s ease;
}

.qrcode-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 弹窗小三角指示 */
.qrcode-popup::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-100%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.info-text h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-text p {
    margin: 0;
    color: var(--gray-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-form:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(58, 134, 255, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .contact .container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 25px;
    }
    .info-icon {
        width: 50px;
        height: 50px;
    }
    .info-icon i {
        font-size: 1.2rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.contact-form .btn {
    width: 100%;
}



/* 响应式设计适配 */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-image img {
        max-width: 450px;
    }
}

@media (max-width: 992px) {
    .services-grid,
    .portfolio-grid,
    .pricing-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    .hero-image {
        justify-content: center;
    }
    .cta-buttons {
        justify-content: center;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .portfolio-grid,
    .pricing-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 120px 0 80px;
    }
    .service-card,
    .portfolio-item,
    .pricing-card {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.fade {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}