/* ============================================================
   base.css — 字体、重置、全局基础、容器、标题
   ============================================================ */

/* ---------- 本地 Minecraft 字体 ---------- */
@font-face {
    font-family: 'Minecraft-Regular';
    src: url('../font/Minecraft-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
    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;
    overflow-x: hidden;
}

.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;
}

/* ---------- 标题 ---------- */
h1 {
    font-family: 'Minecraft-Regular', 'ST-SimpleSquare', sans-serif;
}

/* 双层描边标题：内层金色 + 外层黑色 */
.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 与品牌标题 ---------- */
.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));
    transform: translateZ(0);
}

.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) {
    .container {
        padding: 0.8rem;
    }
    .site-logo {
        width: 2.6rem;
        height: 2.6rem;
    }
    .brand-headline {
        gap: 0.5rem;
    }
    .brand-headline h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 420px) {
    .site-logo {
        width: 2rem;
        height: 2rem;
    }
    .brand-headline {
        gap: 0.35rem;
    }
    .brand-headline h1 {
        font-size: 1.8rem;
    }
}