/* style.css - 像素南林主样式表（含Minecraft地图样式） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

body {
    background-color: #1a2a1a;
    background-image: repeating-linear-gradient(0deg, #2a3a2a 1px, #1a2a1a 2px);
    font-family: 'Courier New', 'VT323', 'Press Start 2P', monospace;
    color: #b3e4b3;
    padding: 20px;
    line-height: 1.5;
}

/* 像素容器 */
.pixel-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #0f1f0f;
    border: 4px solid #6b8c42;
    padding: 20px;
    box-shadow: 8px 8px 0 #3a5a2a;
}

/* 像素边框通用 */
.pixel-border {
    border: 3px solid #8bac0f;
    box-shadow: inset 0 0 0 2px #2a3a1a, 4px 4px 0 #2a3a1a;
    background: #132413;
}

/* 导航栏 */
.pixel-nav {
    background-color: #0f1f0f;
    border-bottom: 4px solid #8bac0f;
    margin-bottom: 20px;
    padding: 10px 0;
}
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
}
.nav-menu li a {
    display: inline-block;
    padding: 8px 16px;
    background: #1e2e1e;
    color: #c0ffb0;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    border: 2px solid #5a7a3a;
    box-shadow: 3px 3px 0 #0a1a0a;
    transition: 0.05s linear;
}
.nav-menu li a:hover {
    background: #3a5a2a;
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 #0a1a0a;
}
.nav-menu li a.active {
    background: #6b8c42;
    color: #0f1f0f;
    border-color: #c0ff80;
    box-shadow: inset 2px 2px 0 #0a1a0a;
}

/* 标题 */
.pixel-title {
    font-size: 2.5rem;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 4px 4px 0 #2a4a1a;
    margin-bottom: 10px;
}
.pixel-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 25px;
    border-bottom: 2px dashed #6b8c42;
    display: inline-block;
    width: auto;
    padding-bottom: 6px;
}
.hero, .features, .quote-section, .counter-section {
    margin-bottom: 30px;
    padding: 20px;
}
.pixel-button {
    background: #2a4a1a;
    border: none;
    font-family: inherit;
    color: #e0ffc0;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 8px 20px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #0a1a0a;
    transition: 0.05s linear;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
}
.pixel-button.small {
    font-size: 0.9rem;
    padding: 5px 12px;
}
.pixel-button.reset {
    background: #5a3a2a;
}
.pixel-button:hover {
    background: #4a6a2a;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #0a1a0a;
}
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.pixel-card {
    background: #1e2e1a;
    padding: 18px;
    width: 240px;
    text-align: center;
    border: 2px solid #8bac0f;
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
.pixel-quote-box {
    background: #0a1a0a;
    padding: 18px;
    font-size: 1.3rem;
    text-align: center;
    margin: 15px 0;
}
.counter-display {
    font-size: 3rem;
    font-weight: bold;
    background: #0f1f0f;
    padding: 5px 20px;
    display: inline-block;
    border: 3px solid #8bac0f;
    margin-bottom: 16px;
}
.pixel-counter {
    text-align: center;
}

/* 关于页面 */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}
.about-text {
    flex: 2;
}
.about-text h2 {
    margin-top: 20px;
    margin-bottom: 8px;
    border-left: 8px solid #8bac0f;
    padding-left: 12px;
}
.about-pixel-art {
    flex: 1;
    text-align: center;
}
.pixel-badge {
    background: #2e3a2a;
    padding: 16px;
    margin-bottom: 20px;
}
.badge-8bit, .badge-nfu {
    display: inline-block;
    padding: 8px;
    background: #000;
    color: #8bc34a;
    font-weight: bold;
    margin: 6px;
}
.simple-pixel-tree {
    width: 80px;
    height: 80px;
    background: repeating-linear-gradient(45deg, #3c8c40, #3c8c40 10px, #2c6c2c 10px, #2c6c2c 20px);
    margin: 0 auto;
    border: 2px solid #c0ff80;
}

/* 画廊样式 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.gallery-item {
    text-align: center;
}
.pixel-preview {
    width: 100%;
    height: 150px;
    background-color: #1f2f1a;
    margin-bottom: 12px;
    border: 3px solid #6b8c42;
}
.preview-sakura {
    background: repeating-linear-gradient(90deg, #ffb7c5 10px, #ff9aad 20px);
    box-shadow: inset 0 0 0 4px #ff69a0;
}
.preview-library {
    background: linear-gradient(135deg, #4a2e2a, #2a1e1a);
    position: relative;
}
.preview-library::after {
    content: "📖";
    font-size: 4rem;
    display: block;
    text-align: center;
    line-height: 140px;
}
.preview-logyard {
    background: #3f7840;
    background-image: radial-gradient(circle at 25% 40%, #8fc93a 3px, transparent 3px);
    background-size: 12px 12px;
}
.preview-pixelart {
    background: #2b5f3a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
}
.preview-pixelart::after {
    content: "🌲🎮";
}
.gallery-note {
    text-align: center;
    padding: 14px;
    font-size: 0.9rem;
}

/* 联系表单 */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}
.contact-form {
    flex: 2;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}
.pixel-input {
    width: 100%;
    background: #0f1f0f;
    border: 2px solid #6b8c42;
    padding: 8px;
    font-family: monospace;
    color: #9bff9b;
    font-size: 1rem;
}
.contact-pixel-info {
    flex: 1;
    text-align: center;
    border-left: 3px solid #5a7a3a;
    padding-left: 20px;
}
.pixel-chars {
    font-size: 3rem;
    margin: 30px 0;
}
.pixel-alert {
    padding: 14px;
    margin: 20px 0;
    background: #1e2a1e;
}
.pixel-alert.success {
    border-left: 10px solid #8bc34a;
}
.pixel-alert.error {
    border-left: 10px solid #d9534f;
}

/* ========== Minecraft风格地图专用样式 ========== */
.minecraft-map-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #1a2a1a;
    padding: 20px;
    border: 4px solid #6b8c42;
    margin: 20px 0;
}
.map-toolbar {
    width: 100%;
    display: flex;
    gap: 16px;
    background: #2f3e2f;
    padding: 8px 12px;
    border-bottom: 3px solid #8bac0f;
    margin-bottom: 10px;
}
.toolbar-item {
    background: #1e2a1a;
    padding: 4px 12px;
    font-size: 0.9rem;
    border: 2px solid #5a7a3a;
    box-shadow: inset 1px 1px 0 #6b8c42, 2px 2px 0 #0a1a0a;
}
.minecraft-map {
    flex: 3;
    min-width: 280px;
    background: #3a5a2a;
    padding: 8px;
    border: 3px solid #8bac0f;
}
.map-row {
    display: flex;
    justify-content: center;
}
.map-block {
    width: 85px;
    height: 85px;
    margin: 4px;
    background: #4c8c3a;
    border: 2px solid #2c4a1a;
    box-shadow: inset 0 0 0 2px #6aa03a, 3px 3px 0 #1a2a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.05s linear;
    text-align: center;
    font-size: 1.8rem;
    background-image: repeating-linear-gradient(45deg, #5a9e3e 0px, #5a9e3e 2px, #3e7a2a 2px, #3e7a2a 6px);
}
.map-block.grass {
    background-image: repeating-linear-gradient(0deg, #4c8c3a, #4c8c3a 4px, #3c6e2a 4px, #3c6e2a 8px);
}
.map-block.landmark {
    background-image: repeating-linear-gradient(135deg, #6aac4a, #6aac4a 6px, #4a8a2a 6px, #4a8a2a 12px);
    position: relative;
}
.map-block.landmark::before {
    content: "✨";
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 1rem;
    text-shadow: 1px 1px 0 #000;
}
.map-block:hover {
    transform: scale(0.96);
    background-color: #7cbc5a;
    box-shadow: inset 0 0 0 2px #e0ffb0, 1px 1px 0 #1a2a0a;
}
.map-block.selected {
    border: 3px solid #ffff80;
    box-shadow: 0 0 0 2px #4a2a0a;
    background: #9eff70;
}
.block-icon {
    font-size: 2rem;
    display: block;
    line-height: 1;
}
.block-label {
    font-size: 0.65rem;
    background: #000000aa;
    padding: 2px 4px;
    border-radius: 2px;
    margin-top: 4px;
    color: #ffffaa;
    font-weight: bold;
}
.map-sidebar {
    flex: 1;
    min-width: 200px;
    background: #1f2e1a;
    padding: 12px;
    border: 3px solid #8bac0f;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.player-info {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #2a3a1a;
    padding: 10px;
    border: 2px solid #6b8c42;
}
.pixel-avatar {
    font-size: 2.5rem;
}
.pixel-coord {
    font-size: 0.7rem;
    color: #8bc34a;
}
.info-panel {
    background: #0f1f0f;
    padding: 12px;
    border: 2px solid #6b8c42;
}
.info-title {
    font-weight: bold;
    border-bottom: 2px solid #8bac0f;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.info-content {
    font-size: 0.9rem;
    line-height: 1.4;
    min-height: 100px;
}
.info-icon {
    font-size: 2rem;
    display: block;
    text-align: center;
}
.mini-compass {
    text-align: center;
    font-size: 0.8rem;
    background: #1a2a1a;
    padding: 8px;
    margin-top: auto;
}
.compass-pixel {
    letter-spacing: 2px;
    font-weight: bold;
}
.map-footer-note {
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
    border-top: 2px solid #6b8c42;
    margin-top: 8px;
}

/* 响应式 */
@media (max-width: 780px) {
    .map-block {
        width: 65px;
        height: 65px;
        font-size: 1.2rem;
    }
    .block-label {
        font-size: 0.5rem;
    }
    .block-icon {
        font-size: 1.4rem;
    }
}
@media (max-width: 600px) {
    .map-block {
        width: 55px;
        height: 55px;
    }
    .block-label {
        display: none;
    }
}
.pixel-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 3px solid #6b8c42;
    padding-top: 18px;
    font-size: 0.8rem;
}