/* article.css - 红色文章页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 65px; /* 为固定页眉留出空间，防止遮挡内容 */
    background-color: #ececec;
}

/* 页眉样式 - 与index.html保持一致 */
.navbar-default {
    background-color: rgba(248, 248, 248, 0.85);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-default .navbar-brand {
    color: #fff;
    font-size: 20px;
}

.navbar-default .navbar-brand:hover {
    color: #fff;
}

.navbar-default .navbar-nav > li > a {
    color: #fff;
    font-size: 16px;
}

.navbar-default .navbar-nav > li > a:hover {
    color: #ddd;
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

/* 文章容器 */
.article-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 文章头部 */
.article-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    color: #c00;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.article-meta span {
    margin: 0 10px;
}

.article-meta i {
    margin-right: 5px;
}

/* 文章图片 */
.article-image {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* 文章内容 */
.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

.article-body p:first-of-type {
    text-indent: 0;
}

/* 文章标签 */
.article-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.article-tags span {
    display: inline-block;
    background-color: #f8f8f8;
    color: #c00;
    padding: 5px 12px;
    margin-right: 10px;
    border-radius: 3px;
    font-size: 14px;
    border: 1px solid #eee;
}

/* 返回按钮 */
.back-button {
    display: inline-block;
    margin: 30px 0;
    padding: 10px 20px;
    background-color: #c00;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #a00;
    color: #fff;
    text-decoration: none;
}

.back-button i {
    margin-right: 5px;
}

/* 页脚样式 - 与index.html保持一致 */
.footer {
    background-color: #222;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 50px;
}

.footer a {
    color: #999;
    text-decoration: none;
}

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

.footer h4 {
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin-bottom: 10px;
}

.footer .glyphicon {
    color: #d9534f;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-container {
        padding: 10px;
    }

    .article-title {
        font-size: 24px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-body h2 {
        font-size: 20px;
    }

    body {
        padding-top: 60px; /* 在小屏幕上调整页眉空间 */
    }

    .navbar-default .navbar-nav > li > a {
        font-size: 14px;
    }
}
