/* === 新闻卡片滚动屏（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; }
}

/* ============================================================
   Nikkei Pulse — 方案 E：日经和风 · 纸墨禅意风
   東方 · 市場 · 洞察
   ============================================================ */

/* === 基础重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 配色：米白和纸 + 朱红 + 墨黑 + 金 */
    --bg-primary: #F5F0E8;        /* 米白和纸色 */
    --bg-card: #FFFFFF;           /* 卡片纯白 */
    --border-color: #E8E4DD;      /* 卡片极淡灰边 */
    --text-primary: #1A1A1A;      /* 墨黑 */
    --text-secondary: #595857;    /* 薄墨灰 */
    --text-muted: #8C8A86;        /* 淡墨 */
    --white: #FFFFFF;
    --accent: #BC002D;            /* 朱红 */
    --accent-dark: #8B0022;       /* 暗朱红 */
    --gold: #B8976A;              /* 金色点缀 */
    --nav-bg: #2D2A26;            /* 深褐 */
    --nav-text: #F5F0E8;          /* 米白 */
    --footer-bg: #2D2A26;         /* 深褐 */
    --divider: #D4CEC4;           /* 分割线淡墨 */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06);
    --font-en: 'EB Garamond', 'Yu Mincho', '游明朝', serif;
    --font-jp: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
    --font-body: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
    --radius: 0px;
    --transition: 0.3s ease;
    --max-width: 1280px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    /* 和纸噪点纹理 */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 256px;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    animation: washi-fade 0.8s ease;
}

/* 和纸淡入 */
@keyframes washi-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === 顶部导航栏：深褐底 + 和纸印章 === */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--gold);
    height: 64px;
    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: 12px;
    flex-shrink: 0;
}

/* 和纸印章图标（nav-logo-icon）：墨框印章 + 市场脉搏走势线 */
.logo-dot {
    width: 36px;
    height: 36px;
    background: #F5F0E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpolyline points='7,22 13,16 17,19 25,9' fill='none' stroke='%23BC002D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='25' cy='9' r='2' fill='%23B8976A'/%3E%3C/svg%3E") center / 72% no-repeat;
    border: 1px solid #2D2A26;
    position: relative;
    flex-shrink: 0;
    clip-path: polygon(11% 0, 89% 0, 100% 11%, 100% 89%, 89% 100%, 11% 100%, 0 89%, 0 11%);
    animation: stamp-appear 0.6s ease forwards;
}

/* 印章浮现 *//* 印章浮现 */
@keyframes stamp-appear {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.nav-logo-text {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    color: var(--nav-text);
}

.nav-logo-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.62rem;
    color: #B8B2A7;
    letter-spacing: 0.3em;
    display: block;
}

.nav-categories {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-cat-link {
    padding: 8px 18px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: #C9C3B8;
    text-transform: uppercase;
    transition: color var(--transition);
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
}

.nav-cat-link:hover,
.nav-cat-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* 四分类统一朱红高亮，保持禅意单色 */
.nav-cat-link.cat-trending:hover,
.nav-cat-link.cat-trending.active,
.nav-cat-link.cat-breaking:hover,
.nav-cat-link.cat-breaking.active,
.nav-cat-link.cat-latest:hover,
.nav-cat-link.cat-latest.active,
.nav-cat-link.cat-mostread:hover,
.nav-cat-link.cat-mostread.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-search {
    background: #3A3631;
    border: 1px solid #4A453F;
    color: var(--nav-text);
    padding: 6px 12px;
    font-size: 0.78rem;
    font-family: var(--font-body);
    width: 180px;
    outline: none;
    transition: border-color var(--transition);
}

.nav-search:focus {
    border-color: var(--accent);
}

.nav-search::placeholder {
    color: #8A857C;
}

.nav-links-small {
    display: flex;
    gap: 14px;
    font-size: 0.72rem;
    font-family: var(--font-body);
    letter-spacing: 0.1em;
}

.nav-links-small a {
    color: #B8B2A7;
    transition: color var(--transition);
}

.nav-links-small a:hover {
    color: var(--accent);
}

/* === 页面主体偏移（导航栏固定） === */
.page-content {
    padding-top: 64px;
}

/* === 突发快讯：朱红号外 === */
.breaking-banner {
    background: var(--accent);
    border-bottom: 1px solid var(--accent-dark);
    padding: 0;
    overflow: hidden;
    scroll-margin-top: 84px;
}

.breaking-banner-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 44px;
}

.breaking-label {
    background: var(--nav-text);
    color: var(--accent);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.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 22px;
    color: var(--nav-text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* 朱红圆点装饰（米白显于朱红底） */
.breaking-ticker-item::before {
    content: '●';
    color: var(--nav-text);
    margin-right: 10px;
    font-size: 0.5rem;
}

.breaking-ticker-item:hover {
    color: #F5E0E6;
}

.breaking-ticker-item::after {
    content: '|';
    color: rgba(245, 240, 232, 0.4);
    margin-left: 22px;
}

.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: 84px;
}

.section-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 36px 24px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--divider);
    scroll-margin-top: 84px;
}

.section-header-icon {
    width: 3px;
    height: 22px;
    flex-shrink: 0;
    background: var(--accent);
}

.section-header-title {
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
}

.section-header-count {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* === TRENDING 趋势热门区 === */
.trending-section {
    padding: 0 24px 28px;
}

.trending-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* === 资讯卡片：无边框、纯白、极淡阴影 === */
.news-card {
    background: var(--bg-card);
    border: none;
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 禅意悬浮 */
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: filter var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.news-card:hover .news-card-image {
    filter: brightness(1.03);
}

.news-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 标签：朱红文字 + 透明背景 + 无边框 */
.news-card-category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    padding: 0;
    color: var(--accent);
    background: transparent;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 10px;
}

/* 墨迹扩散 */
.news-card-category:hover {
    animation: ink-spread 0.4s ease forwards;
}

@keyframes ink-spread {
    0% { box-shadow: 0 0 0 0 rgba(188, 0, 45, 0.2); }
    100% { box-shadow: 0 0 0 8px rgba(188, 0, 45, 0); }
}

.news-card-title {
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--text-primary);
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.news-card-heat {
    font-weight: 500;
    font-size: 0.68rem;
}

/* === LATEST + MOST READ 混合资讯区 === */
.mixed-section {
    padding: 0 24px 28px;
}

.mixed-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.latest-column,
.mostread-column {
    display: flex;
    flex-direction: column;
    scroll-margin-top: 84px;
}

.column-title {
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-title-bar {
    width: 3px;
    height: 16px;
    flex-shrink: 0;
    background: var(--accent);
}

/* 时间流列表项 */
.list-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--divider);
    transition: background var(--transition);
}

.list-item:hover {
    background: rgba(188, 0, 45, 0.03);
    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 var(--border-color);
}

.list-item-info {
    flex: 1;
    min-width: 0;
}

.list-item-cat {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--accent);
}

.list-item-title {
    font-family: var(--font-jp);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item-meta {
    font-family: var(--font-body);
    font-size: 0.64rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 300;
}

/* 排行列表 */
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--divider);
    transition: background var(--transition);
}

.rank-item:hover {
    background: rgba(188, 0, 45, 0.03);
    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-en);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-muted);
    flex-shrink: 0;
    border: 1px solid var(--divider);
}

.rank-item:nth-child(1) .rank-number { color: var(--accent); border-color: var(--accent); }
.rank-item:nth-child(2) .rank-number { color: var(--accent-dark); border-color: var(--accent-dark); }
.rank-item:nth-child(3) .rank-number { color: var(--gold); border-color: var(--gold); }

.rank-item-info {
    flex: 1;
    min-width: 0;
}

.rank-item-title {
    font-family: var(--font-jp);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-item-views {
    font-family: var(--font-body);
    font-size: 0.64rem;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 300;
}

/* === 底部数据概览栏：深褐 + 金色数据 === */
.data-bar {
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 28px 24px;
    border-top: 1px solid var(--gold);
}

.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: 14px 12px;
    border: 1px solid #4A453F;
}

.data-stat-value {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 2rem;
    line-height: 1;
    color: var(--gold);
}

.data-stat-label {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 8px;
    color: #C9C3B8;
}

/* === 页脚：深褐封边 === */
.site-footer {
    background: var(--footer-bg);
    color: #9C958A;
    padding: 24px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 300;
    border-top: 1px solid #3A3631;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.site-footer .footer-links a {
    color: #B8B2A7;
    transition: color var(--transition);
}

.site-footer .footer-links a:hover {
    color: var(--accent);
}

/* ============================================================
   详情页样式
   ============================================================ */

.detail-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--divider);
    height: 52px;
    position: sticky;
    top: 64px;
    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-body);
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
    letter-spacing: 0.08em;
}

.detail-nav-back:hover {
    color: var(--accent);
}


.detail-nav-btn {
    background: none;
    border: 1px solid var(--divider);
    padding: 5px 12px;
    font-size: 0.74rem;
    font-family: var(--font-body);
    font-weight: 400;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.detail-nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* 左右分栏 */
.detail-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 28px;
}

.detail-content {
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow);
    padding: 40px;
}

.detail-category-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    padding: 0;
    color: var(--accent);
    background: transparent;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.detail-title {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}

.detail-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--divider);
    font-family: var(--font-body);
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.detail-heat-badge {
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.detail-image {
    width: 100%;
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

/* 杂志式文章排版：大量留白 */
.detail-body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 2.0;
    color: #2A2A2A;
    font-weight: 400;
}

.detail-body p {
    margin-bottom: 1.8em;
}

.detail-body a {
    color: var(--accent);
}

.detail-body a:hover {
    text-decoration: underline;
}

/* 引用块：朱红实线 + 米白底 + 衬线斜体 */
.detail-body blockquote {
    border-left: 3px solid var(--accent);
    background: var(--bg-primary);
    padding: 14px 20px;
    margin: 1.8em 0;
    font-family: var(--font-jp);
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
}

/* 右侧辅助面板 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-card {
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow);
    padding: 18px;
}

.sidebar-card-title {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--divider);
}

.sidebar-data-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    border-bottom: 1px solid #F1ECE3;
    color: var(--text-secondary);
}

.sidebar-data-row span:last-child {
    font-weight: 500;
    color: var(--text-primary);
}

.sidebar-mini-list {
    display: flex;
    flex-direction: column;
}

.sidebar-mini-item {
    padding: 9px 0;
    border-bottom: 1px solid #F1ECE3;
    font-family: var(--font-jp);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 短标题(<=35字): 大字号 + 2行上限 */
    font-size: 0.86rem;
    -webkit-line-clamp: 2;
}

.sidebar-mini-item.title-medium {
    /* 中等长度(36-55字): 中等字号 + 延长至3行 */
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
}

.sidebar-mini-item.title-long {
    /* 长标题(>55字): 小字号 + 4行上限 */
    font-size: 0.74rem;
    -webkit-line-clamp: 4;
    line-height: 1.35;
}

.sidebar-mini-item:hover {
    color: var(--accent);
}

.sidebar-archive-btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background: var(--nav-bg);
    color: var(--nav-text);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

.sidebar-archive-btn:hover {
    background: var(--accent);
}

/* 底部关联推荐 */
.related-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 40px;
}

.related-title {
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--divider);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: none;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-lg);
}

.related-card-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.related-card-title {
    font-family: var(--font-jp);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* 短标题(<=35字): 大字号 + 2行 */
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
}

.related-card-title.title-medium {
    /* 中等长度(36-55字): 适中字号 + 2行 */
    font-size: 0.76rem;
    -webkit-line-clamp: 2;
}

.related-card-title.title-long {
    /* 长标题(>55字): 小字号 + 3行 */
    font-size: 0.7rem;
    -webkit-line-clamp: 3;
    line-height: 1.35;
}

/* === 静态页面样式 === */
.static-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 24px;
}

.static-page h1 {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 1.9rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

.static-page .static-date {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--divider);
    font-weight: 300;
    letter-spacing: 0.08em;
}

.static-page h2 {
    font-family: var(--font-jp);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 14px;
}

.static-page p {
    font-family: var(--font-body);
    font-size: 0.94rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.static-page a {
    color: var(--accent);
}

.static-page a:hover {
    text-decoration: underline;
}

/* === 响应式适配 === */

/* 平板端 (769px - 1024px) */
@media (max-width: 1024px) {
    .nav-cat-link {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    .nav-search {
        width: 130px;
    }
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-main {
        grid-template-columns: 62% 38%;
        gap: 18px;
    }
    .detail-content {
        padding: 28px;
    }
    .detail-title {
        font-size: 1.7rem;
    }
    .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;
    }

    /* 导航栏：仅保留 Logo + 汉堡 */
    .top-nav {
        height: 54px;
    }
    .nav-inner {
        padding: 0 12px;
    }
    .logo-dot {
        width: 28px;
        height: 28px;
    }
    .logo-dot::after {
        border-width: 1.5px;
    }
    .nav-logo-text {
        font-size: 1.05rem;
    }
    .nav-logo-sub {
        font-size: 0.55rem;
        letter-spacing: 0.22em;
    }
    .nav-categories {
        display: none;
    }
    /* 桌面搜索隐藏，移动端收纳至汉堡菜单 */
    .nav-actions .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: var(--nav-text);
        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: 54px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        border-bottom: 1px solid var(--gold);
        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: 440px;
        padding: 8px 0;
    }
    /* 汉堡内搜索框（覆盖桌面端 display:none） */
    .nav-mobile-menu .nav-search {
        display: block;
        width: auto;
        margin: 10px 16px 12px;
    }
    .nav-mobile-menu a {
        padding: 12px 20px;
        font-family: var(--font-body);
        font-size: 0.82rem;
        font-weight: 400;
        letter-spacing: 0.12em;
        color: #C9C3B8;
        text-transform: uppercase;
        border-left: 2px solid transparent;
        transition: all 0.15s ease;
    }
    .nav-mobile-menu a:hover,
    .nav-mobile-menu a.active {
        color: var(--accent);
        background: #3A3631;
    }
    .nav-mobile-menu a.m-cat-trending:hover,
    .nav-mobile-menu a.m-cat-trending.active { border-left-color: var(--accent); }
    .nav-mobile-menu a.m-cat-breaking:hover,
    .nav-mobile-menu a.m-cat-breaking.active { border-left-color: var(--accent-dark); }
    .nav-mobile-menu a.m-cat-latest:hover,
    .nav-mobile-menu a.m-cat-latest.active { border-left-color: var(--text-secondary); }
    .nav-mobile-menu a.m-cat-mostread:hover,
    .nav-mobile-menu a.m-cat-mostread.active { border-left-color: var(--gold); }
    .nav-mobile-menu a.m-link-static {
        font-size: 0.74rem;
        font-weight: 300;
        letter-spacing: 0.08em;
        border-left-color: #4A453F;
    }

    .page-content {
        padding-top: 54px;
    }

    /* 移动端锚点偏移量 */
    .breaking-banner {
        scroll-margin-top: 64px;
    }
    #section-trending,
    #section-latest {
        scroll-margin-top: 64px;
    }
    .section-header {
        scroll-margin-top: 64px;
    }
    .mostread-column {
        scroll-margin-top: 64px;
    }

    /* 突发快讯 */
    .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: 24px 12px 10px;
    }
    .section-header-title {
        font-size: 1.05rem;
    }
    .section-header-count {
        font-size: 0.65rem;
    }

    /* TRENDING 网格 */
    .trending-section {
        padding: 0 12px 18px;
    }
    .trending-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-card-title {
        font-size: 0.92rem;
    }

    /* LATEST + MOST READ */
    .mixed-section {
        padding: 0 12px 18px;
    }
    .mixed-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .list-item-thumb {
        width: 70px;
        height: 50px;
    }

    /* 底部数据栏 2×2 */
    .data-bar {
        padding: 18px 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: 54px;
    }
    .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;
    }

    /* 左右分栏 -> 通栏；标题 1.5rem，正文 1rem */
    .detail-main {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
    .detail-content {
        padding: 18px;
    }
    .detail-title {
        font-size: 1.5rem;
    }
    .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: 1rem;
        line-height: 1.85;
    }
    .detail-body p {
        margin-bottom: 1.2em;
    }

    /* 右侧面板移到底部后 */
    .detail-sidebar {
        gap: 10px;
    }
    .sidebar-card {
        padding: 14px;
    }
    .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: 28px 16px;
    }
    .static-page h1 {
        font-size: 1.4rem;
    }
    .static-page h2 {
        font-size: 1.02rem;
        margin-top: 24px;
    }
    .static-page p {
        font-size: 0.88rem;
    }
}

/* 小屏手机 (<= 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .top-nav {
        height: 50px;
    }
    .logo-dot {
        width: 24px;
        height: 24px;
    }
    .logo-dot::after {
        border-width: 1.5px;
    }
    .nav-logo-text {
        font-size: 0.95rem;
    }
    .nav-logo-sub {
        display: none;
    }

    .nav-mobile-menu {
        top: 50px;
    }

    .page-content {
        padding-top: 50px;
    }

    /* 小屏手机锚点偏移量 */
    .breaking-banner {
        scroll-margin-top: 58px;
    }
    #section-trending,
    #section-latest {
        scroll-margin-top: 58px;
    }
    .section-header {
        scroll-margin-top: 58px;
    }
    .mostread-column {
        scroll-margin-top: 58px;
    }

    .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: 18px 10px 8px;
    }
    .section-header-title {
        font-size: 0.95rem;
    }
    .section-header-icon {
        height: 18px;
        width: 3px;
    }

    .trending-section {
        padding: 0 10px 14px;
    }
    .mixed-section {
        padding: 0 10px 14px;
    }
    .news-card-body {
        padding: 14px;
    }
    .news-card-title {
        font-size: 0.88rem;
    }

    .list-item {
        gap: 8px;
    }
    .list-item-thumb {
        width: 60px;
        height: 44px;
    }
    .list-item-title {
        font-size: 0.78rem;
    }

    .data-bar {
        padding: 14px 8px;
    }
    .data-stat {
        padding: 8px;
    }
    .data-stat-value {
        font-size: 1.3rem;
    }

    .detail-main {
        padding: 8px;
        gap: 8px;
    }
    .detail-content {
        padding: 14px;
    }
    .detail-title {
        font-size: 1.25rem;
    }
    .detail-meta-row {
        gap: 4px;
        font-size: 0.65rem;
    }
    .detail-body {
        font-size: 0.92rem;
    }
    .detail-nav {
        top: 50px;
    }
    .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: 20px 12px;
    }
    .static-page h1 {
        font-size: 1.2rem;
    }
    .static-page h2 {
        font-size: 0.98rem;
    }
    .static-page p {
        font-size: 0.82rem;
    }

    /* 广告位在小屏缩小 */
    [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;
    }
}
