/* 页面特定样式 - 组件细节和主题样式 */

/* 导航栏样式优化 */
.collapse.navbar-collapse {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.nav.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav.navbar-nav li {
    position: relative;
}

.nav.navbar-nav li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav.navbar-nav li a:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

/* 导航栏下拉菜单样式 */
.s-dropdown1 {
    position: relative;
    display: inline-block;
}

.s-dropdown1:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 图标样式 */
.fa {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: inline-block;
    margin-right: 8px;
}

/* 文本样式 */
.b-group-text1 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.b-group-text2 {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 幻灯片组件样式 */
.s-bench {
    position: relative;
    width: 100%;
}

.s-bench-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.s-bench-object {
    position: absolute;
}

.s-bench-object-container {
    position: relative;
}

/* 内容区域布局优化 */
.s-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.s-root {
    width: 100%;
    position: relative;
}

/* 网格布局优化 */
.b_one {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.b_one:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.b_icon {
    margin-bottom: 15px;
}

.b_tit {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.b_des {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 底部页脚优化 */
.page-copyright {
    background-color: #333;
    color: #F1F1F1;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.page-copyright a {
    color: #F1F1F1;
    text-decoration: none;
    margin: 0 10px;
}

.page-copyright a:hover {
    color: #F1F1F1;
    text-decoration: underline;
}

/* 图片组件样式 */
.s-images1 img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 表单样式 */
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* 页脚样式 */
.page-copyright {
    background-color: #333;
    color: #F1F1F1;
    padding: 20px 0;
    text-align: center;
}

.page-copyright a {
    color: #F1F1F1;
    text-decoration: none;
}

.page-copyright a:hover {
    color: #F1F1F1;
    text-decoration: underline;
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 网格布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/* 媒体查询 */
@media (max-width: 768px) {
    .col-6, .col-4, .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row {
        margin: 0 -10px;
    }
    
    .col {
        padding: 0 10px;
    }
}