/* 方块边框、木牌与物品栏：沿用原有 Minecraft 素材。 */
:root {
    --ink: #293126;
    --muted: #64705d;
    --paper: #f4f1df;
    --edge: #404a35;
    --green: #476b34;
    --shadow: 6px 6px 0 rgba(31, 43, 27, .3);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #b4d0ff; color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #d89424; outline-offset: 6px; }
.nutscraftBox { position: relative; width: 100%; padding: 100px 24px; background-position: center; background-repeat: no-repeat; background-size: cover; }
.Box1 { min-height: 760px; min-height: 90svh; display: grid; place-items: center; background-image: url(../image/bg1.png); }
.Box2 { background-image: url(../image/bg2.png); }
.Box3 { background-image: url(../image/bg3.png); }
.Box4 { background-image: url(../image/bg4.png); }
.Box5 { background-image: url(../image/bg5.png); padding-bottom: 0; }
[id^="anchor"] { position: absolute; top: 0; scroll-margin-top: 24px; }
.Box1-title, .Box3-talk, .Box5-Join, .notice-panel {
    border: 3px solid var(--edge);
    border-radius: 2px;
    background: var(--paper);
    box-shadow: inset 3px 3px 0 #fffdf1, inset -3px -3px 0 #c5c5ae, var(--shadow);
}
.Box1-title { width: min(100%, 680px); padding: 48px 28px; text-align: center; background: linear-gradient(#f9e8ba99, #f9e8ba99), url(../image/oak_planks.png); }
.Box1-title1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.3; text-shadow: 3px 3px 0 #fff3c766; }
.season-label { display: inline-block; margin: 20px 0 12px; color: #3e532d; font-size: .82rem; font-weight: 700; letter-spacing: .15em; }
.Box1-title2 { font-size: clamp(1.1rem, 3vw, 1.6rem); }
.Box1-title-Buttom, .Box2-More, .Box3-More, .Box4-More, .mc-button, .Box5-Join-talk a {
    display: table;
    padding: 10px 26px;
    margin: 32px auto 0;
    border: 2px solid #2f4126;
    border-radius: 1px;
    background: var(--green);
    color: #fffbea;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 2px 0 #273e22;
    box-shadow: inset 2px 2px 0 #8aa66a, inset -2px -2px 0 #304e23, 3px 3px 0 #26351e55;
    transition: background .18s, box-shadow .18s;
}
.Box1-title-Buttom:hover, .Box2-More:hover, .Box3-More:hover, .Box4-More:hover, .mc-button:hover, .Box5-Join-talk a:hover {
    background: #557f3d;
    box-shadow: inset 2px 2px 0 #b4cc8f, inset -2px -2px 0 #304e23, 4px 4px 0 #26351e55;
}
.Box2-nutscraft { max-width: 1120px; margin: auto; }
.Box2-nutscraft ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.Box2-nutscraft ul li {
    position: relative;
    padding: 30px 22px 26px;
    background: var(--paper);
    border: 3px solid var(--edge);
    border-top: 7px solid #729654;
    border-radius: 2px;
    box-shadow: inset 3px 0 0 #fffdf1, inset -3px -3px 0 #c5c5ae, var(--shadow);
    text-align: center;
    transition: background .2s, box-shadow .2s;
}
.Box2-nutscraft ul li:hover { background: #fffbed; box-shadow: inset 3px 0 0 #fffdf1, inset -3px -3px 0 #c5c5ae, 6px 8px 0 #26351e66; }
.feature-icon {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border: 3px solid #727866;
    background: #d5d9c9;
    box-shadow: inset 3px 3px 0 #929a83, inset -3px -3px 0 #ffffee;
}
.feature-icon img { display: block; width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; transition: transform .2s; }
.Box2-nutscraft li:hover img { transform: translateY(-4px); }
.Box2-nutscraft h2 { font-size: 1.2rem; margin-bottom: 12px; }
.Box2-nutscraft li p { font-size: .95rem; text-align: left; color: #515a49; }
.Box3-talk { max-width: 820px; margin: auto; padding: 36px 40px; }
.Box3-talk h1 { font-size: clamp(1.2rem, 3vw, 1.7rem); padding-bottom: 22px; border-bottom: 2px dashed #a6ad91; }
.Box3-talk h1::before { content: ''; display: inline-block; width: 52px; height: 52px; margin-right: 16px; vertical-align: middle; background: url(../image/g.jpg) center / cover; border: 3px solid #606d50; box-shadow: 3px 3px 0 #c6ccb8; image-rendering: pixelated; }
.Box3-talk p { margin: 20px 0; overflow-wrap: anywhere; }
.Box3-talk-text-end { margin-top: 28px; text-align: right; font-size: 1.1rem; color: var(--green); }
.Box4-Title { width: fit-content; margin: 0 auto 36px; padding: 8px 32px; background: var(--paper); border: 3px solid var(--edge); box-shadow: var(--shadow); font-size: 1.8rem; font-weight: 700; }
.Box4 ul { max-width: 1080px; margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.Box4 li { min-width: 0; padding: 8px; background: #e1d5b1; border: 3px solid #554c35; box-shadow: inset 2px 2px 0 #fff2cb, inset -2px -2px 0 #a69871, var(--shadow); }
.Box4 li img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 2px solid #6f735d; cursor: zoom-in; transition: filter .2s; }
.Box4 li img:hover { filter: brightness(1.1); }
.Box5-Join { max-width: 680px; margin: 0 auto 100px; padding: 38px 40px; background: linear-gradient(#f4f1dfeF, #f4f1dfeF), url(../image/map_background_checkerboard.png) center / cover; }
.Box5-Join-talk h1 { margin-bottom: 18px; font-size: 1.8rem; }
.Box5-Join-talk h1::before { content: ''; display: inline-block; width: 36px; height: 36px; margin-right: 14px; vertical-align: middle; background: url(../image/bread.png) center / contain no-repeat; image-rendering: pixelated; }
.Box5-Join-talk p { margin-bottom: 16px; }
.Box5-Join-talk ul { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.Box5-Join-talk a { margin: 0; padding: 8px 16px; }
.footer { margin: 0 -24px; padding: 28px 20px; background: #2b3327; color: #ecebdc; border-top: 4px solid #7b9360; text-align: center; font-size: .9rem; }
.footer a:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
/* 公告板 */
.board-page { min-height: 100vh; background: linear-gradient(#dce6ceeb, #eef0e5f5), url(../image/bg3.png) center / cover fixed; }
.board-shell { width: min(100% - 40px, 880px); margin: auto; padding: 32px 0; }
.back-link { color: #405630; font-size: .9rem; font-weight: 700; }
.board-header { padding: 32px 0 36px; }
.board-header .season-label { margin-top: 0; }
.board-header h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); line-height: 1.5; margin-bottom: 16px; }
.board-header > p:last-child { color: #526247; }
.notice-panel { padding: 28px 32px; margin-bottom: 26px; }
.panel-label { font-size: .75rem; color: var(--muted); letter-spacing: .12em; font-weight: 700; margin-bottom: 8px; }
.notice-panel h2 { font-size: 1.4rem; margin-bottom: 18px; }
.notice-panel p + p { margin-top: 16px; }
.server-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #c5ccb7; border: 2px solid #c5ccb7; }
.server-facts div { padding: 16px; background: #e8ebdb; }
.server-facts dt { color: var(--muted); font-size: .8rem; }
.server-facts dd { font-weight: 700; margin-top: 4px; }
.notice-panel .notice-note { margin-top: 18px; color: #64705d; font-size: .85rem; }
.mechanic-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.mechanic-list li { padding: 5px 16px; background: #e1e9cf; border: 2px solid #a6b48e; color: #3c5b2b; font-weight: 700; box-shadow: 2px 2px 0 #c1cbad; }
.join-notice { border-top: 6px solid #729654; }
.join-steps { padding-left: 24px; margin: 20px 0; }
.join-steps li { padding: 4px 0 4px 8px; }
.join-steps li::marker { color: var(--green); font-weight: 700; }
.join-notice .mc-button { margin: 24px 0 0; }
.board-footer { padding: 16px 0; text-align: center; font-size: .8rem; color: #526247; }
@keyframes appear { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
.OutTop, .OutBottom, .OutLeft, .OutRight { animation: appear .65s ease both; }
@media (max-width: 900px) {
    .nutscraftBox { padding-top: 72px; padding-bottom: 72px; }
    .Box1 { min-height: 680px; min-height: 85svh; }
    .Box2-nutscraft ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .Box4 ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .Box5 { padding-bottom: 0; }
    .Box5-Join { margin-bottom: 72px; }
}
@media (max-width: 520px) {
    .nutscraftBox { padding-left: 20px; padding-right: 20px; }
    .Box1-title { padding: 32px 16px; }
    .Box2-nutscraft ul { gap: 14px; }
    .Box2-nutscraft ul li { padding: 20px 12px; }
    .feature-icon { width: 76px; height: 76px; margin-bottom: 16px; }
    .feature-icon img { width: 48px; height: 48px; }
    .Box2-nutscraft h2 { font-size: 1.1rem; }
    .Box2-nutscraft li p { font-size: .85rem; }
    .Box3-talk, .Box5-Join { padding: 28px 22px; }
    .Box3-talk h1::before { width: 40px; height: 40px; margin-right: 10px; }
    .Box4 ul { gap: 12px; }
    .Box4 li { padding: 4px; }
    .Box5-Join-talk ul { flex-direction: column; }
    .Box5-Join-talk a { display: block; }
    .footer { margin-left: -20px; margin-right: -20px; }
    .notice-panel { padding: 24px 20px; }
    .server-facts { grid-template-columns: 1fr; }
    .board-shell { width: calc(100% - 32px); }
}
@media (max-width: 340px) {
    .Box2-nutscraft ul { grid-template-columns: 1fr; }
    .Box4 ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
