/* ============================================================
   sections.css — 英雄区、特色卡片、画廊、服务器信息
   ============================================================ */

/* ================= 英雄区 ================= */
.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;
    flex: 1 1 100%;
    width: 100%;
}

.hero-vertical .hero-bottom .hero-actions .group-copy {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
}

.hero-vertical .hero-bottom .hero-actions .hero-cta-btn {
    flex: 1 1 0;
    min-width: 0;
}

.hero-vertical .hero-bottom .hero-server-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    align-items: stretch;
    width: 100%;
}

.hero-desc {
    font-size: 1.2rem;
    margin: 0.5rem 0 0 0;
    color: #3c2a1b;
    max-width: 620px;
    word-break: keep-all;
}

.hero-cta-btn {
    min-width: 100px;
    flex: 0 0 auto;
}

/* 服务器信息胶囊 */
.hero-info-pill {
    background: #2a3b2a;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
    color: #f9e0a0;
    border: 3px solid;
    border-color: #b8864b #5a3a1a #5a3a1a #b8864b;
    box-shadow: inset -2px -2px 0 0 #1a2a1a;
    min-height: 48px;
    border-radius: 0;
}

.hero-info-pill > span,
.hero-info-pill > span > span,
.hero-info-pill strong {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.hero-info-pill strong {
    font-family: 'Minecraft-Regular', monospace, sans-serif;
    color: #fff3cf;
}

/* 主视觉图 */
.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.75);
    padding: 0.1rem 1.2rem;
    border: 2px solid #c8b898;
    display: inline-block;
}

/* ---------- 响应式：英雄区 ---------- */
@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-vertical .hero-bottom .hero-server-info {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .hero-vertical .hero-bottom .hero-server-info #postIpCopyBtn {
        display: none;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .hero-info-pill {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-height: auto;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-image-wrapper .img-placeholder {
        aspect-ratio: 16 / 9;
        max-height: 320px;
    }
}

/* ================= 特色卡片 ================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    margin-bottom: 1rem;
}

.feature-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.feature-card {
    text-align: center;
    padding: 1.8rem 1.2rem;
    margin-bottom: 0;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-family: 'Minecraft-Regular', 'Segoe UI', 'Minecraft', 'Courier New', system-ui, -apple-system, sans-serif;
}

.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;
}

.feature-card .feature-icon {
    margin: 0 auto 1rem auto;
}

.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;
}

/* 特色卡片响应式 */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .features-grid {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }
    .feature-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 0.9rem;
        row-gap: 0.1rem;
        align-items: center;
        text-align: left;
        padding: 0.85rem 1rem;
        margin-bottom: 0;
    }
    .feature-card .feature-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        margin: 0;
    }
    .feature-card h3 {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
        font-size: 1rem;
        line-height: 1.2;
    }
    .feature-card .feature-desc {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.78rem;
        line-height: 1.35;
        margin: 0;
    }
    .feature-card .feature-desc small {
        display: none;
    }
}

/* ================= 画廊 ================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ================= 服务器信息 ================= */
.server-info-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.server-info-col {
    flex: 1;
}

.server-notice-col {
    flex: 0.8;
}

@media (max-width: 640px) {
    .server-info-flex {
        flex-direction: column;
        gap: 1rem;
    }
    .server-info-col,
    .server-notice-col {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* ================= 标签行 ================= */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .tag-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .tag-row .server-tag {
        display: block;
        width: 100%;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }
}