:root {
    --primary-color: #2c5282;  /* 深蓝色 - 主色调 */
    --secondary-color: #4299e1;  /* 亮蓝色 - 次要色调 */
    --accent-color: #ebf8ff;  /* 浅蓝色 - 强调色 */
    --text-primary: #2d3748;  /* 深灰色 - 主要文字 */
    --text-secondary: #718096;  /* 中灰色 - 次要文字 */
}

/* 导航栏样式优化 */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    margin: 0 auto;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 16px;
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-toggler {
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--primary-color);
}

.navbar-toggler i {
    font-size: 20px;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .navbar {
        height: 50px;
    }

    .navbar-brand {
        font-size: 15px;
    }

    .navbar .container {
        padding: 0 10px;
    }
}

/* 轮播图区域优化 */
.xuanchuanimg {
    margin-top: 0;
    width: 100%;
    height: 160px;  /* 减小轮播图高度 */
}

/* 功能区域容器优化 */
.container {
    padding: 10px;  /* 减小内边距 */
    margin-top: 5px;  /* 减小上边距 */
}

/* 功能卡片网格布局优化 */
.row.g-4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;  /* 减小卡片间距 */
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

/* 功能卡片样式优化 */
.feature-card {
    height: 100px !important;  /* 从95px增加到100px */
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(44,82,130,0.08) !important;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(44,82,130,0.1);
}
.feature-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}
.icon-circle {
    width: 40px;  /* 减小图标容器大小 */
    height: 40px;
    margin-bottom: 8px;  /* 减小图标与文字的间距 */
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-circle i {
    font-size: 20px;
    color: var(--primary-color);
}
.feature-card h5 {
    font-size: 14px;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
    color: var(--text-primary);
}

/* 列宽度重置 */
.col-lg-4, .col-sm-4, .col-4 {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* 底部导航栏优化 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 0;
}

.bottom-nav .d-flex {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav .nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav .nav-link {
    color: var(--text-secondary);
    font-size: 0.75rem;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 6px 0;
}

.bottom-nav .nav-link i {
    font-size: 20px;
    margin-bottom: 3px;
}

.bottom-nav .nav-link span {
    font-size: 12px;
    line-height: 1;
}

.bottom-nav .nav-link.active {
    color: var(--primary-color);
}

.bottom-nav .nav-link:hover {
    color: var(--secondary-color);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .xuanchuanimg {
        height: 140px;  /* 移动端进一步减小轮播图高度 */
    }

    .container {
        padding: 8px;
    }

    .row.g-4 {
        gap: 10px;
    }

    .feature-card {
        height: 90px !important;  /* 从85px增加到90px */
    }

    .icon-circle {
        width: 35px;
        height: 35px;
        margin-bottom: 6px;
    }

    .icon-circle i {
        font-size: 20px;
    }

    .feature-card h5 {
        font-size: 13px;
    }
}

/* 页面整体布局优化 */
body {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    min-height: 100vh;  /* 改为最小高度 */
    position: relative;  /* 改为相对定位 */
    padding-bottom: 55px;  /* 为底部导航预留空间 */
    overflow-y: auto;  /* 允许页面滚动 */
}

/* 主要内容区域容器 */
.main-content {
    padding-top: 56px;  /* 为顶部导航栏预留空间 */
    padding-bottom: 10px;
    overflow-y: visible;  /* 允许内容区域滚动 */
    position: relative;  /* 改为相对定位 */
    height: auto;  /* 自适应高度 */
}

.py-5 {
    padding: 5px 0 !important;  /* 减小上下内边距 */
}
section {
    margin: 0;
    padding: 0;
}