@charset "utf-8";
/*
 * UT —— 现代浅色资讯模板
 * 版面：渐变吸顶导航 + Hero 首屏 + 数据统计 + 关于本站 + 特色横滑卡
 *       + 栏目卡片网格 + 编辑推荐 + 资讯列表 + 多列页脚
 * 依赖：Bootstrap 5 / Font Awesome 6
 */

/* ==================== 1. 设计变量 ==================== */
:root {
    --ut-bg:        #f8f9fc;
    --ut-bg-alt:    #ffffff;
    --ut-bg-dark:   #0f172a;
    --ut-surface:   #ffffff;
    --ut-surface-2: #f1f5f9;

    --ut-line:      rgba(15, 23, 42, .08);
    --ut-line-2:    rgba(15, 23, 42, .14);

    --ut-primary:   #2563eb;
    --ut-primary-2: #7c3aed;
    --ut-accent:    #f59e0b;
    --ut-accent-2:  #fbbf24;

    --ut-text:      #1e293b;
    --ut-text-2:    #334155;
    --ut-muted:     #64748b;
    --ut-dim:       #94a3b8;

    --ut-radius:    14px;
    --ut-radius-sm: 10px;
    --ut-shadow:    0 4px 20px rgba(15, 23, 42, .06);
    --ut-shadow-lg: 0 12px 40px rgba(15, 23, 42, .1);
}

/* ==================== 2. 基础 ==================== */
body {
    background: var(--ut-bg);
    color: var(--ut-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ut-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ut-primary); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: .2px; color: var(--ut-text); }
img { max-width: 100%; }
ul, ol { list-style: none; padding: 0; margin: 0; }

.ut-container { max-width: 1200px; }
.ut-muted { color: var(--ut-muted) !important; }
.ut-primary { color: var(--ut-primary) !important; }

.ut-clamp-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ut-clamp-2, .ut-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.ut-clamp-2 { -webkit-line-clamp: 2; }
.ut-clamp-3 { -webkit-line-clamp: 3; }

.min-w-0 { min-width: 0; }

/* 通用区块间距 */
.ut-section { padding: 64px 0; }
.ut-section-alt { background: var(--ut-bg-alt); }
.ut-section-dark { background: var(--ut-bg-dark); color: #e2e8f0; }
.ut-section-dark h2, .ut-section-dark h3 { color: #fff; }

.ut-section-title { text-align: center; margin-bottom: 44px; }
.ut-section-title .sub {
    display: inline-block; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--ut-primary); margin-bottom: 8px; font-weight: 700;
}
.ut-section-title h2 { font-size: 1.85rem; margin: 0 0 12px; }
.ut-section-title p { color: var(--ut-muted); font-size: 15px; max-width: 720px; margin: 0 auto; }
.ut-section-title .line {
    width: 56px; height: 3px; margin: 14px auto 0; border-radius: 3px;
    background: linear-gradient(to right, var(--ut-primary), var(--ut-primary-2));
}

/* 按钮 */
.ut-btn, .ut-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: .65rem 1.6rem; border-radius: 10px;
    font-weight: 600; font-size: 15px; transition: .25s; white-space: nowrap;
}
.ut-btn {
    background: linear-gradient(135deg, var(--ut-primary), var(--ut-primary-2));
    color: #fff; border: 0; box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
}
.ut-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, .35); }
.ut-btn-ghost { border: 1px solid var(--ut-line-2); color: var(--ut-text); background: #fff; }
.ut-btn-ghost:hover { border-color: var(--ut-primary); color: var(--ut-primary); transform: translateY(-2px); }

/* ==================== 3. 头部导航 ==================== */
.ut-header {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ut-line);
    z-index: 1030;
}
.ut-header .navbar { padding: .55rem 0; }
.ut-header .navbar-brand {
    font-size: 1.25rem; font-weight: 800; color: var(--ut-text);
    display: flex; align-items: center; gap: 8px;
}
.ut-header .navbar-brand:hover { color: var(--ut-text); }
.ut-header .navbar-brand i { color: var(--ut-primary); }
.ut-header .nav-link {
    color: var(--ut-text-2) !important; font-size: 15px; font-weight: 500;
    padding: .45rem .85rem !important; border-radius: 8px; position: relative;
}
.ut-header .nav-link:hover, .ut-header .nav-link.active { color: var(--ut-primary) !important; }
.ut-header .nav-link.active::after {
    content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 1px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(to right, var(--ut-primary), var(--ut-primary-2));
}
.ut-header .dropdown-menu {
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius-sm); box-shadow: var(--ut-shadow-lg); padding: 6px;
}
.ut-header .dropdown-item { color: var(--ut-text-2); border-radius: 7px; font-size: 14px; padding: .45rem .8rem; }
.ut-header .dropdown-item:hover { background: var(--ut-surface-2); color: var(--ut-primary); }
.ut-header .navbar-toggler {
    border: 1px solid var(--ut-line-2); padding: .28rem .55rem; box-shadow: none !important;
}

/* 搜索框 */
.ut-search .form-control {
    background: var(--ut-surface-2); border: 1px solid var(--ut-line);
    color: var(--ut-text); font-size: 14px; border-right: 0; box-shadow: none !important;
    border-radius: 8px 0 0 8px; padding-left: 14px; min-width: 150px;
}
.ut-search .form-control::placeholder { color: var(--ut-dim); }
.ut-search .form-control:focus { background: #fff; border-color: var(--ut-primary); }
.ut-search .btn {
    background: var(--ut-surface-2); border: 1px solid var(--ut-line); border-left: 0;
    color: var(--ut-muted); border-radius: 0 8px 8px 0; padding-right: 14px;
}
.ut-search .btn:hover { color: var(--ut-primary); }

/* ==================== 4. Hero 首屏 ==================== */
.ut-hero {
    position: relative; overflow: hidden; padding: 80px 0 90px;
    background:
        radial-gradient(800px 400px at 80% 20%, rgba(124, 58, 237, .12), transparent 60%),
        radial-gradient(600px 350px at 10% 80%, rgba(37, 99, 235, .1), transparent 60%),
        linear-gradient(180deg, #f0f4ff 0%, var(--ut-bg) 100%);
}
.ut-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 99, 235, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.ut-hero > .container { position: relative; z-index: 2; }
.ut-hero .sub {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
    color: var(--ut-primary); border: 1px solid rgba(37, 99, 235, .25);
    background: rgba(37, 99, 235, .06); padding: .28rem .85rem; border-radius: 999px;
}
.ut-hero h1 { font-size: 2.75rem; line-height: 1.24; margin: 18px 0 0; color: var(--ut-text); }
.ut-hero h1 em {
    font-style: normal;
    background: linear-gradient(to right, var(--ut-primary), var(--ut-primary-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ut-hero .lead { color: var(--ut-muted); font-size: 16.5px; max-width: 560px; }
.ut-hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.ut-hero-visual { position: relative; }
.ut-hero-visual img {
    width: 100%; border-radius: 18px; border: 1px solid var(--ut-line);
    box-shadow: var(--ut-shadow-lg);
}

/* 数据指标 */
.ut-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.ut-metrics .item {
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius); padding: 20px 16px; text-align: center;
    transition: .25s; box-shadow: var(--ut-shadow);
}
.ut-metrics .item:hover { transform: translateY(-4px); box-shadow: var(--ut-shadow-lg); }
.ut-metrics i { font-size: 1.4rem; color: var(--ut-primary); }
.ut-metrics .num { font-size: 1.5rem; font-weight: 800; margin: 6px 0 0; color: var(--ut-text); line-height: 1.2; }
.ut-metrics .label { font-size: 13px; color: var(--ut-muted); margin: 2px 0 0; }

/* ==================== 5. 关于本站（图标卡片） ==================== */
.ut-icards { margin-top: 34px; }
.ut-icard {
    position: relative; height: 100%;
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius); padding: 32px 24px 24px; transition: .28s;
    box-shadow: var(--ut-shadow);
}
.ut-icard:hover { transform: translateY(-6px); box-shadow: var(--ut-shadow-lg); border-color: rgba(37, 99, 235, .2); }
.ut-icard .icon {
    position: absolute; top: -24px; left: 22px;
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
    background: linear-gradient(135deg, var(--ut-primary), var(--ut-primary-2));
    box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.ut-icard h3 { font-size: 1.08rem; margin: 0 0 8px; }
.ut-icard p { color: var(--ut-muted); font-size: 14.5px; margin: 0; }

/* ==================== 6. 横向滑动卡片 ==================== */
.ut-hscroll-wrap { position: relative; }
.ut-hscroll {
    display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 16px;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: thin; scrollbar-color: var(--ut-line-2) transparent;
}
.ut-hscroll::-webkit-scrollbar { height: 6px; }
.ut-hscroll::-webkit-scrollbar-thumb { background: var(--ut-line-2); border-radius: 6px; }
.ut-hscroll::-webkit-scrollbar-track { background: transparent; }
.ut-hcard {
    flex: 0 0 268px; scroll-snap-align: start;
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius); padding: 28px 22px; text-align: center;
    transition: transform .3s, box-shadow .3s; box-shadow: var(--ut-shadow);
}
.ut-hcard:hover { transform: translateY(-6px); box-shadow: var(--ut-shadow-lg); }
.ut-hcard i { font-size: 1.9rem; color: var(--ut-primary); margin-bottom: 12px; display: block; }
.ut-hcard h3 { font-size: 1.02rem; margin: 0 0 8px; }
.ut-hcard p { font-size: 14px; color: var(--ut-muted); margin: 0; }

.ut-hscroll-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; z-index: 3;
    background: #fff; border: 1px solid var(--ut-line-2);
    color: var(--ut-text); display: none; align-items: center; justify-content: center;
    transition: .2s; cursor: pointer; box-shadow: var(--ut-shadow);
}
.ut-hscroll-nav:hover { background: var(--ut-primary); color: #fff; border-color: transparent; }
.ut-hscroll-nav.prev { left: -16px; }
.ut-hscroll-nav.next { right: -16px; }
@media (min-width: 992px) { .ut-hscroll-nav { display: flex; } }

/* ==================== 7. 栏目卡片网格 ==================== */
.ut-cate-card {
    height: 100%; overflow: hidden; display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius); transition: transform .25s, box-shadow .25s;
    box-shadow: var(--ut-shadow);
}
.ut-cate-card:hover { transform: translateY(-6px); box-shadow: var(--ut-shadow-lg); }
.ut-cate-card .thumb { position: relative; display: block; padding-top: 52%; overflow: hidden; background: var(--ut-surface-2); }
.ut-cate-card .thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.ut-cate-card:hover .thumb img { transform: scale(1.06); }
.ut-cate-card .badge-cate {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    background: linear-gradient(135deg, var(--ut-primary), var(--ut-primary-2));
    color: #fff; font-size: 12px; font-weight: 700;
    padding: .2rem .65rem; border-radius: 6px;
}
.ut-cate-card .body { padding: 18px 20px 20px; flex: 1 1 auto; display: flex; flex-direction: column; }
.ut-cate-card .body h3 { font-size: 1.05rem; margin: 0 0 10px; }
.ut-cate-card .body h3 a { color: var(--ut-text); }
.ut-cate-card .body h3 a:hover { color: var(--ut-primary); }
.ut-cate-card .body .desc { color: var(--ut-muted); font-size: 14px; margin: 0 0 12px; }
.ut-cate-card .sub-list { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ut-cate-card .sub-list a {
    font-size: 12.5px; color: var(--ut-muted); background: var(--ut-surface-2);
    border: 1px solid var(--ut-line); border-radius: 999px; padding: .1rem .6rem;
}
.ut-cate-card .sub-list a:hover { color: var(--ut-primary); border-color: rgba(37, 99, 235, .3); }
.ut-cate-card .mini { margin-top: auto; border-top: 1px solid var(--ut-line); padding-top: 12px; }
.ut-cate-card .mini li { font-size: 14px; padding: 4px 0 4px 12px; position: relative; }
.ut-cate-card .mini li::before {
    content: ""; position: absolute; left: 0; top: 13px;
    width: 4px; height: 4px; border-radius: 50%; background: var(--ut-dim);
}
.ut-cate-card .mini li a { color: var(--ut-muted); }
.ut-cate-card .mini li a:hover { color: var(--ut-primary); }

/* ==================== 8. 三列特色卡 ==================== */
.ut-fcard {
    height: 100%; text-align: center; padding: 32px 22px;
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: 16px; transition: .3s; box-shadow: var(--ut-shadow);
}
.ut-fcard:hover { transform: translateY(-5px); box-shadow: var(--ut-shadow-lg); }
.ut-fcard .icon {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--ut-primary), var(--ut-primary-2));
}
.ut-fcard h3 { font-size: 1.06rem; margin: 0 0 10px; }
.ut-fcard p { font-size: 14.5px; color: var(--ut-muted); margin: 0; }

/* ==================== 9. 竖向时间轴 ==================== */
.ut-timeline {
    display: flex; flex-direction: column; gap: 26px;
    padding-left: 22px; border-left: 3px solid var(--ut-primary);
}
.ut-timeline .item { position: relative; }
.ut-timeline .item::before {
    content: ""; position: absolute; left: -30px; top: 6px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--ut-primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.ut-timeline .date { font-size: 13.5px; color: var(--ut-primary); font-weight: 600; margin-bottom: 8px; }
.ut-timeline .card-box {
    background: #fff; border-left: 4px solid var(--ut-primary);
    border-radius: var(--ut-radius-sm); padding: 18px 20px; transition: .3s;
    box-shadow: var(--ut-shadow);
}
.ut-timeline .card-box:hover { box-shadow: var(--ut-shadow-lg); transform: translateY(-3px); }
.ut-timeline .card-box h3 { font-size: 1.02rem; margin: 0 0 8px; }
.ut-timeline .card-box ul li { font-size: 14px; color: var(--ut-muted); padding-left: 16px; position: relative; }
.ut-timeline .card-box ul li::before {
    content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; color: var(--ut-dim); font-size: 12px;
}

/* ==================== 10. 双列图文区 ==================== */
.ut-split-item {
    display: flex; gap: 16px; height: 100%;
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius); padding: 18px; transition: .25s;
    box-shadow: var(--ut-shadow);
}
.ut-split-item:hover { box-shadow: var(--ut-shadow-lg); }
.ut-split-item .thumb {
    flex: 0 0 132px; width: 132px; height: 90px; border-radius: var(--ut-radius-sm);
    overflow: hidden; background: var(--ut-surface-2);
}
.ut-split-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ut-split-item .content { flex: 1 1 auto; min-width: 0; }
.ut-split-item h3 { font-size: 1rem; margin: 0 0 6px; }
.ut-split-item h3 a { color: var(--ut-text); }
.ut-split-item h3 a:hover { color: var(--ut-primary); }
.ut-split-item p { font-size: 13.5px; color: var(--ut-muted); margin: 0 0 6px; }

/* ==================== 11. 资讯列表 ==================== */
.ut-news-timeline { position: relative; padding-left: 24px; border-left: 3px solid var(--ut-line); }
.ut-news-timeline > li { position: relative; padding: 0 0 26px; }
.ut-news-timeline > li:last-child { padding-bottom: 0; }
.ut-news-timeline > li::before {
    content: ""; position: absolute; left: -31px; top: 10px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #fff; border: 3px solid var(--ut-primary);
}
.ut-news-timeline .inner { display: flex; align-items: flex-start; gap: 14px; }
.ut-news-timeline .day { flex: 0 0 92px; font-size: 13px; color: var(--ut-primary); font-weight: 600; padding-top: 3px; }
.ut-news-timeline h3 { font-size: 1.02rem; margin: 0 0 6px; }
.ut-news-timeline h3 a { color: var(--ut-text); }
.ut-news-timeline h3 a:hover { color: var(--ut-primary); }
.ut-news-timeline p { font-size: 14px; color: var(--ut-muted); margin: 0; }
@media (max-width: 575.98px) {
    .ut-news-timeline .inner { flex-direction: column; gap: 4px; }
    .ut-news-timeline .day { flex: none; padding-top: 0; }
}

/* ==================== 12. 内容页通用盒子 ==================== */
.ut-page { padding: 30px 0 60px; }
.ut-crumb { padding: 6px 0 18px; font-size: 13.5px; }
.ut-crumb .breadcrumb { margin: 0; padding: 0; background: transparent; flex-wrap: wrap; }
.ut-crumb .breadcrumb-item, .ut-crumb .breadcrumb-item a { color: var(--ut-muted); }
.ut-crumb .breadcrumb-item a:hover { color: var(--ut-primary); }
.ut-crumb .breadcrumb-item + .breadcrumb-item::before { color: var(--ut-dim); }

.ut-box {
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius); margin-bottom: 24px;
    box-shadow: var(--ut-shadow); overflow: hidden;
}
.ut-box-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--ut-line);
}
.ut-box-head h1, .ut-box-head h2, .ut-box-head h3 {
    font-size: 1.06rem; margin: 0; padding-left: 11px;
    border-left: 4px solid var(--ut-primary); line-height: 1.4;
}
.ut-box-head .more { font-size: 13px; color: var(--ut-muted); white-space: nowrap; }
.ut-box-head .more:hover { color: var(--ut-primary); }
.ut-box-body { padding: 20px; }

/* 列表项（横向） */
.ut-list-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--ut-line); }
.ut-list-item:first-child { padding-top: 0; }
.ut-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ut-list-thumb {
    flex: 0 0 208px; width: 208px; height: 130px; border-radius: var(--ut-radius-sm);
    overflow: hidden; background: var(--ut-surface-2); display: block;
}
.ut-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ut-list-item:hover .ut-list-thumb img { transform: scale(1.06); }
.ut-list-content { flex: 1 1 auto; min-width: 0; }
.ut-list-content h2, .ut-list-content h3 { font-size: 1.12rem; margin: 0 0 8px; }
.ut-list-content h2 a, .ut-list-content h3 a { color: var(--ut-text); }
.ut-list-content h2 a:hover, .ut-list-content h3 a:hover { color: var(--ut-primary); }
.ut-list-content .desc { font-size: 14px; color: var(--ut-muted); margin: 0 0 10px; }
@media (max-width: 575.98px) {
    .ut-list-item { gap: 12px; }
    .ut-list-thumb { flex: 0 0 116px; width: 116px; height: 78px; }
    .ut-list-content h2, .ut-list-content h3 { font-size: 1rem; }
    .ut-list-content .desc { display: none; }
}

/* 元信息 */
.ut-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    font-size: 12.5px; color: var(--ut-dim);
}
.ut-meta i { margin-right: 5px; }
.ut-meta a { color: inherit; }
.ut-meta a:hover { color: var(--ut-primary); }

/* 卡片 */
.ut-card {
    height: 100%; display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius); transition: .25s; box-shadow: var(--ut-shadow);
}
.ut-card:hover { transform: translateY(-5px); box-shadow: var(--ut-shadow-lg); }
.ut-card-thumb { position: relative; display: block; padding-top: 62%; overflow: hidden; background: var(--ut-surface-2); }
.ut-card-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s;
}
.ut-card:hover .ut-card-thumb img { transform: scale(1.06); }
.ut-card-body { padding: 14px 16px 16px; flex: 1 1 auto; display: flex; flex-direction: column; }
.ut-card-body h3, .ut-card-body h4 { font-size: .98rem; margin: 0 0 8px; line-height: 1.55; }
.ut-card-body h3 a, .ut-card-body h4 a { color: var(--ut-text); }
.ut-card-body h3 a:hover, .ut-card-body h4 a:hover { color: var(--ut-primary); }
.ut-card-body .desc { font-size: 13.5px; color: var(--ut-muted); margin: 0 0 10px; }
.ut-card-body .ut-meta { margin-top: auto; }

/* ==================== 13. 侧边栏 ==================== */
.ut-rank { counter-reset: utRank; }
.ut-rank li {
    counter-increment: utRank; position: relative; padding: 9px 0 9px 32px;
    border-bottom: 1px dashed var(--ut-line); font-size: 14.5px; line-height: 1.6;
}
.ut-rank li:last-child { border-bottom: 0; }
.ut-rank li::before {
    content: counter(utRank); position: absolute; left: 0; top: 11px;
    width: 21px; height: 21px; line-height: 21px; text-align: center; border-radius: 6px;
    font-size: 12px; font-weight: 700; color: var(--ut-muted); background: var(--ut-surface-2);
}
.ut-rank li:nth-child(1)::before,
.ut-rank li:nth-child(2)::before,
.ut-rank li:nth-child(3)::before { background: var(--ut-primary); color: #fff; }
.ut-rank li a { color: var(--ut-muted); }
.ut-rank li a:hover { color: var(--ut-primary); }

.ut-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ut-tags li a {
    display: inline-block; font-size: 13px; padding: .22rem .72rem; border-radius: 999px;
    color: var(--ut-muted); background: var(--ut-surface-2); border: 1px solid var(--ut-line);
}
.ut-tags li a:hover { color: #fff; background: var(--ut-primary); border-color: transparent; }

/* ==================== 14. 文章详情 ==================== */
.ut-article-title { font-size: 1.72rem; line-height: 1.45; margin: 0 0 14px; }
.ut-article-meta {
    display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ut-dim);
    padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--ut-line);
}
.ut-article-meta a { color: inherit; }
.ut-article-meta a:hover { color: var(--ut-primary); }

.ut-abstract {
    position: relative; margin: 0 0 22px; padding: 14px 18px;
    background: rgba(37, 99, 235, .04); border: 1px solid rgba(37, 99, 235, .15);
    border-radius: var(--ut-radius-sm); font-size: 14.5px; color: var(--ut-muted);
}
.ut-abstract .label {
    display: inline-block; margin-right: 8px; padding: 0 .5rem; border-radius: 5px;
    background: var(--ut-primary); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px;
}

.ut-statement {
    margin: 22px 0 0; padding: 12px 16px; border-left: 3px solid var(--ut-line-2);
    background: var(--ut-surface-2); border-radius: 0 var(--ut-radius-sm) var(--ut-radius-sm) 0;
    font-size: 13px; color: var(--ut-dim); line-height: 1.9;
}

.ut-content { font-size: 16px; line-height: 1.95; color: var(--ut-text-2); word-wrap: break-word; }
.ut-content p { margin: 0 0 1.1em; }
.ut-content h2, .ut-content h3, .ut-content h4 { color: var(--ut-text); margin: 1.6em 0 .7em; line-height: 1.5; }
.ut-content h2 { font-size: 1.3rem; padding-left: 11px; border-left: 4px solid var(--ut-primary); }
.ut-content h3 { font-size: 1.14rem; }
.ut-content img { max-width: 100%; height: auto; border-radius: var(--ut-radius-sm); margin: 10px 0; }
.ut-content a { color: var(--ut-primary); text-decoration: underline; text-underline-offset: 3px; }
.ut-content a:hover { color: var(--ut-primary-2); }
.ut-content blockquote {
    margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--ut-primary);
    background: var(--ut-surface-2); border-radius: 0 var(--ut-radius-sm) var(--ut-radius-sm) 0;
    color: var(--ut-muted); font-size: 15px;
}
.ut-content ul, .ut-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.ut-content ul li { list-style: disc; }
.ut-content ol li { list-style: decimal; }
.ut-content ul li, .ut-content ol li { margin-bottom: .4em; }
.ut-content table { width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: 14.5px; }
.ut-content table th, .ut-content table td { border: 1px solid var(--ut-line); padding: 9px 12px; }
.ut-content table th { background: var(--ut-surface-2); color: var(--ut-text); }
.ut-content pre {
    background: #0f172a; border: 1px solid var(--ut-line); border-radius: var(--ut-radius-sm);
    padding: 14px 16px; overflow-x: auto; font-size: 13.5px; color: #cbd5e1;
}
.ut-content code {
    background: var(--ut-surface-2); border-radius: 5px;
    padding: .1em .4em; font-size: .92em; color: var(--ut-primary-2);
}
.ut-content pre code { background: none; padding: 0; color: inherit; }

/* 上下篇 */
.ut-nextprev { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.ut-nextprev > div {
    background: var(--ut-surface-2); border: 1px solid var(--ut-line);
    border-radius: var(--ut-radius-sm); padding: 12px 16px; min-width: 0;
}
.ut-nextprev p { font-size: 12px; color: var(--ut-dim); margin: 0 0 4px; }
.ut-nextprev a { color: var(--ut-text-2); font-size: 14px; }
.ut-nextprev a:hover { color: var(--ut-primary); }
@media (max-width: 575.98px) { .ut-nextprev { grid-template-columns: 1fr; } }

/* 图集 */
.ut-gallery img { width: 100%; border-radius: var(--ut-radius-sm); margin-bottom: 14px; display: block; }

/* 标签详情页头部 */
.ut-tag-hero {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--ut-line);
}
.ut-tag-hero .ico {
    flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
    background: linear-gradient(135deg, var(--ut-primary), var(--ut-primary-2));
    box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.ut-tag-hero h1 { font-size: 1.34rem; margin: 0 0 4px; }
.ut-tag-hero p { font-size: 14px; color: var(--ut-muted); margin: 0; }

/* 搜索页 */
.ut-search-form { margin-bottom: 24px; }
.ut-search-form .form-control {
    background: var(--ut-surface-2); border: 1px solid var(--ut-line);
    color: var(--ut-text); box-shadow: none !important; padding: .6rem 1rem;
}
.ut-search-form .form-control::placeholder { color: var(--ut-dim); }
.ut-search-form .form-control:focus { background: #fff; border-color: var(--ut-primary); }
.ut-search-form .btn {
    background: linear-gradient(135deg, var(--ut-primary), var(--ut-primary-2));
    border: 0; color: #fff; font-weight: 600; padding-inline: 1.3rem;
}
.ut-search-title { font-size: 1.06rem; margin: 0 0 18px; }

/* ==================== 15. 分页 ==================== */
.page-control { display: flex; justify-content: center; margin-top: 26px; }
.page-control .pagination { flex-wrap: wrap; gap: 6px; margin: 0; }
.page-control .page-item { list-style: none; }
.page-control .page-link,
.page-control .page-item.active .page-link {
    min-width: 38px; text-align: center; border-radius: var(--ut-radius-sm);
    background: #fff; border: 1px solid var(--ut-line);
    color: var(--ut-text-2); font-size: 14px; padding: .42rem .7rem; box-shadow: none;
}
.page-control .page-link:hover { background: var(--ut-surface-2); color: var(--ut-primary); }
.page-control .page-item.active .page-link {
    background: var(--ut-primary); border-color: var(--ut-primary); color: #fff; font-weight: 700;
}

/* ==================== 16. 空状态 ==================== */
.ut-empty { text-align: center; padding: 46px 16px; color: var(--ut-dim); }
.ut-empty i { font-size: 2.6rem; margin-bottom: 14px; display: block; opacity: .5; }

/* ==================== 17. 页脚 ==================== */
.ut-footer {
    position: relative; background: var(--ut-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, .08); padding: 52px 0 22px; margin-top: 10px;
}
.ut-footer h5 {
    font-size: 1rem; color: #fff; margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1); display: inline-block; min-width: 92px;
}
.ut-footer, .ut-footer p, .ut-footer li { font-size: 14px; color: rgba(255, 255, 255, .6); }
.ut-footer a { color: rgba(255, 255, 255, .6); }
.ut-footer a:hover { color: var(--ut-accent); }
.ut-footer li { padding: 3px 0; }
.ut-footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ut-copy {
    margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px; color: rgba(255, 255, 255, .4); text-align: center; line-height: 2;
}
.ut-copy a { color: rgba(255, 255, 255, .4); }

/* 返回顶部 */
.ut-totop {
    position: fixed; right: 18px; bottom: 24px; z-index: 1040;
    width: 42px; height: 42px; border-radius: 12px;
    display: none; align-items: center; justify-content: center;
    background: var(--ut-primary); color: #fff; box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}
.ut-totop:hover { color: #fff; transform: translateY(-3px); }
.ut-totop.show { display: flex; }

/* ==================== 18. 响应式 ==================== */
@media (max-width: 1199.98px) {
    .ut-hero h1 { font-size: 2.4rem; }
}
@media (max-width: 991.98px) {
    .ut-section { padding: 46px 0; }
    .ut-hero { padding: 56px 0 62px; }
    .ut-hero h1 { font-size: 2.05rem; }
    .ut-hero .lead { max-width: none; }
    .ut-metrics { grid-template-columns: repeat(2, 1fr); }
    .ut-header .navbar-collapse { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ut-line); }
    .ut-header .nav-link.active::after { display: none; }
    .ut-section-title h2 { font-size: 1.55rem; }
}
@media (max-width: 575.98px) {
    body { font-size: 14.5px; }
    .ut-hero h1 { font-size: 1.72rem; }
    .ut-hero-buttons .ut-btn, .ut-hero-buttons .ut-btn-ghost { flex: 1 1 auto; justify-content: center; }
    .ut-box-body { padding: 16px; }
    .ut-article-title { font-size: 1.34rem; }
    .ut-content { font-size: 15.5px; }
    .ut-timeline { padding-left: 16px; }
    .ut-timeline .item::before { left: -24px; }
}
