﻿@charset "UTF-8";
:root {
    --bg-color: #f7f9fa;
    --content-bg: #ffffff;
    --text-main: #222222;
    --text-sub: #666666;
    --text-light: #999999;
    --accent-blue: #0056b3;
    --accent-blue-hover: #003d82;
    --border-gray: #e8ecef;
    --tag-bg: #f1f3f5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-blue);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Portal Layout wrapper */
.portal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header style */
header {
    background-color: var(--content-bg);
    border-bottom: 2px solid var(--accent-blue);
    padding: 15px 0 0 0;
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.portal-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-wrap {
    width: 320px;
}

.search-form {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.search-btn:hover {
    background-color: var(--accent-blue-hover);
}

/* Portal Category Bar */
.portal-nav-bar {
    background: #f8f9fa;
    border-top: 1px solid var(--border-gray);
}

.portal-nav-list {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
}

.portal-nav-list::-webkit-scrollbar {
    display: none;
}

.portal-nav-item a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: bold;
}

.portal-nav-item.active a, .portal-nav-item a:hover {
    color: #fff;
    background-color: var(--accent-blue);
}

/* Portal Main Content Grid (Two-column) */
.portal-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.portal-main {
    flex: 1;
    background-color: var(--content-bg);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 20px;
}

.portal-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-widget {
    background-color: var(--content-bg);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: bold;
    border-left: 4px solid var(--accent-blue);
    padding-left: 8px;
    margin-bottom: 12px;
    color: var(--accent-blue);
}

/* News List Item (Left-Image, Right-Text) */
.news-block-title {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-gray);
    margin-bottom: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-gray);
}

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

.news-thumb {
    width: 140px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: #e9ecef;
    flex-shrink: 0;
    position: relative;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-thumb-tag {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
}

.news-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-title:hover {
    color: var(--accent-blue);
}

.news-summary {
    font-size: 12px;
    color: var(--text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.news-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

/* Sidebar lists */
.sidebar-list-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-gray);
    font-size: 13px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.sidebar-list-item:last-child {
    border-bottom: none;
}

.news-rank {
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background-color: var(--tag-bg);
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
}

.sidebar-list-item:nth-child(-n+3) .news-rank {
    background-color: var(--accent-blue);
    color: #fff;
}

.sidebar-list-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Play page portal design */
.play-section {
    background-color: var(--content-bg);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.portal-player-wrap {
    background-color: #000;
    border-radius: 4px;
    overflow: visible;
    margin-bottom: 15px;
}

.portal-play-info {
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.portal-play-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.portal-play-meta {
    font-size: 13px;
    color: var(--text-sub);
    display: flex;
    gap: 20px;
}

.portal-play-content {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.portal-tag-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.portal-tag-btn {
    background-color: var(--tag-bg);
    color: var(--text-sub);
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 12px;
}

.portal-tag-btn:hover {
    background-color: var(--accent-blue);
    color: #fff;
}

/* Native portal stream ads item styling */
.portal-native-ad {
    background-color: #fffdf2;
}

.ad-badge {
    background-color: #dc3545;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: bold;
}

/* Pagination */
.portal-pager {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.portal-pager a, .portal-pager span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--border-gray);
    background-color: #fff;
    color: var(--text-sub);
    font-size: 13px;
    border-radius: 3px;
}

.portal-pager a:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.portal-pager span.current {
    background-color: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    font-weight: bold;
}

/* Footer Styling */
footer {
    background-color: #2b303c;
    color: #a0a6b5;
    padding: 30px 0;
    margin-top: 30px;
    font-size: 13px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
}

.footer-logo {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.footer-links a {
    color: #a0a6b5;
    margin-left: 20px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
}

.footer-hot-mesh {
    background-color: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.footer-hot-mesh h4 {
    color: #fff;
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-hot-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.footer-hot-item {
    color: #a0a6b5;
    font-size: 12px;
}

.footer-hot-item:hover {
    color: #fff;
}

/* Responsive definitions */
@media screen and (max-width: 768px) {
    .portal-layout {
        flex-direction: column;
    }
    .portal-sidebar {
        width: 100%;
    }
    .search-wrap {
        width: 100%;
        margin-top: 10px;
    }
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-thumb {
        width: 110px;
        height: 70px;
    }
    .news-title {
        font-size: 14px;
    }
    .news-summary {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .floating-ad {
        display: block !important;
        width: 80px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999999 !important;
    }
}






/* GLOBAL FLOATING ADS FIX */
.floating-ad-container {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    transition: top 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
.floating-ad-container-left {
    left: 10px !important;
    right: auto !important;
}
.floating-ad-container-right {
    right: 10px !important;
    left: auto !important;
}

/* Hide standalone ads to prevent FOUC (Flash of Unstyled Content) layout shift */
.floating-ad, .floating-ad-esi {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Reveal and format them correctly once JS wraps them in the container */
.floating-ad-container .floating-ad, 
.floating-ad-container .floating-ad-esi {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 140px !important;
    display: block !important;
    margin: 0 !important;
}

.floating-ad img, .floating-ad-esi img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    display: block !important;
    margin: 0 !important;
}
@media screen and (max-width: 768px) {
    .floating-ad-container .floating-ad, 
    .floating-ad-container .floating-ad-esi {
        width: 110px !important;
    }
}

