/* 全局样式 */
:root {
    --primary-color: #1a3a6c;
    --secondary-color: #f0b90b;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #fff;
    --bg-light: #f9f9f9;
    --bg-dark: #0a1f3d;
    --border-color: #eaeaea;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --whatsapp-color: #25D366;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

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

ul {
    list-style: none;
}

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

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

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

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

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 58, 108, 0.2);
}

.main-nav .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 25px;
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
    animation: pulse 2s infinite;
    border: 2px solid var(--primary-color);
}

.main-nav .btn-primary i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.main-nav .btn-primary:hover {
    background-color: #e0aa00;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(240, 185, 11, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
    }
}

.btn-primary:hover {
    background-color: #0f2a5c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 108, 0.3);
}

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

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

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-top: -5px;
}

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

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

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

.main-nav a:not(.btn-primary):hover:after {
    width: 100%;
}

.main-nav a.btn-primary {
    padding: 10px 20px;
}

/* 英雄区域样式 */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9f0f8 100%);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('../images/pattern.svg');
    background-repeat: no-repeat;
    background-position: center right;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.hero-cta {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 30px !important;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3) !important;
    animation: pulse 2s infinite;
}

.hero-cta i {
    margin-right: 8px;
}

.hero-cta:hover {
    background-color: #e0aa00 !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4) !important;
}

.hero-image {
    flex: 1;
    text-align: right;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    margin-bottom: 25px;
}

.feature-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.feature-list h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.feature-list p {
    color: var(--text-light);
}

/* 服务部分 */
.services {
    padding: 100px 0;
}

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

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--secondary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 58, 108, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

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

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card ul {
    padding-left: 20px;
}

.service-card ul li {
    color: var(--text-light);
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
}

/* CTA部分 */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.cta-content .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.cta-content .btn-primary:hover {
    background-color: #d9a400;
}

.cta-button {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 15px 35px !important;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3) !important;
    animation: pulse 2s infinite;
    margin-top: 10px;
    display: inline-block;
}

.cta-button i {
    margin-right: 8px;
}

.cta-button:hover {
    background-color: #e0aa00 !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4) !important;
}

/* 客户评价部分 */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    min-width: 350px;
    flex: 1;
}

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

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    position: relative;
    padding: 0 20px;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '\201C';
    font-size: 2rem;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: -10px;
}

.testimonial-content p:after {
    content: '\201D';
    left: auto;
    right: 0;
    bottom: -10px;
    top: auto;
}

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

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

.testimonial-author h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-lighter);
}

/* FAQ部分 */
.faq {
    padding: 100px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
}

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

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.faq-item h3:before {
    content: 'Q:';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.faq-item p {
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.faq-item p:before {
    content: 'A:';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 700;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-info ul {
    margin-bottom: 30px;
}

.contact-info li {
    display: flex;
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 108, 0.1);
}

.form-submit-btn {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 30px !important;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3) !important;
    animation: pulse 2s infinite;
    cursor: pointer;
}

.form-submit-btn i {
    margin-right: 8px;
}

.form-submit-btn:hover {
    background-color: #e0aa00 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4) !important;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-link,
.privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 免责声明部分 */
.disclaimer {
    padding: 50px 0;
    background-color: #f5f5f5;
    border-top: 1px solid var(--border-color);
}

.disclaimer h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.disclaimer p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* 页脚部分 */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-links-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-links-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links-column a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp悬浮窗 */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.whatsapp-float i {
    font-size: 32px;
}

/* 添加动画效果 */
.whatsapp-float a {
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* 页面中间固定行动按钮 */
.center-action-button {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
}

.center-action-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    font-weight: 700;
    font-size: 20px;
    border: 2px solid var(--primary-color);
    min-width: 250px;
}

.center-action-button a:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #ffca28;
}

.center-action-button i {
    font-size: 22px;
    margin-right: 12px;
}

.center-action-button a {
    animation: pulse-action 2s infinite;
}

@keyframes pulse-action {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(240, 185, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(240, 185, 11, 0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 180px 0 80px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        min-width: 280px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    /* 移动端WhatsApp悬浮窗适配 */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
    
    /* 移动端中间行动按钮适配 */
    .center-action-button {
        bottom: 20px;
        width: 90%;
        left: 50%;
    }
    
    .center-action-button a {
        padding: 12px 20px;
        font-size: 18px;
        min-width: 100%;
    }
    
    .center-action-button i {
        font-size: 20px;
        margin-right: 10px;
    }
}