/* ========================================
   Home D3 layout: sidebar + tags + hero + picks + latest
   ======================================== */

.home-d3 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* ===== Categories Page (no sidebar) ===== */
.categories-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.categories-hero {
    text-align: center;
    margin: 24px 0 40px;
}

.categories-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c89b3c;
    margin-bottom: 8px;
}

.categories-hero h1 {
    font-family: Georgia, serif;
    font-size: 40px;
    margin: 16px 0 12px;
    color: #1a2744;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.categories-hero h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c89b3c;
    margin: 12px auto 0;
}

.categories-lead {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.categories-count {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    background: linear-gradient(180deg, #fbf7ee 0%, #f5ecd6 100%);
    border: 1px solid #ebdfc2;
    border-radius: 10px;
    padding: 22px 20px 20px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c89b3c 0%, #d4a648 50%, #c89b3c 100%);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(26, 39, 68, 0.10);
    border-color: #c89b3c;
}

.category-card-header h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #1a2744;
}

.category-card-header h2 a {
    color: inherit;
    text-decoration: none;
}

.category-card-header h2 a:hover {
    color: #c89b3c;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.subcategory-list li a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e8dcbf;
    border-radius: 12px;
    color: #6b5a3a;
    font-size: 12px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.subcategory-list li a:hover {
    background: #c89b3c;
    border-color: #c89b3c;
    color: #fff;
}

/* ===== Sidebar ===== */
.home-sidebar {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    padding-right: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.sidebar-title {
    flex: 0 0 auto;
    font-family: Georgia, serif;
    font-size: 18px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c89b3c;
    color: #1a2744;
    letter-spacing: 0.5px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-group {
    margin-bottom: 4px;
}

.sidebar-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.sidebar-link-row:hover {
    background-color: #f5e9d4;
}

.sidebar-toggle {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #888;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-toggle:hover {
    background: #fff;
    color: #c89b3c;
}

.sidebar-toggle:focus-visible {
    outline: 2px solid #c89b3c;
    outline-offset: 1px;
}

.sidebar-toggle.is-open {
    color: #c89b3c;
}

.sidebar-toggle--empty {
    cursor: default;
    pointer-events: none;
}

.sidebar-toggle-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.sidebar-toggle.is-open .sidebar-toggle-icon {
    transform: rotate(-180deg);
}

.sidebar-link {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px 8px 0;
    color: #1a2744;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    min-width: 0;
}

.sidebar-link:hover {
    color: #c89b3c;
}

.sidebar-count {
    font-size: 12px;
    color: #888;
    background: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-subs {
    list-style: none;
    padding: 4px 0 8px 28px;
    margin: 0;
    border-left: 1px solid #eee;
    margin-left: 11px;
}

.sidebar-subs[hidden] {
    display: none;
}

.sidebar-sub-link {
    display: block;
    padding: 5px 12px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

.sidebar-sub-link:hover {
    color: #c89b3c;
}

/* ===== Content area ===== */
.home-content {
    min-width: 0;
}

/* ===== Home Hero + News Ticker (68/32 magazine layout) ===== */
.hero-news-row {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    height: 380px;
}
/* Hero 68/32 row: 满铺大图 + 左下角标题（杂志风） */
.hero-col {
    flex: 0 0 68%;
    min-width: 0;
    position: relative;
}
.hero-col .home-hero { margin-bottom: 0; }
.hero-col .hero-slide {
    display: block;
    min-height: 0;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.hero-col .hero-image {
    display: block;
    overflow: hidden;
    width: 100%;
    height: 380px;
    min-height: 380px;
    position: relative;
}
.hero-col .hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
/* 图片下方暗色渐变遮罩（更弱），确保文字可读 */
.hero-col .hero-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}
/* 文字卡片浮在左下角，极简玻璃面板 */
.hero-col .hero-body {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 560px;
    padding: 20px 24px 18px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.hero-col .hero-body .hero-title {
    font-size: 26px;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}
.hero-col .hero-body .hero-title a {
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(transparent calc(100% - 1px), rgba(255, 255, 255, 0.7) 1px);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}
.hero-col .hero-body .hero-title a:hover {
    color: #fff;
    background-size: 100% 100%;
}
.news-col {
    flex: 0 0 calc(32% - 14px);
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}
.news-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}
.news-col-header h2 { font-size: 16px; font-weight: 700; color: #1a2744; margin: 0; }
.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.news-ticker-track {
    display: flex;
    flex-direction: column;
    animation: ticker-scroll 24s linear infinite;
}
.news-ticker:hover .news-ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.ticker-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.ticker-item:hover { background: #fafafa; }
.ticker-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.ticker-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ticker-tag {
    display: inline-block;
    width: fit-content;
    padding: 1px 6px;
    background: rgba(26,39,68,0.08);
    color: #1a2744;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}
.ticker-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a2744;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ticker-date { font-size: 11px; color: #999; }

@media (max-width: 900px) {
    .hero-news-row { flex-direction: column; height: auto; }
    .hero-col { flex: 1; height: auto; }
    .hero-col .hero-slide { height: auto; }
    .hero-col .hero-image { height: clamp(240px, 50vw, 380px); min-height: 240px; }
    .hero-col .hero-body { padding: 18px 20px; }
    .hero-col .hero-body .hero-title { font-size: 22px; }
    .news-col { flex: 1; height: auto; }
    .news-ticker { max-height: 300px; }
}

/* ===== Home Hero (Carousel) ===== */
.home-hero {
    position: relative;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a2744 0%, #2c3e6b 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(26, 39, 68, 0.15);
}

.hero-track {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0;
    min-height: 220px;
}

.hero-image {
    display: block;
    overflow: hidden;
    height: clamp(200px, 22vw, 260px);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-image:hover img {
    transform: scale(1.04);
}

.hero-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    min-height: 0;
}

.hero-kicker {
    display: inline-block;
    padding: 3px 8px;
    background: #c89b3c;
    color: #1a2744;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 8px;
    width: fit-content;
}

.hero-title {
    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 8px;
}

.hero-title a {
    color: #fff;
    text-decoration: none;
}

.hero-title a:hover {
    color: #f5e9d4;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin-bottom: 14px;
}

.hero-cat {
    color: #f5e9d4;
}

.hero-cta {
    align-self: flex-start;
    padding: 8px 16px;
    background: #c89b3c;
    color: #1a2744;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.hero-cta:hover {
    background: #d4a648;
    transform: translateX(2px);
}

/* Carousel controls */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-nav:focus-visible {
    outline: 2px solid #c89b3c;
    outline-offset: 2px;
}

.hero-nav svg {
    width: 22px;
    height: 22px;
}

.hero-nav--prev {
    left: 12px;
}

.hero-nav--next {
    right: 12px;
}

.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-dot.is-active {
    background: #c89b3c;
    width: 22px;
    border-radius: 4px;
}

@media (max-width: 720px) {
    .hero-slide {
        grid-template-columns: 1fr;
    }
    .hero-body {
        padding: 24px 20px;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-nav {
        width: 32px;
        height: 32px;
    }
    .hero-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-family: Georgia, serif;
    font-size: 24px;
    margin: 0;
    color: #1a2744;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #c89b3c;
}

.section-sub {
    color: #888;
    font-size: 14px;
    font-style: italic;
}

.section-link {
    color: #1a2744;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: #c89b3c;
}

.section-more {
    color: #c89b3c;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.section-more:hover {
    color: #1a2744;
}

/* ===== Card Grid ===== */
.home-picks,
.home-latest {
    margin-bottom: 32px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.card-grid--3col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-grid--onerow {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    grid-auto-rows: 0;
    overflow: hidden;
}
.card-grid--onerow > .card { overflow: hidden; }

/* ===== Picks Carousel ===== */
.picks-carousel { position: relative; margin-bottom: 0; }
.picks-viewport { overflow: hidden; }
.picks-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.picks-track > .card { flex: 0 0 calc(25% - 12px); max-width: calc(25% - 12px); }
.picks-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}
.picks-nav {
    width: 28px; height: 28px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.picks-nav:hover { color: #c9a15d; background: rgba(201,161,93,0.1); }
.picks-nav svg { width: 16px; height: 16px; }
.picks-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.picks-dot {
    width: 8px; height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}
.picks-dot.is-active { background: rgba(201,161,93,0.7); }
@media (max-width: 900px) {
    .picks-track > .card { flex: 0 0 calc(50% - 8px); max-width: calc(50% - 8px); }
}
@media (max-width: 600px) {
    .picks-track > .card { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(26, 39, 68, 0.12);
}

.card-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
}

.home-latest .card-thumb { aspect-ratio: 16 / 9; }

.card-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.05);
}

.card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 39, 68, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-pick {
    position: absolute;
    top: 12px;
    right: 0;
    background: rgba(211, 35, 35, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(211, 35, 35, 0.25);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1a2744;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: #c89b3c;
}

.card-summary {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    color: #999;
    font-size: 12px;
    margin-top: auto;
}

/* ===== Browse by Category ===== */
.home-categories { margin-bottom: 48px; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.cat-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-tile:hover {
    border-color: #c9a15d;
    box-shadow: 0 4px 12px rgba(201,161,93,0.12);
}
.cat-name { font-size: 14px; font-weight: 700; color: #1a2744; }
.cat-count { font-size: 12px; color: #999; }

/* ===== Latest News ===== */
.home-news { margin-bottom: 48px; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s;
}
.news-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.news-thumb { width: 100%; height: 140px; object-fit: cover; display: block; }
.news-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.news-tag {
    display: inline-block;
    width: fit-content;
    padding: 2px 8px;
    background: rgba(26,39,68,0.08);
    color: #1a2744;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
}
.news-title { font-size: 14px; font-weight: 700; color: #1a2744; line-height: 1.4; margin: 0; }
.news-date { font-size: 12px; color: #999; }

/* ===== Newsletter CTA ===== */
.home-cta { margin-bottom: 48px; }
.cta-box {
    background: linear-gradient(135deg, #1a2744 0%, #2a3a5c 100%);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    color: #fff;
}
.cta-box h2 { font-size: 24px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.cta-box p { font-size: 14px; color: rgba(255,255,255,0.75); margin: 0 0 20px; line-height: 1.6; }
.cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #c9a15d;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.cta-btn:hover { background: #b88a3d; }

@media (max-width: 600px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
}

/* ========================================
   Skeleton placeholders (empty state UI)
   ======================================== */

.skeleton-section {
    margin: 0 0 36px;
}

.skeleton-section .skeleton-title {
    height: 22px;
    width: 180px;
    margin: 0 0 16px;
    border-radius: 6px;
}

.skeleton-grid {
    display: grid;
    gap: 20px;
}

.skeleton-grid--hero {
    grid-template-columns: 2fr 1fr;
}

.skeleton-grid--picks {
    grid-template-columns: repeat(4, 1fr);
}

.skeleton-grid--latest {
    grid-template-columns: repeat(3, 1fr);
}

.skeleton-grid--news {
    grid-template-columns: repeat(3, 1fr);
}

.skeleton-grid--cats {
    grid-template-columns: repeat(4, 1fr);
}

.skeleton-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.skeleton-card .skeleton-img {
    height: 180px;
}

.skeleton-card .skeleton-line {
    height: 14px;
    margin: 12px 14px 0;
    border-radius: 4px;
}

.skeleton-card .skeleton-line.short { width: 60%; }
.skeleton-card .skeleton-line.med   { width: 80%; }
.skeleton-card .skeleton-line.full  { width: 92%; }
.skeleton-card .skeleton-line:last-child { margin-bottom: 16px; }

.skeleton-hero {
    /* 由 Razor 传入 --skeleton-hero-h 控制；fallback 为 320px */
    height: var(--skeleton-hero-h, 320px);
    border-radius: 10px;
}

.skeleton-tile {
    height: 110px;
    border-radius: 8px;
}

.skeleton-tile-sm {
    height: 60px;
    border-radius: 8px;
}

/* Shimmer animation */
.skeleton,
.skeleton-title,
.skeleton-card,
.skeleton-hero,
.skeleton-tile,
.skeleton-tile-sm,
.skeleton-line,
.skeleton-img {
    background: linear-gradient(
        90deg,
        #ececec 0%,
        #f5f5f5 50%,
        #ececec 100%
    );
    background-size: 200% 100%;
    animation: yq-shimmer 1.5s ease-in-out infinite;
}

@keyframes yq-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive */
@media (max-width: 1100px) {
    .skeleton-grid--picks { grid-template-columns: repeat(3, 1fr); }
    .skeleton-grid--cats  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .skeleton-grid--hero   { grid-template-columns: 1fr; }
    .skeleton-grid--picks  { grid-template-columns: repeat(2, 1fr); }
    .skeleton-grid--latest { grid-template-columns: repeat(2, 1fr); }
    .skeleton-grid--news   { grid-template-columns: repeat(2, 1fr); }
    .skeleton-grid--cats   { grid-template-columns: repeat(2, 1fr); }
    .skeleton-hero { height: 240px; }
}
@media (max-width: 480px) {
    .skeleton-grid--picks,
    .skeleton-grid--latest,
    .skeleton-grid--news,
    .skeleton-grid--cats { grid-template-columns: 1fr; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .skeleton,
    .skeleton-title,
    .skeleton-card,
    .skeleton-hero,
    .skeleton-tile,
    .skeleton-tile-sm,
    .skeleton-line,
    .skeleton-img {
        animation: none;
        background: #ececec;
    }
}