/* ============ 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 {
    padding-top: 10px;
    padding-bottom: 8px;
}
.g-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.g-logo {
    font-size: 19px;
    font-weight: 800;
    color: #16baaa;
    letter-spacing: 1px;
}
.g-nav { display: flex; gap: 20px; margin-top: 4px; }
.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; }
.g-foot-icp { margin-top: 2px; font-size: 12px; }
.g-foot-icp a { color: #9a9a9a; }

.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; }
}

/* ============ 顶栏搜索 ============ */
.g-search {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 36px;
    max-width: 220px;
    padding: 0 4px 0 12px;
    background: #f2f4f6;
    border: 1px solid #e6e9ec;
    border-radius: 20px;
}
.g-search input {
    flex: 1;
    width: 130px;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #333;
}
.g-search button {
    display: flex;
    align-items: center;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #16baaa;
    cursor: pointer;
}

/* ============ 首页 ============ */
.home-hero {
    position: relative;
    background: linear-gradient(120deg, #0d6e63 0%, #16baaa 100%);
    color: #fff;
    padding: 46px 40px;
    margin: 18px 0 22px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(22, 186, 170, .2);
}
.home-hero::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, .26), transparent 68%);
    pointer-events: none;
}
.home-hero h1 {
    position: relative;
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 3px;
}
.home-hero p {
    position: relative;
    margin: 0 0 24px;
    font-size: 15px;
    opacity: .92;
}
.home-hero-search {
    position: relative;
    display: flex;
    max-width: 520px;
    padding: 5px 5px 5px 18px;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.home-hero-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}
.home-hero-search button {
    border: 0;
    background: #16baaa;
    color: #fff;
    padding: 9px 24px;
    border-radius: 22px;
    font-size: 14px;
    cursor: pointer;
}
.home-hero-search button:hover { background: #0da295; }

.home-feature {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    margin-bottom: 26px;
}
.home-feature-main {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: transform .18s, box-shadow .18s;
}
.home-feature-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .1);
}
.home-feature-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eef0f3;
}
.home-feature-cover.news-cover-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    word-break: break-word;
}
.home-feature-body { padding: 18px 22px 20px; }
.home-feature-body h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.45;
    color: #1f2d3d;
}
.home-feature-main:hover h2 { color: #16baaa; }
.home-feature-body 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;
}
.home-feature-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #aaa;
}
.home-side {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.home-side h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #1f2d3d;
    border-left: 3px solid #16baaa;
    padding-left: 9px;
}
.home-side ul { list-style: none; margin: 0; padding: 0; }
.home-side li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13.5px;
}
.home-side li:last-child { border-bottom: 0; }
.home-side a {
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-side a:hover { color: #16baaa; }
.home-side span { color: #aaa; font-size: 12px; white-space: nowrap; }

.home-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 14px;
}
.home-sec-head h2 {
    margin: 0;
    font-size: 20px;
    color: #1f2d3d;
    border-left: 4px solid #16baaa;
    padding-left: 10px;
}
.home-sec-head span { font-size: 13px; color: #999; }

/* ============ 搜索页 ============ */
.search-panel {
    background: #fff;
    border-radius: 12px;
    padding: 26px 28px;
    margin: 20px 0 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.search-panel h1 { margin: 0 0 16px; font-size: 24px; color: #1f2d3d; }
.search-form {
    display: flex;
    max-width: 640px;
    border: 2px solid #16baaa;
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
}
.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 11px 18px;
    font-size: 15px;
    color: #333;
}
.search-form button {
    border: 0;
    background: #16baaa;
    color: #fff;
    padding: 0 26px;
    font-size: 15px;
    cursor: pointer;
}
.search-form button:hover { background: #0da295; }
.search-info { margin-top: 12px; font-size: 13px; color: #999; }

/* ============ 移动端 ============ */
@media (max-width: 720px) {
    .g-top .g-wrap {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .g-top-bar { gap: 10px; }
    .g-search { flex: 1; max-width: none; margin-left: 0; }
    .g-search input { width: 100%; }
    .home-hero { padding: 28px 20px; margin-top: 12px; }
    .home-hero h1 { font-size: 26px; }
    .home-hero-search { max-width: none; }
    .home-feature { grid-template-columns: 1fr; }
    .search-panel { padding: 20px 16px; }
}
