/* 导入字体 */
@import url("https://cdn-font.hyperos.mi.com/font/css?family=MiSans_Latin_VF:VF:Latin&display=swap");
@import url("https://cdn-font.hyperos.mi.com/font/css?family=MiSans_VF:VF:Chinese_Simplify,Latin&display=swap");
@import url("https://cdn-font.hyperos.mi.com/font/css?family=MiSans:100,200,300,400,450,500,600,650,700,900:Chinese_Simplify,Latin&display=swap");
@import url("https://cdn-font.hyperos.mi.com/font/css?family=Misans_TC_VF:VF:Chinese_Traditional_TW&display=swap");

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MiSans VF', sans-serif;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* banner-header */
nav {
    display: flex;
    align-items: center;
    height: 81px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
}

nav.scrolled {
    height: 81px;
    background: var(--nav-bg-scroll);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
/* 导航链接通用样式 */
nav a:hover {
    color: var(--button-hover);
}
nav a {
    display: inline-block;
    margin:  20px;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--button-hover);
}
/* 桌面端导航布局 */
@media (min-width: 769px) {
    nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    nav > a[href="/"] {
        order: -3;
        margin: 0 15px 0 20px; /* 主页：左边界 20px，与服务器规则 15px */
    }
    nav > .dropdown:first-of-type {
        order: -2;
        margin: 0 15px; /* 服务器规则：与主页 15px，与支持我们 15px */
    }
    nav > a[href="/support"] {
        order: -1;
        margin: 0 15px; /* 支持我们：与服务器规则 15px，与 LuminolMC 15px */
    }
    .logo-container {
        display: flex;
        align-items: center;
        order: 0;
    }
    nav > .right-align {
        order: 1;
        margin-left: auto;
        margin-right: 20px;
    }
}

/* 移动端汉堡菜单 */
@media (max-width: 768px) {
    .menu-button {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
        color: white;
        font-size: 1.1em;
        cursor: pointer;
        z-index: 102;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg-scroll);
        padding: 20px;
        flex-direction: column;
        z-index: 101;
    }
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
    .nav-links a:not(.dropdown-toggle):not(.dropdown-item) {
        display: block;
        margin: 10px 0;
        color: white;
        font-size: 1.2em; /* 主页大标题 */
        font-weight: bold;
        text-align: left;
        pointer-events: auto;
    }
    .nav-links .dropdown {
        display: block;
        margin: 10px 0;
    }
    .nav-links .dropdown-toggle {
        display: block;
        color: white;
        font-size: 1.2em; /* 服务器规则大标题 */
        font-weight: bold;
        padding: 10px 0;
        pointer-events: none; /* 禁用点击，因为是标题 */
    }
    .nav-links .dropdown-toggle .menu-icon {
        display: none; /* 隐藏下拉箭头 */
    }
    .nav-links .dropdown-menu {
        display: block; /* 直接显示子项 */
        position: static;
        transform: none;
        width: 100%;
        background: transparent; /* 无背景，与主菜单融合 */
        box-shadow: none;
        margin: 0;
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
    }
    .nav-links .dropdown-item {
        display: block;
        padding: 8px 0 8px 15px; /* 缩进 15px */
        color: white;
        font-size: 0.8em; /* 小标题 */
        font-weight: normal;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* 移动端汉堡菜单修复 */
@media (max-width: 768px) {
    .menu-button {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
        color: white;
        font-size: 1.1em;
        cursor: pointer;
        z-index: 102;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg-scroll);
        padding: 20px;
        flex-direction: column;
        z-index: 101;
    }
    .menu-toggle:checked ~ .nav-links {
        display: flex; /* checkbox 选中时显示 */
    }
    .nav-links a, .nav-links .dropdown {
        display: block;
        margin: 10px 0;
        color: white;
        font-size: 1.2em;
        text-align: left;
        pointer-events: auto;
    }
    .nav-links .dropdown-toggle {
        display: flex;
        align-items: center;
        padding: 10px 0;
    }
    .nav-links .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        margin-top: 5px;
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
    }
    .nav-links .dropdown-item {
        padding: 10px 15px;
        opacity: 1;
        transform: translateY(0);
    }
}




/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

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


.menu-icon {
    display: flex;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    fill: currentColor;
    transition: transform 0.3s;
}



/* .dropdown:hover .menu-icon {鼠标悬停时旋转图标实际上图标本身就是倒过来的。。
    transform: rotate(90deg);
} */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0; /* Align left edge with parent */
    width: 150px;
    background: var(--nav-bg-scroll);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-out;
    z-index: 101;
    transform-origin: top left;
    transform: scaleY(0.8);
}
/* 最喜欢的效果之一 */
 .dropdown:hover .dropdown-menu {/*当鼠标悬停在.dropdown上的时候.dropdown-menu就会哈气 */
     opacity: 1;/*渐变 */
     visibility: visible;/*使下拉菜单在悬停时显示*/
     transform: scaleY(1) /*垂直缩放元素 */ translateX(-50%); /*向左移动自身宽度的 50%从而实现水平居中对齐 */
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(-5px);
}
.dropdown-item svg{
    width: 18px;
    height: 18px;
    margin-left: 8px;
    text-align: right;
}
.dropdown:hover .dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

.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.right-align {
    margin-left: auto; /* 将 LuminolMC 推到右侧 */
    margin-right: 20px;
}
.LuminolMC{
    width: 130px;
}

/* banner */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding-top: 70px;
    background-image: url(/images/Image_669276986426772.png);
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    position: relative;
}

.header-overlay {
    
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.header-content {
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}
.header-content svg{
    width: 18px;
    height: 18px;
    margin-left: 8px;
}



.LuminolCraft{
    /* border: 1px solid blue; */
    font-size: clamp(2em, 8vw, 4em);
    color: #b6ade6;
    animation: fadeIn 0.93s ease-out;
}

.description-text{
    width: 40vw;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    /* text-align: center; */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.93s ease-out;
}
/* 
.server-ip {
    // border: 1px solid purple;
    display: inline-block;
    padding: 12px 30px;
    margin-bottom: 30px;
    margin-right: 22px;
    font-size: clamp(1em, 3vw, 1.3em);
    background: rgba(0,0,0,0.5);
    border-radius: 50px;
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-out 0.3s backwards;
    color: white;
}
.server-ip:hover {
    transform: scale(1.1); 
    background: #f8c3cd;
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
} */


.join-btn-header {
    /* border: 4px solid black; */
    display: inline-block;
    padding: 12px 30px;
    margin-bottom: 30px;
    margin-top: 20px;
        
    font-size: clamp(1em, 3vw, 1.3em);
    background: rgba(0,0,0,0.5);
    border-radius: 50px;
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-out 0.3s backwards;
        
    color: white;
        
}

.join-btn-header:hover {
    transform: scale(1.1); 
    background: var(--button-hover);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}


/* 内容容器 */
.container {
    /* border: 4px solid #558000; */
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 15px;
}

/* 各部分通用样式 */
.section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    position: relative;
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
    font-size: clamp(1.8em, 5vw, 2.5em);
}



 h2::after { /*我是所有h2下面的装饰线 */
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 特点这一块/. */
.Integrated {
    /* border: 4px solid rgb(73, 0, 208); */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.Integrated-box {
    width: 100%;
    max-width: 320px;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.Integrated-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.Integrated-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: #ecf0f1;
    border-radius: 50%;
    font-size: 1.3em;
    color: var(--secondary-color);
    transition: all 0.3s;
}

.Integrated-box:hover .feature-img {
    background: var(--primary-color);
    color: white;
}

/* 服务器状态 */
.status {
    font-size: 1.2em;
    margin: 15px 0;
    color: #b7b7a4;
}
.status-box {
    position: relative;
    padding: 40px 250px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-align: center;
    overflow: hidden;
}
#status h2::after {
    display: none;
}
.player-nub{
    color: (--card-bg);
}
 .status-box::after{ /*我是渐变装饰线 */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--online-color));
     z-index: 1;/*.status-box::before的z—index是-1 */
}
.status-h2{
    color: #f8f9fa;
}
.status-box h2 {
    margin-bottom: 20px;
    font-size: clamp(1.5em, 4vw, 2em);
}

.status-box h2::after {
    display: none;
}

.status-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    z-index: -1;
}



.online {
    position: relative;
    padding-left: 22px;
    color: var(--online-color);
    font-weight: bold;
}

.online::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    background: var(--online-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

 @keyframes pulse {/*这个是在线左边那个小图标的呼吸效果 */
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 40, 77, 0); }
}

/* 展示区盒子 */
.gallery {
    /* border: 4px solid rgb(29, 86, 255); */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: white;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* 规则盒子 */
.rules-box {
    /* border: 4px solid rgb(187, 52, 52); */
    padding: 40px 25px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.rules-box ol {
    list-style-position: inside;
    padding-left: 0;
}

.rules-box li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 8px;
    font-size: 1.05em;
    transition: all 0.3s;
}

.rules-box li:hover {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* 加入按钮 
.join-btn {
    display: block;
    width: 220px;
    margin: 50px auto 0;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: clamp(1em, 3vw, 1.2em);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}

.join-btn:hover::before {
    left: 100%;
}

.join-btn:hover {
    background: #16a085;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}
*/
/* feet */
footer {
    padding: 50px 15px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
}
footer p {
    text-align: center;
}

.social-links {
    margin-bottom: 25px;
}

.social-links a {
    display: inline-block;
    margin: 0 12px;
    color: white;
    font-size: 1.3em;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
}


@keyframes fadeIn {/* 页头文字、页头按钮动画 */
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-button {
    display: none;
    position: absolute;
    right: 20px;
    top: 15px;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    
}


.logo-container {
    margin-right: 100px; /*有“纯净生存”和“综合生存”是auto */
    margin-left: 20px;  
}
.logo-container img {
    height: 40px; 
}
.right-align {
    margin-left: auto;
    margin-right: 20px;
}
.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-and-text {
    display: flex;
    align-items: center;
    
    color: white;
    font-size: 1.1em;
    text-decoration: none;
}


.logo-and-text svg {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    
}
/* 页脚链接样式 */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}
.footer-column svg{
    width: 18px;
    height: 18px;
    margin-left: 8px;
}
/*版权*/
.copyright-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    color: #aaa;
}

.copyright-info p {
    margin: 8px 0;
}

.copyright-info a:any-link {
    color: #aaa;
}

.copyright-info a:hover {
    color: var(--primary-color);
}

.copyright-info svg {
    width: 12px;
    height: 12px;
    margin-left: 8px;
}



