﻿/* ============ 像素2天下为公(天服)官网 ============ */
:root{
  --gold:#ffd24a;
  --gold2:#ffef9c;
  --ink:#1b1206;
  --panel:#141a2ecc;
  --panel-solid:#141a2e;
  --line:#2f3d66;
  --blue:#5aa9ff;
  --text:#e8eefc;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:
    radial-gradient(1200px 600px at 50% -10%, #2a2f6b 0%, #131735 45%, #080a18 100%),
    #080a18;
  color:var(--text);
  font-family:"Microsoft YaHei","PingFang SC","Hiragino Sans GB","Source Han Sans SC",sans-serif;
  min-height:100vh;
  display:flex; flex-direction:column;
  -webkit-font-smoothing:antialiased;
}
/* 复古扫描线 */
.scanlines{
  position:fixed; inset:0; pointer-events:none; z-index:9999;
  background:repeating-linear-gradient(to bottom,
    rgba(0,0,0,.10) 0px, rgba(0,0,0,.10) 1px, transparent 1px, transparent 3px);
  mix-blend-mode:multiply; opacity:.45;
}

/* ---------- 顶部标题 ---------- */
.hero{
  position:relative;
  padding:56px 16px 34px;
  text-align:center;
  background:
    radial-gradient(700px 220px at 50% 0%, rgba(120,140,255,.28), transparent 70%),
    linear-gradient(180deg, rgba(8,10,24,0) 0%, rgba(8,10,24,0) 60%, rgba(8,10,24,.9) 100%);
}
.hero::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:3px;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity:.65;
}

/* 像素标题：亮黄色实心 + 硬边阴影 + 描边 */
.pixel-title{
  position:relative;
  display:inline-block;
  margin:0;
  font-family:"Microsoft YaHei","SimHei","Heiti SC",sans-serif;
  font-weight:900;
  font-size:clamp(26px, 5.2vw, 64px);
  line-height:1.18;
  letter-spacing:.06em;
  color:#ffe633;                       /* 亮黄色主色 */
  -webkit-text-fill-color:#ffe633;
  filter:drop-shadow(0 3px 0 #b96b00) drop-shadow(0 6px 0 #6b3a00) drop-shadow(0 10px 18px rgba(255,205,60,.45));
  padding:0 .1em;
}
/* 硬边描边，模拟像素块（深棕，不用纯黑，保持字亮） */
.pixel-title::before{
  content:attr(data-text);
  position:absolute; inset:0;
  z-index:-1;
  color:#3a2000;
  -webkit-text-fill-color:#3a2000;
  -webkit-text-stroke:8px #3a2000;
  paint-order:stroke fill;
}
/* 标题轻微发光脉冲 */
@keyframes glowPulse{
  0%,100%{ filter:drop-shadow(0 3px 0 #b96b00) drop-shadow(0 6px 0 #6b3a00) drop-shadow(0 10px 16px rgba(255,205,60,.40)); }
  50%    { filter:drop-shadow(0 3px 0 #b96b00) drop-shadow(0 6px 0 #6b3a00) drop-shadow(0 10px 28px rgba(255,225,90,.75)); }
}
.pixel-title{ animation:glowPulse 3.4s ease-in-out infinite; }

/* 副标题：小一圈，像素风描边 */
.pixel-sub{
  margin:14px 0 0;
  font-size:clamp(13px, 2vw, 22px);
  font-weight:700;
  letter-spacing:.42em;
  text-indent:.42em;
  color:#cfe0ff;
  text-shadow:
    0 2px 0 #0b1024, 0 3px 0 #0b1024,
    0 0 12px rgba(90,169,255,.55);
}

/* ---------- 导航 ---------- */
.nav{
  display:flex; justify-content:center; gap:12px; flex-wrap:wrap;
  padding:18px 12px 6px;
}
.nav-btn{
  display:inline-block;
  padding:10px 22px;
  font-size:15px; font-weight:700; letter-spacing:.08em;
  color:#cfe0ff; text-decoration:none;
  background:linear-gradient(180deg,#1e2748,#141a2e);
  border:2px solid var(--line);
  box-shadow:0 4px 0 #0a0e1c, inset 0 1px 0 rgba(255,255,255,.08);
  transition:.15s;
}
.nav-btn:hover{ color:#fff; border-color:#4a6bb0; transform:translateY(-1px); }
.nav-btn.active{
  color:#1b1206;
  background:linear-gradient(180deg,#ffe98a,#ffc62e);
  border-color:#8a5a00;
  box-shadow:0 4px 0 #6b4300, 0 0 16px rgba(255,198,46,.35);
}

/* ---------- 主体 ---------- */
.wrap{
  flex:1;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:22px 16px 60px;
}
.panel{
  background:var(--panel);
  border:2px solid var(--line);
  box-shadow:0 6px 0 #0a0e1c, 0 0 0 1px rgba(255,255,255,.03) inset;
  padding:22px;
  backdrop-filter:blur(4px);
}
.panel[hidden]{ display:none; }
.panel-title{
  margin:0 0 18px;
  font-size:20px; letter-spacing:.14em;
  color:var(--gold2);
  text-shadow:0 2px 0 #2a1400;
  padding-left:12px;
  border-left:5px solid var(--gold);
}

/* 公告 */
.news-list{ display:flex; flex-direction:column; gap:14px; }
.news-item{
  position:relative;
  padding:16px 18px 14px;
  background:linear-gradient(180deg, rgba(40,52,92,.55), rgba(20,26,46,.55));
  border:1px solid #2b3763;
  border-left:4px solid var(--blue);
}
.news-item .news-time{
  font-size:12px; color:#8fa6d8; letter-spacing:.06em; margin-bottom:8px;
  font-variant-numeric:tabular-nums;
}
.news-item .news-text{
  white-space:pre-wrap; word-break:break-word;
  font-size:15px; line-height:1.85; color:#e8eefc;
}
.news-item .new-badge{
  position:absolute; top:-1px; right:-1px;
  background:linear-gradient(180deg,#ff8a3d,#e2500f);
  color:#fff; font-size:11px; font-weight:700;
  padding:3px 10px; letter-spacing:.1em;
  box-shadow:0 2px 0 #7a2b00;
}

/* 掉落查询 */
.toolbar{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:18px; }
.search{
  flex:1; min-width:220px;
  padding:11px 14px;
  background:#0d1226; color:var(--text);
  border:2px solid var(--line); outline:none;
  font-size:14px;
}
.search:focus{ border-color:var(--blue); box-shadow:0 0 0 2px rgba(90,169,255,.2); }
.select{
  padding:11px 14px; background:#0d1226; color:var(--text);
  border:2px solid var(--line); font-size:14px; outline:none;
}
.count{ font-size:13px; color:#8fa6d8; }

.drop-list{ display:flex; flex-direction:column; gap:12px; }
.drop-card{
  border:2px solid var(--line);
  background:linear-gradient(180deg, rgba(28,36,64,.7), rgba(14,18,34,.7));
}
.drop-head{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:12px 16px;
  background:linear-gradient(180deg,#1b2547,#141a2e);
  border-bottom:1px solid #26325a;
  cursor:pointer;
}
.drop-head:hover{ background:linear-gradient(180deg,#223059,#18203c); }
.drop-cn{ font-size:16px; font-weight:700; color:#fff; }
.drop-en{ font-size:12px; color:#7f95c7; }
.tag{
  font-size:11px; font-weight:700; padding:2px 9px; letter-spacing:.06em;
  border:1px solid;
}
.tag.boss{ color:#ffce56; border-color:#8a5a00; background:rgba(255,206,86,.08); }
.tag.mob{ color:#6fd08c; border-color:#276b3c; background:rgba(111,208,140,.08); }
.tag.map{ color:#8fb4ff; border-color:#2f4a86; background:rgba(143,180,255,.08); }
.drop-range{ margin-left:auto; font-size:12px; color:#9fb2da; }
.drop-body{ padding:14px 16px; display:none; }
.drop-card.open .drop-body{ display:block; }
.drop-body.flat .tier-name,.drop-body.flat .tier-w{ display:none; }

.tier-block{ margin-bottom:16px; }
.tier-block:last-child{ margin-bottom:0; }
.tier-name{
  font-size:13px; font-weight:700; letter-spacing:.1em;
  color:#ffd24a; margin-bottom:8px;
}
.tier-w{ font-size:11px; color:#8fa6d8; font-weight:400; margin-left:8px; }
.item-table{ width:100%; border-collapse:collapse; font-size:13px; }
.item-table th{
  text-align:left; font-weight:600; color:#8fa6d8;
  padding:6px 8px; border-bottom:1px solid #26325a; font-size:12px;
}
.item-table td{ padding:6px 8px; border-bottom:1px dashed #1e2848; }
.item-table tr:last-child td{ border-bottom:none; }
.item-table td.w{ color:var(--gold); font-variant-numeric:tabular-nums; }
.item-table .bar{
  display:inline-block; height:8px; min-width:2px;
  background:linear-gradient(90deg,#ffb43d,#ffd24a);
  vertical-align:middle; margin-right:8px;
}
.item-cn{ color:#e8eefc; }
.item-en{ color:#7f95c7; font-size:11px; margin-left:6px; }

.loading,.empty{ padding:26px; text-align:center; color:#8fa6d8; }

/* ---------- 页脚 ---------- */
.footer{
  margin-top:auto;
  padding:26px 16px 30px;
  text-align:center;
  border-top:1px solid #1d2748;
  background:linear-gradient(180deg, rgba(8,10,24,0), rgba(8,10,24,.9));
}
.footer-inner{ max-width:1180px; margin:0 auto; }
.beian{ margin-bottom:8px; }
.beian a{
  color:#cfe0ff; text-decoration:none;
  font-size:14px; letter-spacing:.04em;
  border-bottom:1px dashed #3c4f85; padding-bottom:1px;
}
.beian a:hover{ color:#fff; border-bottom-color:var(--gold); }
.copy{ font-size:12px; color:#6b7ba6; letter-spacing:.04em; }

/* ---------- 移动端 ---------- */
@media (max-width:640px){
  .hero{ padding:38px 12px 26px; }
  .wrap{ padding:16px 10px 44px; }
  .panel{ padding:16px; }
  .nav-btn{ padding:9px 16px; font-size:14px; }
  .item-table th:nth-child(2),.item-table td:nth-child(2){ display:none; }
}

/* ---------- 资源掉落表（怪物卡片最下方） ---------- */
.res-block{ margin-top:26px; border:2px solid var(--line); overflow-x:auto;
  background:linear-gradient(180deg, rgba(28,36,64,.7), rgba(14,18,34,.7)); }
.res-title{ margin:0; padding:12px 16px; font-size:14px; font-weight:700; letter-spacing:.06em;
  color:#ffd24a; background:linear-gradient(180deg,#1b2547,#141a2e); border-bottom:1px solid #26325a; }
.res-table{ min-width:680px; }
.res-table th,.res-table td{ padding:8px 10px; }
.res-table td.num{ color:#e8eefc; font-variant-numeric:tabular-nums; }
.res-table td.res-id{ color:#7f95c7; font-size:12px; font-variant-numeric:tabular-nums; }
.res-table td.res-map{ color:#8fb4ff; }
.res-table td.res-pool{ color:var(--gold); }
.res-table .tag.res{ color:#c9a6ff; border-color:#5a3f8a; background:rgba(201,166,255,.08); }

/* 资源分组标题（与怪物卡片同风格） */
.res-split{margin:22px 0 10px;padding:8px 14px;border-radius:8px;
  background:rgba(255,255,255,.06);color:#9fe8c8;font-size:14px;font-weight:600;
  letter-spacing:.5px;border-left:3px solid #4fd1a5}


/* 卡片头部的 ID 小标 */
.drop-id{font-size:12px;color:#7c8b9a;margin-left:8px;font-family:Consolas,monospace}
