/*  body  */

.news {
    width: 100%;
    height: auto;
//    position: relative;
}

/*  1st  */

.news-1 {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
}

.news-button1 {
    background: none;
    font-size: inherit;
    color: black;
    border: none;
    font-family: inherit;
    height: 1rem; // 16px;
    line-height: 1rem; // 16px;
    cursor: pointer;
    padding: 0;
}

.news-button1:hover {
    font-weight: bold;
}

/*  2nd  */

.news-2 {
    width: 100%;
    height: auto;
}

/*  3rd  */

.news-3 {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

/*  4th  */

.news-4 {
    width: 100%;
    height: auto;
}

.news-button2 {
    background-color: #1c1c1c; 
    color: white; 
    font-size: 1.125rem; // 18px;
    width: 100%;
    height: 2.5rem; // 40px;
    border: none;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.news-button2:hover {
    background-color: white;
    color: #1c1c1c;
}



/*  back to top pc  */

.news-s-pc {
    width: auto;
    height: auto;
    position: fixed;
    right: 7.8%;
    bottom: 7.8%;
}

.news-s-1-pc {
    width 100%;
    height: 1.5625rem; // 25px;
    position: relative;
}

.news-s-1-img-pc {
    position: absolute;
    width: 2.5rem; // 40px;
    height: 1.5625rem; // 25px;
    left: -1.25rem; // -20px;
    margin-left: 50%;
    top: 0px;
}

.news-s-2-pc {
    width: 100%;
    height: auto;
}

.news-s-2-font-pc {
    width: fit-content;
    font-size: 1.125rem; // 18px;
    height: 0.75rem; // 12px;
    line-height: 0.75rem; // 12px;
    margin: 1.25rem 0px 0px 0px;
//    margin: 20px 0px 0px 0px;
}

/*  back to top m  */

.news-s-m {
    background: #00698C;
    border-radius: 50%;
    width: 5rem; // 80px;
    height: 5rem; // 80px;
    position: fixed;
    right: 5.333333%;
    bottom: 3.125rem; // 50px;  
    z-index: 1;
}

.news-s-img-m {
    position: absolute;
    width: 2.5rem; // 40px;
    height: 1.5625rem; // 25px;
    left: -1.25rem; // -20px;
    margin-left: 50%;
    top: 1.5625rem; // 25px;
}



/* hide scroll bar */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}



/*  slide  */

.carousel-container {
    width: 100%;
//    max-width: 800px;
//    margin: 20px auto;
    position: relative;
    overflow: auto;
//    border-radius: 8px;
//    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    -webkit-user-select: none; /* Safari 兼容 */
    user-select: none;
}

//.carousel-container:focus {
//    outline: none;
//}

.carousel {
    width: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
//border: 1px solid red;
//    cursor: grab; /* 拖动时显示手型 */
//    user-select: none; /* 防止拖动时选中文本 */
//    -webkit-overflow-scrolling: touch; /* 启用 iOS 弹性滚动 */
//    will-change: transform; /* 提前告知浏览器会变化 */
    will-change: transform; /* 性能优化 */
//height: 100%;
}

//.carousel * {
//    touch-action: manipulation;
//}

//.carousel:active {
//    cursor: grabbing; /* 拖动中手型变化 */
//}

.slide {
//width: 100%;
    min-width: 100%;
//    box-sizing: border-box;
//border: 1px solid red;
//flex-shrink: 0;
}

.slide img {
    width: 100%;
    display: block;
//border: 1px solid red;
    pointer-events: none; /* 防止图片干扰拖动 */
}

/* 指示器样式 */
.indicators {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
//border: 1px solid red;
//opacity: 1;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    cursor: pointer;
    transition: background 0.3s;
//    opacity: 1;
}

/* 拖动反馈样式 */
.carousel.grabbing {
    cursor: grabbing;
    transition: none;
}

.carousel.grab {
    cursor: grab;
}

.indicator.active {
    border-radius: 3px 0px;
    background: #00698C;
}