/* 基础样式设置 */
:root {
    --primary-color: #8B5CF6;
    --secondary-color: #FBBF24;
    --text-color: #374151;
    --background-color: #F3F4F6;
    --white: #FFFFFF;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

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

/* 头部样式 */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    transform: translateY(-2px);
}

/* 英雄区域样式 */
#hero {
    background: linear-gradient(45deg, #3498db, #8e44ad, #2980b9);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

#hero .main-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

#hero .subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

#hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#hero .value-propositions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

#hero .value-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #F59E0B;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 服务区域样式 */
#services {
    background-color: var(--white);
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* 价值主张区域样式 */
#value {
    background-color: var(--background-color);
    padding: 5rem 0;
}

#value .value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

#value .value-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

#value .value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#value .value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

#value .value-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* 案例展示区域样式 */
#cases {
    background-color: var(--white);
    padding: 5rem 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.case-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-card h3 {
    color: var(--primary-color);
    padding: 1rem;
    margin: 0;
}

.case-summary {
    padding: 0 1rem 1rem;
    margin: 0;
}

.details-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 1rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.details-button:hover {
    background-color: #7c3aed;
}

.case-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(139, 92, 246, 0.1);
    padding: 0 1rem;
}

.case-details.active {
    max-height: 1000px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
    padding: 1rem;
}

.case-details h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.case-details ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial {
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

/* 联系我们区域样式 */
#contact {
    background-color: var(--background-color);
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 1rem 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* 页脚样式 */
footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin: 0.5rem 0;
}

.icp-info {
    font-size: 0.9rem;
}

.icp-info a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.icp-info a:hover {
    opacity: 0.8;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    #hero .main-title {
        font-size: 2.5rem;
    }

    #hero .subtitle {
        font-size: 1.5rem;
    }

    .value-propositions {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-grid,
    .value-grid,
    .case-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* 确保动画只在支持的浏览器中运行 */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-fade-in-up,
    .animate-bounce,
    #hero {
        animation: none;
    }
}