* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mc-green: #3d9a4a;
    --mc-dark-green: #2a7235;
    --mc-brown: #7d5526;
    --mc-dark-brown: #5a3c1a;
    --mc-light: #f5f5f5;
    --mc-dark: #1d1d1d;
    --sidebar-width: 300px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #222;
    color: var(--mc-light);
    line-height: 1.6;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23333" width="100" height="100"/><rect fill="%23222" width="50" height="50" x="50" y="50"/><rect fill="%23222" width="50" height="50"/></svg>');
    background-size: 100px 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.top-nav {
    background: linear-gradient(to bottom, var(--mc-dark-brown), var(--mc-brown));
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #555;
    position: relative;
}

.top-nav:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to bottom right, #888, #333, #888);
}

.header-title h1 {
    font-size: 2.2em;
    color: white;
    text-shadow: 2px 2px 0 #000, 4px 4px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.header-title p {
    color: #eee;
    font-size: 1em;
    font-style: italic;
}

.server-ip {
    display: inline-block;
    background-color: #1d1d1d;
    color: #0ff;
    padding: 6px 12px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 1em;
    letter-spacing: 1px;
}

/* 主体布局 */
.wiki-container {
    display: flex;
    flex: 1;
}

/* 左侧导航栏 */
.wiki-sidebar {
    width: var(--sidebar-width);
    background: #2d2d2d;
    border-right: 2px solid #444;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar-logo {
    text-align: center;
    padding: 15px;
    border-bottom: 2px solid #444;
    margin-bottom: 20px;
}

.sidebar-logo h1 {
    font-size: 24px;
    color: var(--mc-green);
    text-shadow: 0 0 5px rgba(61, 154, 74, 0.5);
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-logo .mc-icon {
    display: inline-block;
    font-size: 24px;
    margin-right: 10px;
    color: var(--mc-green);
    transform: translateY(2px);
}

.main-category {
    padding: 0 15px;
}

.category-title {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    font-size: 18px;
    color: #ddd;
    background: #3a3a3a;
    border-radius: 5px;
    margin: 15px 0 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-title i {
    margin-right: 10px;
    font-size: 16px;
}

.category-title:hover {
    background: #444;
    color: white;
}

.category-items {
    padding-left: 10px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.4s ease-in-out;
}

.nav-item {
    display: block;
    padding: 10px 15px 10px 35px;
    color: #bbb;
    text-decoration: none;
    font-size: 16px;
    border-left: 2px solid #444;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.nav-item:before {
    content: "";
    position: absolute;
    left: -2px;
    top: 18px;
    width: 10px;
    height: 2px;
    background: #555;
}

.nav-item:hover {
    color: var(--mc-green);
    background: rgba(61, 154, 74, 0.1);
    border-left-color: var(--mc-green);
}

.nav-item.active {
    color: var(--mc-green);
    border-left-color: var(--mc-green);
    font-weight: bold;
    background: rgba(61, 154, 74, 0.15);
}

.nav-item.active:before {
    background: var(--mc-green);
}

/* 右侧内容区 */
.wiki-content {
    flex: 1;
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* 页面样式 */
.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 区块样式 */
.content-block {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.section-title {
    font-size: 28px;
    color: var(--mc-green);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--mc-green);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 20px;
    color: #bbb;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

p {
    margin-bottom: 20px;
    color: #ddd;
    line-height: 1.8;
}

ul {
    margin: 20px 0;
    padding-left: 30px;
}

li {
    margin-bottom: 12px;
    color: #ddd;
    position: relative;
}

li:before {
    content: "▹▹";
    color: var(--mc-green);
    position: absolute;
    left: -20px;
}

/* 特色卡片 */
.feature-card {
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.feature-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mc-green);
}

.feature-card h4 {
    color: var(--mc-green);
    margin-bottom: 10px;
    font-size: 18px;
}

/* 指令样式 */
.command-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.command-card {
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    cursor: pointer;
}

.command-card:hover {
    border-color: var(--mc-green);
    background: #424242;
}

.command-card::after {
    content: "点击复制";
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 12px;
    background: var(--mc-green);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.command-card:hover::after {
    opacity: 1;
}

.command-card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
    padding-right: 60px;
}

.command-card code {
    display: block;
    background: #2d2d2d;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-family: monospace;
    color: var(--mc-green);
    overflow-x: auto;
    user-select: all;
}

.command-card p {
    font-size: 14px;
    margin-bottom: 0;
    color: #bbb;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.screenshot {
    position: relative;
    aspect-ratio: 16/9;
    background-color: #2d2d2d;
    overflow: hidden;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.screenshot::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.screenshot:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* 通知提示 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--mc-green);
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s ease, fadeOut 0.5s ease 2s forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* 像素风格元素 */
.mc-box {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.grass {
    background: linear-gradient(to bottom right, #3d9a4a, #2a7235);
}

.dirt {
    background: linear-gradient(to bottom right, #7d5526, #5a3c1a);
}

.stone {
    background: linear-gradient(to bottom right, #999, #555);
}

.diamond {
    background: linear-gradient(to bottom right, #4ec9fa, #1999d6);
}

.gold {
    background: linear-gradient(to bottom right, #ffd700, #daa520);
}

/* 在线玩家状态 */
.online-players {
    position: relative;
}

.players-toggle {
    background: var(--mc-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.players-toggle:hover {
    background: var(--mc-dark-green);
}

.players-toggle i {
    margin-right: 8px;
}

.players-count {
    font-weight: bold;
    margin: 0 5px;
}

.players-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 5px;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.players-dropdown.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.players-header {
    padding: 10px 15px;
    background: #3a3a3a;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.players-title {
    font-size: 16px;
    color: var(--mc-green);
    font-weight: bold;
}

.close-players {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
}

.close-players:hover {
    color: white;
}

.players-list {
    padding: 10px;
}

.player-item {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.player-item:last-child {
    border-bottom: none;
}

.player-item:hover {
    background: rgba(61, 154, 74, 0.1);
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin-right: 10px;
    background-size: cover;
    background-position: center;
    background-color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #444;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-name {
    flex: 1;
    font-size: 14px;
}

.no-players {
    padding: 10px;
    text-align: center;
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .wiki-container {
        flex-direction: column;
    }

    .wiki-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .top-nav {
        flex-direction: column;
        text-align: center;
    }

    .category-title {
        padding: 10px;
        font-size: 16px;
    }

    .nav-item {
        padding: 8px 10px 8px 30px;
        font-size: 14px;
    }

    .server-info-container {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .header-title {
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 24px;
    }

    .command-list {
        grid-template-columns: 1fr;
    }

    .server-ip {
        margin-top: 5px;
    }

    .server-info-container {
        flex-direction: column;
    }

    .server-ip {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .players-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }
}

/* 页脚 */
.footer {
    background: #1d1d1d;
    border-top: 2px solid #444;
    padding: 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

.footer p {
    margin-bottom: 8px;
}

/* 添加卡片悬停效果 */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--mc-green);
}

.feature-card:hover h4 {
    color: var(--mc-green);
}

/* 添加点击效果 */
.feature-card:active {
    transform: scale(0.98);
}

/* 矿石系统样式 */
.ore-filter {
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.filter-title {
    color: var(--mc-green);
    font-weight: bold;
    margin-right: 15px;
    font-size: 18px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #3a3a3a;
    color: #ddd;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #444;
    border-color: #666;
}

.filter-btn.active {
    background: var(--mc-green);
    color: white;
    border-color: var(--mc-dark-green);
    font-weight: bold;
}

/* 矿石网格布局 */
.ore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 矿石卡片样式 */
.ore-card {
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ore-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--mc-green);
}

.ore-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.ore-image {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    background: #2d2d2d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #444;
}

.pixel-ore {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.ore-name {
    color: var(--mc-green);
    font-size: 18px;
    flex: 1;
}

/* 矿石属性表格 */
.ore-properties {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ore-properties th,
.ore-properties td {
    padding: 8px 5px;
    text-align: left;
}

.ore-properties tr {
    border-bottom: 1px solid #444;
}

.ore-properties tr:last-child {
    border-bottom: none;
}

.ore-properties th {
    color: #bbb;
    font-weight: normal;
    width: 40%;
}

.ore-properties td {
    color: #ddd;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ore-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .ore-grid {
        grid-template-columns: 1fr;
    }

    .ore-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-title {
        margin-bottom: 10px;
    }
}

/* 钓鱼现象表格样式 */
.fishing-phenomena {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.probability-table-container {
    flex: 1;
    min-width: 300px;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.probability-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.probability-table th {
    background: #3a3a3a;
    color: var(--mc-green);
    padding: 12px 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid var(--mc-green);
}

.probability-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #444;
}

.probability-table tr:last-child td {
    border-bottom: none;
}

.phenomenon-name {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #ddd;
}

.phenomenon-icon {
    width: 30px;
    height: 30px;
    background: rgba(61, 154, 74, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.phenomenon-icon i {
    color: var(--mc-green);
    font-size: 16px;
}

/* 概率样式 */
.probability-up {
    color: #4CAF50;
    font-weight: bold;
}

.probability-down {
    color: #F44336;
    font-weight: bold;
}

.probability-same {
    color: #9E9E9E;
    font-weight: bold;
}

/* 图例样式 */
.probability-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.up {
    background: #4CAF50;
}

.legend-color.down {
    background: #F44336;
}

.legend-color.same {
    background: #9E9E9E;
}

.legend-label {
    color: #ddd;
    font-size: 14px;
}

/* 现象说明卡片 */
.phenomenon-explanation {
    flex: 1;
    min-width: 300px;
}

.explanation-card {
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.explanation-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mc-green);
}

.explanation-card h4 {
    color: var(--mc-green);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.explanation-card h4 i {
    margin-right: 10px;
    font-size: 20px;
}

.explanation-card p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .fishing-phenomena {
        flex-direction: column;
    }

    .probability-table th,
    .probability-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .probability-table {
        font-size: 13px;
    }

    .probability-table th,
    .probability-table td {
        padding: 8px 5px;
    }

    .phenomenon-name {
        flex-direction: column;
        align-items: flex-start;
    }

    .phenomenon-icon {
        margin-bottom: 5px;
    }
}

.footer {
    background: #1d1d1d;
    color: #aaa;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    border-top: 2px solid #444;
}

.footer p {
    margin: 8px 0;
    line-height: 1.6;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--mc-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: var(--mc-green);
}

.footer-link:hover::after {
    transform: scaleX(1);
}

/* 附魔系统样式 */
.enchant-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
    padding: 15px;
    background: #333;
    border-radius: 8px;
    border: 1px solid #444;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

#enchant-search {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    color: #ddd;
    font-size: 16px;
    transition: all 0.3s;
}

#enchant-search:focus {
    border-color: var(--mc-green);
    box-shadow: 0 0 0 2px rgba(61, 154, 74, 0.3);
    outline: none;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.filter-options select {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px 15px;
    color: #ddd;
    font-size: 15px;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-options select:focus {
    border-color: var(--mc-green);
    outline: none;
}

/* 附魔卡片列表 */
.enchant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.enchant-card {
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.enchant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--mc-green);
}

.enchant-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mc-green);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.enchant-card:hover::before {
    transform: scaleY(1);
}

.enchant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.enchant-name {
    font-size: 22px;
    color: var(--mc-green);
    font-weight: bold;
}

/* 修改：移除等级背景效果 */
.enchant-level {
    color: #ddd;
    /* 改为普通文本颜色 */
    font-size: 18px;
    font-weight: bold;
}

.enchant-rarity {
    margin: 15px 0;
    display: flex;
    gap: 5px;
}

.star {
    color: gold;
    font-size: 18px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.enchant-description {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
    min-height: 60px;
}

/* 修改：装备图标布局 */
.enchant-equipment {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 固定5列布局 */
    gap: 8px;
    /* 减小间隙 */
    margin-bottom: 20px;
}

.equipment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s;
    padding: 6px;
    /* 减小内边距 */
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    width: 40px;
    /* 固定宽度 */
    height: 40px;
    /* 固定高度 */
}

.equipment-icon:hover {
    background: rgba(61, 154, 74, 0.2);
    transform: translateY(-3px);
}

.equipment-img {
    width: 32px;
    height: 32px;
    transition: all 0.3s;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

.equipment-icon:hover .equipment-img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px var(--mc-green));
}

.equipment-label {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    line-height: 1.3;
}

.equipment-icon:hover .equipment-img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px var(--mc-green));
}

.enchant-conflicts {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
}

.conflict-label {
    color: #ff5555;
    font-weight: bold;
    margin-right: 8px;
}

.conflict-name {
    color: #ff8888;
    margin-right: 10px;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .enchant-equipment {
        grid-template-columns: repeat(4, 1fr);
        /* 中等屏幕显示4个 */
    }
}

@media (max-width: 480px) {
    .enchant-equipment {
        grid-template-columns: repeat(3, 1fr);
        /* 小屏幕显示3个 */
    }
}

/* 图片卡片容器 */
.plot-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    justify-content: flex-start; /* 改为左对齐 */
}

/* 单个图片卡片 */
.plot-image-card {
    flex: 0 0 auto;
    width: 352px;
    /* 176 * 2 */
    background: rgba(30, 41, 59, 0.9);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.plot-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.4);
    border-color: rgba(96, 165, 250, 0.7);
}

/* 图片容器 */
.image-container {
    width: 352px;
    /* 176 * 2 */
    height: 460px;
    /* 230 * 2 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
}

/* 图片样式 - 2倍临近放大 */
.plot-image {
    width: 352px;
    /* 原始宽度176px * 2 */
    height: 460px;
    /* 原始高度230px * 2 */
    object-fit: none;
    /* 禁用缩放 */
    image-rendering: pixelated;
    /* 像素风格渲染 */
    image-rendering: crisp-edges;
    /* 边缘锐化 */
    transition: transform 0.3s ease;
}



/* 图片标题 */
.image-caption {
    text-align: center;
    padding: 15px;
    background: rgba(22, 31, 48, 0.8);
    color: #93c5fd;
    font-weight: bold;
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 800px) {
    .plot-images {
        flex-direction: column;
        align-items: center;
    }

    .plot-image-card {
        width: 100%;
        max-width: 352px;
    }

    .image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 176/230;
    }

    .plot-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .plot-image-card {
        min-width: 260px;
    }
}