/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Serif SC', 'ZCOOL XiaoWei', serif;
    color: #2a1a0a;
    background: #1a1510;
    position: relative;
    line-height: 1.8;
}

/* ========== 背景：泛黄纸张 ========== */
.paper-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 90, 43, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(101, 67, 33, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #f4e4bc 0%, #e8d4a8 40%, #d4c098 100%);
}

.paper-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ========== 全屏按钮 ========== */
.fs-btn, .toggle-btn {
    position: fixed;
    top: 20px;
    width: 44px;
    height: 44px;
    border: 2px solid #5a4025;
    background: rgba(244, 228, 188, 0.85);
    color: #3a2a1a;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 100;
    transition: all 0.3s ease;
    font-family: 'Noto Serif SC', serif;
    backdrop-filter: blur(4px);
}

.fs-btn {
    right: 20px;
}

.toggle-btn {
    right: 74px;
}

.fs-btn:hover, .toggle-btn:hover {
    background: #f4e4bc;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(90, 64, 37, 0.3);
}

/* ========== 报纸容器 ========== */
.newspaper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 50px 60px;
    min-height: 100vh;
    position: relative;
}

/* ========== 报头 ========== */
.masthead {
    text-align: center;
    margin-bottom: 10px;
}

.masthead-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b4d2b;
    letter-spacing: 3px;
    padding: 0 20px 8px;
    border-bottom: 1px solid rgba(90, 64, 37, 0.2);
    font-family: 'ZCOOL XiaoWei', serif;
}

.title {
    font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    color: #2a1a0a;
    letter-spacing: 12px;
    padding: 20px 0 8px;
    line-height: 1;
    text-shadow: 1px 1px 0 rgba(90, 64, 37, 0.1);
}

.title-char {
    display: inline-block;
    animation: dropChar 0.8s ease-out both;
}

.title-char:nth-child(1) { animation-delay: 0.1s; }
.title-char:nth-child(2) { animation-delay: 0.2s; }
.title-char:nth-child(3) { animation-delay: 0.3s; }
.title-char:nth-child(4) { animation-delay: 0.4s; }
.title-char:nth-child(5) { animation-delay: 0.5s; }
.title-char:nth-child(6) { animation-delay: 0.6s; }

@keyframes dropChar {
    from {
        opacity: 0;
        transform: translateY(-40px) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.subtitle {
    font-size: 15px;
    color: #6b4d2b;
    letter-spacing: 8px;
    font-family: 'ZCOOL XiaoWei', serif;
    margin-bottom: 16px;
}

.dateline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    color: #4a3520;
    padding: 8px 0 16px;
    font-family: 'ZCOOL XiaoWei', serif;
    border-bottom: 3px double #5a4025;
}

.dateline .date-cn {
    font-size: 16px;
    letter-spacing: 2px;
}

.dateline .weekday {
    font-size: 16px;
    font-weight: 600;
    color: #8b4513;
    padding: 2px 12px;
    border: 1px solid #5a4025;
}

.dateline .date-en {
    font-size: 13px;
    letter-spacing: 1px;
    font-style: italic;
    opacity: 0.75;
}

.divider {
    text-align: center;
    padding: 8px 0;
}

.ornament {
    color: #8b4513;
    font-size: 18px;
    letter-spacing: 4px;
}

/* ========== 内容区：三栏布局 ========== */
.content {
    padding: 20px 0;
}

.columns {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 32px;
}

.col {
    position: relative;
}

.col-main {
    border-left: 1px solid rgba(90, 64, 37, 0.25);
    border-right: 1px solid rgba(90, 64, 37, 0.25);
    padding: 0 32px;
}

/* ========== 左栏 ========== */
.feature-box {
    text-align: center;
    margin-bottom: 28px;
}

.feature-illustration {
    width: 100%;
    aspect-ratio: 4/5;
    border: 2px solid #5a4025;
    background: linear-gradient(135deg, rgba(255,248,220,0.5), rgba(210,180,140,0.2));
    padding: 14px;
    position: relative;
    overflow: hidden;
}

.feature-illustration::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed #5a4025;
    pointer-events: none;
}

.deco-svg {
    width: 100%;
    height: 100%;
}

.feature-caption {
    margin-top: 10px;
    font-size: 13px;
    color: #6b4d2b;
    letter-spacing: 4px;
    font-family: 'ZCOOL XiaoWei', serif;
}

.weather-box {
    border: 1px solid #5a4025;
    padding: 20px 18px;
    background: rgba(255, 248, 220, 0.3);
    position: relative;
}

.weather-box::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(90, 64, 37, 0.3);
    pointer-events: none;
}

.weather-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #3a2a1a;
    letter-spacing: 6px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(90, 64, 37, 0.3);
}

.quote {
    font-size: 14px;
    color: #4a3520;
    line-height: 2;
    text-align: justify;
    font-style: italic;
    padding: 4px 0;
}

.quote-author {
    text-align: right;
    font-size: 12px;
    color: #6b4d2b;
    margin-top: 8px;
    letter-spacing: 1px;
}

/* ========== 中栏：主新闻 ========== */
.lead-story {
    position: relative;
}

.category-label {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 8px;
    color: #f4e4bc;
    background: #5a4025;
    padding: 5px 20px;
    margin-bottom: 16px;
    font-family: 'ZCOOL XiaoWei', serif;
}

.headline {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    line-height: 1.35;
    color: #1a0f05;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #5a4025;
    font-family: 'Noto Serif SC', serif;
}

.headline-text {
    display: inline-block;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #3a2a1a;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.byline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b4d2b;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(90, 64, 37, 0.3);
    font-family: 'ZCOOL XiaoWei', serif;
}

.year-badge {
    font-size: 15px;
    font-weight: 700;
    color: #8b4513;
    letter-spacing: 2px;
    padding: 4px 14px;
    border: 1px solid #8b4513;
    background: rgba(255, 248, 220, 0.4);
}

.story-text {
    font-size: 17px;
    line-height: 2.2;
    color: #2a1a0a;
    text-align: justify;
    text-justify: inter-character;
    min-height: 180px;
}

.story-text p {
    text-indent: 2em;
    margin-bottom: 12px;
}

.story-text p.fade-in {
    animation: fadeInText 1s ease-out;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 简介/详情 分层阅读 ========== */
.desc-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #8b4513;
    padding: 2px 10px;
    border: 1px solid #8b4513;
    background: rgba(255, 248, 220, 0.5);
    margin-right: 10px;
    margin-bottom: 8px;
    font-family: 'ZCOOL XiaoWei', serif;
    vertical-align: middle;
    text-indent: 0;
}

.desc-brief {
    margin-bottom: 8px;
}

.desc-brief p {
    display: inline;
    font-weight: 600;
    color: #1a0f05;
}

.desc-brief p.fade-in,
.desc-details .details-content.fade-in {
    animation: fadeInText 1s ease-out;
}

.details-divider {
    margin: 20px 0 14px;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
    position: relative;
}

.details-divider::after {
    content: '❦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f4e4bc;
    color: #8b4513;
    padding: 0 12px;
    font-size: 14px;
}

.desc-details {
    padding-top: 4px;
}

.desc-details .details-content {
    margin-top: 10px;
    font-size: 16px;
    line-height: 2.1;
    color: #3a2a1a;
    text-indent: 2em;
    text-align: justify;
    text-justify: inter-character;
    background: rgba(255, 248, 220, 0.35);
    padding: 18px 22px;
    border-left: 3px solid #8b4513;
    border-right: 1px dashed rgba(90, 64, 37, 0.25);
    border-top: 1px dashed rgba(90, 64, 37, 0.15);
    border-bottom: 1px dashed rgba(90, 64, 37, 0.15);
}

.desc-details .details-content p {
    margin-bottom: 14px;
}

.desc-details .details-content p:last-child {
    margin-bottom: 0;
}

/* 展开/收起按钮 */
.toggle-details {
    display: block;
    width: 100%;
    margin: 16px 0 8px;
    padding: 10px 14px;
    background: linear-gradient(to right, rgba(139, 69, 19, 0.08), rgba(139, 69, 19, 0.02), rgba(139, 69, 19, 0.08));
    border: 1px dashed rgba(90, 64, 37, 0.5);
    color: #5a4025;
    font-size: 14px;
    font-family: 'ZCOOL XiaoWei', serif;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.toggle-details:hover {
    background: linear-gradient(to right, rgba(139, 69, 19, 0.18), rgba(139, 69, 19, 0.08), rgba(139, 69, 19, 0.18));
    color: #3a2a1a;
    border-color: #8b4513;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(90, 64, 37, 0.15);
}

.toggle-details .td-icon {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.4s ease;
    font-size: 12px;
}

.toggle-details.expanded .td-icon {
    transform: rotate(180deg);
}

.toggle-details.expanded .td-text::before {
    content: '收起详情，';
}

.toggle-details:not(.expanded) .td-text::before {
    content: '';
}

.story-footer {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px dashed rgba(90, 64, 37, 0.3);
    text-align: right;
}

.story-num {
    font-size: 13px;
    color: #6b4d2b;
    letter-spacing: 2px;
    font-family: 'ZCOOL XiaoWei', serif;
}

/* ========== 右栏 ========== */
.side-box {
    margin-bottom: 28px;
}

.side-title {
    text-align: center;
    margin-bottom: 14px;
    position: relative;
}

.side-title-line {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #3a2a1a;
    padding: 4px 16px;
    background: #f4e4bc;
    position: relative;
    z-index: 1;
    font-family: 'ZCOOL XiaoWei', serif;
}

.side-title::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #5a4025;
}

.news-list {
    list-style: none;
    border: 1px solid #5a4025;
    background: rgba(255, 248, 220, 0.25);
}

.news-list li {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(90, 64, 37, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover {
    background: rgba(139, 69, 19, 0.1);
    padding-left: 20px;
}

.news-list li.active {
    background: rgba(139, 69, 19, 0.18);
    border-left: 3px solid #8b4513;
}

.news-year {
    font-size: 12px;
    font-weight: 700;
    color: #8b4513;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

.news-title {
    font-size: 14px;
    color: #3a2a1a;
    font-weight: 600;
    line-height: 1.5;
}

.news-cat {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    margin-top: 4px;
    background: rgba(90, 64, 37, 0.15);
    color: #5a4025;
    letter-spacing: 1px;
}

/* 时间线 */
.trivia-box {
    border: 1px solid #5a4025;
    padding: 14px;
    background: rgba(255, 248, 220, 0.25);
}

.timeline {
    position: relative;
    padding-left: 20px;
    max-height: 280px;
    overflow-y: auto;
}

.timeline::-webkit-scrollbar {
    width: 4px;
}

.timeline::-webkit-scrollbar-track {
    background: rgba(90, 64, 37, 0.1);
}

.timeline::-webkit-scrollbar-thumb {
    background: #5a4025;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, #8b4513, rgba(139, 69, 19, 0.2));
}

.timeline-item {
    position: relative;
    padding-bottom: 14px;
    animation: slideIn 0.5s ease-out both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #f4e4bc;
    border: 2px solid #8b4513;
    transform: rotate(45deg);
}

.timeline-year {
    font-size: 13px;
    font-weight: 700;
    color: #8b4513;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 12px;
    color: #4a3520;
    line-height: 1.6;
    margin-top: 2px;
}

/* ========== 报尾 ========== */
.footer {
    margin-top: 40px;
}

.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b4d2b;
    letter-spacing: 2px;
    font-family: 'ZCOOL XiaoWei', serif;
    padding-top: 8px;
}

.footer-dot {
    color: #8b4513;
}

/* ========== 加载动画 ========== */
.loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #e8d4a8;
    z-index: 999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    position: relative;
}

.ink-drop {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(90, 64, 37, 0.15);
    border-top-color: #5a4025;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.ink-drop::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-top-color: #8b4513;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    color: #5a4025;
    letter-spacing: 6px;
    font-family: 'Ma Shan Zheng', serif;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .columns {
        grid-template-columns: 220px 1fr 260px;
        gap: 20px;
    }
    .newspaper { padding: 30px 24px 40px; }
}

@media (max-width: 900px) {
    .columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .col-main {
        border-left: none;
        border-right: none;
        padding: 20px 0;
        border-top: 2px solid #5a4025;
        border-bottom: 2px solid #5a4025;
    }
    .title { letter-spacing: 6px; }
    .dateline { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 600px) {
    .newspaper { padding: 20px 16px 30px; }
    .masthead-top { flex-direction: column; gap: 4px; text-align: center; }
    .title { font-size: 40px; letter-spacing: 4px; }
    .subtitle { letter-spacing: 4px; font-size: 13px; }
    .fs-btn, .toggle-btn { top: 10px; width: 36px; height: 36px; font-size: 14px; }
    .fs-btn { right: 10px; }
    .toggle-btn { right: 54px; }
}

/* ========== 打印墨水扩散动效 ========== */
.lead-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #8b4513;
    transition: width 0.8s ease;
}

.lead-story.animate-in::before {
    width: 100%;
}
/* Provenance and editorial ranking use the existing newspaper palette. */
.provenance {
    font-size: 11px;
    line-height: 1.7;
    color: #6b4d2b;
    margin: 10px 0 14px;
}
.provenance a { color: #8b4513; text-underline-offset: 3px; }
