/* news-mobile.css - 新闻页面移动端样式 */
/* 字体资源已移至 css/fonts.css */

:root {
    --primary-color:#9e94d8;
    --secondary-color:#333333;
    --background-color:#f2eefc;
    --card-bg:#FAFAFA;
    --text-color:#444444;
    --online-color:#00BFA6;
    --nav-bg:rgba(109, 91, 154, 0.8);
    --nav-bg-scroll:#424a55;
    --button-hover:#b6ade6;
}

/* 导航栏样式已移至 navigation-mobile.css */

/* 导航栏样式已移至 navigation-mobile.css */

/* 移动端网站状态信息样式 */
.website-status-info {
    gap: 15px;
    margin: 20px 0 10px 0;
}

.status-item {
    padding: 6px 10px;
    font-size: 0.85em;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;    
    animation: none !important;
    /*background: none !important;  停止动画，移除此行以保留静态背景 */
}

a {
    text-decoration: none;
}

.news-markdown h1 { font-size: 1.5em; color: var(--secondary-color); }
.news-markdown ul { padding-left: 20px; }
.news-markdown strong { color: var(--primary-color); }


/* 导航栏样式 */
nav {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
}

nav.scrolled {
    background: var(--nav-bg-scroll);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav a {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

/* 导航栏样式已移至 navigation-mobile.css */

/* 导航栏样式已移至 navigation-mobile.css */

/* 导航栏样式已移至 navigation-mobile.css */



/* 导航栏样式已移至 navigation-mobile.css */

.logo-and-text {
    display: flex;
    align-items: center;
}

/* 导航栏样式已移至 navigation-mobile.css */


.LuminolMC {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.LuminolMC:hover {
    color: var(--button-hover);
}

.right-align {
    margin-left: 0;
}







/* 导航栏样式已移至 navigation-mobile.css */



@media (max-width: 896px) {
    .news-search {
        display: flex;
        justify-content: center;
        gap: 4px;
        margin-bottom: 20px;
    }

    .news-section {
        padding: 30px 15px;
    }

    .news-grid {
        max-height: calc(100vh - 250px);
        grid-template-columns: 1fr;
        background: transparent;
        border-radius: 12px;
    }

    /* 垂直滚动条样式 for .news-grid */
    .news-grid::-webkit-scrollbar {
        width: 6px;
    }

    .news-grid::-webkit-scrollbar-track {
        background: linear-gradient(to bottom, rgba(241, 241, 241, 0.3), rgba(241, 241, 241, 0.1));
        border-radius: 6px;
        box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
    }

    .news-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(to bottom, var(--primary-color), var(--button-hover));
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .news-grid::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to bottom, var(--button-hover), var(--primary-color));
        box-shadow: 0 0 8px rgba(182, 173, 230, 0.5);
    }

    .intro h2 {
        font-size: 24px;
    }

    .intro p {
        font-size: 14px;
    }

    .news-item {
        min-height: 360px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .news-img {
        height: 140px;
        background-position: center;
        background-size: cover;
    }

    /* 无图新闻：移动端也消除额外空白 */
    /* .news-item.no-image {
        min-height: auto;
    } */
    .news-item.no-image .news-content {
        height: auto;
        max-height: 220px;
    }
    .news-item.no-image .news-btn {
        position: static;
        left: auto;
        transform: none;
        margin-top: 10px;
    }

    .news-content {
        height: 100px;
        overflow-x: auto; /* 启用水平滚动 */
        overflow-y: auto; /* 保持垂直滚动 */
    }

    /* 垂直滚动条样式 for .news-content */
    .news-content::-webkit-scrollbar {
        width: 4px;
    }

    .news-content::-webkit-scrollbar-track {
        background: rgba(241, 241, 241, 0.3);
        border-radius: 4px;
    }

    .news-content::-webkit-scrollbar-thumb {
        background: rgba(158, 148, 216, 0.5); 
        border-radius: 4px;
    }

    .news-content::-webkit-scrollbar-thumb:hover {
        background: rgba(182, 173, 230, 0.7); 
    }

    /* 水平滚动条样式 for .news-content */
    .news-content::-webkit-scrollbar {
        height: 4px;
    }

    .news-content::-webkit-scrollbar-track {
        background: linear-gradient(to right, rgba(241, 241, 241, 0.3), rgba(241, 241, 241, 0.1));
        border-radius: 4px;
        box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1);
    }

    .news-content::-webkit-scrollbar-thumb {
        background: linear-gradient(to right, var(--primary-color), var(--button-hover));
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .news-content::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to right, var(--button-hover), var(--primary-color));
        box-shadow: 0 0 8px rgba(182, 173, 230, 0.5);
    }

    .news-btn {
        font-size: 0.9em;
        padding: 7px 14px;
    }

    .news-search input {
        width: 70%;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 0.9em;
        margin: 0 3px;
    }

    /* 置顶新闻样式 */
    .news-item.pinned {
        
        border: 2px solid var(--pinned-border);
        border-radius: 8px;
    }

    .pinned-icon {
        display: inline-block;
        font-size: 1.2em;
        
        margin-right: 5px;
        vertical-align: middle;
    }
}

/* 移动端主题切换按钮 */
@media (max-width: 896px) {
    .nav-theme-toggle {
        position: absolute;
        right: 70px; /* 汉堡菜单右边20px + 按钮宽度40px + 间距10px */
        top: 19.4px;
        z-index: 102;
    }
    
    .nav-theme-toggle .theme-toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 系统深色主题自动应用 */
@media (prefers-color-scheme: dark) {
    :root:not(.dark-theme) {
        --primary-color: #a78bfa;
        --secondary-color: #f1f5f9;
        --background-color: #0f172a;
        --card-bg: #1e293b;
        --text-color: #e2e8f0;
        --nav-bg: rgba(15, 23, 42, 0.8);
        --nav-bg-scroll: #1e293b;
    }
    
    :root:not(.dark-theme) body {
        background: var(--background-color) !important;
        color: var(--text-color) !important;
    }
    
    :root:not(.dark-theme) nav {
        background-color: var(--nav-bg) !important;
    }
    
    :root:not(.dark-theme) footer {
        background: linear-gradient(135deg, #0a0f1c 0%, #1a1f2e 100%) !important;
        border-top: 1px solid rgba(71, 85, 105, 0.3) !important;
    }
    
    :root:not(.dark-theme) .footer-column h3 {
        color: #c4b5fd !important;
    }
    
    :root:not(.dark-theme) .footer-column a {
        color: #cbd5e1 !important;
    }
    
    :root:not(.dark-theme) .footer-column a:hover {
        color: #c4b5fd !important;
    }
    
    :root:not(.dark-theme) .copyright-info {
        border-top: 1px solid rgba(71, 85, 105, 0.3) !important;
        color: #94a3b8 !important;
    }
    
    /* 新闻卡片深色主题 */
    :root:not(.dark-theme) .news-item {
        background: rgba(30, 41, 59, 0.8) !important;
        border: 1px solid rgba(71, 85, 105, 0.3) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }
    
    :root:not(.dark-theme) .news-item:hover {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
    }
    
    :root:not(.dark-theme) .news-item h3 {
        color: #e2e8f0 !important;
    }
    
    :root:not(.dark-theme) .news-item .news-date {
        color: #94a3b8 !important;
    }
    
    :root:not(.dark-theme) .news-item .news-content p {
        color: #cbd5e1 !important;
    }
    
    :root:not(.dark-theme) .news-item .news-tag {
        background: rgba(71, 85, 105, 0.3) !important;
        color: #cbd5e1 !important;
    }
    
    :root:not(.dark-theme) .news-item .news-tag.pinned {
        background: rgba(16, 185, 129, 0.2) !important;
        color: #10b981 !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
    }
    
    /* 系统深色主题下主题切换按钮适配 */
    :root:not(.dark-theme) .theme-toggle-btn {
        background: rgba(71, 85, 105, 0.3) !important;
        border: 1px solid rgba(71, 85, 105, 0.5) !important;
        color: #e2e8f0 !important;
    }
    
    :root:not(.dark-theme) .theme-toggle-btn:hover {
        background: rgba(71, 85, 105, 0.5) !important;
    }
}
