/* ============================================================
   mcnew.css - PC 端 MSN 风格重构
   ============================================================ */

/* ===== 全局 ===== */
body.mcnew-body {
    background-color: #1a1a1a !important;
    background-image: var(--mcnew-bg-image, none) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-image 0.6s ease-in-out;
}

/* ===== 顶栏：全透明 ===== */
/* ============================================================
   顶栏：磨砂 + 固定顶部
   ============================================================ */
body.mcnew-body .moucuo-banner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    
    /* 🔥 磨砂半透明背景（亮色） */
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    
    /* 🔥 底边线（浅色） */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

/* 🔥 暗色模式 */
body.dark-mode .moucuo-banner,
body.mcnew-body.dark-mode .moucuo-banner {
    background: rgba(30, 30, 30, 0.75) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
/* 顶栏文字：亮色模式用深色 */
body.mcnew-body .banleft,
body.mcnew-body .banleft b,
body.mcnew-body .banleft span,
body.mcnew-body .banleft a,
body.mcnew-body .banright a {
    color: #333 !important;
    text-shadow: none !important;
}

body.mcnew-body .banright a:hover {
    color: #4a90e2 !important;
}

/* 暗色模式：文字浅色 */
body.dark-mode .banleft,
body.dark-mode .banleft b,
body.dark-mode .banleft span,
body.dark-mode .banleft a,
body.dark-mode .banright a {
    color: #e5e7eb !important;
}

body.dark-mode .banright a:hover {
    color: #5ab0d9 !important;
}
body.mcnew-body .banright a:hover { color: #fff !important; opacity: 0.8; }
body.mcnew-body .time-card {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}
body.mcnew-body .time-display { color: #fff !important; }

/* ============================================================
   首屏（100vh）
   ============================================================ */
.mcnew-hero {
    /* 🔥 39px = banner 高度（1px border + 38px 内容） */
    height: calc(100vh - 1px - -11px);
    /* 其他不变 */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12vh;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* ===== 搜索框 ===== */
.mcnew-search-wrap {
    width: 100%;
    max-width: 640px;
    position: relative;
    margin-bottom: 30px;
    z-index: 100;
}
.mcnew-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    height: 56px;
    overflow: hidden;
    transition: border-radius 0.2s ease;
    position: relative;
    z-index: 2;
}
.mcnew-search-wrap.open .mcnew-search-box {
    border-radius: 12px 12px 0 0;
}
.mcnew-engine-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px 0 18px;
    height: 32px;
    border-right: 1px solid #e8e8e8;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    user-select: none;
}
.mcnew-engine-btn:hover { background: #f5f5f5; }
.mcnew-engine-btn .iconfont-color,
.mcnew-engine-btn .iconfont { font-size: 22px; display: inline-flex; align-items: center; }
.mcnew-engine-arrow { font-size: 10px; color: #999; transition: transform 0.2s; }
.mcnew-engine-btn.open .mcnew-engine-arrow { transform: rotate(180deg); }

.mcnew-input-wrap {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}
.mcnew-search-input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 16px;
    color: #333;
    background: transparent;
    box-sizing: border-box;
}
.mcnew-search-input::placeholder { color: #aaa; }

.mcnew-hotwords-ticker {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 0.2s;
}
.mcnew-hotwords-text {
    font-size: 16px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: opacity 0.4s ease;
    opacity: 1;
}
.mcnew-hotwords-text.fade-out { opacity: 0; }
.mcnew-search-wrap.focused .mcnew-hotwords-ticker,
.mcnew-search-wrap.has-value .mcnew-hotwords-ticker {
    opacity: 0;
    pointer-events: none;
}

.mcnew-search-btn {
    width: 76px;
    height: 100%;
    border: none;
    background: #4a90e2;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}
.mcnew-search-btn:hover { background: #357ab8; }
.mcnew-search-btn .iconfont { font-size: 20px; color: #fff; }

/* ===== 下拉 ===== */
.mcnew-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mcnew-engine-list { padding: 8px 0; max-height: 60vh; overflow-y: auto; }
.mcnew-engine-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
    position: relative;
}
.mcnew-engine-item:hover { background: #f5f5f5; }
.mcnew-engine-item.active { background: #e8f5e9; color: #50835A; }
.mcnew-engine-item .iconfont-color,
.mcnew-engine-item .iconfont { font-size: 20px; }
.mcnew-engine-item .mcnew-engine-edit {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.mcnew-engine-item:hover .mcnew-engine-edit { opacity: 1; }
.mcnew-engine-item .mcnew-engine-edit:hover { background: #e0e0e0; color: #333; }

.mcnew-panel { display: flex; flex-direction: column; max-height: 70vh; }
.mcnew-panel-scroll { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.mcnew-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2;
}
.mcnew-panel-header .mcnew-panel-title { display: flex; align-items: center; gap: 6px; }
.mcnew-panel-header .mcnew-panel-clear {
    cursor: pointer;
    color: #999;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s;
}
.mcnew-panel-header .mcnew-panel-clear:hover { background: #f0f0f0; color: #333; }
.mcnew-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
    gap: 10px;
}
.mcnew-item:hover { background: #f5f5f5; }
.mcnew-item .mcnew-item-rank {
    width: 24px;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
    color: #999;
}
.mcnew-item.top1 .mcnew-item-rank { color: #e74c3c; }
.mcnew-item.top2 .mcnew-item-rank { color: #e67e22; }
.mcnew-item.top3 .mcnew-item-rank { color: #f1c40f; }
.mcnew-item .mcnew-item-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mcnew-item .mcnew-item-hot { color: #bbb; font-size: 12px; flex-shrink: 0; }
.mcnew-item .mcnew-item-icon { color: #ccc; font-size: 14px; flex-shrink: 0; }

/* ===== 快捷方式 ===== */
.mcnew-shortcuts {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
    max-width: 880px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1;
}
.mcnew-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    color: #fff;
}
.mcnew-shortcut:hover {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}
.mcnew-shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.2s;
}
.mcnew-shortcut:hover .mcnew-shortcut-icon { transform: scale(1.05); }
.mcnew-shortcut-icon img { width: 28px; height: 28px; object-fit: contain; }
.mcnew-shortcut-name {
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    text-align: center;
    font-weight: 500;
}
.mcnew-shortcut.mcnew-add .mcnew-shortcut-icon {
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    font-size: 26px;
    font-weight: 300;
}
.mcnew-shortcut-menu-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
}
.mcnew-shortcut:hover .mcnew-shortcut-menu-btn { display: flex; }
.mcnew-shortcut-menu-btn:hover { background: rgba(0, 0, 0, 0.6); }
.mcnew-shortcut-menu {
    position: fixed;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 6px 0;
    min-width: 120px;
    z-index: 99999;
    display: none;
}
.mcnew-shortcut-menu-item {
    padding: 10px 16px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.mcnew-shortcut-menu-item:hover { background: #f5f5f5; }
.mcnew-shortcut-menu-item.danger { color: #e74c3c; }

/* ============================================================
   tab + 瀑布流总容器
   ============================================================ */
.mcnew-feed-content {
    width: min(1620px, calc(100vw - 40px));
    margin: -56px auto 0;
    background: #f5f6f8;
    border-radius: 12px;
    box-shadow: 0 0 50px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    padding: 0 20px 40px;
    box-sizing: border-box;
}

/* tab 容器：sticky */
.mcnew-nav-wrap {
    position: sticky;
    top: 39px;
    z-index: 10;
    background: rgba(245, 246, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 0 -20px;
    padding: 0 20px;
    border-radius: 12px 12px 0 0;
}
.mcnew-nav {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mcnew-tab {
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 11px;
    transition: all 0.2s;
    user-select: none;
}
.mcnew-tab:hover { background: rgba(0, 0, 0, 0.05); }
.mcnew-tab.active { background: #57647380; color: #7ea1f7 !important; }

/* 内容区 */
.mcnew-content { padding: 20px 0; }
.mcnew-feed-panel { display: none; }
.mcnew-feed-panel.active { display: block; }

/* 瀑布流网格 */
.mcnew-feed-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* ============================================================
   卡片
   ============================================================ */
.mcnew-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 300px;
}
.mcnew-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}
.mcnew-card.mcnew-card-carousel { grid-column: span 3; }
.mcnew-card.mcnew-card-wide { grid-column: span 2; }
/* ===== 轮播卡片：用 absolute 让 Swiper 脱离 Grid ===== */
.mcnew-card.mcnew-card-carousel {
    grid-column: span 3;
    grid-row: span 1;
    height: 300px;
    position: relative;      /* 🔥 建立定位上下文 */
    overflow: hidden;        /* 🔥 裁掉溢出 */
    padding: 0;
}

.mcnew-card.mcnew-card-carousel .mcnew-carousel-swiper {
    position: absolute;      /* 🔥 脱离 Grid */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
}

.mcnew-card.mcnew-card-carousel .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.mcnew-card.mcnew-card-carousel .swiper-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.mcnew-card.mcnew-card-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 分页圆点 */
.mcnew-card.mcnew-card-carousel .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mcnew-card.mcnew-card-carousel .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.mcnew-card.mcnew-card-carousel .swiper-pagination-bullet-active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* 导航箭头 */
.mcnew-card.mcnew-card-carousel .swiper-button-prev,
.mcnew-card.mcnew-card-carousel .swiper-button-next {
    color: #fff;
    z-index: 10;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.mcnew-card.mcnew-card-carousel .swiper-button-prev {
    left: 10px;
}

.mcnew-card.mcnew-card-carousel .swiper-button-next {
    right: 10px;
}

.mcnew-card.mcnew-card-carousel .swiper-button-prev::after,
.mcnew-card.mcnew-card-carousel .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
}
.mcnew-card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #f0f2f5;
    display: block;
    flex-shrink: 0;
}
.mcnew-card-img-placeholder {
    width: 100%;
    height: 170px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #fff;
    flex-shrink: 0;
}
.mcnew-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}
.mcnew-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mcnew-card-meta {
    font-size: 11px;
    color: #8c9aa8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.mcnew-card-source { color: #4a90e2; font-weight: 500; }

/* 天气卡片 */
.mcnew-weather-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    min-height: 300px;
    box-sizing: border-box;
    justify-content: space-between;
}
.mcnew-weather-city { font-size: 14px; opacity: 0.9; }
.mcnew-weather-main { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.mcnew-weather-icon { font-size: 48px; line-height: 1; }
.mcnew-weather-temp { font-size: 40px; font-weight: 200; line-height: 1; }
.mcnew-weather-desc { font-size: 13px; opacity: 0.9; }
.mcnew-weather-forecast {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.mcnew-weather-day { flex: 1; text-align: center; font-size: 11px; opacity: 0.9; }
.mcnew-weather-day .mcnew-weather-day-name { margin-bottom: 4px; }
.mcnew-weather-day .mcnew-weather-day-icon { font-size: 20px; margin: 4px 0; }

/* 日历卡片 */
.mcnew-calendar-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    min-height: 300px;
    box-sizing: border-box;
}
.mcnew-calendar-date { font-size: 56px; font-weight: 200; line-height: 1; margin-top: 8px; }
.mcnew-calendar-month { font-size: 16px; opacity: 0.9; margin-bottom: 8px; }
.mcnew-calendar-weekday { font-size: 14px; opacity: 0.9; }
.mcnew-calendar-lunar { font-size: 13px; opacity: 0.85; margin-top: 10px; line-height: 1.6; }

/* 农历卡片 */
.mcnew-lunar-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #fff;
    min-height: 300px;
    box-sizing: border-box;
}
.mcnew-lunar-title { font-size: 14px; opacity: 0.9; margin-bottom: 8px; }
.mcnew-lunar-main { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.mcnew-lunar-row { font-size: 12px; line-height: 1.8; opacity: 0.9; }

/* 历史今天卡片 */
.mcnew-history-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    min-height: 300px;
    box-sizing: border-box;
    overflow: hidden;
}
.mcnew-history-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; flex-shrink: 0; }
.mcnew-history-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
}
.mcnew-history-item { opacity: 0.95; }
.mcnew-history-year { font-weight: bold; margin-right: 4px; }

/* 股票卡片 */
.mcnew-stock-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    background: linear-gradient(135deg, #ee9ca7 0%, #ffdde1 100%);
    color: #fff;
    min-height: 300px;
    box-sizing: border-box;
    text-align: center;
}
.mcnew-stock-placeholder { font-size: 14px; opacity: 0.9; }
.mcnew-stock-icon { font-size: 48px; margin-bottom: 12px; }


/* ============================================================
   某错推荐（mallad）卡片
   ============================================================ */
/* ============================================================
   🔥 某错推荐卡片：全部统一风格
   ============================================================ */

/* ============================================================
   🔥 某错推荐 & 分组卡片 —— 无差别统一（放最后）
   ============================================================ */

/* ============================================================
   🔥 某错推荐 & 分组卡片 —— 无差别统一（放最后）
   ============================================================ */

/* 亮色：所有 .mcnew-nav-group */
html:not(.dark-mode) body:not(.dark-mode) .mcnew-nav-group {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 18px 22px 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
}

html:not(.dark-mode) body:not(.dark-mode) .mcnew-nav-group .mcnew-nav-group-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid #f0f2f5 !important;
    flex-wrap: wrap !important;
}

html:not(.dark-mode) body:not(.dark-mode) .mcnew-nav-group .mcnew-nav-group-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2332 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.2 !important;
}

html:not(.dark-mode) body:not(.dark-mode) .mcnew-nav-group .mcnew-nav-group-title::before {
    content: '' !important;
    display: inline-block !important;
    width: 4px !important;
    height: 16px !important;
    background: #4a90e2 !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
}

html:not(.dark-mode) body:not(.dark-mode) .mcnew-nav-group .mcnew-nav-cards {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 10px !important;
}

html:not(.dark-mode) body:not(.dark-mode) .mcnew-nav-group .mcnew-nav-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    color: #333 !important;
    background: #f8f9fb !important;
    font-size: 13px !important;
    border: 1px solid transparent !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

html:not(.dark-mode) body:not(.dark-mode) .mcnew-nav-group .mcnew-nav-card:hover {
    background: #fff !important;
    border-color: #4a90e2 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.12) !important;
    color: #4a90e2 !important;
}

/* 暗色 */
html.dark-mode body .mcnew-nav-group,
body.dark-mode .mcnew-nav-group {
    background: #2a2a2a !important;
    border-radius: 12px !important;
    padding: 18px 22px 22px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
}

html.dark-mode body .mcnew-nav-group .mcnew-nav-group-header,
body.dark-mode .mcnew-nav-group .mcnew-nav-group-header {
    border-bottom: 1px solid #3a3a3a !important;
}

html.dark-mode body .mcnew-nav-group .mcnew-nav-group-title,
body.dark-mode .mcnew-nav-group .mcnew-nav-group-title {
    color: #e5e7eb !important;
}

html.dark-mode body .mcnew-nav-group .mcnew-nav-group-title::before,
body.dark-mode .mcnew-nav-group .mcnew-nav-group-title::before {
    background: #4a90e2 !important;
}

html.dark-mode body .mcnew-nav-group .mcnew-nav-card,
body.dark-mode .mcnew-nav-group .mcnew-nav-card {
    color: #c0c0c0 !important;
    background: #333 !important;
}

html.dark-mode body .mcnew-nav-group .mcnew-nav-card:hover,
body.dark-mode .mcnew-nav-group .mcnew-nav-card:hover {
    background: #3a3a3a !important;
    border-color: #4a90e2 !important;
    color: #4a90e2 !important;
}


/* ============================================================
   导航
   ============================================================ */


.mcnew-nav-groups {
    padding: 0;
}
.mcnew-nav-group {
    background: #fff;
    border-radius: 12px;
    padding: 18px 22px 22px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.mcnew-nav-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f5;
    flex-wrap: wrap;
}
.mcnew-nav-group-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.mcnew-nav-group-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #4a90e2;
    border-radius: 2px;
}
.mcnew-nav-group-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mcnew-nav-group-tab {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #5a6a7a;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f7fa;
    user-select: none;
    white-space: nowrap;
}
.mcnew-nav-group-tab:hover { background: #e8edf5; color: #333; }
.mcnew-nav-group-tab.active { background: #4a90e2; color: #fff; }
.mcnew-nav-cards {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.mcnew-nav-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    background: #f8f9fb;
    font-size: 13px;
    border: 1px solid transparent;
    overflow: hidden;
}
.mcnew-nav-card:hover {
    background: #fff;
    border-color: #4a90e2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.12);
    color: #4a90e2;
}
.mcnew-nav-card-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 4px;
}
.mcnew-nav-card-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* 加载中 */
.mcnew-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}
/* 无限滚动 */
#mcnewEndMark {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
    color: #999;
    font-size: 13px;
    user-select: none;
}
body.dark-mode #mcnewEndMark {
    color: #666;
}
/* ============================================================
   🔥 返回顶部按钮
   ============================================================ */
.mcnew-back-to-top {
    position: fixed;
    right: 30px;
    bottom: 90px;               /* 在 tab 栏上方，避免遮挡 */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 
        opacity 0.3s ease, 
        transform 0.3s ease, 
        visibility 0.3s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    outline: none;
}

/* 显示状态 */
.mcnew-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 悬停效果 */
.mcnew-back-to-top:hover {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.4);
    transform: translateY(0) scale(1.08);
}

/* 点击时 */
.mcnew-back-to-top:active {
    transform: translateY(0) scale(0.95);
}

.mcnew-back-to-top svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ============================================================
   暗色模式
   ============================================================ */
body.dark-mode .mcnew-back-to-top {
    background: #2a2a2a;
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .mcnew-back-to-top:hover {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
    box-shadow: 0 6px 24px rgba(74, 144, 226, 0.5);
}

/* ============================================================
   响应式：小屏时贴边
   ============================================================ */
@media (max-width: 1000px) {
    .mcnew-back-to-top {
        right: 16px;
        bottom: 80px;
        width: 40px;
        height: 40px;
    }
    .mcnew-back-to-top svg {
        width: 18px;
        height: 18px;
    }
}
/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1680px) {
    .mcnew-feed-grid { grid-template-columns: repeat(4, 1fr); }
    .mcnew-nav-cards { grid-template-columns: repeat(6, 1fr); }
    .mcnew-shortcuts { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 1360px) {
    .mcnew-feed-grid { grid-template-columns: repeat(3, 1fr); }
    .mcnew-nav-cards { grid-template-columns: repeat(5, 1fr); }
    .mcnew-shortcuts { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1024px) {
    .mcnew-feed-grid { grid-template-columns: repeat(2, 1fr); }
    .mcnew-nav-cards { grid-template-columns: repeat(4, 1fr); }
    .mcnew-shortcuts { grid-template-columns: repeat(4, 1fr); }
    .mcnew-card.mcnew-card-carousel { grid-column: span 2; }
    .mcnew-card.mcnew-card-wide { grid-column: span 1; }
}
@media (max-width: 680px) {
    .mcnew-feed-grid { grid-template-columns: 1fr; }
    .mcnew-nav-cards { grid-template-columns: repeat(2, 1fr); }
    .mcnew-shortcuts { grid-template-columns: repeat(3, 1fr); }
    .mcnew-card.mcnew-card-carousel { grid-column: span 1; }
    .mcnew-card.mcnew-card-wide { grid-column: span 1; }
}

/* ============================================================
   暗色模式
   ============================================================ */
body.dark-mode .mcnew-search-box,
body.dark-mode .mcnew-dropdown {
    background: rgba(42, 42, 42, 0.98);
    color: #e5e7eb;
}
body.dark-mode .mcnew-search-input { color: #e5e7eb; }
body.dark-mode .mcnew-search-input::placeholder { color: #888; }
body.dark-mode .mcnew-hotwords-text { color: #999; }
body.dark-mode .mcnew-engine-btn { border-right-color: #3a3a3a; }
body.dark-mode .mcnew-engine-btn:hover { background: #3a3a3a; }
body.dark-mode .mcnew-engine-item { color: #c0c0c0; }
body.dark-mode .mcnew-engine-item:hover { background: #3a3a3a; }
body.dark-mode .mcnew-panel-header {
    background: rgba(42, 42, 42, 0.98);
    border-bottom-color: #3a3a3a;
    color: #888;
}
body.dark-mode .mcnew-item { color: #c0c0c0; }
body.dark-mode .mcnew-item:hover { background: #3a3a3a; }

body.dark-mode .mcnew-feed-content { background: #1e1e1e; }
body.dark-mode .mcnew-nav-wrap {
    background: rgba(30, 30, 30, 0.95);
}
body.dark-mode .mcnew-nav { border-bottom-color: rgba(255, 255, 255, 0.08); }
body.dark-mode .mcnew-tab { color: #ffffff; }

body.dark-mode .mcnew-card,
body.dark-mode .mcnew-nav-group { background: #2a2a2a; }
body.dark-mode .mcnew-card-title,
body.dark-mode .mcnew-nav-group-title { color: #e5e7eb; }
body.dark-mode .mcnew-nav-group-header { border-bottom-color: #3a3a3a; }
body.dark-mode .mcnew-nav-group-tab { background: #333; color: #999; }
body.dark-mode .mcnew-nav-group-tab:hover { background: #3a3a3a; color: #c0c0c0; }
body.dark-mode .mcnew-nav-card { background: #333; color: #c0c0c0; }
body.dark-mode .mcnew-nav-card:hover { background: #3a3a3a; border-color: #4a90e2; color: #4a90e2; }
body.dark-mode .mcnew-shortcut-menu { background: #2a2a2a; }
body.dark-mode .mcnew-shortcut-menu-item { color: #c0c0c0; }
body.dark-mode .mcnew-shortcut-menu-item:hover { background: #3a3a3a; }
body.dark-mode .mcnew-ad-link { color: #c0c0c0; }
body.dark-mode .mcnew-mallad { border-bottom-color: #3a3a3a; }

/* ============================================================
   轮播卡片内部：左标题 + 右图片
   ============================================================ */

/* 每一页：flex 布局 */
.mcnew-card.mcnew-card-carousel .swiper-slide {
    overflow: hidden;
    background: #fff;
}

.mcnew-card.mcnew-card-carousel .mcnew-slide-inner {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 左边：信息区 40% */
.mcnew-card.mcnew-card-carousel .mcnew-slide-info {
    width: 40%;
    padding: 24px 20px 40px 28px;
    background: linear-gradient(135deg, #fafafa 0%, #f8faff 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* 标签 */
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
    flex-shrink: 0;
}
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.hot     { background: #ff0000; color: #fff; }
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.topic   { background: #ffa940; color: #fff; }
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.tech    { background: #722ed1; color: #fff; }
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.ent     { background: #eb2f96; color: #fff; }
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.finance { background: #13c2c2; color: #fff; }
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.sports  { background: #52c41a; color: #fff; }
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.history { background: #8c8c8c; color: #fff; }
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.women   { background: #f759ab; color: #fff; }
.mcnew-card.mcnew-card-carousel .mcnew-slide-tag.fashion { background: #d4a017; color: #fff; }

/* 标题 */
.mcnew-card.mcnew-card-carousel .mcnew-slide-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.mcnew-card.mcnew-card-carousel .swiper-slide:hover .mcnew-slide-title {
    color: #4a90e2;
}

/* 来源 */
.mcnew-card.mcnew-card-carousel .mcnew-slide-source {
    font-size: 12px;
    color: #4a90e2;
    font-weight: 500;
}

/* 时间 */
.mcnew-card.mcnew-card-carousel .mcnew-slide-time {
    font-size: 11px;
    color: #bbb;
}

/* 右边：图片区 60% */
.mcnew-card.mcnew-card-carousel .mcnew-slide-image {
    width: 60%;
    height: 100%;
    overflow: hidden;
    background: #f0f2f5;
}

.mcnew-card.mcnew-card-carousel .mcnew-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.mcnew-card.mcnew-card-carousel .swiper-slide:hover .mcnew-slide-image img {
    transform: scale(1.05);
}

/* 分页圆点：放在左边信息区底部 */
.mcnew-card.mcnew-card-carousel .swiper-pagination {
    position: absolute;
    bottom: 14px;
    left: 28px;
    width: 40%;
    text-align: left;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    gap: 6px;
}

.mcnew-card.mcnew-card-carousel .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: all 0.3s;
}

.mcnew-card.mcnew-card-carousel .swiper-pagination-bullet-active {
    width: 18px;
    border-radius: 3px;
    background: #4a90e2;
}

/* 导航箭头 */
.mcnew-card.mcnew-card-carousel .swiper-button-prev,
.mcnew-card.mcnew-card-carousel .swiper-button-next {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    color: #fff;
    z-index: 10;
    transition: background 0.2s;
}
.mcnew-card.mcnew-card-carousel .swiper-button-prev:hover,
.mcnew-card.mcnew-card-carousel .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.5);
}
.mcnew-card.mcnew-card-carousel .swiper-button-prev::after,
.mcnew-card.mcnew-card-carousel .swiper-button-next::after {
    font-size: 12px;
    font-weight: bold;
}
.mcnew-card.mcnew-card-carousel .swiper-button-prev { left: 10px; }
.mcnew-card.mcnew-card-carousel .swiper-button-next { right: 10px; }

/* ============================================================
   暗色模式
   ============================================================ */
body.dark-mode .mcnew-card.mcnew-card-carousel .swiper-slide {
    background: #2a2a2a;
}
body.dark-mode .mcnew-card.mcnew-card-carousel .mcnew-slide-info {
    background: linear-gradient(135deg, #2a2a2a 0%, #2f3340 100%);
}
body.dark-mode .mcnew-card.mcnew-card-carousel .mcnew-slide-title {
    color: #e5e7eb;
}
body.dark-mode .mcnew-card.mcnew-card-carousel .mcnew-slide-source {
    color: #5ab0d9;
}
body.dark-mode .mcnew-card.mcnew-card-carousel .mcnew-slide-time {
    color: #666;
}
body.dark-mode .mcnew-card.mcnew-card-carousel .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2);
}
body.dark-mode .mcnew-card.mcnew-card-carousel .swiper-pagination-bullet-active {
    background: #4a90e2;
}
