/* =========================================
   1. 导航栏优化样式 (全站通用)
   ========================================= */
.nav-section {
    background: #8B2323;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-item>a {
    display: block;
    padding: 0 28px;
    height: 60px;
    line-height: 60px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: none;
    position: relative;
}



.nav-item>a:hover::after,
.nav-item>a.active::after {
    width: 70%;
}

.nav-item>a:hover,
.nav-item>a.active {
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
    padding-bottom: 0;
}

/* 下拉菜单指示箭头 */
.nav-item.has-dropdown>a::before {
    content: '▼';
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    right: 12px;
    top: 2px;
    opacity: 0;
    transition: 0.3s;
}

.nav-item.has-dropdown:hover>a::before {
    opacity: 1;
    transform: translateY(2px);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 160px;
    background: #fff;
    border-top: 3px solid #c0a16b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 8px 0;
    text-align: left;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #444;
    font-size: 14px;
    border-bottom: 1px dashed #f0f0f0;
    transition: all 0.2s;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #fdfdfd;
    color: #8B2323;
    padding-left: 25px;
}

/* =========================================
   2. 主体布局 (Sidebar + Content)
   ========================================= */

.main-wrapper {
    display: flex;
    gap: 30px;
    padding-bottom: 50px;
    margin-top: 40px;
    /* 无Banner时的顶部间距 */
}

/* 左侧栏 */
.sidebar {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-title {
    background: #8B2323;
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

.sidebar-menu {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.menu-item a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
    font-size: 15px;
    transition: all 0.3s;
}

.menu-item:last-child a {
    border-bottom: none;
}

.menu-item a:hover {
    background: #f9f9f9;
    color: #8B2323;
    padding-left: 25px;
}

.menu-item.active a {
    background: #fff;
    color: #8B2323;
    font-weight: bold;
    border-left: 4px solid #8B2323;
}

.sidebar-contact {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #c0a16b;
}

.sidebar-contact h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.sidebar-contact p {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
}

/* 右侧内容框 */
.right-content {
    flex: 1;
    background: #fff;
    padding: 30px 40px;
    /* 内容页左右内边距稍微大一点，更像书本 */
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    min-height: 600px;
}

.breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.breadcrumb a:hover {
    color: #8B2323;
    text-decoration: underline;
}

.page-header {
    margin-bottom: 30px;
    text-align: center;
    /* 简介页标题通常居中显得正式 */
}

.page-header h3 {
    font-size: 26px;
    color: #333;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #8B2323;
    /* 标题底部红线 */
}

/* =========================================
   3. 简介内容专用样式 (Article Content)
   ========================================= */

.article-content {
    color: #444;
    line-height: 1.8;
    /* 增加行高，提升阅读体验 */
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
    /* 首行缩进两个字符 */
    text-align: justify;
    /* 两端对齐 */
}

/* 导语/第一段样式 */
.article-content .intro-lead {
    font-size: 17px;
    color: #222;
}

/* 内容图片容器 */
.content-img-wrapper {
    text-align: center;
    margin: 30px 0;
    background: #fafafa;
    padding: 10px;
    border: 1px solid #eee;
}

.content-img-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.img-caption {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* 手机适配 */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-item {
        width: 33.33%;
        text-align: center;
    }

    .nav-item>a {
        padding: 0;
        font-size: 13px;
    }

    .dropdown-menu {
        display: none !important;
    }

    .main-wrapper {
        flex-direction: column;
        margin-top: 20px;
    }

    .sidebar {
        width: 100%;
    }

    .right-content {
        padding: 20px;
    }

    .page-header h3 {
        font-size: 22px;
    }
}