.lazypack-body {
    min-height: 100vh;
}

.topbar-tools {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.language-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(27, 27, 27, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.language-tabs__button {
    min-width: 36px;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font-family: "MinecraftAE", "Microsoft YaHei", sans-serif;
}

.language-tabs__button:hover,
.language-tabs__button.is-active {
    background: #2f8f1f;
    color: #fff;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28);
}

.language-cycle {
    min-width: 48px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #2f8f1f;
    color: #fff;
    cursor: pointer;
    font-family: "MinecraftAE", "Microsoft YaHei", sans-serif;
    box-shadow:
        inset 0 -4px 0 rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 219, 153, 0.08);
}

.language-cycle:hover {
    filter: brightness(1.08);
}

.lazypack-main {
    width: 100%;
    margin: 0;
    padding-bottom: 24px;
}

.lazypack-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(13, 13, 13, 0.94) 0%, rgba(13, 13, 13, 0.86) 42%, rgba(13, 13, 13, 0.64) 100%),
        linear-gradient(180deg, rgba(17, 17, 17, 0.3), rgba(17, 17, 17, 0.98)),
        url("../assets/images/homepage-hero-workshop.png") center / cover no-repeat,
        #111;
    border-top: 1px solid rgba(113, 82, 45, 0.48);
    border-bottom: 1px solid rgba(113, 82, 45, 0.48);
    box-shadow: var(--shadow);
}

.lazypack-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    box-shadow:
        inset 0 0 0 1px rgba(255, 230, 180, 0.12),
        inset 0 -120px 110px rgba(17, 17, 17, 0.9);
    pointer-events: none;
}

.lazypack-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1440px, calc(100% - 104px));
    min-height: 520px;
    margin: 0 auto;
    padding: 58px 0 52px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.98fr);
    gap: 42px;
    align-items: center;
}

.lazypack-hero__panel {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: 34px 42px 36px;
    color: #fff;
    background: rgba(18, 18, 18, 0.96);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
}

.lazypack-hero__panel::before,
.lazypack-hero__panel::after {
    content: "";
    position: absolute;
    top: -46px;
    width: 56px;
    height: 46px;
    background: #121212;
}

.lazypack-hero__panel::before {
    right: 88px;
}

.lazypack-hero__panel::after {
    right: 0;
}

.lazypack-hero__eyebrow,
.section-kicker,
.download-card__eyebrow,
.download-card__cta,
.problem-card__index,
.step-card__num,
.mc-action,
.lazy-title,
.lazypack-hero__title,
.hero-version-board__label,
.hero-version-board__value {
    font-family: "MinecraftAE", "Microsoft YaHei", sans-serif;
}

.lazypack-hero__eyebrow {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 12px;
    color: #d7f36d;
    background: rgba(183, 213, 58, 0.12);
    border: 1px solid rgba(183, 213, 58, 0.24);
    font-size: 0.9rem;
}

.lazypack-hero__title {
    margin: 22px 0 4px;
    font-size: clamp(2.2rem, 4.4vw, 4.2rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.lazypack-hero__desc {
    margin: 18px 0 0;
    max-width: 470px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.75;
}

.lazypack-hero__actions,
.custom-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.mc-action {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid transparent;
}

.mc-action::after {
    content: "›";
    margin-left: 14px;
    font-size: 1.45rem;
    line-height: 1;
}

.mc-action--primary {
    background: #2f8f1f;
    border-color: #55b537;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.28);
}

.mc-action--primary:hover {
    background: #3aa728;
}

.mc-action--secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.24);
}

.mc-action--secondary:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.08);
}

.hero-version-board {
    position: relative;
    width: 100%;
    color: #fff;
}

.hero-version-board__header {
    min-height: 96px;
    padding: 20px 22px;
    background: rgba(18, 18, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.22);
}

.hero-version-board__header span,
.hero-version-board__header strong {
    display: block;
    font-family: "MinecraftAE", "Microsoft YaHei", sans-serif;
}

.hero-version-board__header span {
    color: #d7f36d;
    font-size: 0.9rem;
}

.hero-version-board__header strong {
    margin-top: 10px;
    font-size: clamp(1.22rem, 2vw, 1.72rem);
    line-height: 1.1;
    color: #fff4dd;
    font-weight: 400;
}

.hero-version-board__notice {
    margin: 0;
    padding: 14px 0;
    max-width: 680px;
    color: #fff4dd;
    font-size: 0.92rem;
    line-height: 1.72;
}

.hero-version-board__grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-version-board__item {
    min-height: 146px;
    display: block;
    padding: 18px 16px;
    color: #fff;
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)),
        rgba(29, 29, 29, 0.92);
    border: 2px solid rgba(98, 198, 62, 0.36);
    box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24);
}

.hero-version-board__item:hover {
    border-color: #62c63e;
    transform: translateY(-3px);
}

.hero-version-board__item--custom {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.22)),
        rgba(54, 44, 26, 0.96);
    border-color: rgba(255, 202, 103, 0.44);
}

.hero-version-board__item--custom:hover {
    border-color: #ffd166;
}

.hero-version-board__label,
.hero-version-board__value {
    display: block;
}

.hero-version-board__label {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
}

.hero-version-board__value {
    margin-top: 16px;
    color: #d7f36d;
    font-size: 1.22rem;
    line-height: 1.1;
}

.hero-version-board__cta {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

.hero-version-board__cta::after {
    content: "›";
    margin-left: 10px;
    font-size: 1.2rem;
    line-height: 1;
}

.lazypack-content {
    width: min(1440px, calc(100% - 32px));
    margin: 32px auto 0;
}

.lazy-section {
    scroll-margin-top: 110px;
}

.lazy-intro {
    display: block;
    padding: 34px 38px;
    color: #f4ead9;
    background: linear-gradient(135deg, #21360f 0%, #3e611d 52%, #2b4512 100%);
    box-shadow: var(--wood-shadow);
    overflow: hidden;
    position: relative;
}

.lazy-intro::before,
.custom-panel::before,
.download-card::before,
.problem-card::before,
.step-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.18)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 3px, transparent 3px, transparent 11px);
    pointer-events: none;
}

.lazy-intro__copy,
.custom-panel__content,
.download-card__media,
.download-card__body,
.download-card__cta,
.problem-card > *,
.step-card > * {
    position: relative;
    z-index: 1;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    color: rgba(255, 241, 217, 0.88);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
}

.lazy-title {
    margin: 16px 0 0;
    color: #fff4dd;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1;
    letter-spacing: 0;
}

.lazy-lead {
    margin: 16px 0 0;
    color: rgba(250, 244, 232, 0.96);
    font-size: 1.05rem;
    line-height: 1.82;
}

.lazy-intro__bg-art {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 460px;
    height: 460px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
}

.lazy-intro__bg-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.problem-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.problem-card,
.step-card,
.download-card,
.custom-panel {
    position: relative;
    overflow: hidden;
}

.problem-card {
    min-height: 178px;
    padding: 22px 24px;
    color: #f4ead9;
    background: linear-gradient(135deg, #0b2736 0%, #114963 52%, #0b2d3d 100%);
    box-shadow: var(--wood-shadow);
}

.problem-card__index {
    color: #9fe7ff;
    font-size: 1rem;
}

.problem-card h3,
.step-card h3 {
    margin: 18px 0 0;
    font-family: "MinecraftAE", "Microsoft YaHei", sans-serif;
    font-size: 1.26rem;
    line-height: 1.15;
}

.problem-card p,
.step-card p {
    margin: 12px 0 0;
    color: rgba(250, 244, 232, 0.9);
    line-height: 1.72;
}

.download-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.baseline-save-notice {
    width: min(100%, 1180px);
    min-height: 52px;
    margin: 20px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    color: #fff4dd;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
    background:
        linear-gradient(90deg, rgba(78, 125, 36, 0.22), rgba(16, 13, 10, 0.84) 38%),
        #12100d;
    border: 1px solid rgba(255, 233, 186, 0.28);
    border-left: 3px solid #9ecb45;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.36),
        0 12px 22px rgba(0, 0, 0, 0.18);
}

.baseline-save-notice__label {
    flex: 0 0 auto;
    padding: 3px 8px;
    color: #d7f36d;
    background: rgba(78, 125, 36, 0.34);
    border: 1px solid rgba(169, 220, 89, 0.34);
    line-height: 1.4;
    white-space: nowrap;
}

.baseline-save-notice__text {
    min-width: 0;
    white-space: nowrap;
    color: #fff4dd;
}

.download-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    color: #f4ead9;
    text-decoration: none;
    box-shadow: var(--wood-shadow);
}

.download-card--forge {
    background: linear-gradient(135deg, #21360f 0%, #3e611d 52%, #2b4512 100%);
}

.download-card--fabric {
    background: linear-gradient(135deg, #4a2d09 0%, #734510 56%, #56330b 100%);
}

.download-card--neoforge {
    background: linear-gradient(135deg, #23211d 0%, #3d3a35 56%, #26231e 100%);
}

.download-card:hover {
    transform: translateY(-4px);
}

.download-card__media {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    background: rgba(10, 10, 10, 0.18);
    border: 1px solid rgba(255, 235, 205, 0.18);
}

.download-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-card__eyebrow {
    display: inline-flex;
    margin-top: 26px;
    padding: 4px 10px;
    color: rgba(255, 241, 217, 0.88);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
}

.download-card__title {
    margin: 16px 0 0;
    font-family: "MinecraftAE", "Microsoft YaHei", sans-serif;
    font-size: 1.38rem;
    line-height: 1.08;
}

.download-card__desc {
    margin: 12px 0 0;
    color: rgba(250, 244, 232, 0.92);
    line-height: 1.68;
}

.download-card__cta {
    margin-top: auto;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 244, 217, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.download-card__cta::after {
    content: "›";
    margin-left: 12px;
    font-size: 1.3rem;
}

.craft-flow {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.craft-flow__copy {
    padding: 28px;
    color: #f4ead9;
    background: linear-gradient(135deg, #23211d 0%, #3d3a35 56%, #26231e 100%);
    box-shadow: var(--wood-shadow);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    min-height: 218px;
    padding: 24px;
    color: #f4ead9;
    background: linear-gradient(135deg, #4a2d09 0%, #734510 56%, #56330b 100%);
    box-shadow: var(--wood-shadow);
}

.step-card__num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(14, 9, 4, 0.32);
    border: 1px solid rgba(255, 235, 205, 0.18);
}

.step-card__icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.custom-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.74fr) 1fr;
    min-height: 410px;
    color: #f4ead9;
    background: linear-gradient(135deg, #0b2736 0%, #114963 52%, #0b2d3d 100%);
    box-shadow: var(--wood-shadow);
}

.custom-panel__image {
    position: relative;
    z-index: 1;
    min-height: 410px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.36));
}

.custom-panel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-panel__content {
    padding: 42px;
    align-self: center;
}

.custom-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.custom-tags span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.92rem;
    border: 1px solid rgba(255, 233, 186, 0.24);
    background: rgba(22, 15, 10, 0.18);
}


@media (max-width: 1100px) {
    .topbar-tools {
        grid-area: profile;
    }

    .lazypack-hero__inner {
        width: min(100%, calc(100% - 64px));
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 38px 0;
    }

    .download-grid,
    .problem-grid {
        grid-template-columns: 1fr;
    }

    .craft-flow,
    .custom-panel {
        grid-template-columns: 1fr;
    }

    .custom-panel__image {
        min-height: 280px;
    }
}

@media (max-width: 860px) {
    .lazypack-content {
        width: min(100%, calc(100% - 24px));
    }

    .lazypack-hero {
        min-height: 0;
    }

    .lazypack-hero__inner {
        width: min(100%, calc(100% - 24px));
        min-height: 0;
        padding: 24px 0;
    }

    .lazypack-hero__panel {
        padding: 26px 24px;
    }

    .lazypack-hero__panel::before,
    .lazypack-hero__panel::after {
        display: none;
    }

    .lazy-intro__bg-art {
        width: 320px;
        height: 320px;
        right: -20px;
    }

    .step-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar-tools {
        gap: 8px;
    }

    .language-tabs__button {
        min-width: 32px;
    }

    .lazypack-hero__title {
        font-size: 1.48rem;
    }

    .lazypack-hero__desc,
    .lazy-lead {
        font-size: 0.94rem;
    }

    .lazypack-hero__desc {
        line-height: 1.62;
    }

    .lazypack-hero__panel {
        padding: 20px 18px;
    }

    .lazypack-hero__actions {
        display: none;
    }

    .mc-action {
        width: 100%;
        min-height: 48px;
    }

    .hero-version-board__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-version-board__header {
        min-height: 0;
        padding: 16px 18px;
    }

    .hero-version-board__notice,
    .baseline-save-notice {
        font-size: 0.84rem;
        line-height: 1.62;
    }

    .baseline-save-notice {
        flex-direction: column;
        text-align: center;
        padding: 13px 16px;
        width: min(100%, 820px);
        gap: 8px;
    }

    .baseline-save-notice__text {
        white-space: normal;
    }

    .hero-version-board__item {
        min-height: 106px;
        padding: 14px 12px;
    }

    .hero-version-board__value {
        margin-top: 10px;
        font-size: 1.05rem;
    }

    .hero-version-board__cta {
        margin-top: 14px;
        font-size: 0.82rem;
    }

    .lazy-intro,
    .craft-flow__copy,
    .custom-panel__content {
        padding: 24px 20px;
    }

    .download-card,
    .problem-card,
    .step-card {
        padding: 20px;
    }

    .custom-panel__image {
        min-height: 210px;
    }
}
