
/* 基础重置 */
* {
    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;
}


@media (max-width: 846px) {
    body::before, body::after {
         content: none;
    }
}

a {
    text-decoration: none;
}




/* 导航栏样式 */
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;
}

.menu-button {
    display: none;
    position: absolute;
    right: 20px;
    top: 19.4px;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg-scroll);
}

.nav-links.responsive {
    display: flex;
}

.nav-links a {
    display: block;
    margin: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--button-hover);
}

.logo-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-grow: 1; 
}
nav > a, nav > .dropdown {
    order: 1; 
    margin: 0 10px; 
}
nav > a:first-of-type, nav > .dropdown:first-of-type {
    margin-right: 80%;
}
.logo-container img {
    height: 35px;
    width: 35px;
}



/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    margin: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
    cursor: pointer;
}

.dropdown-menu {
    position: static;
    width: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    text-align: right;
}

.item-icon {
    width: 16px;
    height: 16px;
    margin-left: 10px;
    fill: currentColor;
    transition: transform 0.3s;
}

.dropdown-item:hover .item-icon {
    transform: translateX(-3px);
}

.logo-and-text {
    display: flex;
    align-items: center;
}


.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;
}





.news-markdown h1 { font-size: 1.5em; color: var(--secondary-color); }
.news-markdown ul { padding-left: 20px; }
.news-markdown strong { color: var(--primary-color); }


    @media (max-width: 846px) {

    .news-detail-section {
        padding: 25px 20px;
        max-width: 95%;
        min-width: unset;
        margin: 60px auto 15px auto;
    }

    .news-detail-section h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .news-content h1, .news-detail-section h1 {
        font-size: 1.8em;
        margin: 1.2em 0 0.6em 0;
    }

    .news-content h2, .news-detail-section h2 {
        font-size: 1.6em;
        margin: 1em 0 0.5em 0;
    }

    .news-content h3, .news-detail-section h3 {
        font-size: 1.4em;
        margin: 0.8em 0 0.4em 0;
    }

    .news-content h4, .news-detail-section h4 {
        font-size: 1.2em;
        margin: 0.6em 0 0.3em 0;
    }

    .news-detail-section .news-img {
        height: 200px;
        width: 100%;
    }

    .no-image .news-img {
        display: none;
    }

    .news-detail-section p {
        font-size: 1.05em;
        line-height: 1.8;
        
    }

    .news-content ul, .news-content ol {
        padding-left: 1.5em;
        margin: 0.8em 0;
    }

    .news-content li {
        margin-bottom: 0.4em;
        font-size: 1.05em;
    }

    .news-content pre {
        padding: 1em;
        margin: 1em 0;
        font-size: 1em;
        overflow-x: auto;
        line-height: 1.6;
    }
    
    .news-content pre[class*="language-"] {
        font-size: 1em ;
        line-height: 1.6 ;
        background: #f6f8fa ;
        border: 1px solid #e1e4e8 ;
        border-radius: 6px ;
        color: #24292e ;
    }
    
    .news-content pre[class*="language-"] code {
        font-size: 1em ;
        line-height: 1.6 ;
        color: #24292e ;
    }
    
    .code-block-toolbar {
        top: 8px ;
        right: 8px ;
        gap: 6px ;
    }
    
    .code-block-btn {
        padding: 3px 6px ;
        font-size: 11px ;
    }

    .news-content p code,
    .news-content li code {
        padding: 2px 6px;
        font-size: 0.85em;
    }

    .news-content table {
        font-size: 0.9em;
        margin: 1em 0;
    }

    .news-content th,
    .news-content td {
        padding: 8px 12px;
    }

    .news-content img {
        max-width: 100% ;
        height: auto ;
        display: block;
        margin: 1em auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .news-content p img {
        max-width: 100% ;
        height: auto ;
        margin: 1em auto;
        display: block;
    }

    .back-to-news {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .pinned-icon {
        display: inline-block;
        font-size: 1.2em;
        color: var(--pinned-border);
        margin-right: 5px;
        vertical-align: middle;
    }
    .gallery-section {
        padding: 15px;
        max-width: 100%;
    }
    .gallery-section h3 {
        font-size: 1.3em;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .gallery-item img {
        height: auto;
        max-height: 200px;
        width: 100%;
        object-fit: cover;
    }
    .lightbox-image {
        max-width: 95%;
        max-height: 85%;
        object-fit: contain;
    }
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5em;
    }
    #three-canvas-container {
        height: 100vh;
    }
}