/**
 * LOTR Mod Downloads - 魔戒主题样式
 * 中土世界风格的精致设计
 * 兼容zibll主题
 */

:root {
    /* 主色调 - 金色系 */
    --lotr-gold: #d4af37;
    --lotr-dark-gold: #b8941f;
    --lotr-light-gold: #f0d98d;
    --lotr-bronze: #cd7f32;
    --lotr-copper: #b87333;

    /* 背景色 - 羊皮纸/古卷风格 */
    --lotr-dark-bg: #1a1410;
    --lotr-medium-bg: #2d2419;
    --lotr-light-bg: #3d3226;
    --lotr-card-bg: #2a2116;

    /* 文字色 */
    --lotr-text-light: #f5e6d3;
    --lotr-text-muted: #c4b5a0;
    --lotr-text-dark: #8b7d6b;

    /* 边框和阴影 */
    --lotr-border: #4d4233;
    --lotr-border-light: #5d5243;
    --lotr-shadow: rgba(0, 0, 0, 0.5);
    --lotr-shadow-light: rgba(0, 0, 0, 0.3);
    --lotr-glow: rgba(212, 175, 55, 0.3);

    /* 功能色 */
    --lotr-green: #4a7c59;
    --lotr-red: #8b3a3a;
    --lotr-blue: #4a6b8a;
}

/* 容器 - 兼容zibll主题 - 使用 !important 确保样式生效 */
.lotr-mod-downloads-container {
    font-family: 'Georgia', 'Times New Roman', serif !important;
    color: #f5e6d3 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    background: #1a1410 !important;
    border-radius: 8px !important;
}

/* 重置zibll主题可能的样式冲突 */
.lotr-mod-downloads-container * {
    box-sizing: border-box;
}

.lotr-mod-downloads-container a {
    text-decoration: none;
}

.lotr-mod-downloads-container a:hover {
    text-decoration: none;
}

/* 强制所有文字颜色 */
.lotr-mod-downloads-container,
.lotr-mod-downloads-container p,
.lotr-mod-downloads-container span,
.lotr-mod-downloads-container div,
.lotr-mod-downloads-container li {
    color: #f5e6d3 !important;
}

.lotr-mod-downloads-container h1,
.lotr-mod-downloads-container h2,
.lotr-mod-downloads-container h3,
.lotr-mod-downloads-container h4,
.lotr-mod-downloads-container h5 {
    color: #d4af37 !important;
}

/* 顶部横幅 - 史诗级中土世界设计 */
.lotr-banner {
    position: relative;
    height: 450px;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
        linear-gradient(135deg, #0d0a08 0%, #1a1410 40%, #2d2419 100%);
    overflow: hidden;
    margin: -20px -20px 60px -20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 2px 0 rgba(212, 175, 55, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg,
        transparent 0%,
        var(--lotr-bronze) 10%,
        var(--lotr-gold) 50%,
        var(--lotr-bronze) 90%,
        transparent 100%) 1;
}

/* 顶部金色装饰线 */
.lotr-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 10%,
        var(--lotr-light-gold) 30%,
        var(--lotr-gold) 50%,
        var(--lotr-light-gold) 70%,
        rgba(212, 175, 55, 0.3) 90%,
        transparent 100%);
    box-shadow:
        0 1px 3px rgba(212, 175, 55, 0.5),
        0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 2;
}

/* 底部渐变遮罩 */
.lotr-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top,
        rgba(26, 20, 16, 1) 0%,
        rgba(26, 20, 16, 0.9) 30%,
        rgba(26, 20, 16, 0.6) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.lotr-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px 20px;
}

.lotr-title {
    font-size: 4em;
    font-weight: 700;
    color: var(--lotr-gold);
    text-shadow:
        0 0 30px rgba(212, 175, 55, 0.6),
        0 0 60px rgba(212, 175, 55, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9);
    margin: 0;
    letter-spacing: 4px;
    font-family: 'Georgia', 'Palatino Linotype', serif;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow:
            0 0 30px rgba(212, 175, 55, 0.6),
            0 0 60px rgba(212, 175, 55, 0.4),
            0 4px 12px rgba(0, 0, 0, 0.8);
    }
    100% {
        text-shadow:
            0 0 40px rgba(212, 175, 55, 0.8),
            0 0 80px rgba(212, 175, 55, 0.5),
            0 4px 12px rgba(0, 0, 0, 0.8);
    }
}

.lotr-subtitle {
    font-size: 1.5em;
    color: var(--lotr-text-light);
    margin-top: 20px;
    font-style: italic;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 1);
    letter-spacing: 1px;
    opacity: 0.95;
}

/* 统计信息区域 */
.lotr-stats-section {
    margin-bottom: 50px;
}

/* 重要提示框 - 精致的金色警告设计 */
.lotr-notice-warning {
    background:
        radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
        linear-gradient(135deg, rgba(61, 50, 38, 0.9) 0%, rgba(45, 36, 25, 0.95) 100%);
    border: 3px solid var(--lotr-bronze);
    border-radius: 12px;
    padding: 30px 35px;
    margin-bottom: 50px;
    display: flex;
    gap: 25px;
    box-shadow:
        0 8px 24px rgba(205, 127, 50, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2),
        inset 0 2px 0 rgba(212, 175, 55, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.lotr-notice-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 10%,
        var(--lotr-gold) 50%,
        rgba(212, 175, 55, 0.3) 90%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.lotr-notice-warning .notice-icon {
    font-size: 3em;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.6));
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.6));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 6px 12px rgba(212, 175, 55, 0.8));
    }
}

.lotr-notice-warning .notice-content {
    flex: 1;
}

.lotr-notice-warning .notice-title {
    color: var(--lotr-gold);
    font-size: 1.6em;
    margin: 0 0 18px 0;
    font-weight: 700;
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.lotr-notice-warning p {
    color: var(--lotr-text-light);
    margin: 0 0 18px 0;
    line-height: 1.7;
    font-size: 1.05em;
}

.lotr-notice-warning ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lotr-notice-warning ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--lotr-text-light);
    line-height: 1.7;
    font-size: 1.02em;
}

.lotr-notice-warning ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--lotr-gold);
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.lotr-notice-warning strong {
    color: var(--lotr-light-gold);
    font-weight: 700;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.lotr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.lotr-stat-card {
    background:
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, var(--lotr-medium-bg) 0%, var(--lotr-dark-bg) 100%);
    border: 2px solid var(--lotr-border);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lotr-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 50%,
        transparent 100%);
}

.lotr-stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--lotr-gold);
    box-shadow:
        0 12px 32px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.stat-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--lotr-gold);
    margin-bottom: 12px;
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

.stat-label {
    font-size: 1.1em;
    color: var(--lotr-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* 章节标题 - 精致的分隔设计 */
.lotr-section-header {
    margin-bottom: 35px;
    position: relative;
}

.section-title {
    font-size: 2.4em;
    color: var(--lotr-gold);
    border-bottom: 3px solid var(--lotr-border);
    padding-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg,
        var(--lotr-gold) 0%,
        var(--lotr-light-gold) 50%,
        transparent 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.title-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* 版本卡片 - 精致的羊皮纸风格 */
.lotr-version-card {
    background:
        linear-gradient(135deg, rgba(61, 50, 38, 0.4) 0%, transparent 100%),
        var(--lotr-card-bg);
    border: 2px solid var(--lotr-border);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 175, 55, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lotr-version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.2) 50%,
        transparent 100%);
}

.lotr-version-card:hover {
    border-color: var(--lotr-bronze);
    box-shadow:
        0 12px 32px rgba(205, 127, 50, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.lotr-version-card.featured {
    border: 3px solid var(--lotr-gold);
    background:
        radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, var(--lotr-medium-bg) 0%, var(--lotr-light-bg) 100%);
    box-shadow:
        0 12px 40px rgba(212, 175, 55, 0.5),
        0 0 60px rgba(212, 175, 55, 0.2),
        inset 0 2px 0 rgba(212, 175, 55, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

.lotr-version-card.featured::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.4) 50%,
        transparent 100%);
    height: 2px;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.version-info {
    flex: 1;
    min-width: 300px;
}

.version-number {
    font-size: 1.8em;
    color: var(--lotr-gold);
    margin: 0 0 15px 0;
    font-weight: bold;
}

.version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--lotr-text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.meta-icon {
    font-size: 1.2em;
}

.version-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* 下载按钮 - 金属质感设计 */
.lotr-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.lotr-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    transition: left 0.6s ease;
}

.lotr-download-btn:hover::before {
    left: 100%;
}

.lotr-download-btn.primary {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--lotr-gold) 0%, var(--lotr-dark-gold) 100%);
    color: var(--lotr-dark-bg);
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.5),
        0 2px 8px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lotr-download-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(212, 175, 55, 0.7),
        0 4px 12px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--lotr-light-gold) 0%, var(--lotr-gold) 100%);
}

.lotr-download-btn.primary:active {
    transform: translateY(-1px);
    box-shadow:
        0 4px 15px rgba(212, 175, 55, 0.6),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lotr-download-btn.secondary {
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        var(--lotr-light-bg);
    color: var(--lotr-gold);
    border: 2px solid var(--lotr-gold);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.lotr-download-btn.secondary:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--lotr-gold) 0%, var(--lotr-dark-gold) 100%);
    color: var(--lotr-dark-bg);
    border-color: var(--lotr-light-gold);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-icon {
    font-size: 1.2em;
}

.download-count {
    font-size: 0.9em;
    color: var(--lotr-text-muted);
    text-align: right;
}

/* 附属模组 - 精致的卡片设计 */
.version-addons {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--lotr-border);
    position: relative;
}

.version-addons::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 50%,
        transparent 100%);
}

.addons-title {
    font-size: 1.5em;
    color: var(--lotr-gold);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.addons-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.addons-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.addon-item {
    background:
        linear-gradient(135deg, rgba(61, 50, 38, 0.3) 0%, transparent 100%),
        var(--lotr-dark-bg);
    border: 2px solid var(--lotr-border);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.addon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.2) 50%,
        transparent 100%);
}

.addon-item:hover {
    border-color: var(--lotr-bronze);
    box-shadow:
        0 6px 20px rgba(205, 127, 50, 0.3),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    transform: translateX(4px);
}

.addon-item.required {
    border-left: 5px solid var(--lotr-gold);
    box-shadow:
        0 4px 16px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(212, 175, 55, 0.08);
}

.addon-item.required:hover {
    box-shadow:
        0 6px 20px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.15);
}

.addon-item.optional {
    border-left: 5px solid var(--lotr-bronze);
}

.addon-info {
    flex: 1;
    min-width: 0;
}

.addon-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.addon-name {
    font-size: 1.25em;
    color: var(--lotr-gold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.addon-badge {
    font-size: 0.65em;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.addon-badge.required {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--lotr-gold) 0%, var(--lotr-dark-gold) 100%);
    color: var(--lotr-dark-bg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.addon-badge.optional {
    background: var(--lotr-light-bg);
    color: var(--lotr-bronze);
    border: 2px solid var(--lotr-bronze);
}

.addon-description {
    color: var(--lotr-text-muted);
    margin: 0 0 12px 0;
    line-height: 1.7;
    font-size: 1.02em;
}

.addon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--lotr-text-dark);
    font-size: 0.92em;
}

.addon-actions {
    flex-shrink: 0;
}

.addon-download {
    padding: 13px 28px;
    font-size: 0.95em;
}

/* 更新日志 - 精致的卷轴风格 */
.version-changelog {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--lotr-border);
    position: relative;
}

.version-changelog::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 50%,
        transparent 100%);
}

.changelog-title {
    font-size: 1.5em;
    color: var(--lotr-gold);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.changelog-icon {
    font-size: 1.3em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.lotr-changelog {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.changelog-section {
    background:
        linear-gradient(135deg, rgba(61, 50, 38, 0.2) 0%, transparent 100%),
        var(--lotr-dark-bg);
    border-left: 5px solid var(--lotr-border);
    padding: 22px;
    border-radius: 8px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.05);
    transition: all 0.3s ease;
}

.changelog-section:hover {
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    transform: translateX(3px);
}

.changelog-section.changelog-added {
    border-left-color: var(--lotr-green);
    background:
        linear-gradient(135deg, rgba(74, 124, 89, 0.08) 0%, transparent 100%),
        var(--lotr-dark-bg);
}

.changelog-section.changelog-fixed {
    border-left-color: var(--lotr-red);
    background:
        linear-gradient(135deg, rgba(139, 58, 58, 0.08) 0%, transparent 100%),
        var(--lotr-dark-bg);
}

.changelog-section.changelog-changed {
    border-left-color: var(--lotr-blue);
    background:
        linear-gradient(135deg, rgba(74, 107, 138, 0.08) 0%, transparent 100%),
        var(--lotr-dark-bg);
}

.changelog-section.changelog-improved {
    border-left-color: var(--lotr-gold);
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%),
        var(--lotr-dark-bg);
}

.changelog-type {
    font-size: 1.25em;
    color: var(--lotr-gold);
    margin: 0 0 16px 0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--lotr-text-light);
    line-height: 1.7;
    font-size: 1.02em;
}

.changelog-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--lotr-gold);
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* 可折叠的更新日志 - 精致的交互设计 */
.version-changelog.collapsible {
    padding-top: 0;
    border-top: none;
    margin-top: 25px;
}

.changelog-toggle {
    background:
        linear-gradient(135deg, rgba(61, 50, 38, 0.3) 0%, transparent 100%),
        var(--lotr-dark-bg);
    border: 2px solid var(--lotr-border);
    border-radius: 8px;
    padding: 16px 22px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--lotr-text-light);
    font-size: 1.15em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(212, 175, 55, 0.08);
}

.changelog-toggle:hover {
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%),
        var(--lotr-light-bg);
    border-color: var(--lotr-gold);
    box-shadow:
        0 6px 16px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

.toggle-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--lotr-gold);
    font-size: 1.1em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.version-changelog.collapsible.expanded .toggle-icon {
    transform: rotate(90deg);
}

.changelog-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.version-changelog.collapsible.expanded .changelog-content {
    max-height: 3000px;
    margin-top: 22px;
}

/* 历史版本列表 */
.lotr-version-history {
    margin-bottom: 50px;
}

.lotr-versions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 安装指南 - 精致的步骤卡片 */
.lotr-installation-guide {
    margin-top: 60px;
    margin-bottom: 40px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.guide-step {
    background:
        radial-gradient(ellipse at top left, rgba(212, 175, 55, 0.05) 0%, transparent 70%),
        linear-gradient(135deg, var(--lotr-medium-bg) 0%, var(--lotr-card-bg) 100%);
    border: 2px solid var(--lotr-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(212, 175, 55, 0.08);
    position: relative;
    overflow: hidden;
}

.guide-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 50%,
        transparent 100%);
}

.guide-step:hover {
    border-color: var(--lotr-gold);
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(212, 175, 55, 0.15);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--lotr-gold) 0%, var(--lotr-dark-gold) 100%);
    color: var(--lotr-dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
    box-shadow:
        0 6px 16px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h4 {
    color: var(--lotr-gold);
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.step-content p {
    color: var(--lotr-text-light);
    margin: 0;
    line-height: 1.6;
    font-size: 1em;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    .lotr-banner {
        height: 350px;
        margin: -15px -15px 40px -15px;
    }

    .lotr-title {
        font-size: 2.5em;
        letter-spacing: 2px;
    }

    .lotr-subtitle {
        font-size: 1.2em;
        margin-top: 15px;
    }

    .lotr-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lotr-stat-card {
        padding: 25px;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .lotr-notice-warning {
        flex-direction: column;
        padding: 25px;
        gap: 15px;
    }

    .lotr-notice-warning .notice-icon {
        font-size: 2.5em;
        align-self: center;
    }

    .section-title {
        font-size: 1.9em;
        letter-spacing: 0.5px;
    }

    .lotr-version-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .lotr-version-card.featured {
        border-width: 2px;
    }

    .version-header {
        flex-direction: column;
        gap: 15px;
    }

    .version-info {
        min-width: 100%;
    }

    .version-number {
        font-size: 1.6em;
    }

    .version-actions {
        align-items: stretch;
        width: 100%;
    }

    .lotr-download-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
        font-size: 1em;
        letter-spacing: 1.5px;
    }

    .addon-item {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 15px;
    }

    .addon-actions {
        width: 100%;
    }

    .addon-download {
        width: 100%;
        justify-content: center;
    }

    .addon-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .addon-name {
        font-size: 1.15em;
    }

    .guide-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guide-step {
        padding: 22px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.4em;
    }

    .changelog-section {
        padding: 18px;
    }

    .changelog-type {
        font-size: 1.15em;
    }
}

/* 下载前置检查 */
.lotr-pre-download-check {
    background:
        radial-gradient(ellipse at top left, rgba(74, 124, 89, 0.12) 0%, transparent 60%),
        linear-gradient(135deg, #2d2419 0%, #1a1410 100%);
    border: 2px solid #4a7c59;
    border-radius: 12px;
    padding: 30px 35px;
    margin-bottom: 40px;
    box-shadow:
        0 8px 24px rgba(74, 124, 89, 0.3),
        inset 0 2px 0 rgba(74, 124, 89, 0.15);
}

.check-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.check-icon {
    width: 50px;
    height: 50px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--lotr-green) 0%, #3d6347 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    box-shadow:
        0 6px 16px rgba(74, 124, 89, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.check-title {
    color: var(--lotr-gold);
    font-size: 1.6em;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.check-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #1a1410;
    border: 2px solid #4d4233;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.check-item:hover {
    border-color: #4a7c59;
    background: #3d3226;
}

.check-box {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--lotr-green);
}

.check-label {
    color: #f5e6d3;
    font-size: 1.05em;
    user-select: none;
}

/* 一键下载包按钮 */
.bundle-download {
    position: relative;
    padding-right: 50px;
}

.bundle-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* 安装步骤增强 */
.guide-step {
    position: relative;
}

.step-status {
    position: absolute;
    top: 30px;
    right: 30px;
}

.status-icon {
    font-size: 2em;
    color: var(--lotr-text-dark);
    transition: all 0.3s ease;
}

.guide-step.completed .status-icon {
    color: var(--lotr-green);
}

.guide-step.completed .status-icon::before {
    content: "✓";
}

.step-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--lotr-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-link:hover {
    color: var(--lotr-light-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.step-action {
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--lotr-light-bg);
    border: 2px solid var(--lotr-gold);
    color: var(--lotr-gold);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-action:hover {
    background: var(--lotr-gold);
    color: var(--lotr-dark-bg);
}

/* 常见问题悬浮按钮 */
.lotr-faq-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.faq-toggle {
    width: 60px;
    height: 60px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--lotr-gold) 0%, var(--lotr-dark-gold) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow:
        0 8px 24px rgba(212, 175, 55, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle:hover {
    transform: scale(1.1);
    box-shadow:
        0 12px 32px rgba(212, 175, 55, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.faq-icon {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--lotr-dark-bg);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.faq-text {
    font-size: 0.7em;
    font-weight: 600;
    color: var(--lotr-dark-bg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    max-height: 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--lotr-medium-bg) 0%, var(--lotr-card-bg) 100%);
    border: 3px solid var(--lotr-gold);
    border-radius: 12px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(212, 175, 55, 0.3);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-panel.active {
    max-height: 600px;
    overflow-y: auto;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid var(--lotr-border);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.faq-header h3 {
    color: var(--lotr-gold);
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.faq-close {
    background: none;
    border: none;
    color: var(--lotr-text-light);
    font-size: 2em;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-close:hover {
    background: var(--lotr-red);
    color: white;
}

.faq-content {
    padding: 25px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--lotr-border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: var(--lotr-gold);
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.faq-item p {
    color: var(--lotr-text-light);
    margin: 0;
    line-height: 1.6;
}

/* 响应式 - FAQ */
@media (max-width: 768px) {
    .lotr-faq-float {
        bottom: 20px;
        right: 20px;
    }

    .faq-toggle {
        width: 50px;
        height: 50px;
    }

    .faq-icon {
        font-size: 1.5em;
    }

    .faq-text {
        font-size: 0.6em;
    }

    .faq-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .check-list {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    background: linear-gradient(90deg, var(--lotr-medium-bg) 0%, var(--lotr-light-bg) 50%, var(--lotr-medium-bg) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}
