/* ============================================
   3b3t — Style.css
   ============================================ */

:root {
    --bg-deep: #0a0a0f;
    --bg-dark: #111118;
    --bg-card: #181825;
    --bg-card-hover: #1e1e30;
    --grass-green: #5da63c;
    --grass-light: #7bc34d;
    --grass-bright: #8fd95a;
    --grass-dark: #3d7a22;
    --grass-deeper: #2a5518;
    --dirt-brown: #8b6914;
    --dirt-dark: #6b4f0e;
    --stone-gray: #7f7f7f;
    --stone-light: #9a9a9a;
    --stone-dark: #5a5a5a;
    --gold: #f5c842;
    --gold-bright: #ffe066;
    --gold-dark: #c19a26;
    --diamond: #4aedd9;
    --diamond-glow: #7ff7e8;
    --redstone: #e74c3c;
    --redstone-dark: #a93226;
    --nether: #f39c12;
    --obsidian: #1a1023;
    --obsidian-light: #2a1838;
    --wechat-green: #07c160;
    --text-primary: #e8e8f0;
    --text-secondary: #b0b0c0;
    --text-muted: #777790;
    --border-pixel: #3a3a4a;
    --font-mc: 'Courier New', 'Consolas', 'Monaco', monospace;
    --font-main: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-reveal: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --modal-curve: cubic-bezier(0.32, 0.72, 0.15, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #2a2a3a var(--bg-deep);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-pixel); }

body {
    font-family: var(--font-main);
    background: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ============ NAV ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-smooth);
    background: transparent;
}
.navbar.scrolled {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 20, 0.75);
    padding: 10px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mc);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    z-index: 10;
    transition: color var(--transition-fast);
}
.nav-brand:hover { color: var(--grass-light); }
.nav-brand .pixel-icon {
    width: 38px; height: 38px;
    background: var(--grass-green);
    border: 3px solid var(--grass-dark);
    border-radius: 4px;
    position: relative;
    box-shadow:
        0 0 0 2px var(--grass-deeper),
        0 4px 0 var(--grass-deeper),
        0 0 20px rgba(93, 166, 60, 0.3);
    transition: transform var(--transition-fast);
}
.nav-brand:hover .pixel-icon { transform: rotate(-8deg) scale(1.08); }
.pixel-icon::after {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    position: relative;
    transition: color var(--transition-fast);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 100%; height: 2px;
    background: var(--grass-green);
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transition: transform var(--transition-smooth);
    transform-origin: center;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-cta {
    background: var(--grass-green) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 700 !important;
    border: 2px solid var(--grass-dark);
    box-shadow: 0 4px 0 var(--grass-dark), 0 0 20px rgba(93, 166, 60, 0.2);
    position: relative;
    top: 0;
}
.nav-cta:hover {
    background: #6db84a !important;
    box-shadow: 0 6px 0 var(--grass-dark), 0 0 30px rgba(93, 166, 60, 0.4) !important;
    top: -2px;
}
.nav-cta:active {
    top: 2px;
    box-shadow: 0 2px 0 var(--grass-dark) !important;
}
.nav-cta::after { display: none !important; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    flex-direction: column;
    gap: 5px;
}
.mobile-menu-btn span {
    display: block;
    width: 26px; height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ============ HERO ============ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    overflow: hidden;
}
.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}
.hero-badge .dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--grass-light);
    margin-right: 8px;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(123, 195, 77, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(123, 195, 77, 0); }
}
.hero h1 {
    font-family: var(--font-mc);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.05;
    margin-bottom: 8px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both;
    background: linear-gradient(180deg, #fff 0%, #d0d0e0 40%, #a0b8d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 3px;
    font-weight: 300;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}
.hero .tagline {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}
.tagline span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}
.tagline span:hover {
    border-color: rgba(123, 195, 77, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    top: 0;
    font-family: var(--font-main);
}
.btn-primary {
    background: var(--grass-green);
    color: #fff;
    border: 2px solid var(--grass-dark);
    box-shadow: 0 6px 0 var(--grass-dark), 0 0 25px rgba(93, 166, 60, 0.25);
}
.btn-primary:hover {
    background: #6db84a;
    box-shadow: 0 8px 0 var(--grass-dark), 0 0 40px rgba(93, 166, 60, 0.45);
    top: -3px;
}
.btn-primary:active {
    top: 4px;
    box-shadow: 0 2px 0 var(--grass-dark);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    top: -2px;
}

/* ============================================
   浮动方块系统 (全部CSS像素绘制，无emoji)
   ============================================ */

.fcube, .fentity {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    animation: floatY 6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
    transform: scale(var(--s, 1));
}
@keyframes floatY {
    0%, 100% { transform: translateY(0) scale(var(--s, 1)); }
    50%      { transform: translateY(-20px) scale(var(--s, 1)); }
}

/* ====== 3D立方体通用 ====== */
.cube {
    width: 70px; height: 70px;
    position: relative;
    transform-style: preserve-3d;
    animation: spinCube 16s linear infinite;
}
@keyframes spinCube {
    0%   { transform: rotateX(-25deg) rotateY(0deg); }
    100% { transform: rotateX(-25deg) rotateY(360deg); }
}
.face {
    position: absolute;
    width: 70px; height: 70px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
/* 顶部: 黄色草面 */
.f-top    { transform: rotateX( 90deg) translateZ(35px); }
/* 底部 */
.f-bottom { transform: rotateX(-90deg) translateZ(35px); }
/* 前 */
.f-front  { transform:                  translateZ(35px); }
/* 后 */
.f-back   { transform: rotateY(180deg)  translateZ(35px); }
/* 右 */
.f-right  { transform: rotateY( 90deg) translateZ(35px); }
/* 左 */
.f-left   { transform: rotateY(-90deg) translateZ(35px); }

/* ====== 像素纹理 - 用 box-shadow 拼接 ====== */
/* 每个 .face 的内容用 ::before 绘制 8x8 像素，参考真实MC */

/* 草方块 - top: 绿, front: 上绿下土 */
.f-top.grass-t  { background: #5da63c; }
.f-bottom.grass-b{ background: #6b4f2a; }
.f-front.grass-f { background: linear-gradient(to bottom, #5da63c 0 25%, #8b6914 25% 100%); }
.f-back.grass-bk { background: linear-gradient(to bottom, #7bc34d 0 25%, #6b4f2a 25% 100%); }
.f-left.grass-l  { background: linear-gradient(to bottom, #5da63c 0 25%, #8b6914 25% 100%); }
.f-right.grass-r { background: linear-gradient(to bottom, #7bc34d 0 25%, #6b4f2a 25% 100%); }

/* 为了避免每个face class写6个名，用伪元素画细节 */
/* 给纹理细节 */

.block-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* 草方块 顶部细节 */
.block-texture.grass .f-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 20%, #7bc34d 2px, transparent 3px),
        radial-gradient(circle at 40% 50%, #8fd95a 2px, transparent 3px),
        radial-gradient(circle at 70% 30%, #7bc34d 2px, transparent 3px),
        radial-gradient(circle at 90% 70%, #8fd95a 2px, transparent 3px);
}
.block-texture.grass .f-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 10%, #7bc34d 3px, transparent 3px),
        radial-gradient(circle at 55% 12%, #8fd95a 3px, transparent 3px),
        radial-gradient(circle at 80% 15%, #7bc34d 3px, transparent 3px),
        radial-gradient(circle at 22% 60%, #6b4f2a 3px, transparent 3px),
        radial-gradient(circle at 65% 70%, #5a3e1f 3px, transparent 3px);
}

/* 石头 */
.block-texture.stone .face {
    background-color: #7f7f7f !important;
}
.block-texture.stone .f-top::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, #5a5a5a 4px, transparent 4px),
        radial-gradient(circle at 70% 35%, #9a9a9a 4px, transparent 4px),
        radial-gradient(circle at 45% 70%, #6a6a6a 4px, transparent 4px),
        radial-gradient(circle at 85% 80%, #8a8a8a 4px, transparent 4px);
}

/* 钻石 */
.block-texture.diamond .face {
    background: #5cffd8 !important;
}
.block-texture.diamond .face::before {
    content: ''; position: absolute; inset: 8px;
    background-image:
        linear-gradient(45deg, #4aedd9 25%, transparent 25%),
        linear-gradient(-45deg, #7ff7e8 25%, transparent 25%);
    background-size: 14px 14px;
    opacity: .6;
}

/* 金 */
.block-texture.gold .face {
    background: #f5c842 !important;
}
.block-texture.gold .face::before {
    content: ''; position: absolute; inset: 6px;
    background-image:
        repeating-linear-gradient(45deg, #c19a26 0 3px, transparent 3px 9px),
        repeating-linear-gradient(-45deg, #ffe066 0 3px, transparent 3px 9px);
    opacity: .7;
}

/* 红石 */
.block-texture.redstone .face {
    background: #e74c3c !important;
}
.block-texture.redstone .face::before {
    content: ''; position: absolute; inset: 14px;
    background: #a93226;
    box-shadow:
        inset 4px 4px 0 #ff6b5a,
        inset -4px -4px 0 #8a1a10;
    border-radius: 6px;
}

/* 地狱岩 */
.block-texture.netherrack .face {
    background: #6e2419 !important;
}
.block-texture.netherrack .face::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 25%, #8b3a2a 3px, transparent 4px),
        radial-gradient(circle at 60% 45%, #4e1810 3px, transparent 4px),
        radial-gradient(circle at 80% 70%, #8b3a2a 3px, transparent 4px),
        radial-gradient(circle at 35% 80%, #4e1810 3px, transparent 4px);
}

/* 黑曜石 */
.block-texture.obsidian .face {
    background: #1a1023 !important;
}
.block-texture.obsidian .face::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(45deg, transparent 40%, #3a2050 40% 50%, transparent 50%),
        linear-gradient(-45deg, transparent 40%, #3a2050 40% 50%, transparent 50%);
    background-size: 14px 14px;
    opacity: .6;
}

/* 末地石 */
.block-texture.endstone .face {
    background: #dbe6a8 !important;
}
.block-texture.endstone .face::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, #f0f5c0 4px, transparent 5px),
        radial-gradient(circle at 75% 65%, #b8c080 4px, transparent 5px),
        radial-gradient(circle at 50% 50%, #f0f5c0 4px, transparent 5px);
}

/* 西瓜 */
.block-texture.melon .face {
    background: #6ab04c !important;
}
.block-texture.melon .face::before {
    content: ''; position: absolute; inset: 8px;
    background-image:
        repeating-linear-gradient(90deg, #2d5016 0 2px, transparent 2px 14px);
    background-color: #ff6b6b;
    border-radius: 4px;
}

/* 南瓜 */
.block-texture.pumpkin .f-front { background: #ff8c1a !important; }
.block-texture.pumpkin .f-back  { background: #d97317 !important; }
.block-texture.pumpkin .f-left  { background: #ff8c1a !important; }
.block-texture.pumpkin .f-right { background: #d97317 !important; }
.block-texture.pumpkin .f-top   { background: #5da63c !important; }
.block-texture.pumpkin .f-bottom{ background: #cc6d14 !important; }
.block-texture.pumpkin .f-front::after,
.block-texture.pumpkin .f-back::after,
.block-texture.pumpkin .f-left::after,
.block-texture.pumpkin .f-right::after {
    content: '';
    position: absolute;
    left: 22px; top: 22px;
    width: 26px; height: 26px;
    background:
        radial-gradient(circle at 35% 35%, #000 4px, transparent 5px),
        radial-gradient(circle at 65% 35%, #000 4px, transparent 5px),
        linear-gradient(#000, #000) center/30px 3px no-repeat,
        linear-gradient(#000, #000) center/3px 14px no-repeat;
    border-radius: 50%;
}

/* 书架 */
.block-texture.bookshelf .f-top, .block-texture.bookshelf .f-bottom { background: #6b4f2a !important; }
.block-texture.bookshelf .f-front,
.block-texture.bookshelf .f-back,
.block-texture.bookshelf .f-left,
.block-texture.bookshelf .f-right {
    background:
        linear-gradient(to bottom, #6b4f2a 0 14%, transparent 14% 100%),
        linear-gradient(90deg,
            #b83a2a 0 25%, #2d6e3e 25% 50%, #4a3a8a 50% 75%, #d4a017 75% 100%) !important;
}

/* 绿宝石 */
.block-texture.emerald .face {
    background: #4cb87a !important;
}
.block-texture.emerald .face::before {
    content: ''; position: absolute; inset: 14px;
    background-image:
        radial-gradient(circle at 50% 50%, #2a8a55 5px, transparent 6px),
        radial-gradient(circle at 25% 25%, #6bd99c 3px, transparent 4px),
        radial-gradient(circle at 75% 75%, #6bd99c 3px, transparent 4px);
}

/* ============================================
   MC 像素生物 (entity 全部CSS拼)
   ============================================ */

.fentity {
    transform-origin: center;
}
.entity {
    display: grid;
    grid-template-columns: repeat(4, 14px);
    gap: 1px;
    transform: rotate(-12deg);
    animation: bobbing 2s ease-in-out infinite;
    filter: drop-shadow(0 6px 6px rgba(0,0,0,0.4));
}
@keyframes bobbing {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50%      { transform: rotate(-12deg) translateY(-6px); }
}
.pixel {
    width: 14px; height: 14px;
    background: transparent;
    image-rendering: pixelated;
}

/* 史莱姆：绿色 */
.pixel.e   { background: #77c850; }
.pixel.e.d { background: #4a8023; }

/* 苦力怕 */
.pixel.g   { background: #4caf50; }
.pixel.g.dk{ background: #2e7d32; }
.pixel.g.l { background: #66bb6a; }

/* 僵尸 */
.pixel.zb     { background: #2d6e3e; }
.pixel.skin   { background: #6ab04c; }
.pixel.sh     { background: #3d7a22; }
.pixel.p      { background: #2e4d3a; }
.pixel        { background: transparent; }
.pixel.z      { background: #4a8023; }
.pixel.eye    { background: #000; }

/* 猪 */
.pixel.pk  { background: #f5a9b8; }
.pixel.pn  { background: #ec8ca0; }
.pixel.pkd { background: #c46a7d; }

/* 牛 */
.pixel.cw  { background: #4a3220; }
.pixel.cbb { background: #fafafa; }

/* 鸡 */
.pixel.wh  { background: #fafafa; }
.pixel.r   { background: #e74c3c; }
.pixel.or  { background: #ff8c1a; }

/* ============================================
   Section Headers & 通用
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(30px);
}
.section-header.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-reveal);
}
.section-header h2 {
    font-family: var(--font-mc);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ============ FEATURES ============ */
.features {
    position: relative;
    z-index: 1;
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-pixel);
    border-radius: 14px;
    padding: 0 0 28px;
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: default;
    opacity: 0;
    transform: translateY(40px);
}
.feature-card.revealed { opacity: 1; transform: translateY(0); transition: all var(--transition-reveal); }
.feature-card:nth-child(1).revealed { transition-delay: 0.05s; }
.feature-card:nth-child(2).revealed { transition-delay: 0.18s; }
.feature-card:nth-child(3).revealed { transition-delay: 0.31s; }
.feature-card:nth-child(4).revealed { transition-delay: 0.44s; }
.feature-card:hover {
    border-color: rgba(123, 195, 77, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: var(--bg-card-hover);
}
.feature-img-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-pixel);
}
.feature-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 0.6s var(--ease-out-expo);
}
.feature-card:hover .feature-img-wrap img { transform: scale(1.08); }
.feature-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(24, 24, 37, 0.95) 100%);
}

/* 4x4 像素方块图标（在卡片里） */
.feature-cube {
    width: 56px; height: 56px;
    margin: -28px auto 16px;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-spring);
    background: transparent;
    border: 2px solid rgba(0,0,0,0.4);
}
.feature-card:hover .feature-cube { transform: rotateY(180deg); }
.mc-icon {
    width: 100%; height: 100%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}
.mc-icon span {
    display: block;
}
.mc-icon.grass {
    background:
        linear-gradient(to bottom, #5da63c 0 25%, #6b4f2a 25% 100%);
}
.mc-icon.grass > span:nth-child(1) { background: #7bc34d; }
.mc-icon.grass > span:nth-child(2) { background: #5da63c; }
.mc-icon.grass > span:nth-child(3) { background: #7bc34d; }
.mc-icon.grass > span:nth-child(4) { background: #5da63c; }
.mc-icon.grass > span:nth-child(5) { background: #5da63c; }
.mc-icon.grass > span:nth-child(6) { background: #7bc34d; }
.mc-icon.grass > span:nth-child(7) { background: #5da63c; }
.mc-icon.grass > span:nth-child(8) { background: #5da63c; }
.mc-icon.grass > span:nth-child(9) { background: #8b6914; }
.mc-icon.grass > span:nth-child(10){ background: #6b4f2a; }
.mc-icon.grass > span:nth-child(11){ background: #8b6914; }
.mc-icon.grass > span:nth-child(12){ background: #6b4f2a; }
.mc-icon.grass > span:nth-child(13){ background: #6b4f2a; }
.mc-icon.grass > span:nth-child(14){ background: #8b6914; }
.mc-icon.grass > span:nth-child(15){ background: #6b4f2a; }
.mc-icon.grass > span:nth-child(16){ background: #8b6914; }

.mc-icon.grass-side { background: linear-gradient(to bottom, #5da63c 0 25%, #8b6914 25% 100%); }
.mc-icon.grass-side > span:nth-child(1) { background: #7bc34d; }
.mc-icon.grass-side > span:nth-child(2) { background: #5da63c; }
.mc-icon.grass-side > span:nth-child(3) { background: #7bc34d; }
.mc-icon.grass-side > span:nth-child(4) { background: #5da63c; }
.mc-icon.grass-side > span:nth-child(5),
.mc-icon.grass-side > span:nth-child(6),
.mc-icon.grass-side > span:nth-child(7),
.mc-icon.grass-side > span:nth-child(8) { background: #7bc34d; }
.mc-icon.grass-side > span:nth-child(9),
.mc-icon.grass-side > span:nth-child(10),
.mc-icon.grass-side > span:nth-child(11),
.mc-icon.grass-side > span:nth-child(12) { background: #6b4f2a; }
.mc-icon.grass-side > span:nth-child(13),
.mc-icon.grass-side > span:nth-child(14),
.mc-icon.grass-side > span:nth-child(15),
.mc-icon.grass-side > span:nth-child(16) { background: #8b6914; }

.mc-icon.diamond { background: #5cffd8; }
.mc-icon.diamond > span:nth-child(1),
.mc-icon.diamond > span:nth-child(2),
.mc-icon.diamond > span:nth-child(5),
.mc-icon.diamond > span:nth-child(6) { background: #4aedd9; }
.mc-icon.diamond > span:nth-child(3),
.mc-icon.diamond > span:nth-child(4),
.mc-icon.diamond > span:nth-child(7),
.mc-icon.diamond > span:nth-child(8) { background: #7ff7e8; }
.mc-icon.diamond > span:nth-child(9),
.mc-icon.diamond > span:nth-child(14) { background: #4aedd9; }
.mc-icon.diamond > span:nth-child(10),
.mc-icon.diamond > span:nth-child(15) { background: #7ff7e8; }
.mc-icon.diamond > span:nth-child(11),
.mc-icon.diamond > span:nth-child(16) { background: #4aedd9; }
.mc-icon.diamond > span:nth-child(12),
.mc-icon.diamond > span:nth-child(13) { background: #7ff7e8; }

.mc-icon.redstone { background: #e74c3c; }
.mc-icon.redstone > span:nth-child(5),
.mc-icon.redstone > span:nth-child(6),
.mc-icon.redstone > span:nth-child(9),
.mc-icon.redstone > span:nth-child(10) { background: #ff6b5a; }
.mc-icon.redstone > span:nth-child(7),
.mc-icon.redstone > span:nth-child(11) { background: #a93226; }
.mc-icon.redstone > span:nth-child(3),
.mc-icon.redstone > span:nth-child(4) { background: #c0392b; }

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    padding: 0 24px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

/* ============ STATS ============ */
.stats {
    position: relative;
    z-index: 1;
    padding: 60px 32px 80px;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item {
    opacity: 0;
    transform: translateY(30px);
}
.stat-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-reveal);
}
.stat-item:nth-child(1).revealed { transition-delay: 0s; }
.stat-item:nth-child(2).revealed { transition-delay: 0.1s; }
.stat-item:nth-child(3).revealed { transition-delay: 0.2s; }
.stat-item:nth-child(4).revealed { transition-delay: 0.3s; }
.stat-number {
    font-family: var(--font-mc);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    display: block;
}
.stat-number.green { color: var(--grass-light); }
.stat-number.gold { color: var(--gold-bright); }
.stat-number.diamond { color: var(--diamond-glow); }
.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* ============ WORLD ============ */
.world {
    position: relative;
    z-index: 1;
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.world-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.world-card {
    background: var(--bg-card);
    border: 1px solid var(--border-pixel);
    border-radius: 14px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: default;
    opacity: 0;
    transform: translateY(40px);
}
.world-card.revealed { opacity: 1; transform: translateY(0); transition: all var(--transition-reveal); }
.world-card:nth-child(1).revealed { transition-delay: 0.05s; }
.world-card:nth-child(2).revealed { transition-delay: 0.18s; }
.world-card:nth-child(3).revealed { transition-delay: 0.31s; }
.world-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 195, 77, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.world-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.world-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.world-card-content {
    padding: 24px;
}
.world-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.world-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 主世界像素树 */
.pixel-tree {
    position: relative;
    width: 120px;
    height: 160px;
    animation: treeBob 3s ease-in-out infinite;
}
@keyframes treeBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.leaves {
    position: absolute;
    background: #5da63c;
    border: 2px solid #3d7a22;
}
.leaves.l1 { top: 0;   left: 10px;  width: 60px; height: 30px; background: #7bc34d; }
.leaves.l2 { top: 25px; left: 0;    width: 80px; height: 35px; background: #5da63c; }
.leaves.l3 { top: 50px; left: 10px; width: 60px; height: 30px; background: #3d7a22; }
.trunk {
    position: absolute;
    background: #6b4f2a;
    border: 2px solid #4a3520;
}
.trunk.t1 { top: 80px; left: 45px; width: 30px; height: 30px; background: #8b6914; }
.trunk.t2 { top: 105px; left: 45px; width: 30px; height: 30px; background: #6b4f2a; }
.trunk.t3 { top: 130px; left: 45px; width: 30px; height: 25px; background: #8b6914; }
.cloud {
    position: absolute;
    background: rgba(255,255,255,0.85);
    border-radius: 4px;
}
.cloud.c1 { top: 12px; left: 20%; width: 50px; height: 12px; animation: cloudDrift 12s linear infinite; }
.cloud.c2 { top: 28px; right: 18%; width: 60px; height: 10px; animation: cloudDrift 15s linear infinite reverse; }
@keyframes cloudDrift {
    0% { transform: translateX(0); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

/* 下界熔岩 */
.lava-pool {
    width: 160px;
    height: 60px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    margin-top: 30px;
    animation: lavaFlicker 1s ease-in-out infinite;
}
@keyframes lavaFlicker {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.2); }
}
.lava {
    background: #f39c12;
    box-shadow: inset 0 -3px 0 #a04000, inset 0 2px 0 #ffe066;
    border-radius: 2px;
}
.lava.lb2, .lava.lb5 { background: #e74c3c; }
.lava.lb4 { background: #f5c842; }

.netherrack {
    position: absolute;
    background: #6e2419;
    border: 2px solid #3d1410;
    border-radius: 2px;
}
.netherrack.nb1 { bottom: 20px; left: 15%; width: 50px; height: 30px; }
.netherrack.nb2 { bottom: 20px; right: 15%; width: 60px; height: 30px; background: #8b3a2a; }
.netherrack.nb3 { bottom: 60px; left: 30%; width: 40px; height: 25px; background: #4e1810; }

.fire-pillar {
    position: absolute;
    width: 18px; height: 36px;
    bottom: 30px;
    border-radius: 4px 4px 0 0;
    animation: fireDance 0.6s ease-in-out infinite alternate;
}
.fire-pillar.fp1 { left: 22%; background: linear-gradient(to top, #e74c3c 0 30%, #f39c12 30% 70%, #ffe066 70% 100%); }
.fire-pillar.fp2 { right: 22%; background: linear-gradient(to top, #e74c3c 0 30%, #f39c12 30% 70%, #ffe066 70% 100%); animation-delay: 0.3s; }
@keyframes fireDance {
    0%   { transform: scaleY(1)   translateY(0); }
    100% { transform: scaleY(1.1) translateY(-2px); }
}

/* 末地 */
.end-portal {
    width: 110px; height: 110px;
    position: relative;
    animation: portalSpin 6s linear infinite;
}
@keyframes portalSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.portal-frame {
    position: absolute;
    background: #2d1b4e;
    border: 1px solid #5e3fa3;
}
.portal-frame.pf1 { top: 0;    left: 40px; width: 30px; height: 30px; }
.portal-frame.pf2 { top: 30px; left: 80px; width: 30px; height: 30px; }
.portal-frame.pf3 { top: 60px; left: 80px; width: 30px; height: 30px; }
.portal-frame.pf4 { top: 80px; left: 40px; width: 30px; height: 30px; }
.portal-frame.pf5 { top: 60px; left: 0;  width: 30px; height: 30px; }
.portal-frame.pf6 { top: 30px; left: 0;  width: 30px; height: 30px; }
.portal-frame.pf7 { top: 30px; left: 30px; width: 50px; height: 50px; background: radial-gradient(circle, #c4b5fd 0%, #818cf8 50%, #312e81 100%); box-shadow: 0 0 30px #c4b5fd; border: none; }
.portal-frame.pf8 { top: 30px; left: 30px; width: 50px; height: 50px; background: repeating-conic-gradient(from 0deg, #4a3a8a 0deg 30deg, #2d1b4e 30deg 60deg); border-radius: 50%; mix-blend-mode: screen; opacity: 0.6; }
.portal-eye {
    position: absolute;
    top: 42px; left: 42px;
    width: 26px; height: 26px;
    background: #0a0518;
    border: 2px solid #c4b5fd;
    border-radius: 50%;
    box-shadow: 0 0 25px #c4b5fd, inset 0 0 10px #fff;
}

.endstone {
    position: absolute;
    background: #dbe6a8;
    border: 2px solid #b8c080;
    border-radius: 2px;
}
.endstone.es1 { bottom: 25px; left: 18%; width: 45px; height: 25px; }
.endstone.es2 { bottom: 25px; right: 18%; width: 55px; height: 25px; background: #f0f5c0; }

.dragon-silhouette {
    position: absolute;
    top: 30px; right: 30px;
    width: 60px; height: 30px;
    background: #1a0a2e;
    border-radius: 60% 40% 80% 20%;
    box-shadow:
        40px -10px 0 -5px #1a0a2e,
        -30px -8px 0 -3px #1a0a2e,
        20px 5px 0 -2px #1a0a2e;
    transform: rotate(-15deg);
    animation: dragonFly 4s ease-in-out infinite;
}
@keyframes dragonFly {
    0%, 100% { transform: rotate(-15deg) translateX(0); }
    50%      { transform: rotate(-15deg) translateX(-15px); }
}

/* ============ JOIN ============ */
.join {
    position: relative;
    z-index: 1;
    padding: 100px 32px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.join-card {
    background: var(--bg-card);
    border: 1px solid var(--border-pixel);
    border-radius: 20px;
    padding: 48px 36px;
    opacity: 0;
    transform: translateY(40px);
    transition: all var(--transition-reveal);
    position: relative;
    overflow: hidden;
}
.join-card.revealed { opacity: 1; transform: translateY(0); }
.join-card h2 {
    font-family: var(--font-mc);
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
.join-hint {
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.ip-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 16px 28px;
    font-family: var(--font-mc);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--diamond-glow);
    margin: 16px 0 24px;
    transition: all var(--transition-fast);
    cursor: pointer;
    user-select: all;
}
.ip-display:hover {
    border-color: var(--diamond);
    box-shadow: 0 0 35px rgba(74, 237, 217, 0.25);
    border-style: solid;
}
.copy-btn {
    display: inline-block;
    background: var(--diamond);
    color: #000;
    border: 2px solid #2da89a;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    box-shadow: 0 4px 0 #2da89a, 0 0 20px rgba(74, 237, 217, 0.2);
    top: 0;
    position: relative;
}
.copy-btn:hover {
    background: #5ff7e6;
    box-shadow: 0 6px 0 #2da89a, 0 0 35px rgba(74, 237, 217, 0.4);
    top: -2px;
}
.copy-btn:active { top: 2px; box-shadow: 0 2px 0 #2da89a; }
.copy-btn.copied { background: var(--grass-green); color: #fff; border-color: var(--grass-dark); box-shadow: 0 4px 0 var(--grass-dark); }
.join-version {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 16px;
}

/* ============ COMMUNITY ============ */
.community {
    position: relative;
    z-index: 1;
    padding: 80px 32px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.community-content {
    opacity: 0;
    transform: translateY(40px);
}
.community-content.revealed { opacity: 1; transform: translateY(0); transition: all var(--transition-reveal); }
.community-content h2 {
    font-family: var(--font-mc);
    font-size: 1.8rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.community-content > p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
}
.community-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.community-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
}
.community-link:hover {
    border-color: rgba(123, 195, 77, 0.4);
    background: rgba(123, 195, 77, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.community-link svg { opacity: 0.8; }
.community-link.wechat-btn:hover {
    border-color: rgba(7, 193, 96, 0.4);
    background: rgba(7, 193, 96, 0.08);
    box-shadow: 0 10px 25px rgba(7, 193, 96, 0.15);
}

/* ============================================
   微信群弹窗 - 丝滑
   ============================================ */
.wechat-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.4s var(--modal-curve),
        visibility 0s 0.4s;
}
.wechat-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.4s var(--modal-curve),
        visibility 0s 0s;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 12, 0.65);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    opacity: 0;
    transition: opacity 0.4s var(--modal-curve);
}
.wechat-modal.open .modal-backdrop { opacity: 1; }

.modal-card {
    position: relative;
    z-index: 1;
    width: min(420px, 92vw);
    background: linear-gradient(160deg, #1c1c2e 0%, #14141e 100%);
    border: 1px solid rgba(7, 193, 96, 0.3);
    border-radius: 20px;
    padding: 36px 28px 28px;
    text-align: center;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(7, 193, 96, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform:
        translateY(20px)
        scale(0.92)
        rotateX(8deg);
    opacity: 0;
    transition:
        transform 0.5s var(--modal-curve),
        opacity 0.4s var(--modal-curve);
    transform-origin: center bottom;
}
.wechat-modal.open .modal-card {
    transform:
        translateY(0)
        scale(1)
        rotateX(0deg);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 5;
}
.modal-close:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.5);
    color: #e74c3c;
    transform: rotate(90deg);
}

.modal-header { margin-bottom: 22px; }
.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(7, 193, 96, 0.12);
    border: 1px solid rgba(7, 193, 96, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 600;
    margin-bottom: 12px;
}
.wechat-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--wechat-green);
    box-shadow: 0 0 8px var(--wechat-green);
    animation: pulse-dot 2s ease-in-out infinite;
}
.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}
.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-qr-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    width: 240px;
    height: 240px;
}
.modal-qr {
    position: relative;
    width: 220px;
    height: 220px;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
.modal-qr img {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.modal-qr-wrap::before,
.modal-qr-wrap::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 60px;
    pointer-events: none;
    border-radius: 12px;
    z-index: 2;
}
.modal-qr-wrap::before {
    top: -10px;
    background: linear-gradient(to bottom, rgba(7, 193, 96, 0.18), transparent);
}
.modal-qr-wrap::after {
    bottom: -10px;
    background: linear-gradient(to top, rgba(7, 193, 96, 0.18), transparent);
}
.qr-corner {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 3px solid var(--wechat-green);
    z-index: 3;
}
.qr-corner.tl { top: 4px; left: 4px; border-right: none; border-bottom: none; border-radius: 3px 0 0 0; }
.qr-corner.tr { top: 4px; right: 4px; border-left: none; border-bottom: none; border-radius: 0 3px 0 0; }
.qr-corner.bl { bottom: 4px; left: 4px; border-right: none; border-top: none; border-radius: 0 0 0 3px; }
.qr-corner.br { bottom: 4px; right: 4px; border-left: none; border-top: none; border-radius: 0 0 3px 0; }

.qr-scan-line {
    position: absolute;
    left: 8px; right: 8px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--wechat-green), transparent);
    box-shadow: 0 0 12px var(--wechat-green);
    border-radius: 2px;
    z-index: 4;
    animation: scanDown 2s ease-in-out infinite;
    top: 8px;
}
@keyframes scanDown {
    0%   { top: 8px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: calc(100% - 11px); opacity: 0; }
}

.modal-hint, .modal-expire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}
.scan-icon {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid var(--wechat-green);
    border-radius: 2px;
    position: relative;
}
.scan-icon::before, .scan-icon::after {
    content: '';
    position: absolute;
    background: var(--wechat-green);
}
.scan-icon::before {
    top: 2px; left: 2px; right: 2px;
    height: 2px;
}
.scan-icon::after {
    left: 2px; top: 2px; bottom: 2px;
    width: 2px;
}
.clock-icon {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    position: relative;
}
.clock-icon::before {
    content: '';
    position: absolute;
    top: 1px; left: 50%;
    width: 1.5px; height: 5px;
    background: var(--text-muted);
    transform: translateX(-50%);
}
.clock-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 4px; height: 1.5px;
    background: var(--text-muted);
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: left center;
}

/* ============ FOOTER ============ */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer .brand-name {
    color: var(--grass-light);
    font-weight: 700;
}
.footer-sub {
    font-size: 0.72rem;
    margin-top: 6px;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #1e1e30;
    border: 1px solid rgba(123, 195, 77, 0.5);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 3000;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out-expo);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ============ 成就通知 ============ */
.achievement {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #2a1f4a 0%, #1a1230 100%);
    border: 2px solid rgba(123, 195, 77, 0.45);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 12px 18px 12px 12px;
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateX(-120%);
    pointer-events: none;
    transition:
        transform 0.55s var(--modal-curve),
        opacity 0.45s ease;
}
.achievement.show {
    opacity: 1;
    transform: translateX(0);
}
.achievement-icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    perspective: 200px;
}
.ach-cube {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: achSpin 4s ease-in-out infinite;
}
@keyframes achSpin {
    0%, 100% { transform: rotateY(-15deg); }
    50%      { transform: rotateY(15deg); }
}
.ach-face {
    position: absolute;
    width: 100%; height: 100%;
    background: #5da63c;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ach-face.f-front { transform: translateZ(18px); background: linear-gradient(135deg, #7bc34d 0%, #5da63c 100%); }
.ach-face.f-top   { transform: rotateX(90deg) translateZ(18px); background: #8fd95a; }
.ach-face.f-right { transform: rotateY(90deg) translateZ(18px); background: #3d7a22; }
.achievement-text {
    flex: 1;
    color: #fff;
    line-height: 1.3;
}
.achievement-title {
    font-family: var(--font-mc);
    font-size: 0.78rem;
    color: var(--gold-bright);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.achievement-desc {
    font-size: 0.95rem;
    font-weight: 600;
}

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

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
    .world-showcase { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .cube { width: 50px; height: 50px; }
    .face { width: 50px; height: 50px; }
    .f-top    { transform: rotateX( 90deg) translateZ(25px); }
    .f-bottom { transform: rotateX(-90deg) translateZ(25px); }
    .f-front  { transform:                  translateZ(25px); }
    .f-back   { transform: rotateY(180deg)  translateZ(25px); }
    .f-right  { transform: rotateY( 90deg) translateZ(25px); }
    .f-left   { transform: rotateY(-90deg) translateZ(25px); }
    .entity { grid-template-columns: repeat(4, 10px); }
    .pixel { width: 10px; height: 10px; }
    .fcube, .fentity { display: none; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        flex-direction: column;
        background: rgba(15, 15, 25, 0.97);
        backdrop-filter: blur(30px);
        padding: 100px 30px 30px;
        gap: 20px;
        transition: right 0.4s var(--ease-out-expo);
        z-index: 999;
    }
    .nav-links.open { right: 0; }
    .mobile-menu-btn { display: flex; }
    .hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
    .tagline span { font-size: 0.8rem; padding: 8px 14px; }
    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .ip-display { font-size: 1rem; padding: 12px 18px; letter-spacing: 1.5px; }
    .community-links { flex-direction: column; align-items: center; }
    .achievement { left: 16px; right: 16px; bottom: 16px; min-width: auto; }
}
@media (max-width: 500px) {
    .stats { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-number { font-size: 2rem; }
    .navbar { padding: 12px 16px; }
    .hero { padding: 100px 16px 60px; }
    .features, .world, .join, .community { padding: 60px 16px; }
    .feature-card { padding-bottom: 24px; }
    .join-card { padding: 32px 20px; }
    .modal-qr-wrap, .modal-qr { width: 200px; height: 200px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
