/* =========================================
   1. Global & Layout (全局与布局)
   ========================================= */
body {
    padding-top: 60px;
    padding-bottom: 40px;
    background-color: #f4f6f9; /* 统一浅灰背景 */
    color: #333;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 主容器 */
.body {
    margin: 0 auto;
    width: 98%;
    clear: both;
}

/* 布局结构 */
.mainContent {
    line-height: 25px;
}

.sidebar {
    width: 13%;
    float: left;
    margin: 0 !important;
    padding: 0 !important;
}

.content {
    width: 86%; /* 右侧内容区域宽度 */
    float: right;
}

/* 去除旧容器的默认背景，由内部卡片接管 */
.bottomcontent{
        background-color: #fff;
        border-radius: 5px;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
        padding: 1.2% 4%;
        margin-top:0%;
}

/* 底部 Footer */
.mainFooter {
    width: 100% !important;
    height: 40px;
    float: left;
    background-color: #34495e;
    border-radius: 4px;
    margin: 20px 0;
    color: #fff;
    padding-top: 15px;
    text-align: center;
}
.mainFooter a {
    color: #ecf0f1;
}

/* 全局标题颜色 */
h2, h3 {
    color: #2474C0;;
}


/* =========================================
   2. Sidebar Styles (侧边栏 - 核心样式)
   ========================================= */

/* 1. 侧边栏标题美化 */
.sidebar_tittle {
    background-color: #2c3e50; /* 深蓝灰色，比纯黑更有质感 */
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    padding: 14px 0; /* 增加高度，显得更大气 */
    margin-bottom: 0;
    border-radius: 6px 6px 0 0; /* 顶部圆角 */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* 文字微立体感 */
    border-bottom: 1px solid #1a252f; /* 底部深色描边 */
    letter-spacing: 1px;
}

/* 2. 侧边栏列表容器 */
.bs-docs-sidenav {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border-radius: 0 0 6px 6px; /* 底部圆角 */
    border: 1px solid #dce4ec; /* 柔和的边框色 */
    border-top: none; /* 去掉上边框，与标题无缝衔接 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.03); /* 极淡的阴影 */
}

/* 3. 列表项通用样式 */
.bs-docs-sidenav > li > a {
    display: block;
    margin: 0;
    padding: 12px 15px;
    border-bottom: 1px solid #f4f6f9; /* 极淡的分隔线 */
    color: #555;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out; /* 添加平滑过渡动画 */
}

/* 最后一个元素处理 */
.bs-docs-sidenav > li:last-child > a {
    border-radius: 0 0 6px 6px;
    border-bottom: 0;
}

/* 4. 鼠标悬停效果 */
.bs-docs-sidenav > li > a:hover {
    background-color: #f9f9f9;
    color: #2b8FE1;
    padding-left: 20px; /* 悬停时文字轻微右移，增加交互感 */
}

/* 5. 选中(Active)状态 */
.bs-docs-sidenav > .active > a {
    position: relative;
    z-index: 2;
    border: 0;
    background-color: #2b8FE1; /* 品牌蓝 */
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.15);
    font-weight: bold;
    box-shadow: inset 3px 0 0 rgba(0,0,0,0.1); /* 左侧内阴影装饰 */
}

/* 6. 右侧箭头图标 */
.bs-docs-sidenav .icon-chevron-right {
    float: right;
    margin-top: 4px;
    opacity: .4;
    transition: opacity 0.2s;
}

.bs-docs-sidenav a:hover .icon-chevron-right {
    opacity: .7;
}

.bs-docs-sidenav .active .icon-chevron-right,
.bs-docs-sidenav .active a:hover .icon-chevron-right {
    opacity: 1;
    background-image: url(../bootstrap/img/glyphicons-halflings-white.png); /* 选中时变白 */
}


/* =========================================
   3. Dashboard & Cards (卡片与仪表盘)
   ========================================= */

/* 页面顶部标题栏 */
.page-header-custom {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.page-header-custom h3 {
    margin: 0;
    color: #2474C0;;
    font-weight: 600;
    font-size: 24px;
}
.page-header-custom i {
    margin-right: 8px;
    color: #2b8FE1;
}

/* 核心卡片样式 */
.dashboard-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
    transition: box-shadow 0.2s;
    position: relative;
}
.dashboard-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.dashboard-card .card-header {
    background-color: #fafafa;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #555;
    border-radius: 6px 6px 0 0;
    font-size: 14px;
    text-transform: uppercase;
}

.dashboard-card .card-body {
    padding: 20px;
}

/* Tab 导航在卡片内的修正 */
.dashboard-card .nav-tabs {
    margin-bottom: 20px;
}

/* 统计文字 */
.stat-item { padding: 10px; }
.stat-label {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
.time-display {
    font-family: 'Courier New', Courier, monospace;
    color: #2b8FE1;
}

/* 图表容器 */
.chart-box { width: 100%; height: 220px; padding: 10px 0; }
.chart-box-lg { width: 100%; height: 320px; padding: 10px 0; }

/* 进度条美化 */
.progress {
    margin-bottom: 5px;
    height: 12px;
    border-radius: 6px;
    background-color: #f5f5f5;
}
.progress .bar { border-radius: 6px; }

/* 网络信息列表 */
.net-info-list li { margin-bottom: 8px; font-size: 14px; }
.net-info-list .label {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    margin-right: 10px;
    padding: 4px 6px;
}

/* =========================================
   4. Forms & Inputs (表单与输入框)
   ========================================= */

.custom-form { padding-top: 10px; }

/* 输入框前缀背景 */
.input-prepend .add-on {
    background-color: #f4f6f9;
    min-width: 20px;
    text-align: center;
}

.form-divider {
    border-top: 1px dashed #e5e5e5;
    border-bottom: none;
    margin: 20px 0;
}

.btn-large {
    padding: 11px 19px;
    font-size: 16px;
    border-radius: 4px;
}
.btn-large i { margin-right: 5px; }

/* =========================================
   5. Login Page (登录页专用)
   ========================================= */

body#login {
    background-color: #f4f6f9;
    padding-top: 80px;
    padding-bottom: 40px;
}

.login-card {
    max-width: 380px;
    padding: 30px 35px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
}

.login-card .form-signin-heading {
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-weight: normal;
    font-size: 24px;
}

.captcha-img {
    cursor: pointer;
    border: 1px solid #ccc;
    height: 30px;
    border-radius: 4px;
    vertical-align: top;
}

.lang-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #999;
}
.lang-switch a {
    color: #999;
    margin: 0 5px;
}
.lang-switch a:hover {
    color: #333;
    text-decoration: none;
}
/* =========================================
   6. Help Page & Tables (帮助页面与表格美化)
   ========================================= */

/* 表格整体容器 */
.table-bordered {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    border-collapse: separate; /* 允许圆角 */
    border-spacing: 0;
    overflow: hidden; /* 防止内部内容溢出圆角 */
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

/* 表头行 (原 .success 类) */
.table-bordered tr.success td,
.table-bordered tr.success th {
    background-color: #f5f7fa !important; /* 浅灰底色 */
    border-bottom: 2px solid #e0e0e0;
    color: #34495e;
    padding: 15px 10px;
}
.table-bordered h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 表格单元格通用样式 */
.table-bordered td {
    border-left: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
    padding: 15px 20px; /* 增加内边距，呼吸感更强 */
    vertical-align: middle; /* 垂直居中 */
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* 隔行变色 (.info 类行) */
.table-bordered tr.info td {
    background-color: #fbfcfd !important; /* 极淡的蓝色/灰色 */
}

/* 第一列：操作系统类型 */
.table-bordered td p {
    margin: 0;
    display: flex;
    align-items: center; /* 图标与文字垂直居中 */
}
.table-bordered td img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* 第二列：下载地址链接 */
.table-bordered td a {
    color: #2b8FE1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.table-bordered td a:hover {
    color: #1a5f9a;
    text-decoration: underline;
}
.table-bordered td code {
    background-color: #ffe8e8;
    color: #d63031;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
    border: none;
}

/* 第三列：图文教程按钮 */
.table-bordered td a p.text-center {
    display: inline-block;
    padding: 6px 15px;
    background-color: #fff;
    border: 1px solid #2b8FE1;
    color: #2b8FE1;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.2s;
    margin: 0;
    width: auto; /* 防止独占一行 */
}
/* 将 td 设为居中，让按钮居中显示 */
.table-bordered td:nth-child(3) {
    text-align: center;
}
.table-bordered td a:hover p.text-center {
    background-color: #2b8FE1;
    color: #fff;
    box-shadow: 0 2px 5px rgba(43, 143, 225, 0.3);
    text-decoration: none;
}

/* 第四列：视频教程 */
.video_inside, .table-bordered td:last-child {
    text-align: center;
    padding: 10px;
}
video {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #000;
    transition: transform 0.2s;
}
video:hover {
    transform: scale(1.02);
}

/* 辅助文本 (如：推荐使用、华为手机说明等) */
.text-inverse {
    color: #888;
    font-size: 12px;
    margin-bottom: 2px;
}
.va-m {
    vertical-align: middle !important;
}

/* 移动端适配微调 */
@media (max-width: 767px) {
    .table-bordered td {
        display: block;
        width: 100%;
        border-left: none;
        text-align: center;
    }
    .table-bordered td p {
        justify-content: center;
    }
    .table-bordered tr.success {
        display: none; /* 手机端隐藏表头 */
    }
}
