/* Swiper 轮播修复和优化样式 */

/* 确保 swiper 容器正确显示 */
.swiper-container {
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;}

/* 优化导航按钮 */
.swiper-button-next,
.swiper-button-prev {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: auto;}

.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;}

/* 特色专业区域的按钮样式 */
.rowc .swiper-button-next,
.rowc .swiper-button-prev {
    color: #fff;
    background: #005996;
    height: 36px;
    width: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,89,150,0.2);
    z-index: 10;
    line-height: 1;
    font-weight: 700;
    font-size: 18px;}

.rowc .swiper-button-next:hover,
.rowc .swiper-button-prev:hover {
    background: #004275;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,89,150,0.3);}

.rowc .swiper-button-next:active,
.rowc .swiper-button-prev:active {
    transform: scale(0.95);}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .rowc .swiper-button-next,
    .rowc .swiper-button-prev {
        height: 32px;
        width: 32px;
        font-size: 16px;}
}

/* 抓手光标 */
.swiper-container {
    cursor: grab;}

.swiper-container:active {
    cursor: grabbing;}

.major-swiper {
    cursor: grab !important;}

.major-swiper:active {
    cursor: grabbing !important;}

/* 确保卡片可以被拖动 */
.major-swiper .swiper-slide {
    user-select: none;
    -webkit-user-drag: none;}

/* 优化卡片在 swiper 中的显示 */
.major-swiper .swiper-slide {
    width: auto !important;
    flex-shrink: 0;}

/* PC端每行显示3个 */
@media screen and (min-width: 1024px) {
    .major-swiper .swiper-slide {
        width: calc(33.333% - 14px) !important;}
}

/* 平板每行显示2个 */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .major-swiper .swiper-slide {
        width: calc(50% - 10px) !important;}
}

/* 手机每行显示1个 */
@media screen and (max-width: 767px) {
    .major-swiper .swiper-slide {
        width: calc(100% - 8px) !important;}
}

