/* 完整的子站样式，继承主站枣红色设计风格 */
:root {
    --primary-color: #a5452f; /* 枣红色 - 主色调（与主站一致） */
    --secondary-color: #656565; /* 灰色 - 辅助色 */
    --background-color: #F5F5F5; /* 浅灰色背景 */
    --text-color: #333333;
    --border-color: #e2e2e2; /* 边框颜色（与主站一致） */
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* 目标站点wrapper样式 - 实现粘性页脚 */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

/* 容器样式 - 实现粘性页脚 */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 目标站点header样式 */
.header {
    background-color: #ffffff;
    border-top: 5px solid var(--primary-color); /* 枣红色顶部边框（与主站一致） */
    border-bottom: 1px solid var(--border-color); /* 底部边框（与主站一致） */
    padding: 0;
}

.mod-head {
    max-width: 1200px;
    margin: 0 auto;
}

.mod-head .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.mod-head .bd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo样式 */
.logo {
    display: flex;
    align-items: center;
    float: left;
    height: 80px;
    line-height: 80px;
}

.text-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color); /* 枣红色文字 */
    text-decoration: none;
    margin: 0;
    padding: 10px;
}

/* 目标站点导航样式 */
.mod-head ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 22px 0;
    position: relative;
    overflow: hidden;
    float: right;
}

.mod-head ul li {
    margin: 0 15px;
    position: relative;
    float: left;
    height: 36px;
}

.mod-head ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 16px;
    padding: 10px 5px;
    display: block;
    transition: all 0.3s ease;
}

.mod-head ul li a:hover {
    color: var(--primary-color); /* 枣红色悬停效果 */
    text-decoration: none;
}

.mod-head ul li.active a {
    color: var(--primary-color); /* 枣红色激活状态 */
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color); /* 枣红色下划线 */
}

/* clearfix 清除浮动 */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    *zoom: 1;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    background-color: #ffffff;
    border: 1px solid var(--border-color); /* 边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container .inner {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.container .main {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    width: calc(100% - 320px);
    min-width: 0;
}

/* 垂直式文章列表样式 - 紧凑版 */
.articles-vertical {
    margin-top: 15px;
}

.articles-vertical ol {
    list-style-type: decimal;
    padding-left: 25px;
}

.article-item-vertical {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    position: relative;
    border: 1px solid #e0e0e0;
    height: auto;
    min-height: 170px;
    flex-wrap: nowrap;
}

.article-item-vertical:hover {
    background-color: #f0f0f0;
    transform: translateX(3px);
    border-color: var(--primary-color); /* 枣红色边框悬停效果 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.article-item-vertical .article-date-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #999999;
    font-size: 12px;
    margin: 0;
}

.article-item-vertical .article-title {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 16px;
    margin: 10px 0 0 10px;
    flex: 1;
    text-align: left;
    font-weight: bold;
    min-width: 300px;
}

.article-item-vertical .article-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
}



/* 分页导航样式 - 简化版 */
.pagination {
    margin-top: 20px;
    text-align: center;
    padding: 10px 0;
    background-color: transparent;
    border: none;
}

.pagination .total {
    display: block;
    margin-bottom: 5px;
    color: #666666;
    font-size: 14px;
}

.pagination ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination li {
    margin: 0 2px;
}

.pagination li a {
    display: block;
    padding: 6px 10px;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pagination li a:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.pagination li.active a {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    font-weight: bold;
}

.pagination li.ellipsis {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    color: #666666;
    font-size: 14px;
}

.pagination li:first-child a,
.pagination li:last-child a {
    min-width: auto;
    padding: 6px 10px;
}

/* 总数显示 */
.total {
    text-align: center;
    color: #666666;
    font-size: 14px;
    margin-top: 10px;
}

/* 按钮样式 */
.read-more, .back-home, .back-list {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: 1px solid var(--primary-color); /* 枣红色边框 */
}

.read-more:hover, .back-home:hover, .back-list:hover {
    background-color: #ffffff;
    color: var(--primary-color); /* 枣红色文字 */
}

/* 无文章提示 */
.no-article {
    text-align: center;
    padding: 40px 0;
    color: #666666;
}

/* 文章详情页样式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.article-detail h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color); /* 枣红色下划线 */
    padding-bottom: 10px;
}

.article-date {
    color: #666666;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* 文章第二标题样式 */
.article-subtitle {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    text-align: center;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 文章图片样式 */
.article-images {
    margin: 20px 0;
    text-align: center;
}

.article-image {
    max-width: 100%;
    height: auto;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.article-content {
    margin-bottom: 20px;
    line-height: 1.8;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.article-content p {
    text-indent: 2em;
    margin-bottom: 15px;
    margin-top: 0;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* 页脚样式 */
.footer {
    background-color: #333333; /* 主站页脚背景色 */
    border-top: none;
    padding: 20px 0;
    margin-top: 20px;
    text-align: center;
    color: #ffffff; /* 主站页脚文字颜色 */
    font-size: 14px;
}

.footer a {
    color: #ffffff; /* 主站页脚链接颜色 */
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 5px 0;
}

.center {
    text-align: center;
}

/* 侧边栏样式 */
.side {
    display: block;
    width: 300px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 1px solid #e0e0e0;
    margin-left: 20px;
    flex-shrink: 0;
}

/* 文章列表标题样式 */
.article-list-container h1 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}