/* ---------- 加载本地 Minecraft 字体 ---------- */
@font-face {
    font-family: 'Minecraft-Regular';
    src: url('../font/Minecraft-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- 全局重置与基础样式 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #66ccff 0%, #aacc6f 100%);
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', 'Poppins', system-ui, -apple-system, sans-serif;
    color: #2d2e2c;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.bg-pattern {
    background-image:
        repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 16px),
        repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 16px),
        linear-gradient(145deg, #66ccff 0%, #aacc6f 100%);
    background-blend-mode: normal;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    transition: padding 0.2s ease;
}

/* ===== 像素风格卡片 ===== */
.card {
    background: rgba(255, 248, 225, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 0;
    border: 4px solid;
    border-color: #c8b898 #8a7a5a #8a7a5a #c8b898;
    box-shadow: inset -3px -3px 0 0 #b8a888, inset 3px 3px 0 0 #f0e8d0, 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.8rem;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: inset -3px -3px 0 0 #b8a888, inset 3px 3px 0 0 #f0e8d0, 0 14px 28px rgba(0, 0, 0, 0.2);
}

/* ===== 像素风格按钮 ===== */
.mc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 3px solid;
    border-color: #b0a090 #6a5a4a #6a5a4a #b0a090;
    background: #4c6a3b;
    color: #f9f2d9;
    transition: all 0.08s linear;
    text-decoration: none;
    text-align: center;
    box-shadow: inset -2px -2px 0 0 #2a3b20, inset 2px 2px 0 0 #6a8a5a;
    border-radius: 0;
    min-height: 48px;
    line-height: 1.2;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', 'Poppins', system-ui, -apple-system, sans-serif;
}

.mc-btn:hover {
    transform: scale(1.02);
    border-color: #c8b8a8 #7a6a5a #7a6a5a #c8b8a8;
    background: #5a7a4a;
    color: #fffaf0;
}

.mc-btn:active {
    transform: scale(0.97);
    border-color: #6a5a4a #b0a090 #b0a090 #6a5a4a;
    box-shadow: inset 2px 2px 0 0 #2a3b20;
}

.mc-btn-gold {
    background: #a5713a;
    border-color: #dbb87a #6a4a1a #6a4a1a #dbb87a;
    box-shadow: inset -2px -2px 0 0 #5a3a1f, inset 2px 2px 0 0 #dbb87a;
    color: #f9f2d9;
}
.mc-btn-gold:hover {
    background: #b8854a;
    border-color: #e8c88a #7a5a2a #7a5a2a #e8c88a;
}

.mc-btn-outline {
    background: transparent;
    border-color: #4c6a3b #2a3b20 #2a3b20 #4c6a3b;
    color: #2e3b26;
    box-shadow: inset -2px -2px 0 0 #b0a090, inset 2px 2px 0 0 #f0e8d0;
}
.mc-btn-outline:hover {
    background: rgba(76, 106, 59, 0.1);
    border-color: #6a8a5a #3a5a2a #3a5a2a #6a8a5a;
    color: #1a2a10;
}
.mc-btn-outline:active {
    border-color: #2a3b20 #4c6a3b #4c6a3b #2a3b20;
    box-shadow: inset 2px 2px 0 0 #b0a090;
}

.mc-btn-sm {
    padding: 4px 14px;
    font-size: 0.75rem;
    min-height: 32px;
    border-width: 2px;
}

.btn-pixel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: 3px solid;
    border-color: #b0a090 #6a5a4a #6a5a4a #b0a090;
    background: #4c6a3b;
    color: #f9f2d9;
    transition: all 0.08s linear;
    text-decoration: none;
    text-align: center;
    box-shadow: inset -2px -2px 0 0 #2a3b20, inset 2px 2px 0 0 #6a8a5a;
    border-radius: 0;
    min-height: 48px;
    line-height: 1.2;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', 'Poppins', system-ui, -apple-system, sans-serif;
}
.btn-pixel:hover {
    transform: scale(1.02);
    border-color: #c8b8a8 #7a6a5a #7a6a5a #c8b8a8;
    background: #5a7a4a;
    color: #fffaf0;
}
.btn-pixel:active {
    transform: scale(0.97);
    border-color: #6a5a4a #b0a090 #b0a090 #6a5a4a;
    box-shadow: inset 2px 2px 0 0 #2a3b20;
}
.btn-outline {
    background: transparent;
    border-color: #4c6a3b #2a3b20 #2a3b20 #4c6a3b;
    color: #2e3b26;
    box-shadow: inset -2px -2px 0 0 #b0a090, inset 2px 2px 0 0 #f0e8d0;
}
.btn-outline:hover {
    background: rgba(76, 106, 59, 0.1);
    border-color: #6a8a5a #3a5a2a #3a5a2a #6a8a5a;
    color: #1a2a10;
}
.btn-outline:active {
    border-color: #2a3b20 #4c6a3b #4c6a3b #2a3b20;
    box-shadow: inset 2px 2px 0 0 #b0a090;
}

h1 {
    font-family: 'Minecraft-Regular', 'ST-SimpleSquare', sans-serif;
}

/* ============================================================
   ✨ H1 标题双层描边（内层金色 + 外层黑色）
   ============================================================ */
.title-grad {
    background: linear-gradient(to bottom, #f9d976, #f39f86);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow:
        1px 0 0 #f9d976,
        0 1px 0 #f9d976,
        -1px 0 0 #f9d976,
        0 -1px 0 #f9d976,
        3px 0 0 #000000,
        0 3px 0 #000000,
        -3px 0 0 #000000,
        0 -3px 0 #000000,
        5px 5px 0 rgba(0, 0, 0, 0.12);
    font-weight: 900;
}

/* ============================================================
   ✨ LOGO 图片：应用与标题完全一致的双层描边 (通过 filter: drop-shadow 链)
   ============================================================ */
.site-logo {
    display: block;
    flex-shrink: 0;
    width: 3.4rem;
    height: 3.4rem;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter:
        drop-shadow(1px 0 0 #f9d976) drop-shadow(0 1px 0 #f9d976) drop-shadow(-1px 0 0 #f9d976) drop-shadow(0 -1px 0 #f9d976)
        drop-shadow(3px 0 0 #000000) drop-shadow(0 3px 0 #000000) drop-shadow(-3px 0 0 #000000) drop-shadow(0 -3px 0 #000000)
        drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.12));
    transition: filter 0.15s ease, transform 0.15s ease;
}

.site-logo:hover {
    filter:
        drop-shadow(1px 0 0 #f9d976) drop-shadow(0 1px 0 #f9d976) drop-shadow(-1px 0 0 #f9d976) drop-shadow(0 -1px 0 #f9d976)
        drop-shadow(3px 0 0 #000000) drop-shadow(0 3px 0 #000000) drop-shadow(-3px 0 0 #000000) drop-shadow(0 -3px 0 #000000)
        drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.12))
        drop-shadow(0 0 8px rgba(249, 217, 118, 0.25));
    transform: scale(1.04);
}

.brand-headline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.brand-headline h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    color: #302217;
    margin: 0;
}

@media (max-width: 640px) {
    .site-logo {
        width: 2.6rem;
        height: 2.6rem;
    }
    .brand-headline h1 {
        font-size: 2.4rem;
    }
    .brand-headline {
        gap: 0.5rem;
    }
}
@media (max-width: 420px) {
    .site-logo {
        width: 2rem;
        height: 2rem;
    }
    .brand-headline h1 {
        font-size: 1.8rem;
    }
    .brand-headline {
        gap: 0.35rem;
    }
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 4px solid;
    border-color: #c8b898 #8a7a5a #8a7a5a #c8b898;
    background: #c0b28a;
    box-shadow: inset -2px -2px 0 0 #b8a888, inset 2px 2px 0 0 #f0e8d0;
    transition: all 0.2s;
    display: block;
}
.img-placeholder:hover {
    filter: brightness(1.03);
}

/* ---- 大幅主视觉专用样式 ---- */
.hero-image-wrapper {
    width: 100%;
    margin: 1.5rem 0 0.25rem 0;
    position: relative;
}
.hero-image-wrapper .img-placeholder {
    aspect-ratio: 21 / 9;
    max-height: 520px;
    object-fit: cover;
    border-width: 5px;
    box-shadow: inset -3px -3px 0 0 #b8a888, inset 3px 3px 0 0 #f0e8d0, 0 12px 32px rgba(0, 0, 0, 0.18);
}
.hero-image-caption {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 10px;
    color: #5a4b31;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
    letter-spacing: 1px;
}
.hero-image-caption span {
    background: rgba(255, 248, 225, 0.7);
    padding: 0.1rem 1.2rem;
    border: 2px solid #c8b898;
    display: inline-block;
}

@media (max-width: 640px) {
    .hero-image-wrapper .img-placeholder {
        aspect-ratio: 16 / 9;
        max-height: 320px;
    }
}

/* ===== 画廊田字格 ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.feature-icon {
    font-size: 2.2rem;
    background: #7b5a3e30;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    border-color: #c8b898 #8a7a5a #8a7a5a #c8b898;
    margin-bottom: 1rem;
}

.ip-copy {
    background: #2a2c26;
    padding: 0.4rem 1rem;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Minecraft-Regular', monospace, sans-serif;
    font-weight: bold;
    color: #b0f7a0;
    border: 3px solid;
    border-color: #8b6b42 #4a3a1a #4a3a1a #8b6b42;
    box-shadow: inset -2px -2px 0 0 #1a1a1a;
}

.group-copy {
    background: #2a3b2a;
    padding: 0.4rem 1rem;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Minecraft-Regular', monospace, sans-serif;
    font-weight: bold;
    color: #f9e0a0;
    border: 3px solid;
    border-color: #b8864b #5a3a1a #5a3a1a #b8864b;
    cursor: pointer;
    transition: filter 0.1s;
    box-shadow: inset -2px -2px 0 0 #1a2a1a;
}
.group-copy:hover {
    filter: brightness(1.05);
}

.player-avatar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.75rem;
}

.player-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecdec2;
    padding: 4px 12px 4px 6px;
    border: 2px solid;
    border-color: #c8b898 #8a7a5a #8a7a5a #c8b898;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3c2f1b;
    box-shadow: inset -1px -1px 0 0 #b8a888;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

.player-badge img {
    width: 22px;
    height: 22px;
    border-radius: 0;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    background: #bda97e;
    border: 1px solid #faf0cf;
}

.online-status-light {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #6fbf4c;
    border: 2px solid;
    border-color: #8aef6a #2a6a1a #2a6a1a #8aef6a;
    margin-right: 6px;
    box-shadow: 0 0 4px #9ff06b;
}

.status-offline {
    color: #b67848;
}

.toast-msg {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2a1b;
    color: #f2e8cf;
    padding: 0.6rem 1.2rem;
    border: 3px solid;
    border-color: #5a4a3a #2a1a12 #2a1a12 #5a4a3a;
    font-size: 0.9rem;
    z-index: 1000;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px black;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    border-radius: 0;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

.grass-border {
    background: repeating-linear-gradient(45deg, #5a7842, #5a7842 12px, #6e8f50 12px, #6e8f50 24px);
    height: 6px;
    width: 100%;
    border: 1px solid #4a5a3a;
}

footer a {
    color: #cbad7a;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

footer a:hover {
    color: #ffe1a0;
}

.server-tag {
    background: #2d3e24;
    color: #ffe1a4;
    padding: 0.2rem 1rem;
    border: 2px solid;
    border-color: #5a7a4a #1a2a0a #1a2a0a #5a7a4a;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

.side-navbar {
    position: fixed;
    right: 24px;
    width: 180px;
    background: rgba(30, 25, 18, 0.88);
    backdrop-filter: blur(12px);
    border: 4px solid;
    border-color: #5a4a3a #2a1a12 #2a1a12 #5a4a3a;
    padding: 1rem 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), inset -2px -2px 0 0 #1a1512;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    z-index: 9999;
    transition: top 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.2s;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    border-radius: 0;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.side-qq-link {
    background: #4c6a3b70;
    border: 3px solid;
    border-color: #7c965b #3a5a2a #3a5a2a #7c965b;
    padding: 0.7rem 0.8rem;
    text-align: center;
    font-weight: 500;
    transition: background 0.1s;
    text-decoration: none;
    color: #f7deb4;
    display: block;
    font-size: 0.95rem;
    word-break: keep-all;
    box-shadow: inset -2px -2px 0 0 #2a3a1a;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}
.side-qq-link:hover {
    background: #5b7842;
    color: #fff;
}
.side-qq-link:active {
    border-color: #3a5a2a #7c965b #7c965b #3a5a2a;
}

.side-nav-select {
    width: 100%;
    background: #3f5632;
    color: #f9f2d9;
    border: 3px solid;
    border-color: #7c965b #3a5a2a #3a5a2a #7c965b;
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f9e4b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 14px;
    border-radius: 0;
    box-shadow: inset -2px -2px 0 0 #1a2a1a;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}
.side-nav-select option {
    background: #2a3a2a;
    color: #f9f2d9;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    .side-navbar {
        right: 12px;
        width: 150px;
    }
    .mc-btn,
    .btn-pixel {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-height: 42px;
    }
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.splash-screen.splash-hidden {
    transform: translateY(-100%);
}

.splash-logo {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.05));
}

.splash-hint {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1rem;
    color: #aaa;
    font-family: 'Minecraft-Regular', monospace, sans-serif;
    letter-spacing: 1px;
    opacity: 0.6;
    pointer-events: none;
}

body {
    overflow-x: hidden;
}

.side-navbar::-webkit-scrollbar {
    width: 5px;
}
.side-navbar::-webkit-scrollbar-track {
    background: #3f321e;
    border: 1px solid #2a1a0a;
}
.side-navbar::-webkit-scrollbar-thumb {
    background: #b88b4b;
    border: 1px solid #6a4a1a;
}

.hero-flex .mc-btn,
.hero-flex .btn-pixel {
    min-height: 48px;
}
.hero-flex .mc-btn-sm {
    min-height: 32px;
}

.ip-subtle,
.whitelist-note,
.online-stats,
#mcStatusContent,
.server-tag,
.group-copy,
.ip-copy,
.toast-msg,
.side-navbar,
.side-qq-link,
.side-nav-select,
.side-nav-select option,
.player-badge,
.mc-btn,
.btn-pixel,
footer a,
.splash-hint {
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', 'Poppins', system-ui, -apple-system, sans-serif;
}

/* ---- 英雄区纵向布局 ---- */
.hero-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.hero-vertical .hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.hero-vertical .hero-top .hero-brand {
    flex: 1 1 280px;
}
.hero-vertical .hero-top .hero-badge-wrap {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-top: 0.75rem;
}

.hero-vertical .hero-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    align-items: center;
    margin-top: 0.25rem;
    padding-top: 0.6rem;
    border-top: 2px dashed #b5986e;
}
.hero-vertical .hero-bottom .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}
.hero-vertical .hero-bottom .hero-server-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    align-items: center;
}

@media (max-width: 640px) {
    .hero-vertical .hero-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-vertical .hero-top .hero-badge-wrap {
        align-self: flex-start;
    }
    .hero-vertical .hero-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-vertical .hero-bottom .hero-actions {
        flex-wrap: wrap;
    }
}

.hero-desc {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    color: #3c2a1b;
    max-width: 620px;
    word-break: keep-all;
}
@media (max-width: 640px) {
    .hero-desc {
        font-size: 1rem;
    }
}

.hero-image-caption span {
    background: rgba(255, 248, 225, 0.75);
    padding: 0.1rem 1.2rem;
    border: 2px solid #c8b898;
    display: inline-block;
}

/* 统一特色卡片描述样式 */
.feature-desc {
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
    font-size: 0.95rem;
    margin: 0;
}
.feature-desc small {
    font-size: 0.8rem;
    color: #7a6a4a;
    display: block;
    margin-top: 0.25rem;
}