/* === 新闻卡片滚动屏（banner1 与页眉之间） === */
.news-flash {
    position: relative;
    max-width: 980px;
    margin: 14px auto;
    height: 250px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #0B1B34 0%, #0E2240 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.news-flash-label {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 5;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--gold);
    background: rgba(11, 27, 52, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 5px 10px;
    border-radius: 4px;
}
.news-flash-viewport {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.news-flash-viewport::-webkit-scrollbar {
    display: none;
}
.news-flash-viewport.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}
.news-flash-track {
    display: flex;
    flex-direction: row;
    height: 100%;
}
.news-flash-card {
    position: relative;
    overflow: hidden;
    flex: 0 0 100%;
    width: 100%;
    height: 250px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
}
.news-flash-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0A1628;
}
.news-flash-card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(5, 12, 24, 0.92) 0%, rgba(5, 12, 24, 0.5) 55%, rgba(5, 12, 24, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.news-flash-card-cat {
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.news-flash-card-title {
    font-family: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-flash-card-meta {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    gap: 12px;
}
.news-flash-dots {
    position: absolute;
    bottom: 12px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 5;
}
.news-flash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
}
.news-flash-dot.active {
    background: var(--gold);
}
@media (max-width: 640px) {
    .news-flash {
        height: 200px;
        margin: 10px auto;
    }
    .news-flash-card {
        height: 200px;
    }
    .news-flash-card-body {
        padding: 14px 16px;
    }
    .news-flash-card-title {
        font-size: 0.92rem;
    }
    .news-flash-card-cat {
        font-size: 0.52rem;
    }
    .news-flash-card-meta {
        font-size: 0.6rem;
        gap: 8px;
    }
}


/* 移动端隐藏分类导航（保留桌面/平板入口） */
@media (max-width: 768px) {
    .nav-categories { display: none !important; }
}

/* ============================================================
   MarketScope Terminal — 方案 D：彭博数据 · 荧光绿信息风
   Real-time Intelligence
   ============================================================ */

/* === 基础重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-card: #000000;
    --bg-input: #050505;
    --border-color: #00FF4122;
    --text-primary: #00FF41;
    --text-secondary: #006B2E;
    --text-muted: #1A3A2A;
    --accent: #CCFF00;
    --warn: #8B0000;
    --warn-bright: #FF3333;
    --white: #FFFFFF;
    --nav-bg: #000000;
    --nav-text: #00FF41;
    --footer-bg: #000000;
    --divider: #00FF411A;
    --shadow: none;
    --shadow-lg: none;
    --font-mono: 'IBM Plex Mono', 'Courier New', 'Consolas', monospace;
    --font-sans: 'IBM Plex Sans', 'Segoe UI', Roboto, sans-serif;
    --radius: 0px;
    --transition: 0s;
    --max-width: 1280px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === 终端滚动条 === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: #006B2E; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #00FF41; }

/* === 顶部导航栏 === */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: #000000;
    border: 1px solid #00FF41;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    padding: 4px;
    position: relative;
}

.nav-logo-icon::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 5px;
    width: 16px;
    height: 2px;
    background: #CCFF00;
    transform-origin: left center;
    transform: rotate(-45deg);
    z-index: 1;
}

.nav-logo-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 2px;
    background: #CCFF00;
    transform-origin: right center;
    transform: rotate(-45deg);
    z-index: 1;
}

.nav-logo-icon span {
    background: #006B2E;
    display: block;
}

.nav-logo-icon span:nth-child(1) {
    transform: scaleY(1.35);
    transform-origin: top;
}

.nav-logo-icon span:nth-child(4) {
    background: transparent;
    transform: scaleY(1.35);
    transform-origin: bottom;
}

.nav-logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #00FF41;
    text-transform: uppercase;
}

/* Logo 末端光标闪烁 */
.logo-cursor::after {
    content: '▊';
    color: #00FF41;
    margin-left: 2px;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-logo-sub {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.6rem;
    color: #006B2E;
    letter-spacing: 0.15em;
    display: block;
    text-transform: uppercase;
}

.nav-categories {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-cat-link {
    padding: 8px 18px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #00FF41;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.nav-cat-link:hover,
.nav-cat-link.active {
    color: #CCFF00;
}

.nav-cat-link.cat-trending:hover,
.nav-cat-link.cat-trending.active { border-bottom-color: #00FF41; }
.nav-cat-link.cat-breaking:hover,
.nav-cat-link.cat-breaking.active { border-bottom-color: #FF3333; }
.nav-cat-link.cat-latest:hover,
.nav-cat-link.cat-latest.active { border-bottom-color: #CCFF00; }
.nav-cat-link.cat-mostread:hover,
.nav-cat-link.cat-mostread.active { border-bottom-color: #006B2E; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-search {
    background: #050505;
    border: 1px solid #00FF41;
    color: #00FF41;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    width: 180px;
    outline: none;
}

.nav-search:focus {
    border-color: #CCFF00;
    box-shadow: 0 0 4px rgba(0, 255, 65, 0.5);
}

.nav-search::placeholder {
    color: #006B2E;
}

.nav-links-small {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.nav-links-small a {
    color: #00FF41;
}

.nav-links-small a:hover {
    color: #CCFF00;
}

/* === 页面主体偏移（导航栏固定） === */
.page-content {
    padding-top: 60px;
}

/* === 突发快讯置顶模块 === */
.breaking-banner {
    background: #8B0000;
    border-bottom: 1px solid #FF3333;
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 80px;
}

.breaking-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 48px;
}

.breaking-label {
    background: #00FF41;
    color: #000000;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* 闪烁的红色方块警示符 */
.breaking-label::before {
    content: '■';
    color: #FF3333;
    margin-right: 6px;
    animation: blink-cursor 1s step-end infinite;
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.breaking-ticker-track {
    display: flex;
    animation: ticker-scroll var(--ticker-speed, 60s) linear infinite;
    white-space: nowrap;
}

.breaking-ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 24px;
    color: #00FF41;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.85rem;
    text-decoration: none;
}

.breaking-ticker-item:hover {
    color: #CCFF00;
}

.breaking-ticker-item::after {
    content: '|';
    color: #FF3333;
    margin-left: 24px;
    font-weight: 700;
}

.breaking-ticker-item:last-child::after {
    content: '';
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === 分区标题 === */
#section-trending,
#section-latest {
    scroll-margin-top: 80px;
}

.section-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--divider);
    scroll-margin-top: 80px;
}

.section-header-icon {
    width: 4px;
    height: 24px;
    flex-shrink: 0;
}

.section-header-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00FF41;
}

.section-header-count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #006B2E;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* === TRENDING 趋势热门区 === */
.trending-section {
    padding: 0 24px 24px;
}

.trending-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* === 资讯卡片 === */
.news-card {
    background: #000000;
    border: 1px solid rgba(0, 255, 65, 0.13);
    transition: border-color var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: flash-refresh 0.3s ease;
}

.news-card:hover {
    border-color: #00FF41;
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: filter var(--transition);
    filter: brightness(0.85) saturate(0.8);
}

.news-card:hover .news-card-image {
    filter: brightness(1) saturate(1);
}

.news-card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    color: #00FF41;
    background: transparent;
    border: 1px solid #006B2E;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 8px;
}

.news-card:hover .news-card-category {
    color: #CCFF00;
    border-color: #CCFF00;
}

.news-card-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: #00FF41;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card-title {
    color: #CCFF00;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 300;
    color: #006B2E;
}

.news-card-heat {
    font-weight: 600;
    font-size: 0.7rem;
}

/* === LATEST + MOST READ 混合资讯区 === */
.mixed-section {
    padding: 0 24px 24px;
}

.mixed-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.latest-column,
.mostread-column {
    display: flex;
    flex-direction: column;
    scroll-margin-top: 80px;
}

.column-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00FF41;
}

.column-title-bar {
    width: 4px;
    height: 18px;
    flex-shrink: 0;
}

/* 时间流列表项 */
.list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
    transition: background var(--transition);
}

.list-item:hover {
    background: #050505;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.list-item-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 65, 0.13);
    filter: brightness(0.85);
}

.list-item-info {
    flex: 1;
    min-width: 0;
}

.list-item-cat {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #006B2E;
}

.list-item-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: #00FF41;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item:hover .list-item-title {
    color: #CCFF00;
}

.list-item-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 300;
    color: #006B2E;
    margin-top: 4px;
}

/* 排行列表 */
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--divider);
    transition: background var(--transition);
}

.rank-item:hover {
    background: #050505;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.rank-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: #006B2E;
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 65, 0.13);
}

.rank-item:nth-child(1) .rank-number { color: #CCFF00; border-color: #CCFF00; }
.rank-item:nth-child(2) .rank-number { color: #00FF41; border-color: #00FF41; }
.rank-item:nth-child(3) .rank-number { color: #00FF41; }

.rank-item-info {
    flex: 1;
    min-width: 0;
}

.rank-item-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: #00FF41;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-item:hover .rank-item-title {
    color: #CCFF00;
}

.rank-item-views {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 300;
    color: #006B2E;
    margin-top: 2px;
}

/* === 底部数据概览栏（终端状态栏） === */
.data-bar {
    background: #000000;
    color: #00FF41;
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.data-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.data-stat {
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(0, 255, 65, 0.13);
}

.data-stat-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.data-stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
    color: #006B2E;
}

/* === 页脚 === */
.site-footer {
    background: #000000;
    color: #006B2E;
    padding: 24px;
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.75rem;
    border-top: 1px solid var(--divider);
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.site-footer .footer-links a {
    color: #00FF41;
}

.site-footer .footer-links a:hover {
    color: #CCFF00;
}

/* ============================================================
   详情页样式
   ============================================================ */

.detail-nav {
    background: #000000;
    border-bottom: 1px solid var(--divider);
    height: 52px;
    position: sticky;
    top: 60px;
    z-index: 999;
}

.detail-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-nav-back {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: #00FF41;
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-nav-back:hover {
    color: #CCFF00;
}


.detail-nav-btn {
    background: none;
    border: 1px solid #006B2E;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 500;
    cursor: pointer;
    color: #00FF41;
}

.detail-nav-btn:hover {
    border-color: #00FF41;
    color: #CCFF00;
}

/* 左右分栏 */
.detail-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 24px;
}

.detail-content {
    background: #000000;
    border: 1px solid rgba(0, 255, 65, 0.13);
    padding: 32px;
}

.detail-category-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 10px;
    color: #00FF41;
    background: transparent;
    border: 1px solid #006B2E;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.detail-title {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: #00FF41;
    line-height: 1.3;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--divider);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 300;
    color: #006B2E;
}

.detail-heat-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 2px 8px;
    font-size: 0.7rem;
}

.detail-image {
    width: 100%;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 255, 65, 0.13);
    filter: brightness(0.9);
}

.detail-body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #00E63A;
}

.detail-body p {
    margin-bottom: 16px;
}

/* 正文关键数据高亮（等宽黄绿） */
.detail-body strong,
.detail-body b {
    font-family: var(--font-mono);
    font-weight: 500;
    color: #CCFF00;
}

/* 引用块 */
.detail-body blockquote {
    border-left: 3px solid #00FF41;
    background: #050505;
    padding: 10px 16px;
    margin: 16px 0;
    color: #00E63A;
    font-family: var(--font-sans);
}

/* 正文超链接 */
.detail-body a {
    color: #CCFF00;
}

.detail-body a:hover {
    color: #00FF41;
    text-decoration: underline;
}

/* 右侧辅助面板 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #000000;
    border: 1px solid rgba(0, 255, 65, 0.13);
    padding: 16px;
}

.sidebar-card-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00FF41;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--divider);
}

.sidebar-data-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 300;
    border-bottom: 1px solid var(--divider);
    color: #006B2E;
}

.sidebar-data-row span:last-child {
    font-weight: 500;
    color: #00FF41;
}

.sidebar-mini-list {
    display: flex;
    flex-direction: column;
}

.sidebar-mini-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--divider);
    font-family: var(--font-mono);
    font-weight: 500;
    color: #00FF41;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 短标题(<=35字): 大字号 + 2行上限 */
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
}

.sidebar-mini-item.title-medium {
    /* 中等长度(36-55字): 中等字号 + 延长至3行 */
    font-size: 0.78rem;
    -webkit-line-clamp: 3;
}

.sidebar-mini-item.title-long {
    /* 长标题(>55字): 小字号 + 4行上限 */
    font-size: 0.72rem;
    -webkit-line-clamp: 4;
    line-height: 1.3;
}

.sidebar-mini-item:hover {
    color: #CCFF00;
}

.sidebar-archive-btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: #006B2E;
    color: #000000;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.sidebar-archive-btn:hover {
    background: #00FF41;
}

/* 底部关联推荐 */
.related-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 32px;
}

.related-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--divider);
    color: #00FF41;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #000000;
    border: 1px solid rgba(0, 255, 65, 0.13);
}

.related-card:hover {
    border-color: #00FF41;
}

.related-card-thumb {
    width: 60px;
    height: 42px;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(0.85);
}

.related-card-title {
    font-family: var(--font-mono);
    font-weight: 500;
    color: #00FF41;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 短标题(<=35字): 大字号 + 2行 */
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
}

.related-card-title.title-medium {
    /* 中等长度(36-55字): 适中字号 + 2行 */
    font-size: 0.73rem;
    -webkit-line-clamp: 2;
}

.related-card-title.title-long {
    /* 长标题(>55字): 小字号 + 3行 */
    font-size: 0.68rem;
    -webkit-line-clamp: 3;
    line-height: 1.3;
}

.related-card:hover .related-card-title {
    color: #CCFF00;
}

/* === 静态页面样式 === */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.static-page h1 {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: #00FF41;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.static-page .static-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 300;
    color: #006B2E;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--divider);
}

.static-page h2 {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: #CCFF00;
    margin-top: 28px;
    margin-bottom: 12px;
}

.static-page p {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #00E63A;
    margin-bottom: 14px;
}

.static-page a {
    color: #CCFF00;
}

.static-page a:hover {
    color: #00FF41;
    text-decoration: underline;
}

/* === 响应式适配 === */

/* 平板端 (769px - 1024px) */
@media (max-width: 1024px) {
    .nav-cat-link {
        padding: 8px 12px;
        font-size: 0.72rem;
    }
    .nav-search {
        width: 130px;
    }
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-main {
        grid-template-columns: 62% 38%;
        gap: 16px;
    }
    .detail-content {
        padding: 24px;
    }
    .detail-title {
        font-size: 1.4rem;
    }
    .detail-nav-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .data-bar-inner {
        gap: 16px;
    }
}

/* 手机端 (481px - 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* 导航栏 */
    .top-nav {
        height: 52px;
    }
    .nav-inner {
        padding: 0 12px;
    }
    .nav-logo-icon {
        width: 28px;
        height: 28px;
        padding: 3px;
    }
    .nav-logo-icon::before,
    .nav-logo-icon::after {
        width: 13px;
    }
    .nav-logo-icon::before {
        bottom: 4px;
        left: 4px;
    }
    .nav-logo-icon::after {
        top: 4px;
        right: 4px;
    }
    .nav-logo-text {
        font-size: 1rem;
    }
    .nav-logo-sub {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }
    .nav-categories {
        display: none;
    }
    .nav-search {
        display: none;
    }
    .nav-links-small {
        display: none;
    }

    /* 汉堡菜单按钮 */
    .nav-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        gap: 5px;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0;
    }
    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #00FF41;
        transition: all 0.25s ease;
        transform-origin: center;
    }
    .nav-hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* 移动端下拉菜单 */
    .nav-mobile-menu {
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        background: #000000;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
    }
    .nav-mobile-menu.open {
        max-height: 360px;
        padding: 8px 0;
    }
    .nav-mobile-menu a {
        padding: 12px 20px;
        font-family: var(--font-mono);
        font-size: 0.85rem;
        font-weight: 500;
        letter-spacing: 1px;
        color: #00FF41;
        text-transform: uppercase;
        border-left: 3px solid transparent;
    }
    .nav-mobile-menu a:hover,
    .nav-mobile-menu a.active {
        color: #CCFF00;
        background: #050505;
    }
    .nav-mobile-menu a.m-cat-trending { border-left-color: #00FF41; }
    .nav-mobile-menu a.m-cat-breaking { border-left-color: #FF3333; }
    .nav-mobile-menu a.m-cat-latest { border-left-color: #CCFF00; }
    .nav-mobile-menu a.m-cat-mostread { border-left-color: #006B2E; }
    .nav-mobile-menu a.m-link-static {
        font-size: 0.75rem;
        font-weight: 400;
        letter-spacing: 0.5px;
        border-left-color: #1A3A2A;
    }

    .page-content {
        padding-top: 52px;
    }

    /* 移动端锚点偏移量 */
    .breaking-banner {
        scroll-margin-top: 60px;
    }
    #section-trending,
    #section-latest {
        scroll-margin-top: 60px;
    }
    .section-header {
        scroll-margin-top: 60px;
    }
    .mostread-column {
        scroll-margin-top: 60px;
    }

    /* 突发快讯 */
    .breaking-banner-inner {
        height: 38px;
    }
    .breaking-label {
        font-size: 0.65rem;
        padding: 0 10px;
    }
    .breaking-ticker-item {
        font-size: 0.72rem;
        padding: 0 14px;
    }
    .breaking-ticker-item::after {
        margin-left: 14px;
    }

    /* 分区标题 */
    .section-header {
        padding: 20px 12px 10px;
    }
    .section-header-title {
        font-size: 1rem;
    }
    .section-header-count {
        font-size: 0.65rem;
    }

    /* TRENDING 网格 */
    .trending-section {
        padding: 0 12px 16px;
    }
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .news-card-title {
        font-size: 0.9rem;
    }
    .news-card-body {
        padding: 0.75rem;
    }

    /* LATEST + MOST READ */
    .mixed-section {
        padding: 0 12px 16px;
    }
    .mixed-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .list-item-thumb {
        width: 70px;
        height: 50px;
    }

    /* 底部数据栏简化为 2 列 */
    .data-bar {
        padding: 16px 12px;
    }
    .data-bar-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .data-stat-value {
        font-size: 1.5rem;
    }
    .data-stat-label {
        font-size: 0.65rem;
    }

    /* 页脚 */
    .site-footer {
        padding: 20px 12px;
    }
    .site-footer .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* ======= 详情页移动端 ======= */
    .detail-nav {
        height: auto;
        position: sticky;
        top: 52px;
    }
    .detail-nav-inner {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .detail-nav-left {
        flex: 1;
        min-width: 0;
    }
    .detail-nav-back {
        font-size: 0.75rem;
    }
    .detail-nav-btn {
        padding: 5px 8px;
        font-size: 0.68rem;
        flex: 0 0 auto;
    }

    /* 左右分栏 -> 通栏 */
    .detail-main {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
    .detail-content {
        padding: 16px;
    }
    .detail-title {
        font-size: 1.25rem;
    }
    .detail-meta-row {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.7rem;
    }
    .detail-heat-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .detail-body {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .detail-body p {
        margin-bottom: 12px;
    }

    /* 右侧面板移到底部后 */
    .detail-sidebar {
        gap: 10px;
    }
    .sidebar-card {
        padding: 12px;
    }
    .sidebar-card-title {
        font-size: 0.68rem;
    }
    .sidebar-data-row {
        font-size: 0.75rem;
    }
    .sidebar-mini-item {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        padding: 7px 0;
    }
    .sidebar-mini-item.title-medium {
        font-size: 0.75rem;
        -webkit-line-clamp: 3;
    }
    .sidebar-mini-item.title-long {
        font-size: 0.7rem;
        -webkit-line-clamp: 4;
    }

    /* 关联推荐 */
    .related-section {
        padding: 0 12px 24px;
    }
    .related-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .related-card {
        padding: 8px;
    }

    /* 静态页面 */
    .static-page {
        padding: 20px 16px;
    }
    .static-page h1 {
        font-size: 1.3rem;
    }
    .static-page h2 {
        font-size: 1rem;
        margin-top: 22px;
    }
    .static-page p {
        font-size: 0.85rem;
    }
}

/* 小屏手机 (<= 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .top-nav {
        height: 48px;
    }
    .nav-logo-icon {
        width: 24px;
        height: 24px;
        padding: 2px;
    }
    .nav-logo-icon::before,
    .nav-logo-icon::after {
        width: 11px;
    }
    .nav-logo-icon::before {
        bottom: 3px;
        left: 3px;
    }
    .nav-logo-icon::after {
        top: 3px;
        right: 3px;
    }
    .nav-logo-text {
        font-size: 0.9rem;
    }
    .nav-logo-sub {
        display: none;
    }

    .nav-mobile-menu {
        top: 48px;
    }

    .page-content {
        padding-top: 48px;
    }

    /* 小屏手机锚点偏移量 */
    .breaking-banner {
        scroll-margin-top: 55px;
    }
    #section-trending,
    #section-latest {
        scroll-margin-top: 55px;
    }
    .section-header {
        scroll-margin-top: 55px;
    }
    .mostread-column {
        scroll-margin-top: 55px;
    }

    .breaking-banner-inner {
        height: 34px;
    }
    .breaking-label {
        font-size: 0.6rem;
        padding: 0 8px;
    }
    .breaking-ticker-item {
        font-size: 0.68rem;
        padding: 0 10px;
    }

    .section-header {
        padding: 16px 10px 8px;
    }
    .section-header-title {
        font-size: 0.9rem;
    }
    .section-header-icon {
        height: 18px;
        width: 3px;
    }

    .trending-section {
        padding: 0 10px 12px;
    }
    .mixed-section {
        padding: 0 10px 12px;
    }
    .news-card-body {
        padding: 0.75rem;
    }
    .news-card-title {
        font-size: 0.85rem;
    }

    .list-item {
        gap: 8px;
    }
    .list-item-thumb {
        width: 60px;
        height: 44px;
    }
    .list-item-title {
        font-size: 0.78rem;
    }

    .data-bar {
        padding: 12px 8px;
    }
    .data-stat {
        padding: 8px;
    }
    .data-stat-value {
        font-size: 1.3rem;
    }

    .detail-main {
        padding: 8px;
        gap: 8px;
    }
    .detail-content {
        padding: 12px;
    }
    .detail-title {
        font-size: 1.1rem;
    }
    .detail-meta-row {
        gap: 4px;
        font-size: 0.65rem;
    }
    .detail-body {
        font-size: 0.85rem;
    }
    .detail-nav {
        top: 48px;
    }
    .detail-nav-inner {
        padding: 6px 10px;
    }

    .related-section {
        padding: 0 10px 20px;
    }

    .site-footer {
        padding: 16px 10px;
        font-size: 0.7rem;
    }
    .site-footer .footer-links {
        gap: 8px;
        font-size: 0.68rem;
    }

    .static-page {
        padding: 16px 12px;
    }
    .static-page h1 {
        font-size: 1.15rem;
    }
    .static-page h2 {
        font-size: 0.95rem;
    }
    .static-page p {
        font-size: 0.8rem;
    }

    /* 广告位在小屏缩小 */
    [id^="adv"] > div:last-child {
        min-width: 250px !important;
        min-height: 200px !important;
    }
}

/* 默认隐藏汉堡菜单（桌面端） */
@media (min-width: 769px) {
    .nav-hamburger {
        display: none;
    }
    .nav-mobile-menu {
        display: none;
    }
}
