/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Additional responsive fixes for long text languages */
@media (max-width: 1024px) {
    .step-label {
        max-width: 70px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .step-label {
        max-width: 55px;
    }
}

/* Special handling for languages with longer text */
[lang="ar"] .step-label,
[lang="de"] .step-label,
[lang="es"] .step-label,
[lang="pt"] .step-label,
[lang="it"] .step-label,
[lang="fr"] .step-label {
    font-size: 0.65rem;
    max-width: 65px;
}

@media (max-width: 768px) {
    [lang="ar"] .step-label,
    [lang="de"] .step-label,
    [lang="es"] .step-label,
    [lang="pt"] .step-label,
    [lang="it"] .step-label,
    [lang="fr"] .step-label {
        font-size: 0.6rem;
        max-width: 50px;
    }
}

@media (max-width: 480px) {
    [lang="ar"] .step-label,
    [lang="de"] .step-label,
    [lang="es"] .step-label,
    [lang="pt"] .step-label,
    [lang="it"] .step-label,
    [lang="fr"] .step-label {
        font-size: 0.5rem;
        max-width: 30px;
        word-break: break-all;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2f5d3e;
    background: linear-gradient(135deg, #f6ead5 0%, #e8d2ab 100%);
    min-height: 100vh;
}

/* Multi-language font support */
body[lang="zh"] {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[lang="ja"] {
    font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[lang="ko"] {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[lang="ar"] {
    font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #5b8a72;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #7ba07e 0%, #5b8a72 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 160, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 160, 126, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #2f5d3e;
    border: 2px solid #7ba07e;
}

.btn-secondary:hover {
    background: #7ba07e;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #2f5d3e;
    border: 1px solid #b97a3c;
}

.btn-outline:hover {
    background: #b97a3c;
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(246, 234, 213, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2f5d3e;
}

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

.nav-links a {
    text-decoration: none;
    color: #2f5d3e;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #7ba07e;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #7ba07e;
    border-radius: 5px;
    background: white;
    color: #2f5d3e;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: #f9f6ef;
    border-color: #5b8a72;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #7ba07e;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.language-dropdown.active {
    display: block;
}

.language-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f9f6ef;
}

.language-option.selected {
    background: #7ba07e;
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2f5d3e;
    cursor: pointer;
    flex-direction: column;
    gap: 3px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2f5d3e;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    text-align: center;
}



.hero .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 4rem;
}

.hero-content {
    z-index: 2;
    text-align: left;
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #2f5d3e;
}

.highlight {
    background: linear-gradient(135deg, #7ba07e 0%, #5b8a72 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #5b8a72;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.alex-hero-background {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    opacity: 0.3;
    z-index: 1;
}

.alex-hero-mascot {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phone-mockup {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2f5d3e 0%, #1a3d2e 100%);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(47, 93, 62, 0.3);
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6ead5 0%, #e8d2ab 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.app-preview {
    text-align: center;
}

.score-display {
    font-size: 4rem;
    font-weight: 700;
    color: #7ba07e;
    margin-bottom: 0.5rem;
}

.score-label {
    color: #5b8a72;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.5);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: #2f5d3e;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.feature-card h3 {
    color: #2f5d3e;
    margin-bottom: 1rem;
}

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

/* Pricing Section */
.pricing {
    padding: 6rem 0;
}

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

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.pricing-card.featured {
    border: 2px solid #7ba07e;
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #7ba07e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lifetime-badge {
    background: linear-gradient(135deg, #b97a3c 0%, #d4a574 100%);
}

.lifetime-plan {
    border: 2px solid #b97a3c;
}

.plan-header h3 {
    color: #2f5d3e;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #7ba07e;
    margin-bottom: 0.5rem;
}

.price-period {
    color: #5b8a72;
    margin-bottom: 1rem;
}

.savings {
    background: #e8f5e8;
    color: #2f5d3e;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #5b8a72;
}

/* Hardware Section */
.hardware {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.5);
}

.hardware-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hardware-text h2 {
    color: #2f5d3e;
    margin-bottom: 1rem;
}

.hardware-subtitle {
    font-size: 1.25rem;
    color: #5b8a72;
    margin-bottom: 2rem;
}

.hardware-features {
    margin-bottom: 2rem;
}

.hardware-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hardware-feature .feature-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.hardware-feature h4 {
    color: #2f5d3e;
    margin-bottom: 0.5rem;
}

.hardware-feature p {
    color: #5b8a72;
}

.hardware-pricing {
    margin-bottom: 2rem;
}

.hardware-price {
    font-size: 3rem;
    font-weight: 700;
    color: #7ba07e;
    margin-bottom: 0.5rem;
}

.hardware-includes {
    color: #7ba07e;
    font-weight: 500;
}

.hardware-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring-display {
    position: relative;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(123, 160, 126, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring-image {
    width: 600px;
    height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    border-radius: 60px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.05));
    padding: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.ring-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
}

/* Download Section */
.download {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.alex-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.alex-floating {
    position: absolute;
    opacity: 0.1;
}

.alex-left {
    top: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
}

.download .container {
    position: relative;
    z-index: 2;
}

.download-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #5b8a72;
    margin-bottom: 3rem;
}

.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-showcase-content h3 {
    color: #2f5d3e;
    margin-bottom: 1rem;
}

.app-showcase-content p {
    color: #5b8a72;
    margin-bottom: 1.5rem;
}

.app-features {
    list-style: none;
}

.app-features li {
    padding: 0.5rem 0;
    color: #5b8a72;
    position: relative;
    padding-left: 1.5rem;
}

.app-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7ba07e;
    font-weight: bold;
}

.app-display {
    display: flex;
    justify-content: center;
}

.app-screen {
    width: 250px;
    height: 500px;
    background: linear-gradient(145deg, #2f5d3e 0%, #1a3d2e 100%);
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 15px 30px rgba(47, 93, 62, 0.3);
}

.app-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6ead5 0%, #e8d2ab 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
}

.app-content .alex-floating {
    position: relative;
    opacity: 1;
    margin-bottom: 1rem;
}

.app-content .alex-floating img {
    width: 80px;
    height: 80px;
}

.app-content h4 {
    color: #2f5d3e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.app-content p {
    color: #5b8a72;
    font-size: 0.9rem;
}

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

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-card h3 {
    color: #2f5d3e;
    margin-bottom: 1.5rem;
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    background: #f9f6ef;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-placeholder {
    text-align: center;
    color: #5b8a72;
}

.qr-placeholder span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: #2f5d3e;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #7ba07e;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
}

.close:hover {
    color: #2f5d3e;
}

.modal-content h2 {
    color: #2f5d3e;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content p {
    text-align: center;
    margin-bottom: 2rem;
    color: #5b8a72;
}

.discord-benefits {
    margin-bottom: 2rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f6ef;
    border-radius: 10px;
}

.benefit-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.benefit h4 {
    color: #2f5d3e;
    margin-bottom: 0.5rem;
}

.benefit p {
    color: #5b8a72;
    margin: 0;
    text-align: left;
}

.modal .btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

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

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(246, 234, 213, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .language-selector .language-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 6rem 0 3rem;
        text-align: center;
    }

    .hero .container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: none;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .alex-hero-background {
        display: none;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .score-display {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .hardware-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hardware-price {
        font-size: 2.5rem;
    }

    /* MindRing智能戒指移动端适配 */
    .ring-display {
        width: 300px;
        height: 300px;
    }

    .ring-image {
        width: 250px;
        height: 250px;
        border-radius: 30px;
        padding: 15px;
    }

    .app-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-content {
        margin: 10% auto;
        padding: 2rem;
        width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .modal .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* 确保按钮足够大以便点击 */
        touch-action: manipulation; /* 优化触摸体验 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    section {
        padding: 2rem 0;
    }

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

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

    .app-showcase {
        padding: 1.5rem;
    }

    .pricing-grid {
        gap: 1rem;
    }

    .features-grid {
        gap: 1rem;
    }

    /* MindRing智能戒指小屏幕适配 */
    .ring-display {
        width: 250px;
        height: 250px;
    }

    .ring-image {
        width: 200px;
        height: 200px;
        border-radius: 25px;
        padding: 10px;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 15% auto;
        width: 95%;
        max-height: 70vh;
        overflow-y: auto;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-height: 44px; /* 确保按钮足够大以便点击 */
        touch-action: manipulation; /* 优化触摸体验 */
    }
}

/* Alex Avatar Icon Styling */
.alex-avatar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.alex-avatar-icon:hover {
    transform: scale(1.1);
}

/* Awareness Journey Styles */
.awareness-journey {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.journey-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step.completed,
.step.current {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-fog);
    border: 2px solid var(--color-moss);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-forest);
    transition: all 0.3s ease;
}

.step.completed .step-number {
    background: var(--color-moss);
    color: white;
}

.step.current .step-number {
    background: var(--color-forest);
    color: white;
    box-shadow: 0 0 0 4px rgba(47, 93, 62, 0.2);
    animation: pulse 2s infinite;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-forest);
    text-align: center;
    white-space: nowrap;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step.completed .step-label {
    color: var(--color-moss);
}

.step.current .step-label {
    color: var(--color-forest);
    font-weight: 600;
}

/* Desktop overrides for FR/PT to avoid overflow */
[lang="fr"] .step-label,
[lang="pt"] .step-label {
    white-space: normal;         /* 允许换行，避免溢出 */
    word-break: break-word;
    max-width: 60px;             /* 收紧宽度以适配布局 */
}

/* Connect steps with lines */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -0.75rem;
    width: 0.5rem;
    height: 2px;
    background: var(--color-moss);
    opacity: 0.3;
}

.step.completed:not(:last-child)::after {
    opacity: 1;
}

.progress-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--color-forest);
    font-weight: 500;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(47, 93, 62, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-moss), var(--color-forest));
    border-radius: 3px;
    transition: width 0.8s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(47, 93, 62, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(47, 93, 62, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(47, 93, 62, 0);
    }
}

/* Mobile responsiveness for journey */
@media (max-width: 768px) {
    .journey-steps {
        gap: 0.5rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
        max-width: 60px;
    }
    
    .step:not(:last-child)::after {
        right: -0.5rem;
        width: 0.25rem;
        top: 16px;
    }
    
    .progress-bar {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .awareness-journey {
        padding: 1.5rem 0.5rem;
        gap: 1rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .journey-steps {
        gap: 0.2rem;
        flex-wrap: nowrap;             /* 保持横排 */
        justify-content: flex-start;
        overflow-x: auto;              /* 超出时横向滚动 */
        -webkit-overflow-scrolling: touch;
    }
    
    .step {
        margin: 0 0.1rem;
        flex: 0 0 auto;                /* 不换行，不收缩 */
    }
    
    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .step-label {
        font-size: 0.6rem;
        max-width: 34px;
        line-height: 1.1;
        word-break: break-all;
        white-space: normal;           /* 允许多行以适配极小屏 */
        text-align: center;
    }
    
    .step:not(:last-child)::after {
        right: -0.3rem;
        width: 0.2rem;
        top: 13px;
    }
    
    .progress-bar {
        width: 100px;
        height: 4px;
    }
}

/* Additional responsive fixes for long text languages */
@media (max-width: 1024px) {
    .step-label {
        max-width: 70px;
        font-size: 0.7rem;
    }
}

/* Special handling for languages with longer text */
[lang="ar"] .step-label,
[lang="de"] .step-label,
[lang="es"] .step-label,
[lang="pt"] .step-label,
[lang="it"] .step-label,
[lang="fr"] .step-label {
    font-size: 0.65rem;
    max-width: 65px;
}

@media (max-width: 768px) {
    [lang="ar"] .step-label,
    [lang="de"] .step-label,
    [lang="es"] .step-label,
    [lang="pt"] .step-label,
    [lang="it"] .step-label,
    [lang="fr"] .step-label {
        font-size: 0.6rem;
        max-width: 50px;
    }
}

@media (max-width: 480px) {
    [lang="ar"] .step-label,
    [lang="de"] .step-label,
    [lang="es"] .step-label,
    [lang="pt"] .step-label,
    [lang="it"] .step-label,
    [lang="fr"] .step-label {
        font-size: 0.5rem;
        max-width: 30px;
        word-break: break-all;
        white-space: normal;
    }
}