/* ========================================
   Medical (中医舌诊) Page Styles
   ======================================== */

.medical-home {
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.08), transparent 24%),
        radial-gradient(circle at left 18%, rgba(14, 165, 233, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 42%, #f8fafc 100%);
}

.medical-hero,
.section,
.cta-section {
    padding-left: 24px;
    padding-right: 24px;
}

.hero-shell,
.section-shell,
.cta-shell {
    max-width: 1160px;
    margin: 0 auto;
}

.medical-hero {
    padding-top: 34px;
    padding-bottom: 84px;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 500px);
    gap: 28px;
    align-items: center;
}

.hero-copy {
    padding: 8px 0;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c026d3;
}

.hero-title {
    margin-top: 16px;
    color: #0f172a;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    margin-top: 18px;
    max-width: 620px;
    color: #475569;
    font-size: 17px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-metric {
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px -36px rgba(15, 23, 42, 0.4);
}

.hero-metric strong {
    display: block;
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
}

.hero-metric span {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.hero-visual {
    position: relative;
}

.hero-image {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 34px 60px -42px rgba(15, 23, 42, 0.42);
}

.hero-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.section {
    padding-top: 0;
    padding-bottom: 78px;
}

.section.alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 244, 255, 0.78) 100%);
}

.section-head {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-title {
    margin-top: 12px;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-align: left;
}

.section-desc {
    margin-top: 12px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.85;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.health-card,
.benefit-card,
.disease-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 24px 48px -40px rgba(15, 23, 42, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.health-card:hover,
.benefit-card:hover,
.disease-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 56px -40px rgba(15, 23, 42, 0.34);
}

.health-card {
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.health-card-icon,
.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.health-card-icon svg,
.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.health-card-title,
.benefit-title,
.disease-name {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.health-card-desc,
.benefit-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.benefit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 430px);
    gap: 22px;
    align-items: stretch;
}

.benefits-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.benefit-card {
    border-radius: 24px;
    padding: 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-image {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 24px 48px -40px rgba(15, 23, 42, 0.3);
    background: rgba(255, 255, 255, 0.82);
}

.feature-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

.disease-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.disease-card {
    border-radius: 24px;
    padding: 24px 18px;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.disease-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.stat-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.06));
    border: 1px solid rgba(226, 232, 240, 0.92);
    text-align: center;
}

.stat-number {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    margin-top: 8px;
    font-size: 14px;
    color: #64748b;
}

.cta-section {
    padding-top: 0;
    padding-bottom: 88px;
}

.cta-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(91, 33, 182, 0.94));
    color: #ffffff;
    box-shadow: 0 32px 64px -44px rgba(15, 23, 42, 0.55);
}

.cta-copy {
    max-width: 720px;
}

.cta-copy .section-kicker {
    color: rgba(255, 255, 255, 0.72);
}

.cta-title {
    margin-top: 12px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.cta-desc {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #ffffff;
    box-shadow: 0 18px 36px -24px rgba(124, 58, 237, 0.8);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.26);
}

.cta-section .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}

.btn-cyan {
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 18px 36px -24px rgba(6, 182, 212, 0.72);
}

@media (max-width: 1100px) {
    .hero-shell,
    .benefit-layout {
        grid-template-columns: 1fr;
    }

    .health-grid,
    .benefits-row,
    .disease-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-image img {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .cta-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .medical-hero,
    .section,
    .cta-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .medical-hero {
        padding-top: 24px;
        padding-bottom: 64px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-metrics,
    .health-grid,
    .benefits-row,
    .disease-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        aspect-ratio: 16 / 10;
    }

    .benefit-card,
    .health-card,
    .disease-card,
    .stat-card,
    .cta-shell {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .hero-buttons,
    .cta-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title,
    .cta-title {
        font-size: 28px;
    }
}
