:root {
    --primary-purple: #7845F7;
    --secondary-purple: #D2BFFF;
    --light-purple: #F5F0FF;
    --dark-purple: #4A2B9E;
    --accent-purple: #9B6DFF;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #212529;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--dark-blue);
}

.btn-primary {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 25px;
}

.btn-primary:hover {
    background-color: var(--dark-purple);
    border-color: var(--dark-purple);
}

.hero-section {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--white) 100%);
    padding: 80px 0;
}

.feature-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.testimonial-section {
    background-color: var(--light-blue);
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 30px;
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
    color: black;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-blue);
}

.comparison-card {
    border-radius: 10px;
    padding: 30px;
    height: 100%;
}

.comparison-pro {
    background: var(--primary-blue);
    color: white;
}

.comparison-con {
    background: var(--light-gray);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    color: var(--primary-blue);
    font-weight: 600;
}

.cta-section {
    background-color: var(--primary-blue);
    padding: 80px 0;
    color: white;
}

.nav-pills .nav-link.active {
    background-color: var(--secondary-blue);
}

.form-control {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.25rem rgba(120, 69, 247, 0.15);
    background-color: var(--white);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.benefit-icon {
    color: var(--secondary-blue);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 3px;
}

.center-content {
    text-align: center;
}

.feature-card .card-body {
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-purple);
    color: var(--primary-purple);
    box-shadow: none;
}

.fimg-fluid {
    display: block;
    width: 80%;
    max-width: 500px;
    margin: 24px auto 0 auto;
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 16px rgba(44, 110, 203, 0.07);
}

.accordion-body {
    background-color: #f7f7f7;
    color: #222222;
    font-size: 14px;
}

.accordion-button {
    color: #4090df;
}

.hero-img-bg {
    background: #f4f8fe;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(44, 110, 203, 0.10);
    display: inline-block;
    padding: 32px 24px;
}

.price-highlight {
    color: #ff5722;
    font-weight: bold;
    font-size: 1.2rem;
}

.price-highlight2 {
    color: #ffdca5;
    font-weight: bold;
    font-size: 1.4rem;
}

button.btn.ai-button {
    background-color: #fff;
    color: #7f5aef;
    border: 1px solid #7f5aef;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

button.btn.ai-button:hover {
    background-color: #7f5aef !important;
    color: #fff !important;
}

.language-accordion {
    margin-bottom: 10px;
}

.language-toggle {
    border-color: #6c757d;
    color: #f8f9fa;
    font-size: 0.85rem;
    padding: 10px 15px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
}

.language-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #f8f9fa;
}

.language-toggle.active {
    background-color: rgba(120, 69, 247, 0.2);
    border-color: var(--primary-purple);
}

.language-toggle.active .fa-chevron-down {
    transform: rotate(180deg);
}

.language-content {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
    margin-top: -1px;
    border: 1px solid #6c757d;
    border-top: none;
}

.language-content a {
    transition: all 0.3s ease;
    background: transparent;
}

.language-content a:hover {
    background-color: rgba(120, 69, 247, 0.3);
    color: var(--secondary-purple);
}


#how-it-works .row {
    align-items: stretch; 
}

#how-it-works .card {
    height: 100%; 
    display: flex;
    flex-direction: column;
}

#how-it-works .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#how-it-works .card h4 {
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

#how-it-works .card p {
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

/* 手机端竖排显示样式 */
@media (max-width: 767.98px) {
    #how-it-works .row {
        flex-direction: column;
    }
    
    #how-it-works .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    #how-it-works .card h4 {
        font-size: 1.25rem;
        word-break: normal;
    }
    
    #how-it-works .card p {
        font-size: 1rem;
    }
}

/* 响应式布局 */
@media (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (max-width: 991.98px) {
    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767.98px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .mobile-top-margin {
        margin-top: 3rem !important;
    }
    
    .hero-section {
        padding-bottom: 0;
    }
}


:root {
    -webkit-tap-highlight-color: transparent;
}

.hero-section {
    background: linear-gradient(135deg, #F5F0FF 0%, #ffffff 100%);
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--white) 100%);
}

.benefit-item {
    display: -webkit-flex;
    display: flex;
}

.btn-primary {
    -webkit-appearance: none;
    appearance: none;
}
