/* ================================
   关于我们页
================================ */

.about-page {
    background: var(--color-bg);
}

/* ================================
   关于我们 Hero
================================ */

.about-hero {
    position: relative;
    min-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-dark);
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.about-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* 暗色遮罩：左侧强调内容，底部加深便于信息卡显示 */
.about-hero-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg,
            rgba(7, 8, 12, 0.78) 0%,
            rgba(7, 8, 12, 0.52) 38%,
            rgba(7, 8, 12, 0.18) 68%,
            rgba(7, 8, 12, 0.36) 100%),
        linear-gradient(180deg,
            rgba(7, 8, 12, 0.2) 0%,
            rgba(7, 8, 12, 0.14) 52%,
            rgba(7, 8, 12, 0.72) 100%);
}

.about-hero-inner {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 64px), 1440px);
    min-height: 820px;
    margin: 0 auto;
    padding: 120px 0 88px;
    display: grid;
    grid-template-columns: minmax(0, 720px);
    align-content: center;
}

.about-hero-content {
    color: #ffffff;
}

.about-hero-kicker {
    color: var(--color-primary-light);
    font-size: var(--font-size-xs);
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.about-hero-title {
    max-width: 760px;
    margin-top: 20px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.14;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.about-hero-desc {
    max-width: 680px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-size-md);
    line-height: 1.95;
}

/* 底部信息卡 */
.about-hero-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 88px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(17, 18, 24, 0.54);
    backdrop-filter: blur(12px);
}

.about-hero-panel-item {
    min-height: 104px;
    padding: 24px 28px;
    display: grid;
    align-content: center;
    gap: 10px;
}

.about-hero-panel-item+.about-hero-panel-item {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.about-hero-panel-item span {
    color: var(--color-primary-light);
    font-size: var(--font-size-xs);
    line-height: 1;
    letter-spacing: 0.14em;
}

.about-hero-panel-item strong {
    color: #ffffff;
    font-size: var(--font-size-md);
    line-height: 1.45;
    font-weight: 400;
}


/* ================================
   诊所环境
================================ */

.about-environment-section {
    padding: 180px 0 200px;
    background: var(--color-bg-soft);
}

.about-environment-content {
    width: min(calc(100% - 48px), 1440px);
    margin: 72px auto 0;
}

.about-environment-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 26px;
    align-items: stretch;
}

/* 左侧主图 */
.about-environment-feature {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--color-dark);
}

.about-environment-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform var(--transition-slow),
        filter var(--transition-slow);
}

.about-environment-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(7, 8, 12, 0.04) 0%,
            rgba(7, 8, 12, 0.28) 52%,
            rgba(7, 8, 12, 0.76) 100%);
    pointer-events: none;
}

.about-environment-feature:hover img {
    transform: scale(1.035);
    filter: brightness(0.96);
}

.about-environment-feature-text {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    z-index: 2;
    color: #ffffff;
}

.about-environment-feature-text p {
    color: var(--color-primary-light);
    font-size: var(--font-size-xs);
    line-height: 1;
    letter-spacing: 0.22em;
}

.about-environment-feature-text h3 {
    max-width: 520px;
    margin-top: 14px;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.about-environment-feature-text span {
    display: block;
    max-width: 540px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--font-size-sm);
    line-height: 1.85;
}

/* 右侧网格 */
.about-environment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.about-environment-card {
    min-width: 0;
    background: #ffffff;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.about-environment-card:hover {
    transform: translateY(-3px);
    border-color: rgba(197, 161, 132, 0.34);
    box-shadow: var(--shadow-md);
}

.about-environment-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--color-bg-soft);
    transition: transform var(--transition-slow);
}

.about-environment-card:hover img {
    transform: scale(1.04);
}

.about-environment-card figcaption {
    min-height: 122px;
    padding: 22px 22px 24px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.about-environment-card strong {
    color: var(--color-text);
    font-size: var(--font-size-lg);
    line-height: 1.3;
    font-weight: 600;
}

.about-environment-card span {
    color: var(--color-text-2);
    font-size: var(--font-size-sm);
    line-height: 1.75;
}

/* ================================
   医生团队
================================ */
.about-doctor-section {
    padding: 180px 0 160px;
    background: var(--color-bg);
    overflow: hidden;
}

.about-doctor-content {
    position: relative;
    width: 100%;
    margin: 72px auto 0;
}

/* 横向滚动视口 */
.about-doctor-viewport {
    width: 100%;
    overflow: hidden;
}

.about-doctor-track {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.about-doctor-track::-webkit-scrollbar {
    display: none;
}

.about-doctor-close-hint {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--font-size-xs);
    line-height: 1;
}

@media (hover: hover) {
    .about-doctor-close-hint {
        display: none;
    }
}

/* PC 一屏 3 张 */
.about-doctor-card {
    position: relative;
    flex: 0 0 calc(100% / 3);
    min-height: 900px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #d7d7d7 0%, #f3f3f3 100%);
    scroll-snap-align: start;
    cursor: pointer;
}

.about-doctor-card+.about-doctor-card {
    border-left: 1px solid rgba(255, 255, 255, 0.7);
}

.about-doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transition:
        transform var(--transition-slow),
        filter var(--transition-slow);
}

/* 默认顶部姓名 */
.about-doctor-top {
    position: absolute;
    left: 24px;
    top: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    transition:
        opacity var(--transition-fast),
        transform var(--transition-fast);
}

.about-doctor-top h3 {
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.about-doctor-top span {
    min-height: 24px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: var(--color-primary);
    font-size: 11px;
    line-height: 1;
}

/* 黑色遮罩层：默认隐藏 */
.about-doctor-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 48px;
    color: #ffffff;
    background:
        linear-gradient(90deg,
            rgba(17, 18, 24, 0.86) 0%,
            rgba(17, 18, 24, 0.68) 44%,
            rgba(17, 18, 24, 0.5) 100%),
        linear-gradient(180deg,
            rgba(17, 18, 24, 0.12) 0%,
            rgba(17, 18, 24, 0.46) 48%,
            rgba(17, 18, 24, 0.82) 100%);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity var(--transition-normal),
        visibility var(--transition-normal);
}

.about-doctor-info {
    width: 100%;
    transform: translateY(18px);
    opacity: 0;
    transition:
        transform var(--transition-normal),
        opacity var(--transition-normal);
}

/* 移动端 / 触控端：只由 is-active 控制 */
.about-doctor-card.is-active .about-doctor-overlay {
    opacity: 1;
    visibility: visible;
}

.about-doctor-card.is-active .about-doctor-info {
    opacity: 1;
    transform: translateY(0);
}

.about-doctor-card.is-active .about-doctor-photo {
    transform: scale(1.035);
    filter: brightness(0.68);
}

.about-doctor-card.is-active .about-doctor-top {
    opacity: 0;
    transform: translateY(-8px);
}

/* PC 鼠标端：才启用 hover */
@media (hover: hover) and (pointer: fine) {
    .about-doctor-card:hover .about-doctor-overlay {
        opacity: 1;
        visibility: visible;
    }

    .about-doctor-card:hover .about-doctor-info {
        opacity: 1;
        transform: translateY(0);
    }

    .about-doctor-card:hover .about-doctor-photo {
        transform: scale(1.035);
        filter: brightness(0.68);
    }

    .about-doctor-card:hover .about-doctor-top {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* 禁用态按钮 */

.about-doctor-arrow.is-disabled,
.about-doctor-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* 遮罩信息 */
.about-doctor-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.about-doctor-name-row h3 {
    color: #ffffff;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 500;
}

.about-doctor-name-row span {
    min-height: 24px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: var(--color-primary);
    font-size: 11px;
    line-height: 1;
}

.about-doctor-meta {
    margin-top: 22px;
    color: var(--color-primary-light);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.about-doctor-desc {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-size-sm);
    line-height: 1.9;
}

.about-doctor-skill {
    margin-top: 26px;
}

.about-doctor-skill h4,
.about-doctor-cert h4 {
    color: #ffffff;
    font-size: var(--font-size-lg);
    line-height: 1.2;
    font-weight: 600;
}

.about-doctor-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-doctor-tags span {
    min-height: 30px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-size-xs);
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.about-doctor-cert {
    margin-top: 28px;
}

.about-doctor-cert-grid {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-doctor-cert-grid img {
    width: 118px;
    height: 70px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

/* 左右切换按钮 */
.about-doctor-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 18, 24, 0.28);
    transform: translateY(-50%);
    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}

.about-doctor-arrow:hover {
    background: rgba(17, 18, 24, 0.48);
    transform: translateY(-50%) scale(1.04);
}

.about-doctor-arrow img {
    width: 22px;
    height: 22px;
}

.about-doctor-arrow-prev {
    left: 24px;
}

.about-doctor-arrow-next {
    right: 24px;
}

.about-doctor-cta {
    margin-top: 92px;
    display: grid;
    justify-items: center;
    gap: 24px;
    text-align: center;
}

.about-doctor-cta p {
    color: var(--color-text);
    font-size: var(--font-size-md);
    line-height: 1.5;
}


/* ================================
   平板适配
================================ */

@media (max-width: 1024px) {
    .about-hero {
        min-height: 760px;
    }

    .about-hero-inner {
        width: calc(100% - 40px);
        min-height: 760px;
        padding: 104px 0 72px;
    }

    .about-hero-title {
        max-width: 680px;
    }

    .about-hero-desc {
        max-width: 640px;
    }

    .about-hero-panel {
        bottom: 72px;
    }

    .about-hero-panel-item {
        min-height: 96px;
        padding: 22px 20px;
    }



    .about-environment-section {
        padding: 96px 0 120px;
    }

    .about-environment-content {
        width: calc(100% - 40px);
        margin-top: 56px;
    }

    .about-environment-layout {
        grid-template-columns: 1fr;
    }

    .about-environment-feature {
        min-height: auto;
        aspect-ratio: 16 / 8.5;
    }

    .about-environment-grid {
        gap: 20px;
    }

    .about-doctor-section {
        padding: 96px 0 120px;
    }

    .about-doctor-content {
        margin-top: 56px;
    }

    .about-doctor-card {
        flex-basis: calc(100% / 2);
        min-height: 620px;
    }

    .about-doctor-overlay {
        padding: 38px;
    }

    .about-doctor-cert-grid img {
        width: 104px;
        height: 62px;
    }
}

/* ================================
   手机适配
================================ */

@media (max-width: 768px) {
    .about-hero {
        min-height: auto;
    }

    .about-hero-inner {
        width: calc(100% - 32px);
        min-height: auto;
        padding: 96px 0 48px;
        display: block;
    }

    .about-hero-mask {
        background:
            linear-gradient(180deg,
                rgba(7, 8, 12, 0.72) 0%,
                rgba(7, 8, 12, 0.46) 42%,
                rgba(7, 8, 12, 0.86) 100%);
    }

    .about-hero-title {
        margin-top: 16px;
        font-size: 34px;
        letter-spacing: 0.04em;
    }

    .about-hero-desc {
        margin-top: 20px;
        font-size: var(--font-size-sm);
        line-height: 1.85;
    }

    .about-hero-panel {
        position: static;
        margin-top: 42px;
        grid-template-columns: 1fr;
    }

    .about-hero-panel-item {
        min-height: auto;
        padding: 20px 18px;
    }

    .about-hero-panel-item+.about-hero-panel-item {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }


    .about-environment-section {
        padding: 76px 0 96px;
    }

    .about-environment-content {
        width: calc(100% - 32px);
        margin-top: 38px;
    }

    .about-environment-layout {
        gap: 18px;
    }

    .about-environment-feature {
        aspect-ratio: 16 / 11;
    }

    .about-environment-feature-text {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .about-environment-feature-text h3 {
        margin-top: 12px;
        font-size: 26px;
    }

    .about-environment-feature-text span {
        margin-top: 12px;
        font-size: var(--font-size-xs);
        line-height: 1.75;
    }

    .about-environment-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-environment-card figcaption {
        min-height: auto;
        padding: 20px 18px 22px;
    }

    .about-environment-card strong {
        font-size: var(--font-size-md);
    }

    .about-environment-card span {
        font-size: var(--font-size-xs);
    }

    .about-doctor-section {
        padding: 76px 0 96px;
    }

    .about-doctor-content {
        width: calc(100% - 32px);
        margin-top: 38px;
    }

    .about-doctor-card {
        flex-basis: 100%;
        min-height: auto;
        aspect-ratio: 3 / 4.4;
    }

    .about-doctor-top {
        left: 20px;
        top: 24px;
    }

    .about-doctor-top h3 {
        font-size: 26px;
    }

    .about-doctor-overlay {
        padding: 24px 22px;
    }

    .about-doctor-name-row h3 {
        font-size: 28px;
    }

    .about-doctor-meta {
        margin-top: 16px;
        font-size: var(--font-size-xs);
    }

    .about-doctor-desc {
        margin-top: 14px;
        font-size: var(--font-size-xs);
        line-height: 1.75;

        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .about-doctor-skill {
        margin-top: 20px;
    }

    .about-doctor-skill h4,
    .about-doctor-cert h4 {
        font-size: var(--font-size-md);
    }

    .about-doctor-tags {
        gap: 8px;
    }

    .about-doctor-tags span {
        min-height: 28px;
        padding: 0 10px;
    }

    .about-doctor-cert {
        margin-top: 20px;
    }

    .about-doctor-cert-grid {
        gap: 8px;
    }

    .about-doctor-cert-grid img {
        width: 86px;
        height: 52px;
    }

    .about-doctor-arrow {
        top: 50%;
        width: 44px;
        height: 44px;
    }

    .about-doctor-arrow-prev {
        left: 10px;
    }

    .about-doctor-arrow-next {
        right: 10px;
    }

    .about-doctor-cta {
        margin-top: 56px;
        gap: 18px;
    }
}