/* ==============================================
   我的世界盒子服 天花板级终极顶配美化CSS
   无视性能｜全息毛玻璃｜呼吸边框｜3D悬浮｜霓虹发光
   全屏流光底层｜手机完美滑动无冲突
============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #1a1b20;
    color: #ffffff;
    line-height: 1.95;
    font-size: 15px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 底层全屏多层流光星云背景 极致模糊动态 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.7;
    background:
    radial-gradient(ellipse 35% 35% at 15% 10%, rgba(57,181,74,0.35), transparent 75%),
    radial-gradient(ellipse 40% 40% at 85% 85%, rgba(57,181,74,0.28), transparent 80%),
    radial-gradient(ellipse 30% 30% at 50% 50%, rgba(57,181,74,0.22), transparent 75%),
    radial-gradient(ellipse 38% 38% at 30% 80%, rgba(57,181,74,0.25), transparent 80%),
    radial-gradient(ellipse 32% 32% at 75% 25%, rgba(57,181,74,0.3), transparent 75%);
    animation: nebulaFlow 28s ease-in-out infinite alternate;
}

@keyframes nebulaFlow {
    0% { transform: translate(0,0) scale(1) rotate(0deg); }
    50% { transform: translate(70px,-50px) scale(1.15) rotate(8deg); }
    100% { transform: translate(-60px,45px) scale(1) rotate(-8deg); }
}

/* 第二层弱光叠层 加深层次感 */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(57,181,74,0.08), transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: softPulse 18s ease-in-out infinite alternate;
}

@keyframes softPulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.75; }
}

a {
    text-decoration: none;
    color: #fff;
}

ul, li {
    list-style: none;
}

/* 顶配全息毛玻璃导航栏 + 底部流光呼吸线 */
header {
    width: 100%;
    padding: 8px 0;
    background: rgba(20,21,26,0.35);
    backdrop-filter: blur(28px) saturate(220%);
    -webkit-backdrop-filter: blur(28px) saturate(220%);
    border-bottom: 1px solid rgba(57,181,74,0.4);
    box-shadow: 0 6px 50px rgba(57,181,74,0.4);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-wrap {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #39b54a;
    letter-spacing: 3px;
    text-shadow: 0 0 18px rgba(57,181,74,0.7), 0 0 35px rgba(57,181,74,0.4);
    transition: all 0.4s ease;
    user-select: none;
}

.logo:hover {
    color: #86f098;
    text-shadow: 0 0 30px rgba(57,181,74,1), 0 0 60px rgba(57,181,74,0.6);
    letter-spacing: 4px;
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-menu a {
    font-size: 15px;
    color: #c2c4c7;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(57,181,74,0.12);
    border: 1px solid rgba(57,181,74,0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,transparent,rgba(57,181,74,0.35),transparent);
    transition: left 0.6s ease;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: #fff;
    border-color: rgba(57,181,74,0.7);
    box-shadow: 0 0 30px rgba(57,181,74,0.6);
    text-shadow: 0 0 12px #fff;
}

.nav-menu a.active {
    background: rgba(57,181,74,0.45);
    border-color: #39b54a;
    box-shadow: 0 0 40px rgba(57,181,74,0.75);
    color: #fff;
}

/* 顶部横幅 全息流光+旋转光晕 */
.banner {
    width: 100%;
    min-height: 280px;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(57,181,74,0.35);
}

.banner::before {
    content: "";
    position: absolute;
    width: 250%;
    height: 250%;
    background: radial-gradient(rgba(57,181,74,0.25),transparent 75%);
    animation: bannerRotate 25s linear infinite;
    pointer-events: none;
}

@keyframes bannerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.banner h1 {
    font-size: 48px;
    color: #39b54a;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(57,181,74,0.85), 0 0 60px rgba(57,181,74,0.45);
    position: relative;
    z-index: 2;
}

.banner p {
    font-size: 18px;
    color: #c2c4c7;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.ip-text {
    font-size: 20px;
    color: #fff;
    background: rgba(57,181,74,0.25);
    padding: 12px 32px;
    border-radius: 40px;
    border: 1px solid #39b54a;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 35px rgba(57,181,74,0.55);
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.ip-text:hover {
    transform: scale(1.08);
    box-shadow: 0 0 55px rgba(57,181,74,0.8);
}

/* 主体容器 */
.container {
    width: 92%;
    max-width: 1280px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 天花板级卡片：呼吸边框+全息毛玻璃+内发光+悬浮上浮 */
.card {
    background: rgba(35,37,42,0.4);
    padding: 42px;
    border-radius: 18px;
    border: 1px solid rgba(57,181,74,0.3);
    backdrop-filter: blur(30px) saturate(220%);
    -webkit-backdrop-filter: blur(30px) saturate(220%);
    box-shadow: 0 10px 60px rgba(0,0,0,0.6), 0 0 40px rgba(57,181,74,0.18);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* 关键：保证手机按住卡片可滑动 */
    touch-action: pan-y;
}

/* 卡片呼吸发光边框 */
.card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg,#39b54a,#70e080,#39b54a,#2e8f3b);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0.5;
    animation: borderBreath 6s ease infinite;
}

@keyframes borderBreath {
    0% { background-position: 0% 50%; opacity:0.4; }
    50% { background-position: 100% 50%; opacity:0.7; }
    100% { background-position: 0% 50%; opacity:0.4; }
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,rgba(57,181,74,0.15),transparent 75%);
    border-radius: 18px;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 80px rgba(0,0,0,0.7), 0 0 60px rgba(57,181,74,0.3);
}

.card h2 {
    font-size: 26px;
    color: #39b54a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(57,181,74,0.35);
    text-shadow: 0 0 20px rgba(57,181,74,0.6);
    position: relative;
    z-index: 3;
}

.card p {
    font-size: 16px;
    color: #dcdde1;
    margin: 12px 0;
    line-height: 2.05;
    position: relative;
    z-index: 3;
}

/* 悬浮按钮高配版 */
.float-qq {
    position: fixed;
    left: 30px;
    bottom: 30px;
    background: rgba(18,183,245,0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid rgba(18,183,245,0.5);
    box-shadow: 0 0 40px rgba(18,183,245,0.6);
    z-index: 998;
    transition: all 0.4s ease;
}

.float-qq:hover {
    transform: scale(1.1);
    box-shadow: 0 0 60px #12b7f5;
}

.back-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: rgba(57,181,74,0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: #fff;
    border-radius: 50%;
    line-height: 50px;
    text-align: center;
    border: 1px solid rgba(57,181,74,0.5);
    box-shadow: 0 0 40px rgba(57,181,74,0.6);
    z-index: 998;
    transition: all 0.4s ease;
    display: none;
}

.back-top:hover {
    transform: scale(1.18);
    box-shadow: 0 0 60px #39b54a;
}

/* 页脚顶配毛玻璃 */
footer {
    background: rgba(18,19,24,0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid rgba(57,181,74,0.3);
    box-shadow: 0 -8px 50px rgba(0,0,0,0.5);
}

footer p {
    color: #949699;
    font-size: 14px;
    margin: 8px 0;
}

/* 顶配自定义滚动条 */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #15161a;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,#39b54a,#70e080);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(57,181,74,0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,#70e080,#a8ffb8);
    box-shadow: 0 0 25px rgba(57,181,74,0.8);
}

/* 手机端适配 保留所有特效+不影响滑动 */
@media (max-width:768px) {
    header { padding:6px 0; }
    .nav-wrap { flex-direction: column; gap:10px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; gap:8px; }
    .nav-menu a { font-size:13px; padding:7px 11px; }
    .banner { min-height:250px; padding:35px 15px; }
    .banner h1 { font-size:32px; }
    .ip-text { font-size:17px; padding:10px 24px; }
    .card { padding:26px; }
    .float-qq,.back-top { left:15px; right:15px; bottom:20px; }
}
