/* ============================================================
   MMOM News Page - Inspired by lootbar.gg/blog/ layout
   Color system:
     --bg-base:    #0d1117  (page background)
     --bg-card:    #161b24  (card background)
     --bg-section: #111520  (section bg)
     --accent:     #0b85ea  (primary blue)
     --accent-2:   #5edeab  (green, for gradient start)
     --text-1:     #ffffff
     --text-2:     #c0c4cc
     --text-3:     #6b7280
     --border:     #252d3a
     --tag-bg:     #1a2540
   ============================================================ */

/* ── Base ── */

.pager a, .pager span {
    color: #0b74ca !important;
}
.pager a:hover {
    border-color: rgb(11 116 202) !important;
    box-shadow: 0px 0px 6px 1px rgb(11 116 202) !important;
    color: #0b74ca !important;
}
.pager span.active {
    background: rgba(11, 133, 234, 0.85) !important;
    border-color: rgb(11 116 202) !important;
    color: #fff !important;
}
.news-page {
    background: #0d1117 !important;
    min-height: 100vh !important;
    padding-bottom: 60px !important;
}

.news-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Page Header ── */
.news-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 0 20px;
    gap: 20px;
}

.news-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.news-page-title .title-icon {
    font-size: 28px;
    line-height: 1;
}

.news-page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Montserrat';
    letter-spacing: 0.5px;
}

.news-page-title h1 .accent {
    background: linear-gradient(135deg, #5edeab, #0b85ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-page-title p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    width: 100%;
}

/* ── Search Bar ── */
.news-search-bar {
    display: flex;
    align-items: center;
    background: #161b24;
    border: 1px solid #252d3a;
    border-radius: 8px;
    overflow: hidden;
    min-width: 280px;
    transition: border-color 0.2s;
}

.news-search-bar:focus-within {
    border-color: #0b85ea;
}

.news-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
    padding: 10px 14px;
    flex: 1;
    width: 100%;
}

.news-search-bar input::placeholder {
    color: #4b5563;
}

.news-search-bar .search-btn {
    height: 40px;
    background: #0b85ea;
    border: none;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    border-radius: 0;
}

.news-search-bar .search-btn:hover {
    background: #0972c8;
}

/* ── Category Filter Tabs ── */
.news-category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.cat-tab {
    background: #161b24;
    border: 1px solid #252d3a;
    color: #9ca3af;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.cat-tab:hover {
    border-color: #0b85ea;
    color: #ffffff;
}

.cat-tab.active {
    background: linear-gradient(135deg, #5edeab22, #0b85ea33);
    border-color: #0b85ea;
    color: #ffffff;
    font-weight: 600;
}

/* ── Section Header ── */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Montserrat';
}

.section-dot {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #5edeab, #0b85ea);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

.section-count {
    color: #4b5563;
    font-size: 13px;
    margin-left: auto;
}

/* ── Hero Section ── */
.news-hero-section {
    margin-bottom: 48px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Montserrat';
    margin-bottom: 16px;
}

.star-icon {
    color: #ffd633;
    font-size: 20px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px;
    height: 420px;
}

/* Hero Main Card */
.hero-main-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: transform 0.25s;
}

.hero-main-card:hover {
    transform: translateY(-3px);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #161b24;
    position: relative;
}

.hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 32px 24px 24px;
}

.hero-main-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 8px 0;
    font-family: 'Arial', sans-serif;
}

.hero-main-desc {
    color: #c0c4cc;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main-date {
    color: #6b7280;
    font-size: 12px;
}

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hero-sidebar::-webkit-scrollbar {
    display: none;
}

.hero-side-card {
    display: flex;
    background: #161b24;
    border: 1px solid #252d3a;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    flex: 1;
    transition: all 0.2s;
}

.hero-side-card:hover {
    border-color: #0b85ea44;
    box-shadow: 0 0 12px rgba(11, 133, 234, 0.12);
    transform: translateX(3px);
}

.hero-side-img {
    width: 120px;
    min-width: 120px;
    background-size: cover;
    background-position: center;
    background-color: #111520;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-side-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
}

.hero-side-title {
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Montserrat';
}

.hero-side-date {
    color: #4b5563;
    font-size: 11px;
}

/* ── Category Tag (primary) ── */
.card-category-tag {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #5edeab 0%, #0b85ea 100%);
    background: rgba(11, 133, 234, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(11, 133, 234, 0.28);
}

.card-category-tag.small {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ── Subcategory Tag (secondary) ── */
.card-subcategory-tag {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    background: rgba(13, 17, 23, 0.55);
    color: #c9e3ff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    padding: 3px 10px;
    border: 1px solid rgba(11, 133, 234, 0.5);
    border-radius: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.card-subcategory-tag.small {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 标签组容器:让父级与子级标签强制并排显示 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

/* ── Game Hub Cards (icon + name style) ── */
.news-game-hubs {
    margin-bottom: 48px;
}

.ngame-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 4px;
}

.ngame-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #161b24;
    border: 1px solid #1e2533;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.ngame-card:hover {
    transform: translateY(-4px);
    border-color: #2d3748;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.ngame-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: #111520;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
    background-size: cover;
    background-repeat: no-repeat;
}

.ngame-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.ngame-img-wrap.ngame-cover {
    padding: 0;
    background-size: cover;
    background-position: center;
}

.ngame-name {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c0c4cc;
    text-align: center;
    border-top: 1px solid #1e2533;
    line-height: 1.3;
    background: #13181f;
}

/* ── Combined Section ── */
.news-combined-section {
    margin-bottom: 40px;
}

.news-mgame-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.mgame-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #161b24;
    border: 1px solid #1e2533;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
}

.mgame-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
    border-color: #0b85ea44;
}

.mgame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    transition: background 0.2s;
}

.mgame-card:hover .mgame-overlay {
    background: linear-gradient(to top, rgba(11,133,234,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.mgame-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mgame-card.skeleton-card {
    background: linear-gradient(90deg, #161b24 25%, #1e2535 50%, #161b24 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ── CTA Banner ── */
.news-cta-banner {
    background: linear-gradient(135deg, #1a3550 0%, #0d2240 50%, #1a1d40 100%);
    border: 1px solid #0b85ea33;
    border-radius: 14px;
    padding: 32px 40px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.news-cta-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: 100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(94, 222, 171, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.news-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 20px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(11, 133, 234, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    font-family: 'Montserrat';
}

.cta-text p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

.cta-btn {
    background: linear-gradient(135deg, #5edeab, #0b85ea);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff;
}

/* ── News Cards ── */
.news-card {
    display: block;
    background: #161b24;
    border: 1px solid #252d3a;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
}

.news-card:hover {
    border-color: #0b85ea44;
    box-shadow: 0 4px 20px rgba(11, 133, 234, 0.1);
    transform: translateY(-4px);
}

.news-card-img {
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background-size: cover;
    background-position: center;
    background-color: #111520;
    position: relative;
}

.news-card-img .card-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
}

.news-card-body {
    padding: 14px;
}

.news-card-title {
    font-size: 14px;
    color: #e5e7eb;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    font-family: 'Montserrat';
}

.news-card:hover .news-card-title {
    color: #0b85ea;
}

.news-card-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.news-card-date {
    font-size: 11px;
    color: #4b5563;
}

.news-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4b5563;
}

/* Skeleton loader */
.news-card.skeleton .news-card-img {
    background: linear-gradient(90deg, #161b24 25%, #1e2535 50%, #161b24 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.news-card.skeleton::after {
    content: '';
    display: block;
    height: 80px;
    background: linear-gradient(90deg, #161b24 25%, #1e2535 50%, #161b24 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin: 14px;
    border-radius: 4px;
}

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

/* ── Grid Layouts ── */
.news-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.news-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    margin-top: 20px;
}

/* ── Latest Section ── */
.news-latest-section {
    margin-bottom: 40px;
}

/* ── Pagination ── */
.news-pagination {
    display: none; /* hidden - using load more instead */
}

.load-more-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #161b24;
    border: 1px solid #252d3a;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 8px;
}

.load-more-btn:hover {
    border-color: #0b85ea;
    color: #0b85ea;
    background: rgba(11, 133, 234, 0.05);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── All News List Page (.nl-*) ── */
.nl-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 32px 0 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.nl-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nl-title-icon {
    font-size: 26px;
    line-height: 1;
}

.nl-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    font-family: 'Montserrat';
    letter-spacing: 0.3px;
}

.nl-count {
    background: rgba(255,255,255,0.06);
    border: 1px solid #252d3a;
    color: #6b7280;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.nl-filter-bar {
    background: #161b24;
    border: 1px solid #1e2533;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nl-alpha-scroll {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    flex-wrap: wrap;
}
.nl-alpha-scroll::-webkit-scrollbar { display: none; }

.nl-alpha-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid #252d3a;
    color: #6b7280;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Montserrat';
    flex-shrink: 0;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.nl-alpha-tab.all {
    min-width: 44px;
    font-size: 12px;
    font-family: inherit;
    letter-spacing: 0;
}

.nl-alpha-tab:hover {
    border-color: rgba(11,133,234,0.4);
    color: #c0c4cc;
    background: rgba(255,255,255,0.04);
}

.nl-alpha-tab.active {
    background: #0b85ea;
    border-color: #0b85ea;
    color: #fff;
}

.nl-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.nl-type-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nl-type-tab {
    padding: 5px 16px;
    background: transparent;
    border: 1px solid #252d3a;
    color: #6b7280;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.nl-type-tab:hover {
    border-color: rgba(11,133,234,0.4);
    color: #c0c4cc;
}

.nl-type-tab.active {
    background: #0b85ea;
    border-color: #0b85ea;
    color: #fff;
}

.nl-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nl-sort-label {
    color: #4b5563;
    font-size: 12px;
    white-space: nowrap;
}

.nl-sort-select {
    background: #111520;
    border: 1px solid #252d3a;
    color: #9ca3af;
    font-size: 12px;
    padding: 5px 28px 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color 0.2s;
}

.nl-sort-select:hover { border-color: #0b85ea44; }

.nl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.nl-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #4b5563;
    gap: 12px;
    font-size: 14px;
}

.nl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 48px;
    border-top: 1px solid #1e2533;
}

.nl-page-btn,
.nl-page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161b24;
    border: 1px solid #252d3a;
    border-radius: 6px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.nl-page-btn:hover,
.nl-page-num:hover {
    border-color: #0b85ea;
    color: #0b85ea;
}

.nl-page-num.active {
    background: #0b85ea;
    border-color: #0b85ea;
    color: #fff;
}

.nl-page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.nl-page-ellipsis {
    color: #4b5563;
    font-size: 13px;
    padding: 0 4px;
    line-height: 36px;
}

/* ── Other News Section ── */
.on-section {
    margin-bottom: 48px;
}

.on-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.on-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Montserrat';
    display: flex;
    align-items: center;
    gap: 10px;
}

.on-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #5edeab, #0b85ea);
    border-radius: 2px;
    display: inline-block;
    flex-shrink: 0;
}

.on-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0b85ea !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.on-all-link:hover {
    color: #5edeab;
}

.on-all-link svg {
    transition: transform 0.2s;
}

.on-all-link:hover svg {
    transform: translateX(3px);
}

.on-grid-wrap {
    position: relative;
}

.on-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.on-card-hidden {
    display: none;
}

.on-mask {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 160px;
    background: linear-gradient(to bottom, transparent 0%, rgba(13,17,23,0.98) 100%);
    pointer-events: none;
}

.on-more-wrap {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.on-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 36px;
    background: #161b24;
    border: 1px solid #252d3a;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.on-more-btn:hover {
    border-color: #0b85ea;
    color: #0b85ea;
    background: rgba(11, 133, 234, 0.05);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .news-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-mgame-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .ngame-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-main-card {
        height: 300px;
    }

    .hero-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }

    .hero-side-card {
        min-width: 260px;
        flex: 0 0 260px;
    }

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

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

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

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

    .on-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* P2 列表页网格 */
    .nl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* P2 页头搜索框占满 */
    .nl-header {
        flex-direction: column;
        gap: 12px;
    }

    .nl-header .news-search-bar {
        width: 100%;
        min-width: unset;
    }
}

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

    .ngame-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .on-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* P2 字母栏：改为横向滚动，避免 wrap 出 4-5 行 */
    .nl-alpha-scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

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

    /* .on-grid {
        grid-template-columns: 1fr;
    } */

    .nl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-page-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 0 16px;
    }

    .news-page-title h1 {
        font-size: 24px;
    }

    .news-search-bar {
        width: 100%;
        min-width: unset;
    }

    .news-grid-3,
    .news-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .news-cta-banner {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-main-card {
        height: 240px;
    }

    .hero-main-title {
        font-size: 16px;
    }
}

/* ============================================================
   SEARCH PAGE  (.ns-*)
   ============================================================ */

.nc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #252d3a;
    flex-wrap: wrap;
}
.nc-page-btn, .nc-page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161b24;
    border: 1px solid #252d3a;
    border-radius: 6px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.nc-page-btn:hover, .nc-page-num:hover { border-color: #0b85ea; color: #0b85ea; }
.nc-page-num.active { background: #0b85ea; border-color: #0b85ea; color: #fff; }

.ns-header { padding: 28px 0 24px; }
.ns-search-box { margin-bottom: 16px; }
.ns-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: 'Montserrat';
}
.ns-input-wrap { display: flex; flex-direction: column; gap: 10px; }
.ns-main-search { max-width: 600px; width: 100%; }
.ns-main-search input { height: 40px; font-size: 15px; padding: 11px 14px; }
.ns-result-count { color: #9ca3af; font-size: 10px; }
.ns-result-count strong { color: #e5e7eb; }
.ns-result-count em { color: #5edeab; font-style: normal; }

.ns-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    padding: 16px 0 12px;
    border-top: 1px solid #1e2533;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ns-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.ns-result-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #161b24;
    border: 1px solid #1e2533;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.ns-result-card:hover { background: #1a2133; border-color: #2a3550; }

.ns-result-img {
    width: 120px;
    min-width: 120px;
    height: 76px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    background-color: #111520;
    flex-shrink: 0;
}

.ns-result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }

.ns-result-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ns-result-meta .card-tags { margin-bottom: 0; }
.ns-result-date { color: #4b5563; font-size: 12px; }

.ns-result-title {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
    font-family: Montserrat, Montserrat;
}
.ns-result-card:hover .ns-result-title { color: #0b85ea; }

.ns-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ns-empty-icon { margin-bottom: 8px; opacity: 0.4; }
.ns-empty-state h2 { font-size: 22px; font-weight: 700; color: #6b7280; }
.ns-empty-state > p { color: #4b5563; font-size: 15px; }

/* Skeleton for search results */
.ns-skeleton {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}
.ns-skeleton-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #161b24;
    border: 1px solid #1e2533;
    border-radius: 8px;
}
.ns-skeleton-img {
    width: 120px;
    min-width: 120px;
    height: 76px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1a2133 25%, #232d42 50%, #1a2133 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
}
.ns-skeleton-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}
.ns-skeleton-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #1a2133 25%, #232d42 50%, #1a2133 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ============================================================
   ARTICLE DETAIL PAGE  (.nd-*)
   ============================================================ */

.nd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 0 16px;
    font-size: 13px;
    color: #4b5563;
}
.nd-breadcrumb a { color: #6b7280; text-decoration: none; }
.nd-breadcrumb a:hover { color: #0b85ea; }
.nd-breadcrumb .sep { color: #252d3a; }
.nd-breadcrumb .current { color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }

.nd-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.nd-main { min-width: 0; }
.nd-header { margin-bottom: 24px; }

.nd-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nd-category-tag {
    display: inline-block;
    background: linear-gradient(135deg, #5edeab22, #0b85ea33);
    border: 1px solid #0b85ea55;
    color: #5edeab;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.nd-category-tag:hover { background: rgba(94,222,171,0.2); color: #5edeab; }

.nd-title {
    font-size: 30px;
    font-weight: 700;
    color: #f0f2f5;
    line-height: 1.4;
    margin: 0 0 16px;
}

.nd-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #252d3a;
}

.nd-meta-left { display: flex; align-items: center; gap: 16px; }

.nd-date, .nd-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 13px;
}

.nd-share {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nd-share-label { color: #4b5563; font-size: 12px; }

.nd-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #252d3a;
    background: #161b24;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.nd-share-btn:hover { border-color: #0b85ea; color: #fff; }
.nd-share-btn.twitter:hover { background: #1da1f222; border-color: #1da1f2; color: #1da1f2; }
.nd-share-btn.facebook:hover { background: #1877f222; border-color: #1877f2; color: #1877f2; }
.nd-share-btn.reddit:hover { background: #ff451422; border-color: #ff4514; color: #ff4514; }

.nd-cover {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #111520;
}
.nd-cover img { width: 100%; height: auto; display: block; max-height: 480px; object-fit: cover; }

.nd-body {
    font-size: 15px;
    line-height: 1.8;
    color: #d1d5db;
}
.nd-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #f0f2f5;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #252d3a;
    position: relative;
}
.nd-body h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #5edeab, #0b85ea);
}
.nd-body h3 { font-size: 18px; font-weight: 700; color: #e5e7eb; margin: 24px 0 12px; }
.nd-body h4 { font-size: 16px; font-weight: 600; color: #d1d5db; margin: 20px 0 10px; }
.nd-body p { margin-bottom: 16px; }
.nd-body a { color: #0b85ea; text-decoration: underline; }
.nd-body a:hover { color: #5edeab; }
.nd-body img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.nd-body ul, .nd-body ol { margin: 12px 0 16px 20px; }
.nd-body li { margin-bottom: 8px; }
.nd-body blockquote {
    border-left: 3px solid #0b85ea;
    background: #161b24;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    color: #9ca3af;
    font-style: italic;
}
.nd-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.nd-body th { background: #161b24; color: #e5e7eb; padding: 10px 14px; border: 1px solid #252d3a; text-align: left; }
.nd-body td { padding: 10px 14px; border: 1px solid #252d3a; color: #d1d5db; }
.nd-body tr:nth-child(even) td { background: #111520; }
.nd-body code { background: #161b24; color: #5edeab; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.nd-body pre { background: #111520; border: 1px solid #252d3a; border-radius: 8px; padding: 16px; overflow-x: auto; margin: 16px 0; }

.nd-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 32px;
}
.nd-nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #161b24;
    border: 1px solid #252d3a;
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    transition: all 0.2s;
}
.nd-nav-card.empty { opacity: 0; pointer-events: none; }
.nd-nav-card:hover { border-color: #0b85ea44; box-shadow: 0 2px 12px rgba(11,133,234,0.08); }
.nd-nav-card.next { align-items: flex-end; text-align: right; }

.nd-nav-dir {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #0b85ea;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nd-nav-card.next .nd-nav-dir { flex-direction: row-reverse; }
.nd-nav-title { color: #9ca3af; font-size: 13px; line-height: 1.4; }

.active--desc {
    margin-top: 24px !important;
}

@media (max-width: 1024px) {
    .nd-meta-bar {
        margin: 0 10px;
    }

    .nd-prevnext {
        margin: 0 10px;
    }
}

@media (max-width: 640px) {
    .nd-prevnext { grid-template-columns: 1fr; }
    /* .nd-meta-bar { flex-direction: column; align-items: flex-start; } */
    .nd-title { font-size: 24px; }
    .nd-body h2 { font-size: 19px; }
    .ns-results { grid-template-columns: 1fr; }
    .ns-skeleton { grid-template-columns: 1fr; }
    .ns-result-card { flex-direction: column; }
    .ns-result-img { width: 100%; min-width: unset; height: 160px; }
    .ns-header { padding: 18px 0 16px; }
    .ns-title { font-size: 20px; }
}

@media (max-width: 420px) {
    .nd-title { font-size: 21px; }
}
