/* ==========================================================================
   首页模块化样式 (PC端与基础样式)
   包含：快捷入口 (Quick Access)、专业中心 (Medical Centers)、新闻动态 (News Center)
   说明：此处定义了各个模块的基础布局和PC端展示效果。移动端覆盖样式请参考 home-modules-mobile.css。
   ========================================================================== */

/* --------------------------------------------------------------------------
   模块 1: 快捷入口 (Quick Access)
   -------------------------------------------------------------------------- */
.hjy-quick-access {
    position: relative;
    z-index: 10;
    margin-top: -28px;
    padding-top: 0;
    padding-bottom: 22px;
}
.hqa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.hqa-card {
    min-width: 0;
    min-height: 90px;
    padding: 15px 16px 15px 15px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(11, 42, 91, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(11, 42, 91, 0.12);
    text-align: left;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* 背景暗纹修饰 */
.hqa-bg-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0,0,0,0.02) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
    opacity: 0;
}
.hqa-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, var(--color-secondary-light, #173f76), var(--color-secondary, #0b2a5b));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(11, 42, 91, 0.18);
}
.hqa-icon-wrapper i {
    font-size: 23px;
    color: #fff;
    line-height: 1;
    transition: all 0.3s ease;
}
.hqa-content {
    min-width: 0;
    position: relative;
    z-index: 2;
}
.hqa-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-dark, #0b2a5b);
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}
.hqa-desc {
    font-size: 12px;
    color: #748096;
    line-height: 1.45;
    margin: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hqa-arrow {
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    transform: none;
    position: relative;
    z-index: 2;
    margin-top: 0;
    color: #9aa5b6;
}

/* Hover 交互效果 */
.hqa-card:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 128, 33, 0.45);
    box-shadow: 0 20px 42px rgba(11, 42, 91, 0.16);
}
.hqa-card:hover .hqa-bg-pattern {
    opacity: 1;
    transform: scale(1.5);
}
.hqa-card:hover .hqa-icon-wrapper {
    background: linear-gradient(145deg, #f79a49, var(--color-primary, #ef8021));
    border-radius: 12px;
}
.hqa-card:hover .hqa-icon-wrapper i {
    color: #fff !important;
    transform: scale(1.1);
}
.hqa-card:hover .hqa-arrow {
    color: var(--color-primary, #ef8021);
    transform: translateX(2px);
    background: transparent;
}
.hqa-card:hover .hqa-arrow i {
    color: inherit !important;
}

/* 平板端适配 (Tablet) */
@media (max-width: 992px) {
    .hqa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------------------------------
   模块 2: 专业中心 (Medical Centers)
   -------------------------------------------------------------------------- */
.demo-centers {
    padding-top: 40px;
}
.center-slider-container {
    margin-top: 50px;
    padding-bottom: 50px;
    position: relative;
}
/* 只给卡片本身的包裹层留出上下空间，绝不能破坏 Swiper 结构 */
.center-swiper .swiper-slide {
    padding: 15px 15px 35px 15px; /* 给悬停阴影和上浮留出安全区 */
    height: auto; /* 让高度自适应卡片 */
    box-sizing: border-box;
}
.center-card {
    padding: 0;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden; /* 恢复溢出隐藏，保证圆角完美 */
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    /* 强制 GPU 加速并解决圆角溢出 */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-transform: translateZ(0);
    background: #000; /* 参考医院网络卡片，底部设置为黑色 */
}
.center-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease; /* 调整为和 flip-card 一致的 0.4s */
    z-index: 1;
    opacity: 0.8; /* 默认图片透明度 0.8，透出底部黑色 */
    transform: scale(1.02); /* 防止图片边缘出现缝隙 */
}
.center-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* 默认状态下移除纯色蒙版，仅保留底部的黑色渐变用于凸显文字 */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    transition: all 0.4s ease;
    z-index: 1;
}
.center-card-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    width: 100%;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}
.center-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.center-card:hover .center-card-bg {
    transform: scale(1.02); /* 移除之前的过度放大，保持1.02抗锯齿 */
    opacity: 0.5; /* 悬停时图片变暗，透出更多黑色背景，完美复刻医院网络卡片效果 */
}
/* 移除多余的 overlay 悬停变化 */
.center-card:hover .center-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}
.center-card:hover .center-card-content {
    transform: translateY(0);
}
.center-card h3 {
    color: #fff; /* 默认状态下文字为白色，确保在暗色渐变上清晰可见 */
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: none;
    transition: color 0.4s ease;
}
.center-card:hover h3 {
    color: #fff; /* 悬停蒙版变海吉亚灰时，文字保持白色 */
    transform: translateY(-5px);
}
.center-card p {
    color: rgba(255,255,255,0.9); /* 悬停展开时，由于背景是灰色的，描述文字使用偏白色 */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.center-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   模块 3: 新闻动态 (News Center)
   -------------------------------------------------------------------------- */
.home-news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}
@media (min-width: 768px) {
    .home-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .home-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.home-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}
.news-swiper .swiper-wrapper {
    align-items: stretch;
}
.news-swiper .swiper-slide {
    height: auto;
}
.home-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(11, 42, 91, 0.08);
}
.home-news-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.home-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.home-news-card:hover .home-news-img img {
    transform: scale(1.05);
}
.home-news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.home-news-date {
    font-size: 14px;
    color: #ef8021;
    margin-bottom: 10px;
    font-weight: 500;
}
.home-news-title {
    font-size: 18px;
    color: #0b2a5b;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.home-news-more {
    font-size: 14px;
    color: #0b2a5b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}
.home-news-card:hover .home-news-more {
    color: #ef8021;
}
