/* 怪物介绍页：与首页同一套暗夜 + 金 + 冰蓝配色，独立布局避免首页的绝对定位堆叠 */

.monster-nav {
    background: linear-gradient(180deg, rgba(4, 9, 22, 0.96) 0%, rgba(4, 9, 22, 0.72) 70%, rgba(4, 9, 22, 0.45) 100%);
    border-bottom: 1px solid rgba(124, 168, 235, 0.12);
    min-height: 60px;
}

.monster-nav ul {
    max-width: 1200px;
    min-height: 60px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.monster-nav ul li {
    font-size: 20px;
    padding: 16px 18px;
    transition: all 0.5s;
}

.monster-nav ul li:hover {
    border-radius: 4px;
    background-color: rgba(124, 168, 235, 0.10);
}

.monster-nav ul li a {
    color: #DDE8F7;
    text-decoration: none;
    position: relative;
}

.monster-nav ul li a:hover {
    color: #F6E3AE;
}

.monster-nav ul li:first-child a,
.monster-nav ul li a.nav-current {
    color: #E8C47A;
    font-size: 24px;
    text-shadow: 0 0 14px rgba(232, 196, 122, 0.45);
}

.monster-wrap {
    width: 1200px;
    margin: 0 auto;
    padding: 70px 0 0;
}

/* 标题条：与首页各板块标题同一个金边深色条 */
.monster-heading {
    width: 540px;
    height: 54px;
    margin: 0 auto;
    text-align: center;
    line-height: 54px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.3em;
    padding-left: 10px;
    color: #F6E3AE;
    background: linear-gradient(180deg, #17274F 0%, #0A1229 100%);
    border: 1px solid rgba(232, 196, 122, 0.34);
    border-radius: 3px;
    text-shadow: 0 0 16px rgba(232, 196, 122, 0.35);
    box-shadow: 0 0 22px rgba(63, 123, 255, 0.18), 0 0 0 1px rgba(4, 9, 22, 0.9) inset;
    position: relative;
    z-index: 2;
}

.monster-sub {
    text-align: center;
    color: #8DA0BC;
    font-size: 14px;
    line-height: 2;
    margin: 22px 0 24px;
}

.monster-sub em {
    color: #E8C47A;
    font-style: normal;
    text-shadow: 0 0 12px rgba(232, 196, 122, 0.4);
}

.monster-search {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.monster-search input {
    width: 420px;
    height: 46px;
    padding: 0 16px;
    box-sizing: border-box;
    font-size: 16px;
    color: #E6EFF9;
    background: rgba(6, 13, 30, 0.88);
    border: 1px solid rgba(124, 168, 235, 0.18);
    border-radius: 3px;
    outline: none;
    transition: all 0.3s;
}

.monster-search input::placeholder {
    color: #69799A;
}

.monster-search input:focus {
    border-color: #E8C47A;
    box-shadow: 0 0 18px rgba(232, 196, 122, 0.22);
}

.monster-search button {
    height: 46px;
    padding: 0 26px;
    font-size: 16px;
    letter-spacing: 2px;
    color: #E8C47A;
    background: linear-gradient(180deg, rgba(232, 196, 122, 0.14), rgba(232, 196, 122, 0.02));
    border: 1px solid rgba(232, 196, 122, 0.34);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.monster-search button:hover {
    color: #0A1024;
    background: linear-gradient(180deg, #F6E3AE, #C79A4B);
    border-color: #F6E3AE;
}

/* 列表面板：同首页暗色玻璃 */
.monster-panel {
    position: relative;
    min-height: 300px;
    padding: 28px 40px 32px;
    background:
        linear-gradient(180deg, rgba(232, 196, 122, 0.055), rgba(0, 0, 0, 0) 160px),
        radial-gradient(ellipse 70% 55% at 82% -10%, rgba(63, 123, 255, 0.16), rgba(0, 0, 0, 0) 72%),
        linear-gradient(180deg, rgba(15, 26, 56, 0.92), rgba(5, 11, 28, 0.94));
    border: 1px solid rgba(124, 168, 235, 0.14);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(232, 196, 122, 0.10) inset, 0 26px 60px rgba(0, 0, 0, 0.55);
}

.monster-legend {
    display: flex;
    justify-content: flex-end;
    gap: 22px;
    font-size: 13px;
    color: #8DA0BC;
    margin-bottom: 10px;
}

.monster-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-normal {
    background: rgba(124, 168, 235, 0.22);
    border: 1px solid rgba(124, 168, 235, 0.45);
}

.legend-extra {
    background: rgba(232, 196, 122, 0.16);
    border: 1px dashed rgba(232, 196, 122, 0.55);
}

.monster-status {
    text-align: center;
    color: #8DA0BC;
    font-size: 16px;
    padding: 18px 0;
}

.monster-status:empty {
    display: none;
}

.monster-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
}

.monster-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.monster-card {
    padding: 12px 14px 14px;
    border: 1px solid rgba(124, 168, 235, 0.14);
    border-radius: 4px;
    background: rgba(9, 17, 38, 0.62);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.monster-card:hover {
    border-color: rgba(232, 196, 122, 0.28);
    box-shadow: 0 0 24px rgba(63, 123, 255, 0.10) inset;
}

.monster-card-name {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #F6E3AE;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(232, 196, 122, 0.22);
}

.drop-section + .drop-section {
    margin-top: 10px;
}

.drop-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.drop-title-normal {
    color: #8CC6FF;
}

.drop-title-extra {
    color: #E8C47A;
}

.drop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.drop-chip {
    font-size: 13px;
    line-height: 22px;
    padding: 0 9px;
    border-radius: 3px;
}

/* 物品名后的最低等级标记 */
.drop-lv {
    margin-left: 5px;
    font-size: 11px;
    font-weight: bold;
    color: #6F87A8;
    white-space: nowrap;
}

.drop-chip-extra .drop-lv {
    color: #B99555;
}

.drop-chip-normal {
    color: #C7D6EA;
    background: rgba(124, 168, 235, 0.10);
    border: 1px solid rgba(124, 168, 235, 0.22);
}

.drop-chip-extra {
    color: #E8C47A;
    background: rgba(232, 196, 122, 0.10);
    border: 1px dashed rgba(232, 196, 122, 0.45);
}

/* 搜索命中的物品：金色实底 + 外发光，与未命中的半透明 chip 拉开明显对比 */
.drop-chip-hit {
    color: #1B1204;
    background: linear-gradient(180deg, #FFE9A8 0%, #E8C47A 52%, #CB9A4A 100%);
    border: 1px solid #FFEDB4;
    font-weight: bold;
    box-shadow: 0 0 14px rgba(255, 219, 130, 0.55), 0 0 0 1px rgba(255, 245, 205, 0.45) inset;
}

/* 命中 chip 内的等级文字改深色，避免金色底上看不清 */
.drop-chip-hit .drop-lv {
    color: #63400F;
}

/* 金色底上再用下划线指出匹配的具体字符位置 */
.drop-chip-hit .chip-hit {
    background: transparent;
    color: #472200;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: rgba(71, 34, 0, 0.65);
    text-underline-offset: 2px;
}

/* 扩展掉落的命中项保留虚线边框，不丢类型区分 */
.drop-chip-hit.drop-chip-extra {
    border-style: dashed;
}

/* 搜索命中的怪物名：文字块亮成金色，行内显示不改变原有布局 */
.monster-card-name .name-hit {
    padding: 0 3px;
    border-radius: 2px;
    color: #14203A;
    background: rgba(232, 196, 122, 0.88);
    box-shadow: 0 0 10px rgba(232, 196, 122, 0.45);
}

.monster-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    color: #8DA0BC;
}

.monster-pager button {
    min-width: 38px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    color: #C7D6EA;
    background: rgba(9, 17, 38, 0.8);
    border: 1px solid rgba(124, 168, 235, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.monster-pager button:hover:not(:disabled) {
    color: #F6E3AE;
    border-color: rgba(232, 196, 122, 0.45);
}

.monster-pager button.current {
    color: #0A1024;
    background: linear-gradient(180deg, #F6E3AE, #C79A4B);
    border-color: #F6E3AE;
}

.monster-pager button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.monster-pager .pager-info {
    margin-left: 14px;
    font-size: 14px;
}

.monster-footer {
    width: 1200px;
    margin: 40px auto 0;
    padding-bottom: 40px;
    text-align: center;
}

.monster-footer p {
    color: #69799A;
    font-size: 18px;
    margin-bottom: 8px;
}

@media (max-width: 1240px) {
    .monster-wrap,
    .monster-footer {
        width: 94%;
    }
    .monster-columns {
        grid-template-columns: 1fr;
    }
    .monster-search input {
        width: 60%;
    }
}

/* 手机端：搜索框独占一行，两个按钮等宽平分，避免文字被挤成竖排 */
@media (max-width: 768px) {
    .monster-nav ul {
        min-height: 52px;
        gap: 0;
        font-size: 14px;
        padding: 0 8px;
    }
    /* 手机端导航按 15px 单行显示，避免中文菜单名被逐字折成两行 */
    .monster-nav ul li {
        font-size: 15px;
        padding: 14px 10px;
        white-space: nowrap;
    }
    .monster-nav ul li:first-child a,
    .monster-nav ul li a.nav-current {
        font-size: 16px;
    }
    .monster-heading {
        font-size: 22px;
        letter-spacing: 0.22em;
    }
    .monster-sub {
        margin: 14px 0 18px;
        font-size: 12px;
        line-height: 1.9;
    }
    .monster-search {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 18px;
    }
    .monster-search input {
        width: 100%;
        height: 42px;
        font-size: 14px;
    }
    .monster-search button {
        flex: 1 1 0;
        height: 40px;
        padding: 0 8px;
        font-size: 15px;
        letter-spacing: 0;
        white-space: nowrap;
    }
    .monster-panel {
        min-height: 0;
        padding: 18px 14px 20px;
    }
    .monster-legend {
        justify-content: flex-start;
        gap: 14px;
        font-size: 12px;
    }
    .monster-status {
        font-size: 14px;
        padding: 12px 0;
    }
}
