/* WAP端新闻详情页面样式 - 移动端优化 */

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
}

/* 文章标题 */
.article-title {
    background: #fff;
    padding: 10px 20px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    text-align: center;
}

.article-title .title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    text-align: center;
    word-wrap: break-word;
    word-break: break-all;
}

.article-title .second_title {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
    color: #747474;
    text-align: center;
    word-wrap: break-word;
    word-break: break-all;
}

.article-title .third_title {
    margin: 10px 0 0 0;
    font-size: 22px;
    line-height: 1.3;
    color: #a5a5a5;
    text-align: center;
    word-wrap: break-word;
    word-break: break-all;
}

/* 文章元信息 */
.article-meta {
    background: #fff;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
    color: #666;
    align-items: center;
    flex-direction: column;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label {
    color: #666;
    font-weight: 400;
}

.meta-value {
    color: #666;
    font-weight: 500;
}

/* 视频容器 */
.video-container {
    background: #000;
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* 竖屏视频样式 */
.video-container.vertical-video {
    background: #000;
    max-width: 400px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* 文章正文 */
.article-content {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
    word-break: break-all;
    overflow: hidden;
}

/* 责任编辑 */
.article-editor {
    text-align: right;
    margin-top: 20px;
    padding-top: 15px;
}

.article-editor p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.content-text p {
    margin: 0 0 15px 0;
}

.content-text img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 15px auto;
    border-radius: 4px;
}

.content-text p video {
    width: 100%;
    margin: 0 auto;
    height: auto;
}

.content-text h1,
.content-text h2,
.content-text h3,
.content-text h4,
.content-text h5,
.content-text h6 {
    margin: 20px 0 10px 0;
    font-weight: 600;
    color: #333;
}

.content-text ul,
.content-text ol {
    margin: 15px 0;
    padding-left: 20px;
}

.content-text li {
    margin: 5px 0;
}

.content-text blockquote {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #67a8c8;
    border-radius: 0 4px 4px 0;
}

.content-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.content-text th,
.content-text td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.content-text th {
    background: #f8f9fa;
    font-weight: 600;
}

/* 链接样式 */
.content-text a {
    color: #67a8c8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-text a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* 代码块样式 */
.content-text pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.4;
}

.content-text code {
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 2px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 错误状态 */
.error {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 成功状态 */
.success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}