/* ============ AI 快讯频道 ============ */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f6f8;
    color: #333;
    font-size: 15px;
    line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* 顶栏 */
.g-top {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.g-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 18px;
}
.g-top .g-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.g-logo {
    font-size: 19px;
    font-weight: 800;
    color: #16baaa;
    letter-spacing: 1px;
}
.g-nav { display: flex; gap: 20px; }
.g-nav a {
    font-size: 14px;
    color: #555;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.g-nav a:hover, .g-nav a.on { color: #16baaa; border-bottom-color: #16baaa; }

/* 面包屑 */
.g-crumb {
    padding: 14px 0;
    font-size: 13px;
    color: #999;
}
.g-crumb a:hover { color: #16baaa; }
.g-crumb .sep { margin: 0 6px; color: #ccc; }

/* 频道头 */
.news-hero {
    position: relative;
    background: linear-gradient(120deg, #0d6e63 0%, #16baaa 100%);
    color: #fff;
    padding: 42px 36px 46px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(22, 186, 170, .18);
}
.news-hero::after {
    content: '';
    position: absolute;
    right: -70px;
    top: -70px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 68%);
    pointer-events: none;
}
.news-hero h1 {
    position: relative;
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}
.news-hero p {
    position: relative;
    margin: 0;
    max-width: 600px;
    font-size: 14.5px;
    line-height: 1.85;
    opacity: .94;
}

/* 列表 */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.news-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .18s, box-shadow .18s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.news-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    background: #eef0f3;
    margin-bottom: 12px;
}
.news-card h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    color: #1f2d3d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card h2:hover { color: #16baaa; }
.news-card p {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #777;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}
.news-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.news-tag {
    font-size: 11px;
    color: #16baaa;
    background: #e8f7f5;
    padding: 1px 8px;
    border-radius: 10px;
}

/* 分页 */
.news-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 28px 0;
    flex-wrap: wrap;
}
.news-pager a, .news-pager span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e6e6e6;
    font-size: 13.5px;
    color: #555;
}
.news-pager a:hover { border-color: #16baaa; color: #16baaa; }
.news-pager .cur { background: #16baaa; border-color: #16baaa; color: #fff; }

/* 详情 */
.news-article {
    background: #fff;
    border-radius: 10px;
    padding: 30px 34px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 20px;
}
.news-article h1 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.4;
    color: #1f2d3d;
    letter-spacing: 1px;
}
.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #999;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.news-article-meta b { color: #555; font-weight: 500; }
.news-article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}
.news-article-content h2, .news-article-content h3 {
    margin: 26px 0 12px;
    color: #1f2d3d;
}
.news-article-content p { margin: 0 0 16px; }
.news-article-content img { border-radius: 6px; margin: 12px 0; }
.news-article-content blockquote {
    border-left: 3px solid #16baaa;
    background: #f0f9f8;
    padding: 10px 16px;
    margin: 16px 0;
    color: #555;
}
.news-article-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 13px;
}
.news-article-content a { color: #16baaa; border-bottom: 1px solid #16baaa; }

/* 上下篇 */
.news-relations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.news-rel-box {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    font-size: 13.5px;
}
.news-rel-box .label { color: #999; font-size: 12px; margin-bottom: 4px; }
.news-rel-box a { color: #1f2d3d; }
.news-rel-box a:hover { color: #16baaa; }
.news-rel-box.none { color: #ccc; }

/* 相关推荐 */
.news-related { background: #fff; border-radius: 10px; padding: 20px 24px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.news-related h3 { margin: 0 0 14px; font-size: 16px; color: #1f2d3d; border-left: 3px solid #16baaa; padding-left: 10px; }
.news-related ul { list-style: none; margin: 0; padding: 0; }
.news-related li { padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.news-related li:last-child { border-bottom: none; }
.news-related a:hover { color: #16baaa; }

/* 页脚 */
.g-foot {
    text-align: center;
    padding: 26px 0;
    font-size: 12.5px;
    color: #aaa;
    line-height: 1.9;
}
.g-foot a { color: #888; }

.empty { text-align: center; color: #999; padding: 50px 0; }

@media (max-width: 720px) {
    .news-list { grid-template-columns: 1fr; }
    .news-hero { padding: 30px 22px 34px; border-radius: 10px; }
    .news-hero h1 { font-size: 24px; }
    .news-hero p { font-size: 13.5px; }
    .news-article { padding: 20px 18px; }
    .news-article h1 { font-size: 22px; }
    .news-relations { grid-template-columns: 1fr; }
    .g-nav { gap: 12px; }
    .g-nav a { font-size: 13px; }
}

/* 文字封面：不上传封面图时，用大字生成图片样式的封面 */
.news-card-cover.news-cover-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    height: auto;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}
.news-cover-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin: 0 0 18px;
    padding: 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}
.news-cover-ph.v2, .news-cover-banner.v2 { background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%); }
.news-cover-ph.v3, .news-cover-banner.v3 { background: linear-gradient(135deg, #f97316 0%, #ef4444 100%); }
.news-cover-ph.v4, .news-cover-banner.v4 { background: linear-gradient(135deg, #059669 0%, #84cc16 100%); }
.news-cover-ph.v5, .news-cover-banner.v5 { background: linear-gradient(135deg, #1e293b 0%, #64748b 100%); }

@media (max-width: 720px) {
    .news-card-cover.news-cover-ph { font-size: 24px; letter-spacing: 1px; }
    .news-cover-banner { min-height: 150px; font-size: 28px; letter-spacing: 2px; }
}
