/* 导入字体 */
@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: #f2eefc;
    --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;
}





/* nav */
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);
}
.AAA{
    margin-right: 1.2em;
}
/* 桌面端导航布局 */
@media (min-width: 769px) {
    nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    nav > a[href="/"] {
        order: -3;
        /* 主页：左边界 20px，与服务器规则 15px */
        margin: 0 15px 0 20px; 
    }
    nav > .dropdown:first-of-type {
        order: -2;
        /* 服务器规则：与主页 15px，与支持我们 15px */
        margin: 0 15px; 
    }
    nav > a[href="/support"] {
        order: -1;
        /* 支持我们：与服务器规则 15px，与 LuminolMC 15px */
        margin: 0 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: 19.4px;
        color: white;
        font-size: 1.1em;
        cursor: pointer;
        z-index: 102;
    }
    .nav-links {
        display: none;
        position: absolute;
        
        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;
        /* 缩进 15px */
        padding: 8px 0 8px 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: 19.4px;
        color: white;
        font-size: 1.1em;
        cursor: pointer;
        z-index: 102;
    }
    .nav-links {
        display: none;
        position: absolute;
        
        left: 0;
        width: 100%;
        background: var(--nav-bg-scroll);
        padding: 20px;
        flex-direction: column;
        z-index: 101;
    }
    .menu-toggle:checked ~ .nav-links {
        /* checkbox 选中时显示 */
        display: flex; 
    }
    .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;
}
.menu-button {
    display: none;
    position: absolute;
    right: 20px;
    top: 19.4px;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    
}


.logo-container {
    
    margin-left: 20px;  
}
.logo-container img {
    height: 37px; 
    width: 37px;
}
.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: 3px;
    margin-bottom: 3px;
}



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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0; 
    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上的时候.dropdown-menu就会哈气 */
 .dropdown:hover .dropdown-menu {
    /*渐变 */
     opacity: 1;
    /*使下拉菜单在悬停时显示*/
     visibility: visible;
    /*垂直缩放元素 */
     transform: scaleY(1)

       
}

.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 {
    width: 130px;
    margin-right: auto; 
    margin-left: 20px;
}





.container {
    max-width: 1200px;
    margin: 90px auto;
    padding: 0 10px;
}

/* 头部样式 */
header {
    background-color: var(--nav-bg);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* 内容样式 */
main {
    padding: 150px 0;
}

.intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.intro h2 {
    color: var(--secondary-color);
    font-size: 28px;
    margin-bottom: 15px;
}

/* 请为我打钱 */
.sponsorship-methods {
    margin-bottom: 60px;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.method-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.method-item svg {
    width: 15px;
    height: 15px;
    margin-left: 10px;
}

.method-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.method-icon {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.method-title {
    margin: 0;
    color: var(--secondary-color);
    font-size: 18px;
}

.method-desc {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 14px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--button-hover);
    transform: scale(1.05);
}
.divider {
    height: 1px;
    background-color: rgba(0,0,0,0.05);
    margin: 20px 0;
}

/* 感谢区域样式 */
.thank-you {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 40px;
}

.thank-you h3 {
    color: var(--secondary-color);
    font-size: 22px;
    margin-top: 0;
}

/* 页脚链接样式 */
.footer-links {
   
    color: #ffffff;
    padding-top: 1rem;
    padding-bottom: 2rem;
    text-align: center;
}


/* 已注释support.html>.back-to-top ---------------------------------------------------------------------*/
/* 返回顶部圆形按钮样式 */
.back-to-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top::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;
}

.back-to-top:hover {
    background: #16a085;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}
/* 已注释support.html>.back-to-top ----------------------------------------------------------------------*/


/* 返回主页圆形按钮样式 */
.back-to-home {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: fixed;
    bottom: 50%;
    right: 2px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
    .back-to-home {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        position: fixed;
        top: 50%;
        
        right: 2px;
        background: var(--primary-color);
        color: white;
        text-align: center;
        text-decoration: none;
        font-size: 1.4em;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
}

.back-to-home::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;
}

.back-to-home:hover {
    background: #16a085;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* 页脚 */
footer {
    padding: 60px 20px 30px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-color);
    text-align: center;
    position: relative;
    border-top: 1px solid var(--glass-border);
}
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 fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滚动动画 */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 悬停时的微动画 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* 渐变文字动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



/* 加入按钮 
.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); }
}


/* 页脚链接样式 */
.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;
}





