/*
 * 文章页面通用样式
 * 基于主页配色方案：主色 #00b2ce，背景色 #f3f6f8
 * 与主页保持一致的导航栏和页脚
 */

/* 页面基础样式 */
body {
    background-color: #f3f6f8;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.8;
    padding-top: 90px; /* 为固定导航栏留出空间 */
}

/* 面包屑导航 */
.breadcrumb-nav {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumb a {
    color: #00b2ce;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .active {
    color: #666;
}

.breadcrumb > li + li:before {
    content: ">";
    padding: 0 8px;
    color: #999;
}

/* 文章容器 */
.article-container {
    max-width: 900px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.article-title {
    font-size: 28px;
    font-weight: 600;
    color: #304254;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.article-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.article-meta span {
    margin: 0 10px;
}

/* 文章封面图 */
.article-cover {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* 文章内容 */
.article-content {
    padding: 40px;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
}

/* 段落样式 */
.article-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* 标题样式 */
.article-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #304254;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00b2ce;
}

.article-content h3 {
    font-size: 19px;
    font-weight: 500;
    color: #344659;
    margin: 1.5rem 0 0.8rem;
}

.article-content h4 {
    font-size: 17px;
    font-weight: 500;
    color: #465a6f;
    margin: 1.2rem 0 0.6rem;
}

/* 列表样式 */
.article-content ul,
.article-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.6rem;
}

.article-content li::marker {
    color: #00b2ce;
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
}

/* 引用块样式 */
.article-content blockquote {
    border-left: 4px solid #00b2ce;
    background-color: #f8f9fa;
    padding: 15px 20px;
    margin: 1.5rem 0;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
}

/* 强调文本 */
.article-content strong {
    color: #304254;
    font-weight: 600;
}

/* 链接样式 */
.article-content a {
    color: #00b2ce;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
    color: #0095b3;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-content th,
.article-content td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
}

.article-content th {
    background-color: #00b2ce;
    color: #fff;
    font-weight: 500;
}

.article-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* 重点提示框 */
.tips-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f9ff 100%);
    border-left: 4px solid #00b2ce;
    border-radius: 6px;
    padding: 20px;
    margin: 1.5rem 0;
}

.tips-box .tips-title {
    font-weight: 600;
    color: #00b2ce;
    margin-bottom: 10px;
    font-size: 16px;
}

/* 案例卡片 */
.case-card {
    background-color: #fff9f0;
    border-left: 4px solid #ff9800;
    border-radius: 6px;
    padding: 20px;
    margin: 1.5rem 0;
}

.case-card .case-title {
    color: #ff9800;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 17px;
}

/* 返回首页按钮 */
.btn-back-container {
    text-align: center;
    padding: 30px 40px 40px;
}

.btn-back {
    display: inline-block;
    padding: 12px 35px;
    background-color: #00b2ce;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #0095b3;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 178, 206, 0.3);
}

/* 页脚样式调整 */
footer {
    margin-top: 40px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .article-header {
        padding: 25px 20px 15px;
    }

    .article-title {
        font-size: 22px;
    }

    .article-content {
        padding: 25px 20px;
        font-size: 15px;
    }

    .article-content h2 {
        font-size: 19px;
    }

    .article-content h3 {
        font-size: 17px;
    }

    .btn-back-container {
        padding: 20px 20px 30px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }

    .article-content {
        font-size: 14px;
    }

    .article-meta {
        font-size: 13px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
    background-color: #00b2ce;
    color: #fff;
}
