/**
 * 网站优势信息栏样式
 * PC模式: 1行4列
 * 移动端模式: 2行2列
 */

/* 公共基础样式 */
.announcement-bar {
    position: relative;
    padding: 15px 0;
    margin-bottom: 20px;
    background-color: transparent !important;
    box-shadow: none !important;
    overflow: hidden;
}

.advantage-slider {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC端显示4列 */
    grid-template-rows: 1fr; /* 单行显示 */
    gap: 15px;
    padding: 0;
    margin: 0;
}

.advantage-item-wrapper {
    width: 100%;
    min-width: auto;
    opacity: 1;
    transform: none;
    position: relative;
}

.advantage-item {
    height: 100%;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(50, 50, 93, .08), 0 2px 4px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
}

.advantage-icon svg {
    width: 28px;
    height: 28px;
}

.advantage-content {
    display: flex;
    flex-direction: column;
}

.advantage-content strong {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.advantage-content span {
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.advantage-dots {
    display: none; /* 隐藏导航点 */
}

.announcement-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

/* 移动端样式覆盖 */
@media (max-width: 768px) {
    .announcement-bar {
        padding: 2px 0;
        margin-bottom: 10px !important;
        position: relative;
    }
    
    .advantage-slider {
        grid-template-columns: repeat(2, 1fr); /* 移动端2列 */
        grid-template-rows: repeat(2, auto); /* 移动端2行 */
        gap: 8px;
    }
    
    .advantage-item {
        padding: 10px !important;
    }
    
    .advantage-icon {
        width: 32px !important;
        height: 32px !important;
        margin-right: 8px !important;
    }
    
    .advantage-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .advantage-content strong {
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .advantage-content span {
        font-size: 11px;
        line-height: 1.2;
    }

    .announcement-bar .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -5px;
        padding-bottom: 15px;
    }
    
    .announcement-bar .row::-webkit-scrollbar {
        display: none;
    }
    
    .announcement-item {
        flex-direction: row !important;
        align-items: center !important;
        padding: 10px !important;
    }
    
    .announcement-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px !important;
        margin-bottom: 0 !important;
    }
    
    .announcement-content {
        text-align: left !important;
    }
    
    .announcement-content strong {
        font-size: 13px;
        margin-bottom: 2px;
    }
    
    .announcement-content span {
        display: block !important;
        font-size: 11px;
        line-height: 1.2;
    }
    
    .announcement-bar .feature-item-wrapper {
        flex: 0 0 auto;
        width: 180px !important;
        max-width: 180px !important;
        min-width: 180px !important;
        padding: 0 5px;
    }
}
