/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 向上淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮脉冲效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 140px; /* 为导航栏(80px)和CTA横幅(60px)留出空间 */
    animation: fadeIn 0.5s ease-out;
}

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

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

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(40, 167, 69, 0.3);
    border-top: 5px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 吸顶CTA横幅 */
.sticky-cta {
    position: fixed;
    top: 80px; /* 导航栏高度 */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 15px 0;
    text-align: center;
    z-index: 1001; /* 确保高于导航栏的z-index值 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(0); /* 默认显示，不需要隐藏 */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.sticky-cta:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sticky-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.sticky-cta-text {
    flex: 1;
    text-align: left;
}

.sticky-cta-text h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

.sticky-cta-text p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.sticky-cta-button {
    background-color: #fff;
    color: #28a745;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.sticky-cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

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

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

.logo h1 {
    font-size: 1.8rem;
    color: #28a745;
}

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

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #28a745;
}

/* 语言切换 */
.language-switcher {
    margin-left: 2rem;
}

.language-switcher select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 10rem 0 5rem;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #28a745;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    background-color: #28a745;
    color: white;
    animation: pulse 2s infinite;
}

.cta-button.secondary:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 内容区域样式 */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #28a745;
}

.content {
    max-width: 800px;
    margin: 0 auto;
}

.content h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #218838;
}

.content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.content ol, .content ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.content li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
}

.example {
    background: #e9f7ef;
    padding: 1.5rem;
    border-left: 4px solid #28a745;
    margin: 2rem 0;
}

.example .input {
    font-style: italic;
    background-color: #f0f8f2;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.example .output {
    background-color: #e8f5e9;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.tips {
    background: #fff8e1;
    padding: 1.5rem;
    border-left: 4px solid #ffc107;
    margin: 2rem 0;
}

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

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial .author {
    font-weight: bold;
    margin-top: 1rem;
    text-align: right;
}

/* FAQ样式 */
.faq-item {
    margin-bottom: 2rem;
}

.faq-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #218838;
}

/* 联系页面样式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #218838;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.office-info {
    margin-bottom: 2rem;
}

/* 定价页面样式 */
.pricing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:first-child {
    border-radius: 5px 0 0 5px;
}

.tab-button:last-child {
    border-radius: 0 5px 5px 0;
}

.tab-button.active {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.save-badge {
    background-color: #ffc107;
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

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

.pricing-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 防止内容溢出 */
}

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

.pricing-card.popular {
    border: 2px solid #28a745;
    transform: scale(1.05);
}

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

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #218838;
}

.price {
    margin-bottom: 1.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
}

.period {
    font-size: 1rem;
    color: #666;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.features {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    list-style: none;
    position: relative;
    padding-left: 1.5rem;
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.features li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.features li:last-child {
    border-bottom: none;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.feature-table th,
.feature-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.feature-table th {
    background-color: #28a745;
    color: white;
}

.feature-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* CTA区域样式 */
.cta-section {
    text-align: center;
    padding: 3rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #218838;
    text-align: center;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #28a745;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #28a745;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

/* 特色网格布局 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

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

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.intro-text {
    text-align: center;
    margin-bottom: 40px;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.intro-text p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 客户评价网格布局 */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.testimonial-author p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* 案例研究 */
.case-studies {
    margin: 40px 0;
}

.case-study {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.case-study-content h3 {
    color: #333;
    margin-bottom: 15px;
}

.case-study-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-study-content ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.case-study-content ul li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.case-study-content ul li:before {
    content: "✓";
    color: #28a745;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat h4 {
    font-size: 2rem;
    color: #28a745;
    margin: 0 0 10px 0;
}

.stat p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* 成功故事 */
.success-stories {
    margin: 40px 0;
}

.success-story {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.success-story h3 {
    color: #333;
    margin-bottom: 15px;
}

.success-story p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.success-story blockquote {
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .case-study-stats {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .case-study {
        padding: 20px;
    }
    
    .success-story {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .intro-text h2 {
        font-size: 1.6rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 1rem;
    }
    
    .nav-menu li {
        margin: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .sticky-cta-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .sticky-cta-text {
        text-align: center;
    }
    
    body {
        padding-top: 150px; /* 在移动设备上为吸顶CTA横幅留出更多空间 */
    }
    
    .sticky-cta {
        top: 80px; /* 在移动设备上调整位置 */
    }
}

/* 文本居中 */
.text-center {
    text-align: center;
    margin-top: 30px;
}
