﻿/**
 * LOTR Mod Downloads - 方案 1 暗金中洲下载仪表盘
 * 全中文前台 UI，兼容 Zibll 主题。
 */

:root {
    --lotr-gold: #d9b85f;
    --lotr-gold-strong: #f2d06b;
    --lotr-gold-dark: #8d6a22;
    --lotr-emerald: #22d46e;
    --lotr-emerald-dark: #0a6f38;
    --lotr-emerald-glow: rgba(34, 212, 110, .32);
    --lotr-ink: #080706;
    --lotr-obsidian: #11100e;
    --lotr-panel: rgba(19, 18, 16, .88);
    --lotr-panel-soft: rgba(28, 25, 20, .78);
    --lotr-stone: #2b2923;
    --lotr-line: rgba(217, 184, 95, .28);
    --lotr-line-strong: rgba(242, 208, 107, .56);
    --lotr-text: #f7ebcf;
    --lotr-muted: #c7b58a;
    --lotr-dim: #897b61;
    --lotr-danger: #e0774f;
    --lotr-success: #52df87;
    --lotr-radius-lg: 24px;
    --lotr-radius-md: 16px;
    --lotr-radius-sm: 10px;
    --lotr-shadow: 0 22px 70px rgba(0, 0, 0, .46);
    --lotr-font: "Noto Serif SC", "Source Han Serif SC", "Microsoft YaHei", "PingFang SC", serif;
    --lotr-ui-font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

.lotr-mod-downloads-container,
.lotr-mod-downloads-container * {
    box-sizing: border-box;
}

.lotr-mod-downloads-container {
    position: relative;
    isolation: isolate;
    max-width: 1480px !important;
    margin: 0 auto 36px !important;
    padding: 0 !important;
    overflow: hidden;
    color: var(--lotr-text) !important;
    font-family: var(--lotr-ui-font) !important;
    border: 1px solid rgba(217, 184, 95, .22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 0%, rgba(217, 184, 95, .2), transparent 32%),
        radial-gradient(circle at 82% 8%, rgba(34, 212, 110, .14), transparent 28%),
        linear-gradient(180deg, #090806 0%, #12100d 48%, #080706 100%);
    box-shadow: var(--lotr-shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.lotr-mod-downloads-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--lotr-pixel-bg);
    background-size: cover;
    background-position: center bottom;
    opacity: .16;
    filter: saturate(.88) contrast(1.08);
}

.lotr-mod-downloads-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(217, 184, 95, .16) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(217, 184, 95, .10) 0 1px, transparent 1px 100%);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,.7), transparent 70%);
    opacity: .22;
}

.lotr-mod-downloads-container a,
.lotr-mod-downloads-container button {
    transition: transform .22s ease, border-color .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.lotr-mod-downloads-container a {
    color: var(--lotr-gold-strong) !important;
    text-decoration: none !important;
}

.lotr-topbar {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(217, 184, 95, .18);
    background: rgba(6, 6, 5, .78);
    backdrop-filter: blur(16px);
}

.lotr-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--lotr-text) !important;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #12100c !important;
    font-family: var(--lotr-font);
    font-size: 24px;
    font-weight: 900;
    border: 1px solid var(--lotr-gold-strong);
    border-radius: 14px;
    background: linear-gradient(135deg, #f6dc86, #af7d24 56%, #5b3d10);
    box-shadow: 0 0 26px rgba(217, 184, 95, .24);
}

.brand-text strong,
.brand-text small {
    display: block;
    line-height: 1.2;
}

.brand-text strong {
    font-family: var(--lotr-font);
    font-size: 19px;
    letter-spacing: .04em;
    color: var(--lotr-gold-strong) !important;
}

.brand-text small {
    margin-top: 4px;
    color: var(--lotr-muted) !important;
    font-size: 12px;
}

.brand-text .brand-version-label {
    width: fit-content;
    max-width: 210px;
    padding: 2px 0;
    color: #efd27b !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 12px rgba(217, 184, 95, .16);
}

.lotr-navlinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.lotr-navlinks a {
    padding: 9px 13px;
    color: var(--lotr-muted) !important;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
}

.lotr-navlinks a:hover {
    color: var(--lotr-gold-strong) !important;
    border-color: rgba(217, 184, 95, .32);
    background: rgba(217, 184, 95, .08);
}

.lotr-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background-image: var(--lotr-hero-image);
    background-size: cover;
    background-position: center;
}

.lotr-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 5, 4, .96) 0%, rgba(6, 5, 4, .78) 34%, rgba(6, 5, 4, .28) 68%, rgba(6, 5, 4, .72) 100%),
        linear-gradient(180deg, rgba(6, 5, 4, .12) 0%, rgba(6, 5, 4, .88) 100%);
}

.lotr-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 36px;
    min-height: 520px;
    padding: 58px 54px;
}

.lotr-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: var(--lotr-success) !important;
    border: 1px solid rgba(82, 223, 135, .38);
    border-radius: 999px;
    background: rgba(7, 55, 31, .55);
    box-shadow: 0 0 28px rgba(34, 212, 110, .12);
    font-size: 14px;
}

.lotr-hero h1 {
    max-width: 760px;
    margin: 0 !important;
    color: #fff5d8 !important;
    font-family: var(--lotr-font);
    font-size: clamp(42px, 5.4vw, 76px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: .02em;
    text-shadow: 0 8px 30px rgba(0,0,0,.78), 0 0 34px rgba(217,184,95,.28);
}

.lotr-hero p {
    max-width: 650px;
    margin: 22px 0 0 !important;
    color: rgba(247, 235, 207, .88) !important;
    font-size: 17px;
    line-height: 1.8;
}

.lotr-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.lotr-hero-tags span {
    padding: 8px 12px;
    color: var(--lotr-gold-strong) !important;
    border: 1px solid rgba(217, 184, 95, .32);
    border-radius: 10px;
    background: rgba(18, 16, 12, .62);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.lotr-download-panel,
.lotr-card,
.lotr-stat-card {
    border: 1px solid var(--lotr-line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), transparent 34%),
        rgba(14, 13, 11, .82);
    box-shadow: 0 18px 50px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(18px);
}

.lotr-download-panel {
    padding: 26px;
    border-radius: var(--lotr-radius-lg);
    text-align: center;
}

.download-badge-wrap {
    position: relative;
    width: 142px;
    height: 142px;
    margin: 0 auto 10px;
}

.download-badge-wrap::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,212,110,.42), transparent 62%);
    filter: blur(16px);
}

.download-badge-img,
.release-cover {
    position: relative;
    max-width: 100%;
    height: auto;
    image-rendering: auto;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.55));
}

.download-panel-label {
    color: var(--lotr-muted) !important;
    font-size: 14px;
}

.download-panel-version {
    margin-top: 6px;
    color: var(--lotr-gold-strong) !important;
    font-family: var(--lotr-font);
    font-size: 34px;
    font-weight: 900;
}

.download-panel-meta {
    display: grid;
    gap: 6px;
    margin: 14px 0 18px;
    color: var(--lotr-muted) !important;
    font-size: 13px;
}

.download-panel-empty,
.empty-state p,
.empty-line {
    color: var(--lotr-muted) !important;
}

.lotr-download-btn,
.lotr-outline-btn {
    border: 0;
    cursor: pointer;
    font-family: var(--lotr-ui-font);
    text-decoration: none !important;
}

.lotr-download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 20px;
    color: #eaffef !important;
    border: 1px solid rgba(83, 255, 154, .44) !important;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(34, 212, 110, .98), rgba(9, 112, 58, .96) 55%, rgba(4, 58, 32, .98));
    box-shadow: 0 16px 36px rgba(0,0,0,.42), 0 0 34px var(--lotr-emerald-glow), inset 0 1px 0 rgba(255,255,255,.28);
    overflow: hidden;
}

.lotr-download-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0 35%, rgba(255,255,255,.25) 48%, transparent 62% 100%);
    transform: translateX(-120%);
}

.lotr-download-btn:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 20px 42px rgba(0,0,0,.5), 0 0 46px rgba(34,212,110,.42);
}

.lotr-download-btn:hover::after {
    transform: translateX(120%);
    transition: transform .85s ease;
}

.lotr-download-btn.secondary {
    min-height: 42px;
    padding: 9px 14px;
    color: var(--lotr-gold-strong) !important;
    border-color: rgba(217,184,95,.34) !important;
    background: linear-gradient(180deg, rgba(217,184,95,.13), rgba(44,36,22,.84));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.lotr-download-btn.secondary:hover {
    border-color: rgba(242,208,107,.7) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.38), 0 0 22px rgba(217,184,95,.18);
}

.hero-download {
    width: 100%;
    min-height: 72px;
}

.btn-gem {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 8px;
    background: linear-gradient(135deg, #b7ffd0, #17e472 46%, #08753b 100%);
    box-shadow: inset 0 0 10px rgba(255,255,255,.38), 0 0 18px rgba(34,212,110,.48);
    transform: rotate(45deg);
}

.btn-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    text-align: left;
}

.btn-copy strong,
.btn-copy small {
    color: inherit !important;
}

.btn-copy strong {
    font-size: 18px;
    line-height: 1.1;
}

.btn-copy small {
    opacity: .82;
    font-size: 12px;
}

.download-count {
    margin-top: 12px;
    color: var(--lotr-muted) !important;
    font-size: 13px;
}

.lotr-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    color: var(--lotr-gold-strong) !important;
    border: 1px solid rgba(217,184,95,.36);
    border-radius: 14px;
    background: rgba(217,184,95,.08);
}

.lotr-outline-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(242,208,107,.7);
    background: rgba(217,184,95,.14);
}

.lotr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0 54px;
    margin-top: -34px;
    position: relative;
    z-index: 4;
}

.lotr-stat-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
}

.stat-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--lotr-gold-strong) !important;
    border: 1px solid rgba(217,184,95,.28);
    border-radius: 12px;
    background: rgba(217,184,95,.08);
    font-weight: 800;
}

.lotr-stat-card strong {
    color: #fff4d7 !important;
    font-size: 22px;
    line-height: 1.1;
}

.lotr-stat-card small {
    color: var(--lotr-muted) !important;
    font-size: 12px;
}

.lotr-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    grid-template-areas:
        "release steps"
        "release safety";
    gap: 18px;
    padding: 28px 54px 0;
}

.lotr-card {
    border-radius: var(--lotr-radius-lg);
    padding: 24px;
}

.lotr-release-card { grid-area: release; }
.lotr-steps-card { grid-area: steps; }
.lotr-safety-card { grid-area: safety; }

.card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.card-heading.compact {
    margin-bottom: 14px;
}

.heading-rune {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--lotr-gold-strong) !important;
    border: 1px solid rgba(217,184,95,.36);
    border-radius: 12px;
    background: rgba(217,184,95,.08);
    font-weight: 800;
}

.card-heading p {
    margin: 0 0 3px !important;
    color: var(--lotr-muted) !important;
    font-size: 13px;
}

.card-heading h2,
.dependency-column h3,
.empty-state h2 {
    margin: 0 !important;
    color: var(--lotr-gold-strong) !important;
    font-family: var(--lotr-font);
}

.card-heading h2 {
    font-size: 26px;
}

.release-chip,
.dependency-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
}

.release-chip {
    margin-left: auto;
    color: #152116 !important;
    background: linear-gradient(135deg, #9af5b9, #43d879);
}

.release-body {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 18px;
    align-items: center;
}

.release-cover {
    width: 126px;
    border-radius: 20px;
}

.release-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.release-info-list div {
    padding: 12px;
    border: 1px solid rgba(217,184,95,.16);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}

.release-info-list span,
.dependency-meta,
.history-row p {
    display: block;
    color: var(--lotr-muted) !important;
    font-size: 12px;
}

.release-info-list strong {
    display: block;
    margin-top: 4px;
    color: var(--lotr-text) !important;
    font-size: 14px;
}

.release-description {
    margin-top: 18px;
    padding: 16px;
    color: rgba(247,235,207,.86) !important;
    border-left: 3px solid var(--lotr-gold);
    border-radius: 12px;
    background: rgba(217,184,95,.07);
}

.release-description p {
    margin: 0 !important;
    color: inherit !important;
    line-height: 1.75;
}

.release-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.release-actions .lotr-download-btn {
    min-width: 248px;
}

.install-steps,
.safety-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.install-steps {
    display: grid;
    gap: 12px;
}

.install-steps li,
.safety-list li {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(217,184,95,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.install-steps li > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: #15100b !important;
    border-radius: 10px;
    background: linear-gradient(135deg, #f3d16d, #a97921);
    font-weight: 900;
}

.install-steps strong,
.safety-list strong,
.dependency-title strong,
.history-row strong {
    color: var(--lotr-text) !important;
}

.install-steps p,
.safety-list span,
.dependency-row p {
    margin: 4px 0 0 !important;
    color: var(--lotr-muted) !important;
    line-height: 1.65;
    font-size: 13px;
}

.copy-path {
    display: inline-flex;
    padding: 2px 7px;
    color: var(--lotr-gold-strong) !important;
    border: 1px solid rgba(217,184,95,.26);
    border-radius: 8px;
    background: rgba(217,184,95,.08);
    font-family: Consolas, "Microsoft YaHei", monospace;
}

.safety-list {
    display: grid;
    gap: 10px;
}

.safety-list li::before {
    content: "?";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: var(--lotr-success) !important;
    border: 1px solid rgba(82,223,135,.32);
    border-radius: 50%;
    background: rgba(34,212,110,.08);
}

.lotr-dependencies-card,
.lotr-changelog-card,
.lotr-history-card {
    margin: 18px 54px 0;
}

.java-skip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lotr-muted) !important;
    font-size: 13px;
}

.java-skip input {
    accent-color: var(--lotr-emerald);
}

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

.dependency-column h3 {
    margin-bottom: 12px !important;
    font-size: 20px;
}

.dependency-list {
    display: grid;
    gap: 10px;
}

.dependency-row,
.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(217,184,95,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.034);
}

.dependency-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dependency-badge.required {
    color: #21130c !important;
    background: linear-gradient(135deg, #ffcc7b, #e0774f);
}

.dependency-badge.optional {
    color: #102013 !important;
    background: linear-gradient(135deg, #b8f3c9, #54cf7d);
}

.dependency-meta {
    margin-top: 8px;
}

.lotr-changelog-card .lotr-changelog,
.version-changelog .lotr-changelog {
    display: grid;
    gap: 12px;
}

.lotr-changelog-card .changelog-section,
.version-changelog .changelog-section {
    padding: 14px;
    border: 1px solid rgba(217,184,95,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.lotr-changelog-card .changelog-type,
.version-changelog .changelog-type {
    margin: 0 0 8px !important;
    color: var(--lotr-gold-strong) !important;
    font-size: 16px;
}

.lotr-changelog-card .changelog-list,
.version-changelog .changelog-list {
    margin: 0 !important;
    padding-left: 20px !important;
}

.lotr-changelog-card .changelog-list li,
.version-changelog .changelog-list li,
.lotr-changelog-card p {
    color: var(--lotr-muted) !important;
    line-height: 1.7;
}

.history-list {
    display: grid;
    gap: 10px;
}

.history-row p {
    margin: 6px 0 0 !important;
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.lotr-download-btn.downloading {
    opacity: .72;
    cursor: wait;
    pointer-events: none;
}

.lotr-download-btn.success {
    border-color: rgba(82, 223, 135, .7) !important;
    background: linear-gradient(135deg, #41df7c, #138747) !important;
}

.lotr-download-btn.error {
    border-color: rgba(224, 119, 79, .78) !important;
    background: linear-gradient(135deg, #e0774f, #8f2d1d) !important;
}

.lotr-version-card,
.lotr-stat-card,
.guide-step,
.lotr-card {
    will-change: transform, opacity;
}


.lotr-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.lotr-reveal.fade-in,
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 1180px) {
    .lotr-hero-content,
    .lotr-dashboard,
    .dependency-grid {
        grid-template-columns: 1fr;
    }

    .lotr-dashboard {
        grid-template-areas: "release" "steps" "safety";
    }

    .lotr-download-panel {
        max-width: 520px;
    }

    .lotr-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .lotr-mod-downloads-container {
        border-radius: 18px;
    }

    .lotr-topbar,
    .lotr-hero-content,
    .lotr-stats-grid,
    .lotr-dashboard,
    .lotr-dependencies-card,
    .lotr-changelog-card,
    .lotr-history-card {
        padding-left: 18px;
        padding-right: 18px;
        margin-left: 0;
        margin-right: 0;
    }

    .lotr-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .lotr-navlinks {
        justify-content: flex-start;
    }

    .lotr-hero,
    .lotr-hero-content {
        min-height: auto;
    }

    .lotr-hero-content {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .lotr-hero h1 {
        font-size: 38px;
    }

    .lotr-stats-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 18px;
    }

    .release-body,
    .release-info-list {
        grid-template-columns: 1fr;
    }

    .release-cover {
        width: 112px;
    }

    .card-heading,
    .dependency-row,
    .history-row,
    .history-actions,
    .release-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .release-chip,
    .java-skip {
        margin-left: 0;
    }

    .lotr-download-btn,
    .lotr-outline-btn,
    .release-actions .lotr-download-btn {
        width: 100%;
    }
}


/* 2026-06-12 Product Design 方案 1 专业精修覆盖层 */
.lotr-design-v1 {
    max-width: 1580px !important;
    background-position: var(--lotr-page-bg-position, center bottom);
}

.lotr-design-v1::before {
    background-position: var(--lotr-page-bg-position, center bottom);
    opacity: .20;
}

.lotr-design-v1 .lotr-topbar {
    position: absolute;
    top: 28px;
    left: 32px;
    right: 32px;
    z-index: 8;
    min-height: 86px;
    padding: 18px 28px;
    border-radius: 14px;
    border-color: rgba(217, 184, 95, .34);
    background:
        linear-gradient(90deg, rgba(14, 12, 9, .92), rgba(51, 38, 18, .58), rgba(14, 12, 9, .9)),
        var(--lotr-hero-image);
    background-size: cover;
    background-position: var(--lotr-hero-position, center center);
    box-shadow: 0 18px 46px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
}

.lotr-design-v1 .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    box-shadow: 0 0 28px rgba(242, 208, 107, .22), inset 0 1px 0 rgba(255,255,255,.25);
}

.lotr-design-v1 .brand-text strong {
    font-size: 23px;
}

.lotr-design-v1 .brand-text .brand-version-label {
    max-width: 236px;
    font-size: 12px;
}

.lotr-design-v1 .lotr-navlinks a {
    color: #f4dd9a !important;
    font-weight: 700;
}

.lotr-design-v1 .lotr-hero {
    min-height: 666px;
    background-position: var(--lotr-hero-position, center center);
}

.lotr-design-v1 .lotr-hero-shade {
    background:
        linear-gradient(90deg,
            rgba(5, 5, 4, calc(var(--lotr-hero-overlay, .58) + .18)) 0%,
            rgba(5, 5, 4, var(--lotr-hero-overlay, .58)) 36%,
            rgba(5, 5, 4, .34) 62%,
            rgba(5, 5, 4, .68) 100%),
        linear-gradient(180deg, rgba(5,5,4,.18) 0%, rgba(5,5,4,.88) 100%);
}

.lotr-design-v1 .lotr-hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    gap: 52px;
    min-height: 666px;
    padding: 158px 70px 100px;
}

.lotr-design-v1 .lotr-hero-copy {
    max-width: 760px;
}

.lotr-design-v1 .lotr-kicker {
    margin-bottom: 20px;
    padding: 10px 18px;
    font-weight: 700;
}

.lotr-design-v1 .lotr-hero h1 {
    max-width: 820px;
    font-size: clamp(42px, 4.2vw, 68px);
    line-height: 1.12;
}

.lotr-design-v1 .lotr-hero p {
    max-width: 710px;
    font-size: 18px;
}

.lotr-design-v1 .lotr-hero-tags span {
    padding: 10px 15px;
    font-weight: 700;
    background: rgba(11, 10, 8, .68);
}

.lotr-design-v1 .lotr-download-panel {
    align-self: center;
    padding: 34px 32px 30px;
    border-color: rgba(217, 184, 95, .42);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 18%, rgba(217,184,95,.11), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
        rgba(11, 10, 9, .9);
    box-shadow: 0 28px 78px rgba(0,0,0,.52), 0 0 0 1px rgba(255,255,255,.03) inset;
}

.lotr-design-v1 .download-badge-wrap {
    width: 152px;
    height: 152px;
    margin-bottom: 16px;
}

.lotr-design-v1 .download-panel-version {
    max-width: 360px;
    margin: 12px auto 0;
    font-size: clamp(34px, 3vw, 52px);
    line-height: 1.16;
    word-break: keep-all;
}

.lotr-design-v1 .hero-download {
    margin-top: 22px;
    min-height: 78px;
    border-radius: 16px;
}

.lotr-design-v1 .lotr-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0 70px;
    margin-top: -44px;
}

.lotr-design-v1 .lotr-stat-card {
    min-height: 124px;
    padding: 20px 20px;
    align-content: center;
    border-color: rgba(217, 184, 95, .30);
    background: linear-gradient(180deg, rgba(78, 63, 36, .78), rgba(35, 30, 22, .82));
}

.lotr-design-v1 .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 17px;
}

.lotr-design-v1 .lotr-stat-card strong {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.12;
    word-break: keep-all;
}

.lotr-design-v1 .lotr-stat-card .stat-version {
    font-size: clamp(18px, 1.45vw, 24px) !important;
    line-height: 1.16;
}

.lotr-design-v1 .lotr-dashboard {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 22px;
    padding: 34px 70px 0;
}

.lotr-design-v1 .lotr-card {
    border-color: rgba(217, 184, 95, .32);
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.018)),
        rgba(13, 12, 10, .86);
}

.lotr-design-v1 .card-heading h2 {
    line-height: 1.18;
}

.lotr-design-v1 .release-chip {
    flex: 0 0 auto;
}

.lotr-design-v1 .release-body {
    grid-template-columns: 138px 1fr;
}

.lotr-design-v1 .release-cover {
    width: 138px;
}

.lotr-design-v1 .release-info-list {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
}

.lotr-design-v1 .lotr-dependencies-card,
.lotr-design-v1 .lotr-changelog-card,
.lotr-design-v1 .lotr-history-card {
    margin-left: 70px;
    margin-right: 70px;
}

@media (max-width: 1180px) {
    .lotr-design-v1 .lotr-topbar {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 18px;
    }

    .lotr-design-v1 .lotr-hero-content {
        grid-template-columns: 1fr;
        padding: 42px 34px 72px;
        min-height: auto;
    }

    .lotr-design-v1 .lotr-download-panel {
        max-width: 520px;
    }

    .lotr-design-v1 .lotr-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 34px;
        margin-top: -28px;
    }

    .lotr-design-v1 .lotr-dashboard,
    .lotr-design-v1 .lotr-dependencies-card,
    .lotr-design-v1 .lotr-changelog-card,
    .lotr-design-v1 .lotr-history-card {
        margin-left: 34px;
        margin-right: 34px;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 760px) {
    .lotr-design-v1 .lotr-topbar {
        margin: 12px;
        min-height: auto;
    }

    .lotr-design-v1 .lotr-hero-content {
        padding: 28px 18px 42px;
    }

    .lotr-design-v1 .lotr-stats-grid {
        grid-template-columns: 1fr;
        padding: 18px;
        margin-top: 0;
    }

    .lotr-design-v1 .lotr-dashboard,
    .lotr-design-v1 .lotr-dependencies-card,
    .lotr-design-v1 .lotr-changelog-card,
    .lotr-design-v1 .lotr-history-card {
        margin-left: 18px;
        margin-right: 18px;
    }

    .lotr-design-v1 .release-body,
    .lotr-design-v1 .release-info-list {
        grid-template-columns: 1fr;
    }
}

/* 2026-06-12 截图 QA 二次精修：更贴近方案 1 的品牌首屏与可读性 */
.lotr-design-v1 .lotr-hero-copy {
    position: relative;
    padding-top: 4px;
}

.lotr-design-v1 .lotr-wordmark {
    display: grid;
    width: fit-content;
    margin-bottom: 22px;
    color: #f6d77c !important;
    text-shadow: 0 12px 36px rgba(0, 0, 0, .78), 0 0 28px rgba(242, 208, 107, .22);
}

.lotr-design-v1 .wordmark-main {
    display: block;
    font-family: Georgia, "Times New Roman", "Noto Serif SC", "Microsoft YaHei", serif;
    font-size: clamp(64px, 7.4vw, 112px);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.045em;
    color: transparent !important;
    background: linear-gradient(180deg, #fff0ae 0%, #f2c34d 42%, #8a5b16 72%, #ffe7a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(255, 239, 177, .42);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .62));
}

.lotr-design-v1 .wordmark-sub,
.lotr-design-v1 .wordmark-cn {
    display: block;
    color: #f4dfae !important;
    font-family: var(--lotr-font);
    letter-spacing: .04em;
}

.lotr-design-v1 .wordmark-sub {
    margin-top: 8px;
    font-size: clamp(20px, 1.9vw, 30px);
}

.lotr-design-v1 .wordmark-cn {
    margin-top: 8px;
    color: #d9b85f !important;
    font-size: clamp(16px, 1.4vw, 22px);
}

.lotr-design-v1 .lotr-rune-divider {
    width: min(460px, 82vw);
    height: 14px;
    margin: 18px 0 0;
    opacity: .9;
    background:
        radial-gradient(circle, rgba(242, 208, 107, .9) 0 2px, transparent 3px) 0 50% / 34px 10px repeat-x,
        linear-gradient(90deg, transparent, rgba(217, 184, 95, .72), transparent);
    filter: drop-shadow(0 0 12px rgba(217, 184, 95, .28));
}

.lotr-design-v1 .lotr-kicker {
    margin-bottom: 16px;
}

.lotr-design-v1 .lotr-hero h1 {
    max-width: 780px;
    font-size: clamp(34px, 3.4vw, 54px);
    letter-spacing: .01em;
}

.lotr-design-v1 .lotr-hero p {
    margin-top: 18px !important;
}

.lotr-design-v1 .download-panel-product {
    margin-top: 8px;
    color: #fff3d3 !important;
    font-family: var(--lotr-font);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .04em;
}

.lotr-design-v1 .download-panel-version {
    color: #ffe177 !important;
    text-wrap: balance;
}

.lotr-design-v1 .lotr-stat-card {
    position: relative;
    overflow: hidden;
}

.lotr-design-v1 .lotr-stat-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -52px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 184, 95, .16), transparent 68%);
    pointer-events: none;
}

.lotr-design-v1 .lotr-stat-card strong,
.lotr-design-v1 .download-panel-version {
    overflow-wrap: normal;
    word-break: keep-all;
}

.lotr-design-v1 .lotr-stat-card .stat-version {
    max-width: 100%;
    color: #fff0c4 !important;
}

.lotr-design-v1 .safety-list li::before {
    content: "✓";
    font-weight: 900;
}

.lotr-design-v1 .lotr-download-panel,
.lotr-design-v1 .lotr-card,
.lotr-design-v1 .lotr-stat-card {
    outline: 1px solid rgba(255, 240, 181, .035);
    outline-offset: -2px;
}

.lotr-design-v1 .lotr-download-btn:focus-visible,
.lotr-design-v1 .lotr-outline-btn:focus-visible,
.lotr-design-v1 .lotr-navlinks a:focus-visible,
.lotr-design-v1 .copy-path:focus-visible {
    outline: 2px solid rgba(82, 223, 135, .9);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .lotr-design-v1 .lotr-wordmark {
        margin-bottom: 18px;
    }

    .lotr-design-v1 .lotr-hero h1 {
        font-size: clamp(32px, 5vw, 50px);
    }
}

@media (max-width: 760px) {
    .lotr-design-v1 .wordmark-main {
        font-size: clamp(54px, 17vw, 78px);
    }

    .lotr-design-v1 .wordmark-sub {
        font-size: 18px;
    }

    .lotr-design-v1 .wordmark-cn {
        font-size: 15px;
    }

    .lotr-design-v1 .lotr-rune-divider {
        width: 100%;
    }

    .lotr-design-v1 .download-panel-product {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lotr-mod-downloads-container a,
    .lotr-mod-downloads-container button,
    .lotr-reveal {
        transition: none !important;
    }

    .lotr-download-btn:hover,
    .lotr-outline-btn:hover {
        transform: none !important;
    }
}

/* 2026-06-12 统计卡版本号溢出精修 */
.lotr-design-v1 .lotr-stats-grid {
    align-items: stretch;
}

.lotr-design-v1 .lotr-stat-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-width: 0;
}

.lotr-design-v1 .lotr-stat-card > strong,
.lotr-design-v1 .lotr-stat-card > small {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
}

.lotr-design-v1 .lotr-stat-card .stat-version {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-wrap: balance;
    word-break: keep-all;
    font-size: clamp(17px, 1.1vw, 22px) !important;
    line-height: 1.12;
}

.lotr-design-v1 .stat-version span {
    display: inline-block;
    max-width: 100%;
}

.lotr-design-v1 .stat-version-code {
    color: #ffe477 !important;
    font-family: Consolas, "JetBrains Mono", "Microsoft YaHei", monospace;
    font-size: .98em;
    letter-spacing: .02em;
}

@media (max-width: 1480px) {
    .lotr-design-v1 .lotr-stats-grid {
        gap: 14px;
        padding-left: 48px;
        padding-right: 48px;
    }

    .lotr-design-v1 .lotr-stat-card {
        padding: 18px 16px;
    }
}

@media (max-width: 1360px) {
    .lotr-design-v1 .lotr-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -28px;
    }

    .lotr-design-v1 .lotr-stat-card .stat-version {
        font-size: clamp(20px, 2.2vw, 28px) !important;
    }
}

/* 2026-06-12 下载卡与当前发布卡精修：更清晰的产品/版本层级 */
.lotr-design-v1 .lotr-download-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 30px 30px 28px;
}

.lotr-design-v1 .lotr-download-panel .download-badge-wrap {
    width: 138px;
    height: 138px;
    margin-bottom: 18px;
}

.lotr-design-v1 .download-panel-label {
    font-size: 13px;
    letter-spacing: .03em;
}

.lotr-design-v1 .download-panel-product {
    margin-top: 12px;
    font-size: clamp(22px, 1.9vw, 30px);
    line-height: 1.15;
}

.lotr-design-v1 .download-panel-version {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 10px;
    max-width: 100%;
    margin-top: 10px;
    color: #ffe477 !important;
    font-size: clamp(34px, 2.65vw, 46px);
    line-height: 1.08;
    letter-spacing: .01em;
    text-wrap: balance;
    white-space: normal;
}

.lotr-design-v1 .panel-version-name,
.lotr-design-v1 .panel-version-code {
    display: inline-block;
    max-width: 100%;
}

.lotr-design-v1 .panel-version-code {
    position: relative;
    padding-left: 18px;
    font-family: Georgia, "Times New Roman", "Noto Serif SC", serif;
}

.lotr-design-v1 .panel-version-code::before {
    content: "-";
    position: absolute;
    left: 0;
    color: rgba(255, 228, 119, .88);
}

.lotr-design-v1 .download-panel-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    margin: 18px 0 8px;
}

.lotr-design-v1 .download-panel-meta span {
    padding: 4px 9px;
    border: 1px solid rgba(217, 184, 95, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
}

.lotr-design-v1 .hero-download {
    width: min(100%, 342px);
    margin-top: 28px;
}

.lotr-design-v1 .download-count {
    margin-top: 14px;
}

.lotr-design-v1 .lotr-release-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
}

.lotr-design-v1 .lotr-release-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 28%, rgba(34, 212, 110, .10), transparent 25%),
        radial-gradient(circle at 88% 8%, rgba(217, 184, 95, .10), transparent 24%);
}

.lotr-design-v1 .lotr-release-card > * {
    position: relative;
    z-index: 1;
}

.lotr-design-v1 .release-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    max-width: 100%;
}

.lotr-design-v1 .release-title-main {
    color: #fff1cf !important;
}

.lotr-design-v1 .release-title-version {
    color: #ffe177 !important;
    font-size: .88em;
}

.lotr-design-v1 .release-body {
    grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.lotr-design-v1 .release-cover {
    align-self: center;
    width: min(142px, 100%);
    padding: 10px;
    border: 1px solid rgba(217, 184, 95, .16);
    border-radius: 22px;
    background:
        radial-gradient(circle, rgba(34, 212, 110, .16), transparent 62%),
        rgba(255, 255, 255, .025);
}

.lotr-design-v1 .release-info-list {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    gap: 12px;
    min-width: 0;
}

.lotr-design-v1 .release-info-list div {
    min-width: 0;
    padding: 14px 16px;
    border-color: rgba(217, 184, 95, .22);
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
        rgba(20, 18, 15, .64);
}

.lotr-design-v1 .release-info-list strong {
    overflow-wrap: anywhere;
    font-size: 15px;
}

.lotr-design-v1 .release-description {
    margin-top: 20px;
    padding: 17px 18px;
    border-left-width: 4px;
    background:
        linear-gradient(90deg, rgba(217, 184, 95, .13), rgba(217, 184, 95, .045)),
        rgba(255, 255, 255, .02);
}

.lotr-design-v1 .release-actions {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, .62fr);
    gap: 12px;
}

.lotr-design-v1 .release-actions .lotr-download-btn,
.lotr-design-v1 .release-actions .lotr-outline-btn {
    width: 100%;
    min-width: 0;
}

@media (max-width: 1360px) {
    .lotr-design-v1 .lotr-download-panel {
        min-height: 480px;
    }

    .lotr-design-v1 .download-panel-version {
        font-size: clamp(30px, 3vw, 42px);
    }
}

@media (max-width: 760px) {
    .lotr-design-v1 .lotr-download-panel {
        min-height: auto;
        padding: 26px 20px;
    }

    .lotr-design-v1 .download-panel-version {
        font-size: clamp(28px, 9vw, 40px);
    }

    .lotr-design-v1 .release-actions {
        grid-template-columns: 1fr;
    }
}
