/* 页面公共样式 - 基础布局和组件样式 */

/* 基础重置和通用样式 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'tahoma', 'arial', 'Hiragino Sans GB', 'Microsoft YaHei', '黑体', 'sans-serif';
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #FFF;
}

/* 导航栏样式 */
.collapse.navbar-collapse {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav.navbar-nav li {
    position: relative;
}

.nav.navbar-nav li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.nav.navbar-nav li a:hover {
    color: #007bff;
}

/* 幻灯片容器样式 */
.slides {
    min-height: 100vh;
    position: relative;
}

.slide {
    width: 100%;
    position: relative;
}

.s-layout-a {
    position: relative;
    z-index: 0;
}

.s-container {
    max-width: 3000px;
    margin: 0 auto;
    position: relative;
}

/* 轮播图样式 */
.s-images1 {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.s-images-render-container {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

/* 确保轮播容器居中 */
.carousel-container {
    position: relative;
    max-width: 1900px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* 轮播图片列表 */
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* 单张图片样式 */
.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 导航按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* 指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-indicator.active {
    background-color: white;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .nav.navbar-nav {
        gap: 20px;
    }
    
    .nav.navbar-nav li a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .collapse.navbar-collapse {
        margin-left: 0 !important;
    }
    
    .nav.navbar-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav.navbar-nav li a {
        font-size: 14px;
        padding: 6px 10px;
    }
}

/* 工具类样式 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.ml-20 { margin-left: 20px; }
.mr-20 { margin-right: 20px; }

.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }
.pl-20 { padding-left: 20px; }
.pr-20 { padding-right: 20px; }