/* 医疗服务快捷通道 */
.medical-quick {
    width: 100%;
    padding: 35px 0 25px;
    background: linear-gradient(180deg, #f8f4fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.medical-quick::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #7f1879 20%, #a8329f 50%, #7f1879 80%, transparent);
}

.medical-quick::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #7f1879;
    border-radius: 2px;
    opacity: 0.3;
}

.medical-quick-inner {
    width: 1230px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.medical-quick-title {
    text-align: center;
    font-size: 26px;
    font-weight: normal;
    color: #333;
    margin: 0 0 16px;
    letter-spacing: 4px;
    position: relative;
}

.medical-quick-title span {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.medical-quick-title span::before,
.medical-quick-title span::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7f1879);
}

.medical-quick-title span::before {
    right: 100%;
}

.medical-quick-title span::after {
    left: 100%;
    background: linear-gradient(90deg, #7f1879, transparent);
}

.medical-quick-hotline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 28px;
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #666;
    letter-spacing: 1px;
    font-weight: bold;
    line-height: 1;
}

.medical-quick-hotline-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.medical-quick-hotline-label {
    margin-right: 8px;
}

.medical-quick-hotline-num {
    color: inherit;
    font-size: inherit;
    font-weight: bold;
    letter-spacing: inherit;
    text-decoration: none;
}

.medical-quick-hotline-num:hover {
    color: inherit;
}

.medical-quick-list {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.medical-quick-item {
    flex: 1;
    margin: 0 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.medical-quick-item:first-child {
    margin-left: 0;
}

.medical-quick-item:last-child {
    margin-right: 0;
}

.medical-quick-item.mq-visible {
    opacity: 1;
    transform: translateY(0);
}

.medical-quick-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 10px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(127, 24, 121, 0.08);
    border: 1px solid rgba(127, 24, 121, 0.06);
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.medical-quick-item a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7f1879, #b44aab);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.medical-quick-item a:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(127, 24, 121, 0.18);
    border-color: rgba(127, 24, 121, 0.15);
    color: #7f1879;
}

.medical-quick-item a:hover::before {
    transform: scaleX(1);
}

.medical-quick-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3e8f2 0%, #faf5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.35s ease,
                box-shadow 0.35s ease;
}

.medical-quick-icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.35s ease;
}

.medical-quick-item a:hover .medical-quick-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #7f1879 0%, #a8329f 100%);
    box-shadow: 0 6px 20px rgba(127, 24, 121, 0.3);
}

.medical-quick-item a:hover .medical-quick-icon::after {
    border-color: rgba(127, 24, 121, 0.2);
}

.medical-quick-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.35s ease;
}

.medical-quick-item a:hover .medical-quick-icon img {
    transform: scale(1.08);
    filter: brightness(0) invert(1);
}

.medical-quick-name {
    font-size: 19px;
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.4;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* 点击涟漪 */
.mq-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(127, 24, 121, 0.15);
    transform: scale(0);
    animation: mqRipple 0.6s ease-out;
    pointer-events: none;
}

@keyframes mqRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 图标浮动动画 */
@keyframes mqFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.medical-quick-item.mq-visible .medical-quick-icon {
    animation: mqFloat 3s ease-in-out infinite;
}

.medical-quick-item:nth-child(2).mq-visible .medical-quick-icon { animation-delay: 0.3s; }
.medical-quick-item:nth-child(3).mq-visible .medical-quick-icon { animation-delay: 0.6s; }
.medical-quick-item:nth-child(4).mq-visible .medical-quick-icon { animation-delay: 0.9s; }
.medical-quick-item:nth-child(5).mq-visible .medical-quick-icon { animation-delay: 1.2s; }
.medical-quick-item:nth-child(6).mq-visible .medical-quick-icon { animation-delay: 1.5s; }
.medical-quick-item:nth-child(7).mq-visible .medical-quick-icon { animation-delay: 1.8s; }

.medical-quick-item a:hover .medical-quick-icon {
    animation: none;
}
