/* =========================================
   1. 导航栏优化样式
   ========================================= */



/* 二级下拉菜单容器 */
.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;
    line-height: 1.4;
    height: auto;
    border-bottom: 1px dashed #f0f0f0;
    transition: all 0.2s;
    background: transparent;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #fdfdfd;
    color: #8B2323;
    padding-left: 25px;
}

.dropdown-menu a::after {
    display: none;
}


/* =========================================
   2. 列表页主体样式 (无Banner版)
   ========================================= */

/* 左右布局容器 */
.main-wrapper {
    display: flex;
    gap: 30px;
    padding-bottom: 50px;
    /* 新增：因为删除了banner，增加顶部间距防止内容紧贴导航栏 */
    margin-top: 40px;
}

/* --- 左侧侧边栏 --- */
.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;
    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: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.breadcrumb a:hover {
    color: #8B2323;
    text-decoration: underline;
}

.page-header {
    margin-bottom: 25px;
}

.page-header h3 {
    font-size: 22px;
    color: #333;
    border-left: 5px solid #8B2323;
    padding-left: 15px;
    line-height: 1.2;
}

/* 列表条目 */
.article-list {
    margin-bottom: 40px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: 0.3s;
}

.list-row:hover {
    background-color: #fdfcfc;
}

.list-title {
    font-size: 16px;
    color: #333;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 15px;
    position: relative;
}

.list-title::before {
    content: "▪";
    color: #c0a16b;
    position: absolute;
    left: 0;
    font-size: 12px;
    top: 2px;
}

.list-title:hover {
    color: #8B2323;
}

.list-date {
    color: #999;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    border: 1px solid #ddd;
    padding: 6px 14px;
    font-size: 14px;
    color: #666;
    border-radius: 2px;
    background: #fff;
    transition: 0.3s;
}

.page-btn:hover:not(.disabled) {
    border-color: #8B2323;
    color: #8B2323;
}

.page-btn.active {
    background: #8B2323;
    color: #fff;
    border-color: #8B2323;
}

.page-btn.disabled {
    color: #ccc;
    background: #f5f5f5;
    pointer-events: none;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-item {
        width: 33.33%;
        text-align: center;
    }

    .nav-item>a {
        padding: 0 5px;
        font-size: 13px;
        height: 50px;
        line-height: 50px;
    }

    .dropdown-menu {
        display: none !important;
    }

    .main-wrapper {
        flex-direction: column;
        margin-top: 20px;
        /* 手机端间距稍微小一点 */
    }

    .sidebar {
        width: 100%;
    }

    .list-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .list-title {
        white-space: normal;
        max-width: 100%;
    }
}