:root{--viridia:#1f8f6a; --greenill:#009c63; --skyly:#0084d1; --bluefull:#0069c9; --purplenum:#7f1d7a; --pinkal:#c2185b; --redria:#a32121; --oran:#c05a00; --yellowboze:#9b8700; --whitill:#4b5563;}
* { box-sizing: border-box; }
body { margin:0; font-family: "Segoe UI", Arial, sans-serif; background:#0f172a; color:white; }
.header{
    text-align:center; font-size:28px; font-weight:bold; padding:20px; }
    
.control-bar {
    position: sticky;
    top: 0;
    z-index: 2000;
    backdrop-filter: blur(8px); /* 毛玻璃效果 */
    background: rgba(17, 24, 39, 0.95); /* 深色半透明背景 */
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

/* 内部容器居中 */
.control-bar-inner {
    max-width: 1400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 每行按钮 */
.selector-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative; /* 为遮罩提供上下文 */
}

/* 标签 */
.selector-label {
    width: 60px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

/* 按钮放大 */
.tab-btn, .ep-btn {
    min-width: 60px;
    height: 30px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: #1f2937;
    color: #fff;
    transition: all 0.2s;
}

.tab-btn.active, .ep-btn.active {
    background-color: #2563eb;
}

/* 鼠标悬停 */
.tab-btn:hover, .ep-btn:hover {
    background-color: #3b82f6;
}



.search-bar{ padding:15px; text-align:center; }
.search-input{  
    max-width:90%; 
    border:none; 
    width:50%;

    height:60px;

    font-size:20px;

    padding:0 20px;

    border-radius:12px;}

.searchInput {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #1f2937;
    color: #f1f5f9;
    font-size: 14px;
    transition: all 0.2s;
}

#searchInput:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 8px rgba(96,165,250,0.5);
    background: #111827;   /* 深色背景 */
    color: #f1f5f9;        /* 保证字体可见 */
}

.table-section{ margin-top:10px;margin-bottom:16px; }
.table-title{ text-align:center; font-size:30px; margin-bottom:10px; position:sticky; top:0; background:#0f172a; z-index:20; }
.table-wrapper{overflow:auto;display:flex;justify-content:center;}
table{ border-collapse:collapse; width:max-content; min-width:1200px; table-layout:fixed;font-size:14px;}

/* 基础单元格 */
th, td{
    border: 1px solid #334155;
    padding: 2px 2px;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;    /* 自动换行 */
    word-wrap: break-word;  /* 长词自动换行 */
    overflow-wrap: break-word;
}

/* 表头 sticky */
thead th{
    position: sticky;
    top: 0;
    background: #111827;
    z-index: 20; /* 高于普通单元格 */
}

/* 第一列 sticky (怪物列) */
thead th:first-child,
tbody td:first-child{
    position: sticky;
    left: 0;
    min-width: 100px;
    max-width: 100px;
    width: 100px;
    background: #111827; /* 固定列背景 */
    z-index: 30; /* 高于表头和普通单元格 */
    box-shadow:  10px 0 10px rgba(0,0,0,.35);
    clip-path: inset(0);
}


/* 除第一列外的表格列 */
thead th:not(:first-child),
tbody td:not(:first-child){
    width: 130px;
    min-width: 130px;
    max-width: 130px;
}

/* 基础：除第一列外的hover行 */
/* tbody tr:hover td:not(:first-child){
    background: rgba(250,204,21,0.15);
} */

/* 第一列 hover 高亮 */
tbody tr:hover td:first-child{
    background:#3d3520;
}
tbody td:hover{
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.2);
}

.item-cell:hover{

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.25);
    position:relative;
}


.item-name{ 
    display:block;
    line-height:1.2;
    font-size:15px; /* 掉落物品字体加大 */
    font-weight:500;
}

.legend-item{

    color:#fbbf24;

    font-weight:700;

    text-shadow:
        0 0 4px rgba(251,191,36,.35);
}

.ultimate-item{
 font-weight:700; background: linear-gradient( 90deg, #ff0000, #ffff00, #00ff00,  #00ffff, #0066ff, #ff00ff);background-size:300%; background-clip:text;-webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    animation:rainbow 4s linear infinite;
}

@keyframes rainbow{
    0%{ background-position:0%; }
    100%{ background-position:300%; }
}

.drop-rate{ display:block; margin-top:1px;  color:#94a3b8;
    font-size:10px; /* 掉率字体稍大 */
    color:#ffffff;
}
.monster-name{ 
    /* font-weight:bold;      */
    font-weight:700;
    font-size:16px; /* 怪物名稍大 */
}
.dar{ color:#facc15; font-size:16px; }



.highlight-item{

    position:relative;

    animation:itemPulse .9s infinite alternate;

    box-shadow:
        inset 0 0 0 3px #facc15,
        0 0 20px rgba(250,204,21,.9);

    z-index:5;
}

@keyframes itemPulse{

    from{
        box-shadow:
            inset 0 0 0 3px #facc15,
            0 0 10px rgba(250,204,21,.5);
    }

    to{
        box-shadow:
            inset 0 0 0 3px #fde047,
            0 0 35px rgba(250,204,21,1);
    }

}


.highlight-bonus{

    animation:bonusPulse 1.2s infinite alternate;

    box-shadow:
        inset 0 0 0 2px #3b82f6,
        0 0 16px rgba(59,130,246,.8);

}

@keyframes bonusPulse{

    from{
        box-shadow:
            inset 0 0 0 2px #3b82f6,
            0 0 8px rgba(59,130,246,.4);
    }

    to{
        box-shadow:
            inset 0 0 0 2px #60a5fa,
            0 0 22px rgba(59,130,246,1);
    }

}


.highlight-recipe{

    animation:recipePulse 1.2s infinite alternate;

    box-shadow:
        inset 0 0 0 2px #a855f7,
        0 0 16px rgba(168,85,247,.8);

}

@keyframes recipePulse{

    from{
        box-shadow:
            inset 0 0 0 2px #a855f7,
            0 0 8px rgba(168,85,247,.4);
    }

    to{
        box-shadow:
            inset 0 0 0 2px #c084fc,
            0 0 22px rgba(168,85,247,1);
    }

}

@keyframes searchPulse{

    0%{
        box-shadow:
            0 0 8px rgba(255,255,0,.5),
            0 0 16px rgba(255,255,0,.3),
            inset 0 0 0 2px #ffd700;
    }

    50%{
        box-shadow:
            0 0 16px rgba(255,255,0,.9),
            0 0 32px rgba(255,255,0,.7),
            inset 0 0 0 3px #fff176;
    }

    100%{
        box-shadow:
            0 0 8px rgba(255,255,0,.5),
            0 0 16px rgba(255,255,0,.3),
            inset 0 0 0 2px #ffd700;
    }
}

/* 刷怪 farm */
.tooltip-farm {
    display: inline-block;
    font-weight: 600;
    font-style: italic;
    font-size: 12px;
    line-height: 1.35;
    color: #d9f99d;
    border-left: 3px solid #84cc16;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 4px;

    background:
        linear-gradient(
            135deg,
            rgba(15,23,42,.98),
            rgba(30,41,59,.98)
        );

    border:
        1px solid rgba(148,163,184,.35);

    box-shadow:
        0 0 0 1px rgba(255,255,255,.05),
        0 10px 40px rgba(0,0,0,.75);

    backdrop-filter:
        blur(8px);
}

/* 光效伪元素 */
.tooltip-farm::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.08),
        transparent
    );
    animation: farmShine 5s linear infinite;
}

/* 光效动画 */
@keyframes farmShine {
    from { left: -100%; }
    to   { left: 200%; }
}

.tooltip-item-image{
    display:flex;
    max-width:400px;
    max-height:200px;
    width:auto;
    height:auto;
    margin:0 auto 8px auto;
    border-radius:6px;
    object-fit:contain;
}

/* Tooltip 内不同字段颜色 */
#tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
    width:auto;
    max-width: min(800px, 80vw);
    max-height: 80vh;
    white-space: normal;    /* 自动换行 */
    word-wrap: break-word;  /* 长词自动换行 */
    overflow-wrap: break-word;
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.tooltip-name{

    font-size:30px;
    font-weight:900;

    letter-spacing:.5px;

    text-shadow:
        0 0 10px currentColor;
}
.tooltip div {margin: 2px 0;}
.tooltip-farm {color: #94b938; font-weight: 600; font-style: italic; margin-top: 2px; display: block; white-space: normal;}
.tooltip-type{
    font-size:13px;
    color:#34d399;           /* 绿色醒目 */
    font-weight:600;
    margin-bottom:4px;
    line-height:1.2;
}

.tooltip-desc,
.tooltip-quest,
.tooltip-farm,
.tooltip-bonus-inline,
.tooltip-recipe-inline {
    font-family: "Segoe UI", "PingFang SC", sans-serif;
}

* 套装 / 合成公式独立块 */
.tooltip-bonus-inline,
.tooltip-recipe-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;                 /* 条目间距微调 */
    font-size: 12px;
    line-height: 1.35;
}

/* 描述 */
.tooltip-desc {
    color: #e5e7eb;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.45;        /* 微调行高 */
    padding: 5px 8px;
    border-radius: 6px;
    background: rgba(56,189,248,0.1);
    border-left: 3px solid #38bdf8;
    margin-bottom: 4px;       /* 与下一行保持间距 */
}

.tooltip-desc::after{

    content:"";

    position:absolute;

    top:0;
    left:-100%;

    width:60%;

    height:100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.08),
            transparent
        );

    animation:
        descShine 5s linear infinite;
}

@keyframes descShine{

    from{
        left:-100%;
    }

    to{
        left:200%;
    }

}

/* 点评 */
.tooltip-quest {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 12px;          /* 调小字体，区分描述 */
    line-height: 1.35;        /* 紧凑一些 */
    color: #fde68a;
    background: rgba(251,191,36,0.1);
    border-left: 3px solid #fbbf24;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

/* 点评图标 */
.tooltip-quest::before {
    content: "💡";
    font-size: 12px;
    display: inline-block;
    vertical-align: middle;
}

.tooltip-id{
    font-size:12px;
    color:#f87171;           /* 红色醒目但不刺眼 */
    font-weight:600;
    margin-bottom:2px;
    line-height:1.1;
}

.tooltip-en{
    font-size:14px;            /* 略小于中文名 */
    color:#94a3b8;             /* 灰色弱化层次 */
    font-style:italic;
    margin-top:0px;
    margin-bottom:6px;
    line-height:1.2;
} */
/* 套装与合成 */
.tooltip-extra{ max-height:300px; overflow-y:auto; overscroll-behavior:contain;}
/* 套装效果块 */
.tooltip-block-bonus { background: rgba(59,130,246,0.1); border-left: 3px solid #3b82f6; border-radius: 6px; margin-top: 6px; padding: 6px 10px;}
.tooltip-block-bonus .tooltip-block-title { color: #3b82f6; font-weight: 700; margin-bottom: 4px;}
/* 合成公式块 */
.tooltip-block-recipe { background: rgba(168,85,247,0.1);  border-left: 3px solid #a855f7; border-radius: 6px; margin-top: 6px; padding: 6px 10px;}
.tooltip-block-recipe .tooltip-block-title { color: #a855f7;font-weight: 700; margin-bottom: 4px;}
/* 套装条目 */
.bonus-entry, .recipe-entry { margin-bottom: 4px; padding: 4px 6px; border-radius: 4px;}

.bonus-body, .recipe-body { padding-left: 8px; white-space: pre-wrap; word-break: break-word;}

/* 套装/合成公式中的加号样式 */
.bonus-body, .recipe-body {
    font-size: 13px; 
    line-height: 1.4;
}

/* 针对加号突出显示 */
.bonus-body::after, .recipe-body::after {
    content: "";
}

/* 使用 span 包裹加号 */
.bonus-body span.plus, .recipe-body span.plus {
    font-weight: 700;
    color: #facc15; /* 金黄色，更醒目 */
    font-size: 14px;
    margin: 0 2px;
}

/* 基础横向 tooltip 容器 */
.tooltip-inline {
    display: flex;
    flex-wrap: wrap; /* 多条换行 */
    gap: 6px;
}

/* 单个条目 */
.tooltip-item {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.2;
    transition: transform 0.15s, box-shadow 0.15s;
    animation:
    tooltipPulse 3s ease-in-out infinite;
}

@keyframes bonusPulse{

    0%,100%{
        border-left-color:#3b82f6;
    }

    50%{
        border-left-color:#93c5fd;
    }

}

/* 套装/合成条目 */
.bonus-item,
.recipe-item {
    padding: 2px 6px;
    border-radius: 4px;
}

.recipe-item{

    background:
        rgba(168,85,247,.18);

    border-left:
        3px solid #a855f7;
}

.bonus-item{

    background:
        rgba(59,130,246,.18);

    border-left:
        3px solid #3b82f6;
}

/* 套装背景颜色 */
.tooltip-bonus-inline .bonus-item {
    background: rgba(59,130,246,0.08);
    color: #3b82f6;
}

/* 合成公式背景颜色 */
.tooltip-recipe-inline .recipe-item {
    background: rgba(139,92,246,0.08);
    color: #8b5cf6;
}

/* 调整整体间距 */
.tooltip-inline {
    display: flex;
    flex-direction: column;
    gap: 4px;                 /* 行间距微调 */
}

/* 套装效果颜色 */
.bonus-item{

    background:
        linear-gradient(
            90deg,
            rgba(59,130,246,.15),
            rgba(59,130,246,.05)
        );

    border-left:3px solid #3b82f6;

    color:#e5e7eb;
}

/* 合成公式颜色 */
.recipe-item{

    background:
        linear-gradient(
            90deg,
            rgba(168,85,247,.15),
            rgba(168,85,247,.05)
        );

    border-left:3px solid #a855f7;

    color:#e5e7eb;
    animation:
    recipePulse 3s ease-in-out infinite;
}

@keyframes recipePulse{

    0%,100%{
        border-left-color:#a855f7;
    }

    50%{
        border-left-color:#d8b4fe;
    }

}

/* 标题样式 */
.bonus-header{
    color:#60a5fa;
    font-weight:700;
}

.recipe-header{
    color:#c084fc;
    font-weight:700;
}

.bonus-header,
.recipe-header{
    flex-shrink:0;
    white-space:nowrap;
    min-width:max-content;
}

.header-Viridia{ background:var(--viridia); font-size:20px;}
.header-Greenill{
    background:var(--greenill);
    font-size:20px;
}

.header-Skyly{
    background:var(--skyly);
    font-size:20px;
}

.header-Bluefull{
    background:var(--bluefull);
    font-size:20px;
}

.header-Purplenum{
    background:var(--purplenum);
    font-size:20px;
}

.header-Pinkal{
    background:var(--pinkal);
    font-size:20px;
}

.header-Redria{
    background:var(--redria);
    font-size:20px;
}

.header-Oran{
    background:var(--oran);
    font-size:20px;
}

.header-Yellowboze{
    background:var(--yellowboze);
    font-size:20px;
}

.header-Whitill{
    background:var(--whitill);
    font-size:20px;
}


.col-Viridia{
    background:rgba(31,143,106,.25);
}

.col-Greenill{
    background:rgba(0,156,99,.25);
}

.col-Skyly{
    background:rgba(0,132,209,.25);
}

.col-Bluefull{
    background:rgba(0,105,201,.25);
}

.col-Purplenum{
    background:rgba(127,29,122,.25);
}

.col-Pinkal{
    background:rgba(194,24,91,.25);
}

.col-Redria{
    background:rgba(163,33,33,.25);
}

.col-Oran{
    background:rgba(192,90,0,.25);
}

.col-Yellowboze{
    background:rgba(155,135,0,.25);
}

.col-Whitill{
    background:rgba(75,85,99,.25);
}

.col-Viridia:hover{
    background:rgba(31,143,106,.45);
}

.col-Greenill:hover{
    background:rgba(0,156,99,.45);
}

.col-Skyly:hover{
    background:rgba(0,132,209,.45);
}

.col-Bluefull:hover{
    background:rgba(0,105,201,.45);
}

.col-Purplenum:hover{
    background:rgba(127,29,122,.45);
}

.col-Pinkal:hover{
    background:rgba(194,24,91,.45);
}

.col-Redria:hover{
    background:rgba(163,33,33,.45);
}

.col-Oran:hover{
    background:rgba(192,90,0,.45);
}

.col-Yellowboze:hover{
    background:rgba(155,135,0,.45);
}

.col-Whitill:hover{
    background:rgba(75,85,99,.45);
}

#content{max-width:1800px;margin:auto;padding:0 8px;}

