/* ==========================================================
   公共样式（全站单文件，含首页/列表/内容/单页/搜索）
   支持：Chrome 49+ / Firefox 31+ / Safari 9.1+ / Edge 15+ / iOS Safari 9.3+
   ========================================================== */
:root {
    --primary: #b71c1c;
    --primary-hover: #951616;
    --text-title: #111;
    --text-main: #222;
    --text-sub: #666;
    --text-light: #999;
    --bg-body: #f4f5f7;
    --bg-card: #fff;
    --border-color: #e4e7ed;
    --border-light: #f0f0f0;
    --container: 1200px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif CN", STSong, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 15px; line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
@keyframes imgin { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.img-fade { animation: imgin .5s ease both; }
@media (prefers-reduced-motion: reduce) { .img-fade { animation: none; } }
button, input { font-family: inherit; outline: none; border: none; background: none; -webkit-appearance: none; appearance: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- 顶栏 --- */
.topbar { background: #fafafa; border-bottom: 1px solid var(--border-color); font-size: 12px; color: var(--text-sub); height: 32px; display: flex; align-items: center; }
.topbar .container { display: flex; justify-content: space-between; }
.topbar a:hover { color: var(--primary); }
.topbar-right a { margin-left: 15px; }

/* --- 头部 --- */
.header { background: var(--bg-card); padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.header .container > * + * { margin-left: 20px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo > * + * { margin-left: 12px; }
.logo-mark { width: 44px; height: 44px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 28px; font-weight: 700; border-radius: 4px; }
.logo-text .zh { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--text-title); letter-spacing: 1px; line-height: 1.2; }
.logo-text .en { font-size: 11px; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }
.search-box { display: flex; flex: 1; min-width: 0; max-width: 320px; }
.search-box input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--primary); border-right: none; border-radius: 2px 0 0 2px; font-size: 13px; }
.search-box button { height: 36px; padding: 0 16px; cursor: pointer; background: var(--primary); color: #fff; font-size: 14px; border-radius: 0 2px 2px 0; flex-shrink: 0; white-space: nowrap; transition: background .2s; }
.search-box button:hover { background: var(--primary-hover); }

/* --- 主导航 --- */
.mainnav { background: var(--primary); position: -webkit-sticky; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.mainnav .container { display: flex; align-items: stretch; position: relative; }
.nav-list { display: flex; flex: 1; height: 44px; }
.nav-list li { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-list li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; color: rgba(255,255,255,.9); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.nav-list li a:hover, .nav-list li a.current { background: rgba(0,0,0,.15); color: #fff; font-weight: 600; }
.nav-more-btn { display: none; flex-shrink: 0; position: relative; }
.nav-more-btn.has-items { display: block; }
.nav-more-btn > span { display: flex; align-items: center; justify-content: center; width: 50px; height: 44px; cursor: pointer; color: #fff; transition: background .2s; }
.nav-more-btn > span:hover, .nav-more-btn.is-open > span { background: rgba(0,0,0,.15); }
.nav-more-btn > span::before { content: ''; display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; box-shadow: 0 5px 0 #fff, 0 -5px 0 #fff; transition: all .3s; }
.nav-more-btn.is-open > span::before { box-shadow: none; transform: rotate(45deg); }
.nav-more-btn.is-open > span::after { content: ''; position: absolute; width: 18px; height: 2px; background: #fff; border-radius: 1px; transform: rotate(-45deg); }
.nav-more-dropdown { display: none; position: fixed; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border-color); box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 1000; padding: 20px 16px 32px; padding: 20px 16px calc(env(safe-area-inset-bottom, 16px) + 16px); opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease; max-height: 70vh; overflow-y: auto; }
.nav-more-dropdown.show { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; opacity: 1; transform: translateY(0); }
.nav-more-dropdown a { display: flex; align-items: center; justify-content: center; padding: 12px 8px; border-radius: 4px; background: var(--bg-body); color: var(--text-main); font-size: 14px; font-weight: 500; text-align: center; min-height: 44px; transition: all .2s; }
.nav-more-dropdown a:hover, .nav-more-dropdown a:active { background: #fef2f3; color: var(--primary); }
.nav-overlay { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.4); z-index: 998; opacity: 0; -webkit-tap-highlight-color: transparent; transition: opacity .3s; }
.nav-overlay.show { display: block; opacity: 1; }

/* --- 面包屑 & 布局框架 --- */
.breadcrumb { display: flex; align-items: center; padding: 12px 16px; margin-top: 16px; margin-bottom: 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 2px; font-size: 13px; color: var(--text-light); min-width: 0; overflow: hidden; }
.breadcrumb::before { content: ""; width: 3px; height: 14px; background: var(--primary); border-radius: 1px; margin-right: 12px; flex-shrink: 0; }
.breadcrumb a { color: var(--text-sub); padding: 2px 0; white-space: nowrap; transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #d0d0d0; font-size: 12px; -webkit-user-select: none; user-select: none; flex-shrink: 0; }
.page-layout { display: flex; align-items: flex-start; min-width: 0; width: 100%; }
.page-main { flex: 1; min-width: 0; margin-right: 20px; width: auto; }
.page-side { flex: 0 0 340px; min-width: 0; max-width: 100%; width: 340px; }

/* --- 通用 Block --- */
.block { background: var(--bg-card); border: 1px solid var(--border-color); margin-bottom: 16px; overflow: hidden; }
.block-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 48px; border-bottom: 1px solid var(--border-light); }
.block-head .title { display: flex; align-items: center; font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--text-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-head .title > * + * { margin-left: 8px; }
.block-head .title::before { content: ""; width: 4px; height: 18px; margin-right: 8px; background: var(--primary); border-radius: 1px; flex-shrink: 0; }
.block-head .more { font-size: 12px; color: var(--text-light); display: flex; align-items: center; }
.block-head .more:hover { color: var(--primary); }
.empty-tip { padding: 40px; text-align: center; color: #999; }

/* --- 侧边栏排行 --- */
.page-side .block { position: -webkit-sticky; position: sticky; top: 60px; }
.rank-list li { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px dashed var(--border-light); min-width: 0; overflow: hidden; transition: background .2s; }
.rank-list li > * + * { margin-left: 10px; }
.rank-list li:last-child { border-bottom: none; }
.rank-list li:hover { background: #fafbfc; }
.rank-list .num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 2px; background: #eee; color: #999; font-size: 12px; font-weight: 700; font-family: Arial, sans-serif; display: flex; align-items: center; justify-content: center; }
.rank-list li:nth-child(1) .num { background: var(--primary); color: #fff; }
.rank-list li:nth-child(2) .num { background: #d4453a; color: #fff; }
.rank-list li:nth-child(3) .num { background: #e8734a; color: #fff; }
.rank-list a { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list a:hover { color: var(--primary); }

/* --- 分页 --- */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 24px 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-top: none; border-radius: 0 0 2px 2px; }
.pagination > * + * { margin-left: 6px; }
.pagination .pageinfo { font-size: 13px; color: var(--text-light); margin-right: 12px; }
.pagination .pageinfo strong { color: var(--text-main); font-weight: 600; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; font-size: 13px; color: var(--text-main); border: 1px solid var(--border-color); border-radius: 2px; transition: all .2s; }
.pagination a:hover:not(.curpage):not(.nopage) { color: var(--primary); border-color: var(--primary); }
.pagination a.curpage, .pagination span.curpage { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.pagination a.nopage, .pagination span.nopage { color: #ccc; border-color: var(--border-light); cursor: not-allowed; pointer-events: none; }

/* --- 页脚 --- */
.footer { background: #2b2b2b; color: #aaa; margin-top: 24px; font-size: 12px; }
.footer-nav { border-bottom: 1px solid #3d3d3d; padding: 20px 0; text-align: center; }
.footer-nav a { color: #ddd; margin: 0 12px; }
.footer-nav a:hover { color: #fff; }
.footer-info { text-align: center; padding: 20px 0; line-height: 2; }
.footer-info .beian, .footer-info .beian a { color: #777; }
.footer-info .beian a:hover { color: #aaa; }

/* --- 返回顶部 --- */
.backtop { position: fixed; right: 20px; bottom: 40px; width: 40px; height: 40px; background: #fff; color: var(--text-sub); border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: .3s; z-index: 998; }
.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.backtop:hover { color: var(--primary); border-color: var(--primary); }

/* --- 分享 --- */
.share-box { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border-light); }
.share-label { font-size: 13px; color: var(--text-light); flex-shrink: 0; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; height: 30px; padding: 0 14px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 15px; font-size: 13px; color: var(--text-sub); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.share-btn:hover { color: var(--primary); border-color: var(--primary); background: #fef2f3; }
.share-toast { position: fixed; left: 50%; bottom: 15%; transform: translateX(-50%); padding: 8px 18px; background: rgba(0,0,0,.78); color: #fff; font-size: 13px; border-radius: 4px; z-index: 1100; opacity: 0; transition: opacity .25s; pointer-events: none; }
.share-toast.show { opacity: 1; }

/* ==========================================================
   公共响应式
   ========================================================== */
@media (max-width: 992px) {
    .page-layout { flex-wrap: wrap; }
    .page-side { flex: 1 1 100%; }
    .page-side .block { position: static; }
    .page-main { margin-right: 0; margin-bottom: 20px; flex: 1 1 100%; }
}
@media (max-width: 768px) {
    :root { --container: 100%; }
    body { font-size: 14px; }
    .header { padding: 10px 0; }
    .header .container { gap: 12px; }
    .logo-mark { width: 36px; height: 36px; font-size: 22px; }
    .logo-text .zh { font-size: 20px; }
    .logo-text .en { display: none; }
    .search-box { flex: none; width: 180px; max-width: none; }
    .search-box input { height: 32px; padding: 0 10px; font-size: 12px; }
    .search-box button { height: 32px; padding: 0 12px; font-size: 12px; }
    .mainnav .container { padding: 0; }
    .nav-list { overflow: hidden; height: 44px; flex: 1; min-width: 0; width: auto; }
    .nav-list li { flex: 0 0 auto; min-width: auto; }
    .nav-list li.visible-fill { flex: 1; min-width: 0; text-align: center; }
    .nav-list li a { padding: 0 14px; line-height: 44px; font-size: 15px; }
    .nav-list li.visible-fill a { padding: 0 6px; }
    .nav-list li.in-more { display: none; }
    .nav-more-dropdown.show { grid-template-columns: repeat(3, 1fr); }
    .breadcrumb { margin-top: 12px; margin-bottom: 12px; padding: 10px 12px; font-size: 12px; }
    .breadcrumb::before { height: 12px; margin-right: 8px; }
    .breadcrumb .sep { margin: 0 5px; }
    .page-side .block { margin-top: 16px; }
    .block-head { height: 42px; padding: 0 12px; }
    .block-head .title { font-size: 16px; }
    .block-head .title::before { height: 14px; width: 3px; margin-right: 6px; }
    .rank-list li { padding: 10px 12px; gap: 8px; }
    .rank-list .num { width: 20px; height: 20px; font-size: 11px; }
    .rank-list a { font-size: 13px; }
    .pagination { padding: 16px 12px; }
    .pagination > * + * { margin-left: 4px; }
    .pagination .pageinfo { width: 100%; text-align: center; margin: 0 0 8px; }
    .pagination a, .pagination span { min-width: 30px; height: 30px; font-size: 12px; }
    .backtop { right: 10px; bottom: 20px; width: 36px; height: 36px; }
}
@media (max-width: 480px) {
    .nav-more-dropdown.show { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .nav-more-dropdown a { padding: 10px 4px; font-size: 13px; min-height: 40px; }
    .search-box { width: 140px; }
    .search-box button { padding: 0 10px; font-size: 11px; }
    .search-box input { padding: 0 8px; font-size: 11px; }
    .block-head { height: 38px; padding: 0 10px; }
    .block-head .title { font-size: 15px; }
    .rank-list li { padding: 9px 10px; gap: 6px; }
    .rank-list .num { width: 18px; height: 18px; font-size: 10px; }
    .rank-list a { font-size: 12px; }
}
/* ==========================================================
   首页
   ========================================================== */
.hero-row, .channel-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.hero-row .block { margin-bottom: 0; }
.carousel { position: relative; height: 400px; overflow: hidden; background: #eee; }
.carousel-item { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transition: opacity .6s ease; }
.carousel-item.active { opacity: 1; z-index: 1; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 20px; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 100%); color: #fff; font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.carousel-dots { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; gap: 6px; }
.carousel-dots .dot { width: 24px; height: 3px; background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s; }
.carousel-dots .dot.active { background: #fff; width: 36px; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.3); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; cursor: pointer; transition: opacity .3s; }
.carousel:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: rgba(0,0,0,.6); }
.carousel-btn svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill: none; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: var(--primary); z-index: 6; transition: width linear; }
.headline-box { display: flex; flex-direction: column; height: 400px; }
.headline-list { flex: 1; display: flex; flex-direction: column; }
.headline-list li { display: flex; align-items: center; flex: 1; padding: 0 16px; border-bottom: 1px dashed var(--border-light); }
.headline-list li .hl-rank { width: 20px; height: 20px; border-radius: 2px; background: #eee; color: #999; font-size: 12px; font-weight: 700; font-family: Arial; display: flex; align-items: center; justify-content: center; margin-right: 10px; flex-shrink: 0; }
.headline-list li.top3 .hl-rank { background: var(--primary); color: #fff; }
.headline-list li > a { flex: 1; font-size: 14px; color: var(--text-main); padding: 10px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.headline-list li > a:hover { color: var(--primary); }
.channel-block { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.channel-body { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px; min-width: 0; }
.channel-thumb { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.channel-thumb .thumb { display: block; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #f0f0f0; }
.channel-thumb .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.channel-thumb .thumb:hover img { transform: scale(1.05); }
.channel-thumb h3 { font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--text-title); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; word-break: break-all; }
.channel-thumb h3 a { color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.channel-thumb h3 a:hover { color: var(--primary); }
.channel-body .news-list { min-width: 0; margin-top: -10px; }
.channel-body .news-list li { display: flex; align-items: center; height: 40px; border-bottom: 1px dashed var(--border-light); min-width: 0; }
.channel-body .news-list li:last-child { border-bottom: none; }
.channel-body .news-list li a { flex: 1; min-width: 0; font-size: 14px; color: var(--text-main); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: keep-all; }
.channel-body .news-list li a:hover { color: var(--primary); }
.channel-body .news-list li .time { flex-shrink: 0; font-size: 12px; color: var(--text-sub); margin-left: 12px; }
.channel-block.side-style .channel-body { display: block; padding: 16px 0; }
.channel-block.side-style .news-list li { display: flex; align-items: center; height: 40px; padding: 0 16px; border-bottom: 1px dashed var(--border-light); min-width: 0; }
.channel-block.side-style .news-list li:last-child { border-bottom: none; }
.channel-block.side-style .news-list li a { flex: 1; display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: keep-all; }
.channel-block.side-style .news-list li .time { flex-shrink: 0; font-size: 12px; color: var(--text-sub); margin-left: 12px; }
.friend-links .fl-body { padding: 16px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.fl-body a { font-size: 12px; color: var(--text-sub); }
.fl-body a:hover { color: var(--primary); }

@media (max-width: 992px) {
    .hero-row, .channel-grid { grid-template-columns: 1fr; }
    .carousel { height: 320px; }
    .headline-box { height: auto; }
    .channel-body { grid-template-columns: 180px 1fr; }
}
@media (max-width: 768px) {
    .carousel { height: auto; aspect-ratio: 16/10; }
    .carousel-caption { font-size: 16px; padding: 40px 16px 12px; }
    .channel-body { display: flex !important; flex-direction: column; gap: 12px; }
    .channel-thumb { width: 100%; }
    .channel-thumb .thumb { aspect-ratio: 16/10; }
}
/* ==========================================================
   列表页
   ========================================================== */
.article-list { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 2px; }
.article-item { display: flex; padding: 20px; border-bottom: 1px solid var(--border-light); min-width: 0; overflow: hidden; transition: background .2s; }
.article-item > * + * { margin-left: 20px; }
.article-item:last-child { border-bottom: none; }
.article-item:hover { background: #fafbfc; }
.article-item .thumb { flex-shrink: 0; width: 220px; aspect-ratio: 16 / 10; overflow: hidden; background: #f0f0f0; border-radius: 2px; }
.article-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.article-item:hover .thumb img { transform: scale(1.05); }
.article-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.article-item .info > * + * { margin-top: 8px; }
.article-item h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--text-title); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.article-item h3 a:hover { color: var(--primary); }
.article-item p { font-size: 14px; line-height: 1.7; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.article-item .meta { display: flex; align-items: center; font-size: 12px; color: var(--text-light); margin-top: auto; }
.article-item .meta > * + * { margin-left: 12px; }
.article-item .meta .cat { background: #fef2f3; color: var(--primary); padding: 1px 8px; border-radius: 2px; font-weight: 500; flex-shrink: 0; white-space: nowrap; }

@media (max-width: 768px) {
    .article-item { padding: 14px; }
    .article-item > * + * { margin-left: 12px; }
    .article-item .thumb { width: 120px; aspect-ratio: 16 / 10; }
    .article-item h3 { font-size: 15px; }
    .article-item p { display: none; }
    .article-item .meta { font-size: 11px; }
    .article-item .meta > * + * { margin-left: 8px; }
}
@media (max-width: 480px) {
    .article-item { padding: 12px; }
    .article-item > * + * { margin-left: 10px; }
    .article-item .thumb { width: 100px; aspect-ratio: 16 / 10; }
    .article-item h3 { font-size: 14px; }
    .article-item .meta .cat { padding: 0 5px; font-size: 10px; }
}
/* ==========================================================
   内容页
   ========================================================== */
.article-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 2px; padding: 30px 40px; min-width: 0; overflow: hidden; }
.article-title { font-family: var(--font-serif); font-size: 26px; font-weight: 700; line-height: 1.4; color: var(--text-title); margin-bottom: 16px; word-break: break-word; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-light); padding-bottom: 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
.article-meta > * + * { margin-left: 16px; }
.article-content { font-size: 16px; line-height: 1.9; color: var(--text-main); word-break: break-word; min-width: 0; overflow: hidden; }
.article-content p { margin-bottom: 18px; }
.article-content strong { color: var(--text-title); font-weight: 700; }
.article-content img { max-width: 100% !important; height: auto !important; display: block; margin: 20px auto; background: #fafafa; border-radius: 2px; }
.article-notice { margin-top: 30px; padding: 16px 20px; background: #fafafa; border-radius: 4px; font-size: 12px; line-height: 1.8; color: var(--text-light); word-break: break-word; }
.article-recommend { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 2px; margin-top: 20px; min-width: 0; overflow: hidden; }
.article-recommend .block-head { display: flex; align-items: center; padding: 0 20px; height: 48px; border-bottom: 1px solid var(--border-light); }
.article-recommend .block-head .title { display: flex; align-items: center; font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--text-title); }
.article-recommend .block-head .title > * + * { margin-left: 8px; }
.article-recommend .block-head .title::before { content: ""; width: 4px; height: 18px; margin-right: 8px; background: var(--primary); border-radius: 1px; flex-shrink: 0; }
.recommend-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.recommend-grid li { display: flex; flex-direction: column; justify-content: center; padding: 18px 20px; border-right: 1px dashed var(--border-light); min-width: 0; overflow: hidden; transition: background .2s; }
.recommend-grid li:last-child { border-right: none; }
.recommend-grid li:hover { background: #fafbfc; }
.recommend-grid a { font-size: 14px; line-height: 1.6; color: var(--text-main); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.recommend-grid a:hover { color: var(--primary); }
.recommend-grid .time { font-size: 12px; color: var(--text-light); margin-top: 8px; white-space: nowrap; }

@media (max-width: 992px) {
    .article-box { padding: 24px 28px; }
    .article-title { font-size: 22px; }
    .recommend-grid { grid-template-columns: repeat(2, 1fr); }
    .recommend-grid li { border-right: none; border-bottom: 1px dashed var(--border-light); padding: 14px 18px; }
    .recommend-grid li:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 768px) {
    .article-box { padding: 18px 16px; }
    .article-title { font-size: 20px; margin-bottom: 12px; }
    .article-meta { font-size: 12px; padding-bottom: 14px; margin-bottom: 18px; }
    .article-meta > * + * { margin-left: 10px; }
    .article-content { font-size: 15px; line-height: 1.8; }
    .article-content p { margin-bottom: 14px; }
    .article-content img { margin: 14px auto; }
    .article-recommend { margin-top: 16px; }
    .article-recommend .block-head { height: 42px; padding: 0 12px; }
    .article-recommend .block-head .title { font-size: 16px; }
    .article-recommend .block-head .title > * + * { margin-left: 6px; }
    .article-recommend .block-head .title::before { height: 14px; width: 3px; margin-right: 6px; }
    .recommend-grid { display: flex; flex-direction: column; }
    .recommend-grid li { flex-direction: row; align-items: baseline; padding: 12px 14px; border-right: none; border-bottom: 1px dashed var(--border-light); }
    .recommend-grid li > * + * { margin-left: 10px; }
    .recommend-grid li:last-child { border-bottom: none; }
    .recommend-grid a { -webkit-line-clamp: 1; flex: 1; min-width: 0; }
    .recommend-grid .time { margin-top: 0; flex-shrink: 0; font-size: 11px; }
}
@media (max-width: 480px) {
    .article-box { padding: 14px 12px; }
    .article-title { font-size: 18px; }
    .article-content { font-size: 14px; }
    .recommend-grid li { padding: 10px 12px; }
    .recommend-grid a { font-size: 13px; }
}
/* ==========================================================
   单页
   ========================================================== */
.about-content { padding: 30px 40px; font-size: 16px; line-height: 2; color: var(--text-main); word-break: break-word; }
.about-content p { margin-bottom: 20px; text-align: justify; }
.about-content strong { font-weight: 700; color: var(--text-title); }
.about-update { margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--border-light); font-size: 12px; color: var(--text-light); text-align: right; }
.contact-card { padding: 8px 0; }
.contact-item { display: flex; align-items: baseline; padding: 14px 20px; border-bottom: 1px dashed var(--border-light); min-width: 0; }
.contact-item > * + * { margin-left: 12px; }
.contact-item:last-child { border-bottom: none; }
.contact-label { flex-shrink: 0; width: 70px; font-size: 13px; font-weight: 600; color: var(--text-sub); white-space: nowrap; }
.contact-value { flex: 1; min-width: 0; font-size: 14px; color: var(--text-main); line-height: 1.6; word-break: break-all; }
.contact-value a { color: var(--primary); font-weight: 500; }
.contact-value a:hover { text-decoration: underline; }

@media (max-width: 992px) {
    .about-content { padding: 24px 28px; }
}
@media (max-width: 768px) {
    .about-content { padding: 18px 16px; font-size: 15px; line-height: 1.9; }
    .about-content p { margin-bottom: 16px; }
    .about-update { margin-top: 28px; padding-top: 14px; }
    .contact-item { padding: 12px 14px; gap: 10px; }
    .contact-label { width: 60px; font-size: 12px; }
    .contact-value { font-size: 13px; }
}
@media (max-width: 480px) {
    .about-content { padding: 14px 12px; font-size: 14px; }
    .contact-item { flex-direction: column; padding: 12px; }
    .contact-item > * + * { margin-left: 0; margin-top: 4px; }
    .contact-label { width: auto; font-size: 12px; color: var(--text-light); }
    .contact-value { font-size: 14px; }
}
/* ==========================================================
   搜索页
   ========================================================== */
.search-highlight { color: var(--primary); font-style: normal; font-weight: 700; }
.search-item { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-light); min-width: 0; overflow: hidden; transition: background .2s; }
.search-item > * + * { margin-left: 10px; }
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #fafbfc; }
.search-item h3 { flex: 1; min-width: 0; font-family: var(--font-serif); font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--text-title); display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.search-item h3 a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item h3 a:hover { color: var(--primary); }
.search-item .date { flex-shrink: 0; font-size: 12px; color: var(--text-light); white-space: nowrap; }
.search-empty { padding: 60px 20px; text-align: center; color: var(--text-light); }
.search-empty .icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.search-empty p { font-size: 15px; line-height: 1.8; }
.search-empty .tip { margin-top: 8px; font-size: 13px; color: #bbb; }
.search-empty .keyword { color: var(--primary); font-weight: 600; }

@media (max-width: 768px) {
    .search-item { padding: 12px 14px; }
    .search-item > * + * { margin-left: 8px; }
    .search-item h3 { font-size: 14px; }
    .search-item h3 a { display: block; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .search-item .date { font-size: 11px; }
    .search-empty { padding: 40px 16px; }
    .search-empty .icon { font-size: 36px; }
    .search-empty p { font-size: 14px; }
}
@media (max-width: 480px) {
    .search-item { padding: 10px 12px; }
    .search-item h3 { font-size: 13px; }
}
