/* Joint Replacement 专用样式 */

/* 通用样式 */
.jr-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #009EDB;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Hero Section */
.jr-hero {
    background: linear-gradient(135deg, #009EDB 0%, #4A7C7E 100%);
    color: white;
    padding: 140px 0 80px;
    margin-top: 80px;
}

.jr-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.jr-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.jr-hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e0f7ff;
}

.jr-hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.jr-hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.jr-hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.jr-feature-icon {
    font-size: 1.3rem;
}

.jr-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.jr-btn-primary {
    background: #fff;
    color: #009EDB;
    border: 2px solid #fff;
    font-weight: 600;
}

.jr-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.jr-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 600;
}

.jr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.jr-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jr-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Why Choose China */
.jr-why-china {
    padding: 80px 0;
    background: #f8f9f7;
}

.jr-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.jr-why-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #009EDB;
}

.jr-why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 158, 219, 0.2);
}

.jr-why-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.jr-why-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.jr-why-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
}

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

/* Conditions We Treat */
.jr-conditions {
    padding: 80px 0;
    background: #fff;
}

.jr-conditions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.jr-condition-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #e0f7ff;
}

.jr-condition-card:hover {
    border-color: #009EDB;
    transform: translateY(-5px);
    box-shadow: 0 8px 28px rgba(0, 158, 219, 0.15);
}

.jr-condition-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.jr-condition-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.jr-condition-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #009EDB;
    margin-bottom: 1rem;
}

.jr-condition-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.jr-condition-card li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.jr-condition-card li:last-child {
    border-bottom: none;
}

/* Centers of Excellence */
.jr-centers {
    padding: 80px 0;
}

.jr-centers .container {
    position: relative;
    max-width: 1050px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.jr-centers .container::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    height: calc(100% - 80px);
    background-image: url('../src/joint/center_of_excellent_background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    border-radius: 16px;
}

.hospital-showcase {
    display: flex;
    gap: 30px;
    padding: 30px;
    max-width: 1050px !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 1;
    width: 100% !important;
    box-sizing: border-box;
}

.hospital-card {
    flex: 1 1 50%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 30px;
    min-height: 380px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 50%;
}

.hospital-card:hover {
    transform: translateY(-4px);
}

.blue {
    background: transparent;
}

.white {
    background: transparent;
}

.hospital-header {
    margin-bottom: 25px;
}

.hospital-header .icon {
    margin-bottom: 10px;
}

.hospital-header h2 {
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 8px;
}

.blue h2 {
    color: #11438a;
    text-shadow: none;
}

.white h2 {
    color: white;
}

.hospital-header p {
    font-size: 14px;
    font-weight: 500;
}

.blue p {
    color: #3b82f6;
    text-shadow: none;
}

.white p {
    color: white;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 11px;
    background: transparent;
}

.blue .feature-item {
    background: transparent;
}

.icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    border-radius: 50%;
    background: white;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.blue .icon {
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.feature-item h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.feature-item span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.75;
}

.blue .feature-item h4 {
    color: #173c7a;
}

.blue .feature-item span {
    color: #5b6b82;
}

.white .feature-item h4,
.white .feature-item span {
    color: #173c7a;
    text-shadow: none;
}

.hospital-logo-img {
    width: 52.5px !important;
    height: 52.5px !important;
}

.hospital-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}



/* Key Advantages */
.jr-advantages {
    padding: 80px 0;
    background: #fff;
}

.jr-advantages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.jr-advantages-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.jr-advantage-number {
    background: linear-gradient(135deg, #009EDB 0%, #4A7C7E 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 158, 219, 0.2);
}

.jr-advantage-number-alt {
    background: #fff;
    border: 2px solid #009EDB;
    color: #009EDB;
}

.jr-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.jr-number-label {
    font-size: 1rem;
    opacity: 0.95;
    line-height: 1.4;
}

.jr-advantages-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jr-doctor-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Patient Journey */
.jr-journey {
    padding: 80px 0;
    background: #f8f9f7;
}

.jr-journey-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.jr-journey-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.jr-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #009EDB 0%, #4A7C7E 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.jr-step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #009EDB;
    margin-bottom: 0.5rem;
}

.jr-step-content p {
    color: #666;
    line-height: 1.6;
}

.jr-journey-arrow {
    text-align: center;
    font-size: 2rem;
    color: #009EDB;
    margin: 0.5rem 0;
    font-weight: bold;
}

/* Expert Team */
.jr-team {
    padding: 80px 0;
    background: #fff;
}

.jr-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.jr-doctor-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #e0f7ff;
}

.jr-doctor-card:hover {
    border-color: #009EDB;
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 158, 219, 0.15);
}

.jr-doctor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009EDB 0%, #4A7C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.jr-doctor-placeholder {
    font-size: 4rem;
}

.jr-doctor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.jr-doctor-specialty {
    color: #009EDB;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.jr-doctor-experience {
    color: #666;
    font-size: 0.95rem;
}

/* Success Stories */
.jr-testimonials {
    padding: 80px 0;
    background: linear-gradient(180deg, #e0f7ff 0%, #f8f9f7 100%);
}

.jr-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.jr-testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.jr-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 158, 219, 0.15);
}

.jr-rating {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.jr-testimonial-text {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.jr-testimonial-author {
    color: #009EDB;
    font-weight: 600;
    text-align: right;
}

/* FAQ */
.jr-faq {
    padding: 80px 0;
    background: #fff;
}

.jr-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.jr-faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0f7ff;
    border-radius: 12px;
    overflow: hidden;
}

.jr-faq-question {
    width: 100%;
    background: #f8f9f7;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.jr-faq-question:hover {
    background: #e0f7ff;
    color: #009EDB;
}

.jr-faq-question.active {
    background: #e0f7ff;
    color: #009EDB;
}

.jr-faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.jr-faq-question.active .jr-faq-icon {
    transform: rotate(45deg);
}

.jr-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fff;
}

.jr-faq-answer.active {
    max-height: 500px;
    padding: 1.5rem;
}

.jr-faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Final CTA */
.jr-final-cta {
    background: linear-gradient(135deg, #009EDB 0%, #0079A8 100%);
    padding: 80px 0;
    color: #fff;
}

.jr-cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.jr-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.jr-cta-description {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 0;
    line-height: 1.6;
}

.jr-cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 100px;
    flex-wrap: wrap;
}

.jr-btn-white {
    background: #fff;
    color: #009EDB;
    border: 2px solid #fff;
    font-weight: 600;
    font-size: 18px;
    padding: 16px 40px;
    min-width: 220px;
    height: 60px;
    line-height: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jr-btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.jr-btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 600;
    font-size: 18px;
    padding: 16px 40px;
    min-width: 220px;
    height: 60px;
    line-height: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jr-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.jr-contact-us-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* 固定联系按钮 */
.sticky-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.sticky-contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #009EDB 0%, #4A7C7E 100%);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 158, 219, 0.4);
    transition: all 0.3s ease;
}

.sticky-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 158, 219, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .jr-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jr-conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jr-centers-grid {
        grid-template-columns: 1fr;
    }
    
    .jr-advantages-container {
        grid-template-columns: 1fr;
    }
    
    .jr-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jr-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .jr-hero {
        padding: 100px 0 60px;
    }
    
    .jr-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .jr-hero-title {
        font-size: 2rem;
    }
    
    .jr-hero-subtitle {
        font-size: 1.3rem;
    }
    
    .jr-section-title {
        font-size: 1.8rem;
    }
    
    .jr-why-grid {
        grid-template-columns: 1fr;
    }
    
    .jr-conditions-grid {
        grid-template-columns: 1fr;
    }
    
    .jr-advantages-left {
        grid-template-columns: 1fr;
    }
    
    .jr-team-grid {
        grid-template-columns: 1fr;
    }
    
    .jr-hero-actions,
    .jr-cta-actions {
        flex-direction: column;
    }

    .jr-cta-actions {
        margin-top: 40px;
    }
    
    .jr-hero-actions .btn,
    .jr-cta-actions .btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .jr-journey-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .sticky-contact {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .sticky-contact-btn {
        width: 100%;
        text-align: center;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 表单样式补充 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Us WhatsApp Inline Popup Styles */
.whatsapp-popup-inline {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: top center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 460px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-top: 16px;
    z-index: 100;
}

.whatsapp-popup-inline.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.whatsapp-popup-inline .whatsapp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.whatsapp-popup-inline .whatsapp-popup-header h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.whatsapp-popup-inline .whatsapp-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.whatsapp-popup-inline .whatsapp-close-btn:hover {
    color: #333;
}

.whatsapp-popup-inline .contact-popup-grid {
    display: flex;
    gap: 16px;
}

.whatsapp-popup-inline .contact-popup-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-popup-inline .contact-popup-title {
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
}

.whatsapp-popup-inline .contact-popup-qr-container {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.whatsapp-popup-inline .contact-popup-qr {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .whatsapp-popup-inline {
        width: 320px;
        padding: 16px;
    }

    .whatsapp-popup-inline .contact-popup-grid {
        gap: 12px;
    }

    .whatsapp-popup-inline .contact-popup-qr-container {
        padding: 8px;
    }
}