/* 三级页面样式 - 新闻详情页 */

/* 文章内容区域 */
.article-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 文章头部 */
.article-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.article-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 14px;
    color: #666;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-time {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z"/></svg>');
}

.icon-source {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>');
}

.icon-views {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><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>');
}

/* 文章正文 */
.article-body {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #006d72;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-body h1 { font-size: 24px; }
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 20px; }
.article-body h4 { font-size: 18px; }

.article-body p {
    margin-bottom: 20px;
    text-align: justify;
    text-indent: 2em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-body blockquote {
    margin: 25px 0;
    padding: 20px 30px;
    background: #f8fafc;
    border-left: 4px solid #006d72;
    font-style: italic;
    color: #555;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-body th,
.article-body td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.article-body th {
    background: #006d72;
    color: #fff;
    font-weight: 600;
}

/* 附件下载区域 */
.attachments {
    margin: 30px 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.attachments h3 {
    font-size: 18px;
    color: #006d72;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachments h3::before {
    content: '📎';
    font-size: 16px;
}

.attachment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.attachment-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    border-color: #006d72;
    box-shadow: 0 2px 8px rgba(0,109,114,0.1);
}

.attachment-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
}

.attachment-size {
    font-size: 12px;
    color: #666;
}

.attachment-download {
    padding: 6px 12px;
    background: #006d72;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: background 0.3s ease;
}

.attachment-download:hover {
    background: #348e94;
    color: #fff;
}

/* 文章底部操作区域 */
.article-footer {
    padding: 30px 40px;
    border-top: 1px solid #eee;
    background: #f8fafc;
}

.article-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-share,
.btn-print {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.btn-share:hover,
.btn-print:hover {
    border-color: #006d72;
    color: #006d72;
    background: #f0fdff;
}

.icon-share,
.icon-print {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-share {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92S19.61 16.08 18 16.08z"/></svg>');
}

.icon-print {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/></svg>');
}

/* 文章导航 */
.article-nav {
    margin-bottom: 30px;
}

.nav-item {
    margin-bottom: 15px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.nav-item:hover {
    border-color: #006d72;
    box-shadow: 0 2px 8px rgba(0,109,114,0.1);
}

.nav-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #006d72;
}

/* 返回按钮 */
.back-to-list {
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #006d72;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #348e94;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,109,114,0.3);
}

.icon-back {
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .article-header {
        padding: 20px 25px 15px;
    }

    .article-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }

    .article-body {
        padding: 25px 20px;
        font-size: 15px;
    }

    .article-body p {
        text-indent: 1.5em;
    }

    .attachments {
        margin: 20px;
        padding: 15px;
    }

    .article-footer {
        padding: 20px;
    }

    .article-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-share,
    .btn-print {
        justify-content: center;
        width: 100%;
    }

    .nav-item {
        padding: 12px 15px;
    }

    .nav-link {
        font-size: 14px;
    }
}

/* 打印样式 */
@media print {
    .article-actions,
    .article-nav,
    .back-to-list {
        display: none !important;
    }

    .article-header {
        background: none !important;
    }

    .article-content {
        box-shadow: none !important;
    }

    .article-body {
        padding: 20px 0;
    }
}
