/* /static/index/css/article/index.css */

/* 文章详情页样式 */
:root {
    --primary-color: #4B7BE5;
    --secondary-color: #436abf;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #eee;
}

/* 面包屑导航样式 */
.breadcrumb-section {
    background-color: #f9f9f9;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: var(--primary-color);
}

/* 文章内容区域样式 */
.article-section {
    padding: 40px 0;
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.article-wrapper {
    display: flex;
    gap: 30px;
}

/* 左侧文章主体 */
.article-main {
    flex: 1;
    min-width: 0; /* 防止溢出 */
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    color: #888;
    font-size: 14px;
    gap: 20px;
}

.article-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-meta a:hover {
    text-decoration: underline;
}

.view-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"/></svg>');
    background-size: contain;
    margin-right: 4px;
}

/* 文章内容样式 */
.article-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.article-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}

.article-content h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #333;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 10px 15px;
    margin: 20px 0;
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

/* 文章标签样式 */
.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tag-label {
    font-weight: bold;
    color: #666;
    margin-right: 10px;
}

.tag-item {
    display: inline-block;
    padding: 4px 10px;
    margin: 5px 5px 5px 0;
    background-color: #f0f2f5;
    color: #666;
    border-radius: 3px;
    font-size: 13px;
}

/* 右侧相关文章 */
.article-sidebar {
    flex: 0 0 300px;
}

.related-articles, .contact-info {
    position: sticky;
    top: 80px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

.sidebar-title {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e5e5;
}

.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-item a {
    display: flex;
    align-items: center;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.4;
}

.related-item a:hover {
    color: var(--primary-color);
}

.related-icon {
    margin-right: 8px;
    font-size: 16px;
    color: #999;
}

.related-text {
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* 右侧联系信息 */
.contact-info {
    flex: 0 0 calc(25% - 20px);
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 5px;
}

.contact-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.phone-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234B7BE5"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

.email-icon {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234B7BE5"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.wechat-icon {
    background-image: url('data:image/svg+xml;utf8,<svg t="1743928459204" class="icon" viewBox="0 0 1170 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2636" width="150" height="150"><path d="M331.428571 263.428571q0-23.428571-14.285714-37.714285t-37.714286-14.285715q-24.571429 0-43.428571 14.571429T217.142857 263.428571q0 22.285714 18.857143 36.857143t43.428571 14.571429q23.428571 0 37.714286-14t14.285714-37.428572z m424.571429 289.714286q0-16-14.571429-28.571428t-37.428571-12.571429q-15.428571 0-28.285714 12.857143T662.857143 553.142857q0 16 12.857143 28.857143t28.285714 12.857143q22.857143 0 37.428571-12.571429t14.571429-29.142857z m-134.857143-289.714286q0-23.428571-14-37.714285T569.714286 211.428571q-24.571429 0-43.428572 14.571429T507.428571 263.428571q0 22.285714 18.857143 36.857143t43.428572 14.571429q23.428571 0 37.428571-14T621.142857 263.428571z m362.857143 289.714286q0-16-14.857143-28.571428t-37.142857-12.571429q-15.428571 0-28.285714 12.857143T890.857143 553.142857q0 16 12.857143 28.857143t28.285714 12.857143q22.285714 0 37.142857-12.571429t14.857143-29.142857z m-152-226.857143q-17.714286-2.285714-40-2.285714-96.571429 0-177.714286 44T486.571429 487.142857 440 651.428571q0 44.571429 13.142857 86.857143-20 1.714286-38.857143 1.714286-14.857143 0-28.571428-0.857143t-31.428572-3.714286-25.428571-4-31.142857-6-28.571429-6l-144.571428 72.571429 41.142857-124.571429Q0 551.428571 0 387.428571q0-96.571429 55.714286-177.714285t150.857143-127.714286T414.285714 35.428571q100.571429 0 190 37.714286t149.714286 104.285714T832 326.285714z m338.285714 320.571429q0 66.857143-39.142857 127.714286T1025.142857 885.142857l31.428572 103.428572-113.714286-62.285715q-85.714286 21.142857-124.571429 21.142857-96.571429 0-177.714285-40.285714T512.857143 797.714286 466.285714 646.857143t46.571429-150.857143T640.571429 386.571429t177.714285-40.285715q92 0 173.142857 40.285715t130 109.714285T1170.285714 646.857143z" p-id="2637" fill="%234B7BE5"></path></svg>');
}

.wechat-qrcode {
    text-align: center;
    margin-top: 20px;
}

.wechat-qrcode img {
    width: 120px;
    height: 120px;
    border: 5px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.wechat-qrcode p {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    width: 30%;
    background-color: var(--light-gray);
    color: var(--text-color);
}

table tr:last-child th,
table tr:last-child td {
    border-bottom: none;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .article-wrapper {
        flex-direction: column;
    }
    
    .article-sidebar, .contact-info {
        flex: 0 0 100%;
    }
    
    .related-articles, .contact-info {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .article-section {
        padding: 20px 0;
    }
    
    .article-title {
        font-size: 22px;
    }

    .contact-info {
        padding: 15px;
    }
    
    .article-content {
        font-size: 15px;
    }
}

