:root {
    --bg-1: #0f0c08;
    --bg-2: #16110c;
    --bg-3: #1d1711;
    --gold: #d4a24c;
    --gold-bright: #f0c674;
    --gold-deep: #b87333;
    --gold-glow: rgba(212, 162, 76, 0.25);
    --border: rgba(212, 162, 76, 0.15);
    --border-hover: rgba(212, 162, 76, 0.4);
    --text: #ede5d8;
    --text-dim: rgba(237, 229, 216, 0.7);
    --text-mute: rgba(237, 229, 216, 0.4);
    --font-mono: "SF Mono", "Consolas", "Monaco", monospace;
    /* 栏目语义色：铁路图文 = 绿色 */
    --accent-green: #2ecc71;
    --accent-green-dim: rgba(46, 204, 113, 0.2);
}

body {
    background: var(--bg-1);
    color: var(--text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-image: 
        linear-gradient(rgba(212, 162, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 162, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.home-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px 80px; position: relative; z-index: 2; }

/* ========== 沉浸式头部 ========== */
.contents-hero { text-align: center; padding: 80px 0 40px; position: relative; }
.contents-hero::after {
    content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.contents-badge {
    display: inline-flex; align-items: center; gap: 12px; padding: 8px 28px;
    background: rgba(212, 162, 76, 0.05); border: 1px solid var(--border-hover);
    border-radius: 100px; margin-bottom: 28px; box-shadow: 0 0 30px rgba(212, 162, 76, 0.08);
}
.contents-badge-tag {
    font-size: 1rem; font-weight: 600; color: var(--gold);
    letter-spacing: 6px; text-indent: 6px; font-family: "STKaiti", "KaiTi", "楷体", serif;
}
.contents-badge-year {
    font-size: 0.85rem; font-weight: 700; color: var(--gold-bright);
    letter-spacing: 1.5px; font-family: var(--font-mono);
}
.contents-title {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.15;
    letter-spacing: -0.03em; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 20%, var(--gold) 60%, var(--gold-bright) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contents-subtitle { font-size: 1.05rem; color: var(--text-dim); max-width: 620px; margin: 0 auto; line-height: 1.8; }

/* ========== 极简统计栏 ========== */
.stats-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin: 40px 0 50px; padding: 20px 0; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-value {
    font-size: 1.8rem; font-weight: 800; color: var(--gold-bright);
    font-family: var(--font-mono); line-height: 1; text-shadow: 0 0 20px rgba(212, 162, 76, 0.3);
}
.stat-label {
    font-size: 0.75rem; color: var(--text-mute);
    letter-spacing: 2px; font-family: var(--font-mono); text-transform: uppercase;
}

/* ========== 筛选工具栏 ========== */
.filter-toolbar {
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
    padding: 24px 28px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 20px;
}
.filter-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-label {
    font-size: 0.8rem; color: var(--text-mute); font-family: var(--font-mono);
    letter-spacing: 1px; width: 48px; flex-shrink: 0;
}
.lines-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.line-btn {
    padding: 8px 18px; background: transparent; border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 6px;
}
.line-btn:hover { border-color: var(--accent-green); color: var(--accent-green); background: var(--accent-green-dim); }
.line-btn.active { background: var(--gold); color: #0f0c08; border-color: var(--gold); font-weight: 600; }

.filter-select {
    padding: 8px 14px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-size: 0.85rem; cursor: pointer; transition: border-color 0.2s; min-width: 140px;
}
.filter-select:focus { outline: none; border-color: var(--gold); }
.filter-select option { background: #1a1510; color: var(--text); }

.search-box { display: flex; gap: 12px; flex: 1; min-width: 240px; }
.search-input {
    flex: 1; padding: 10px 16px; background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 0.9rem; transition: border-color 0.2s;
}
.search-input:focus { outline: none; border-color: var(--gold); }
.search-input::placeholder { color: var(--text-mute); }
.search-btn {
    padding: 10px 20px; background: var(--gold); border: none; border-radius: 8px;
    color: #0f0c08; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 6px;
}
.search-btn:hover { background: var(--gold-bright); transform: translateY(-1px); }

.clear-filters {
    padding: 6px 16px; color: var(--text-mute); text-decoration: none;
    font-size: 0.8rem; border: 1px solid transparent; transition: all 0.2s;
    display: flex; align-items: center; gap: 4px;
}
.clear-filters:hover { color: #e74c3c; }

/* ========== 热门标签 ========== */
.hot-tags-section { margin-bottom: 40px; }
.hot-tags-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; color: var(--text-mute); font-family: var(--font-mono);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.hot-tags-title i { color: var(--accent-green); }
.hot-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 100px;
    font-size: 0.82rem; font-weight: 500; text-decoration: none;
    border: 1px solid var(--border); color: var(--text-dim);
    background: rgba(46, 204, 113, 0.04);
    transition: all 0.2s ease;
}
.hot-tag:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: var(--accent-green-dim);
    transform: translateY(-1px);
}
.hot-tag .tag-count {
    font-size: 0.7rem; font-family: var(--font-mono);
    color: var(--text-mute); padding: 1px 6px;
    background: rgba(255,255,255,0.05); border-radius: 100px;
}
.hot-tag:hover .tag-count { color: var(--accent-green); background: rgba(46, 204, 113, 0.15); }

/* ========== 内容卡片（左图右文） ========== */
.contents-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; margin-bottom: 50px;
}
.content-card {
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: row; position: relative;
    min-height: 220px;
}
.content-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-deep), transparent);
    opacity: 0; transition: opacity 0.3s ease; z-index: 3;
}
.content-card:hover {
    border-color: var(--border-hover); transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.content-card:hover::before { opacity: 1; }

.content-image {
    width: 40%; aspect-ratio: 4 / 3; overflow: hidden;
    background: #1a1510; position: relative; flex-shrink: 0;
    align-self: stretch;
}
.content-image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.content-card:hover .content-image img { transform: scale(1.05); }
.content-image .no-image {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: var(--text-mute); font-size: 2rem;
}

/* 图片上的分类标签 */
.content-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; gap: 6px; flex-wrap: wrap; z-index: 2;
}
.content-badge {
    padding: 3px 8px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 600; color: #fff;
    background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; gap: 4px;
    letter-spacing: 0.3px;
}
.badge-top { background: rgba(231, 76, 60, 0.85); border-color: rgba(231, 76, 60, 0.5); }
.badge-featured { background: rgba(212, 162, 76, 0.9); color: #0f0c08; border-color: var(--gold-deep); }

/* 右侧信息 */
.content-info {
    flex: 1; padding: 20px; display: flex; flex-direction: column; min-width: 0;
}
.content-category {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 600; font-family: var(--font-mono);
    color: var(--accent-green); letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 10px;
}
.content-title {
    font-size: 1.05rem; font-weight: 700; color: var(--text);
    line-height: 1.4; margin: 0 0 10px 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.content-excerpt {
    font-size: 0.85rem; color: var(--text-mute); line-height: 1.65;
    margin: 0 0 14px 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.content-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px; border-top: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-mute);
    gap: 10px; flex-wrap: wrap;
}
.content-date {
    display: flex; align-items: center; gap: 5px;
    font-family: var(--font-mono); font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.content-date i { color: var(--accent-green); }
.content-stats { display: flex; gap: 14px; }
.content-stats .stat-item {
    display: flex; align-items: center; gap: 4px;
    font-family: var(--font-mono); font-size: 0.75rem;
}
.content-stats i { color: var(--text-mute); }
.content-card:hover .content-stats i { color: var(--accent-green); }

/* 阅读按钮 */
.btn-read {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px;
    background: rgba(212, 162, 76, 0.08); border: 1px solid var(--border);
    color: var(--gold); text-decoration: none; font-size: 0.8rem;
    font-weight: 600; transition: all 0.25s ease;
}
.btn-read:hover { background: var(--gold); color: #0f0c08; border-color: var(--gold); }

/* ========== 火车车厢 ========== */
.hot-train-section { margin-bottom: 50px; }
.hot-train-container {
    background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
    padding: 28px; position: relative; overflow: hidden;
}
.hot-train-container::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep), transparent);
}
.hot-train-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; color: var(--text-mute); font-family: var(--font-mono);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.hot-train-title i { color: var(--accent-green); }

.train-carriage-wrapper { width: 100%; display: flex; justify-content: center; }

.train-carriage {
    position: relative; width: 100%; height: 260px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 2px solid rgba(212, 162, 76, 0.25);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(20, 55, 30, 0.85) 0%, rgba(15, 40, 22, 0.9) 100%);
}

/* 金色腰带 */
.train-top-belt, .train-bottom-belt {
    position: absolute; width: 100%; left: 0;
    background: linear-gradient(to right,
        rgba(212, 162, 76, 0.6) 0%,
        rgba(240, 198, 116, 0.85) 50%,
        rgba(212, 162, 76, 0.6) 100%);
    box-shadow: 0 2px 8px rgba(212, 162, 76, 0.3);
    z-index: 5;
}
.train-top-belt { top: 40px; height: 10px; }
.train-bottom-belt { top: 210px; height: 14px; }

/* 车窗容器 */
.train-windows-container {
    position: absolute; top: 56px; left: 0; right: 0; height: 140px;
    z-index: 4; display: flex; justify-content: center; align-items: center;
    gap: 40px; padding: 0 50px; overflow: visible;
}

/* 车窗 */
.train-window {
    width: 160px; height: 140px; flex-shrink: 0;
    border-radius: 14px; overflow: hidden;
    background: rgba(0, 10, 20, 0.8);
    border: 2px solid rgba(212, 162, 76, 0.35);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.4);
    position: relative; text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.train-window:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 8px 25px rgba(212, 162, 76, 0.25);
}
.window-content { width: 100%; height: 100%; position: relative; overflow: hidden; }
.window-content img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.train-window:hover .window-content img { transform: scale(1.08); }

.window-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 10px; opacity: 0; transition: opacity 0.3s ease;
}
.train-window:hover .window-overlay { opacity: 1; }
.window-title {
    color: #fff; font-size: 0.78rem; font-weight: 600;
    line-height: 1.3; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.window-stats {
    color: var(--gold); font-size: 0.7rem;
    font-family: var(--font-mono); letter-spacing: 0.5px;
}

.window-placeholder {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-mute); font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(46, 204, 113, 0.03));
}

/* 方向牌 */
.train-destination-board {
    position: absolute; top: 202px; left: 50%; transform: translateX(-50%);
    width: 160px; height: 30px; z-index: 6;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    border-radius: 6px; border: 1px solid var(--gold-bright);
    box-shadow: 0 4px 12px rgba(212, 162, 76, 0.4);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.destination-image { width: 100%; height: 100%; object-fit: cover; }
.destination-text {
    color: #0f0c08; font-size: 0.8rem; font-weight: 700;
    font-family: var(--font-mono); letter-spacing: 1px;
}

.train-description {
    text-align: center; color: var(--text-mute); font-size: 0.78rem;
    margin-top: 16px; font-family: var(--font-mono); letter-spacing: 0.5px;
}
.train-description span { color: var(--gold); font-weight: 700; }

/* ========== 空状态 ========== */
.empty-state {
    grid-column: 1 / -1; text-align: center; padding: 100px 20px;
    border: 1px dashed var(--border); border-radius: 16px; background: var(--bg-2);
}
.empty-state i { font-size: 3rem; color: var(--text-mute); margin-bottom: 20px; }
.empty-state h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 10px; }
.empty-state p { color: var(--text-mute); margin-bottom: 24px; }
.empty-state .btn-read { display: inline-flex; padding: 10px 28px; font-size: 0.88rem; }

/* ========== 分页 ========== */
.pagination-wrap { display: flex; justify-content: center; margin-top: 60px; }
.pagination { display: flex; gap: 6px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim);
    text-decoration: none; font-size: 0.85rem; font-family: var(--font-mono); transition: all 0.2s ease;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); background: rgba(212, 162, 76, 0.05); }
.pagination .current { background: var(--gold); color: #0f0c08; border-color: var(--gold); font-weight: 600; }
.pagination .disabled { opacity: 0.3; cursor: not-allowed; }
.pagination .ellipsis { border: none; color: var(--text-mute); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .home-wrap { padding: 0 24px 60px; }
    .contents-grid { gap: 18px; }
    .train-carriage { height: 220px; }
    .train-top-belt { top: 32px; height: 8px; }
    .train-windows-container { top: 46px; height: 120px; gap: 30px; padding: 0 40px; }
    .train-window { width: 130px; height: 120px; }
    .train-bottom-belt { top: 178px; height: 12px; }
    .train-destination-board { top: 172px; width: 140px; height: 26px; }
}
@media (max-width: 900px) {
    .contents-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 768px) {
    .home-wrap { padding: 0 16px 40px; }
    .contents-hero { padding: 60px 0 30px; }
    .contents-title { font-size: 1.8rem; }
    .stats-bar { gap: 20px; margin: 30px 0; }
    .stat-value { font-size: 1.4rem; }
    .filter-row { flex-direction: column; align-items: flex-start; }
    .filter-label { width: auto; }
    .filter-select { width: 100%; }
    .search-box { min-width: 100%; }
    .content-card { flex-direction: column; min-height: auto; }
    .content-image { width: 100%; aspect-ratio: 16 / 9; }
    .content-info { padding: 18px; }
    
    .train-carriage { height: 180px; }
    .train-top-belt { top: 24px; height: 6px; }
    .train-windows-container { top: 36px; height: 100px; gap: 20px; padding: 0 25px; }
    .train-window { width: 100px; height: 100px; border-radius: 10px; }
    .train-bottom-belt { top: 146px; height: 10px; }
    .train-destination-board { top: 141px; width: 120px; height: 22px; }
    .destination-text { font-size: 0.72rem; }
    .hot-train-container { padding: 20px; }
}
@media (max-width: 480px) {
    .home-wrap { padding: 0 14px 30px; }
    .filter-toolbar { padding: 16px; }
    .line-btn { padding: 6px 12px; font-size: 0.8rem; }
    .content-title { font-size: 1rem; }
    
    .train-carriage { height: 150px; }
    .train-top-belt { top: 18px; height: 5px; }
    .train-windows-container { top: 28px; height: 80px; gap: 12px; padding: 0 15px; }
    .train-window { width: 80px; height: 80px; border-radius: 8px; }
    .train-bottom-belt { top: 118px; height: 8px; }
    .train-destination-board { top: 114px; width: 100px; height: 20px; }
    .destination-text { font-size: 0.65rem; }
    .window-title { font-size: 0.7rem; }
    
    .pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 8px; font-size: 0.75rem; }
}
