* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --news-primary: #d94645;
    --news-secondary: #1c2a44;
    --news-bg: #f4f6fb;
    --news-text: #111827;
    --news-muted: #6b7280;
    --news-border: #e5e7eb;
    --news-card: #ffffff;
}

body.news-body {
    font-family: "Noto Serif SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
    background: var(--news-bg);
    color: var(--news-text);
    line-height: 1.7;
}

.news-header {
    border-bottom: 1px solid var(--news-border);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    background: #f8fafc;
    font-size: 13px;
    color: #475569;
}

.ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.ticker-label {
    background: var(--news-primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
}

.ticker-content {
    display: flex;
    gap: 30px;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: var(--news-muted);
}

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.logo {
    text-decoration: none;
}

.logo-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--news-primary);
}

.logo-sub {
    display: block;
    font-size: 12px;
    color: var(--news-muted);
}

.main-nav {
    display: flex;
    gap: 12px;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.nav-link.active,
.nav-link:hover {
    background: var(--news-secondary);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--news-border);
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--news-text);
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--news-border);
    border-radius: 999px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 8px 14px;
    outline: none;
}

.search-btn {
    border: none;
    background: var(--news-primary);
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
}

.news-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.headline-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.headline-image {
    position: relative;
    padding-top: 56%;
}

.headline-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headline-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
}

.headline-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.badge-hot {
    background: var(--news-primary);
}

.headline-content h1 {
    font-size: 28px;
    margin: 12px 0;
}

.headline-content p {
    color: #e2e8f0;
    margin-bottom: 12px;
}

.headline-meta span {
    margin-right: 12px;
    color: #cbd5f5;
    font-size: 13px;
}

.headline-side {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.headline-side h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.side-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid var(--news-border);
}

.side-item:last-child {
    border-bottom: none;
}

.side-thumb {
    width: 80px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
}

.side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.side-info p {
    font-size: 12px;
    color: var(--news-muted);
}

.news-section {
    margin-bottom: 30px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: 20px;
}

.section-head a {
    text-decoration: none;
    color: var(--news-primary);
    font-size: 14px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.news-card.compact {
    flex-direction: row;
}

.news-thumb {
    width: 100%;
    padding-top: 60%;
    position: relative;
    display: block;
}

.news-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card.compact .news-thumb {
    width: 40%;
    padding-top: 0;
    height: 120px;
}

.news-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-title {
    font-size: 18px;
    text-decoration: none;
    color: var(--news-text);
}

.news-meta span {
    margin-right: 10px;
    font-size: 12px;
    color: var(--news-muted);
}

.news-list .news-row {
    display: flex;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    overflow: hidden;
}

.row-thumb {
    width: 260px;
    height: 160px;
    overflow: hidden;
}

.row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-body {
    padding: 16px;
}

.row-title {
    font-size: 20px;
    text-decoration: none;
    color: var(--news-text);
}

.row-meta span {
    margin-right: 10px;
    font-size: 12px;
    color: var(--news-muted);
}

.row-desc {
    color: var(--news-muted);
    margin-top: 6px;
}

.filter-chip {
    border: 1px solid var(--news-border);
    background: transparent;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
}

.filter-chip.active {
    background: var(--news-primary);
    color: #fff;
    border-color: var(--news-primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-btn,
.pagination-page {
    padding: 6px 12px;
    border: 1px solid var(--news-border);
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--news-text);
}

.pagination-page.active {
    background: var(--news-primary);
    color: #fff;
    border-color: var(--news-primary);
}

.news-detail {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.detail-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.detail-meta span {
    margin-right: 12px;
    color: var(--news-muted);
}

.detail-media {
    margin: 20px 0;
    position: relative;
}

.detail-media img {
    width: 100%;
    border-radius: 12px;
    max-height: 420px;
    object-fit: cover;
}

.detail-summary,
.detail-player {
    background: #fff7f7;
    border: 1px solid #ffe4e4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-summary h2,
.detail-player h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--news-primary);
}

.summary-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.summary-tags span {
    padding: 4px 12px;
    background: rgba(217,70,69,0.08);
    border-radius: 999px;
    font-size: 12px;
    color: var(--news-primary);
}

.summary-list {
    list-style: none;
    margin-bottom: 12px;
}

.summary-list li {
    font-size: 14px;
    color: var(--news-muted);
    margin-bottom: 6px;
}

.summary-desc {
    font-size: 14px;
    color: var(--news-text);
}

.detail-media img {
    width: 100%;
    border-radius: 12px;
}

.media-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--news-primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
}

.news-player {
    margin: 20px 0;
    background: #0f172a;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
}

.news-player .player-screen {
    aspect-ratio: 16 / 9;
    min-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.news-player .player-screen > div {
    border-radius: 12px !important;
}

.player-empty {
    padding: 30px;
    text-align: center;
    color: var(--news-muted);
    background: #fff7f7;
    border: 1px dashed #fecaca;
    border-radius: 12px;
}

.control-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.control-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.control-btn.active {
    background: var(--news-primary);
}

.detail-content h2 {
    margin-bottom: 12px;
}

.detail-content .content-text {
    color: var(--news-text);
}

.news-footer {
    background: #111a2c;
    color: #cbd5f5;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-column h4 {
    margin-bottom: 8px;
}

.footer-column a {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 4px;
}

.footer-copy {
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .news-hero {
        grid-template-columns: 1fr;
    }
    .news-list .news-row {
        flex-direction: column;
    }
    .row-thumb {
        width: 100%;
    }
    .header-main {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .logo {
        order: 1;
    }
    .nav-toggle {
        display: inline-flex;
        order: 2;
    }
    .main-nav {
        order: 3;
        width: 100%;
    }
    .search-form {
        order: 4;
        width: 100%;
    }
    .main-nav {
        display: none;
        flex-direction: column;
        max-height: 70vh;
        overflow-y: auto;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--news-border);
        padding: 12px 0;
        position: absolute;
        left: 0;
        top: 100%;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
        z-index: 10;
    }
    .main-nav[data-open="true"] {
        display: flex;
    }
    .nav-link {
        padding: 10px 20px;
        border-radius: 0;
    }
    .nav-toggle {
        display: inline-flex;
    }
    .search-form {
        width: 100%;
    }
    .search-input {
        flex: 1;
    }
}

