﻿:root {
  --bg: #100d0a;
  --bg2: #17130e;
  --panel: #1d1812;
  --panel2: #241e16;
  --line: #3d3121;
  --line2: #57452a;
  --gold: #e7c877;
  --gold2: #b9963f;
  --text: #eadfc8;
  --muted: #9c8d72;
  --red: #d4553f;
  --green: #5fae62;
  --blue: #5b9bd5;
  --orange: #d99a3d;
  /* 派生色（各配色方案统一覆盖，避免主题里出现撞色） */
  --topbar1: #1d1710f2;
  --topbar2: #16110cf2;
  --active: #2a2216;
  --hover: #262019;
  --tag-bg: #221b12;
  --btn1: #2a2318;
  --btn2: #1e1810;
  --tab-bg: #14100b;
  --toast-bg: #2b2317;
  --glow: rgba(231,200,119,.07);
  --glow2: rgba(120,70,20,.10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
}

body {
  background-image:
    radial-gradient(1200px 500px at 50% -10%, var(--glow), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, var(--glow2), transparent 60%);
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }

/* ===== 顶部 ===== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, var(--topbar1), var(--topbar2));
  border-bottom: 1px solid var(--line2);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
}
.topbar .row1 {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.brand {
  font-size: 18px; font-weight: 700; color: var(--gold);
  letter-spacing: 1px; white-space: nowrap;
  text-shadow: 0 0 12px rgba(231,200,119,.25);
}
.brand small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; letter-spacing: 0; }
/* 页头 LOGO：按高度自适应宽度，方形/横版都不会被压扁，也不至于把标题挤走 */
.brand img.logo {
  height: 28px; width: auto; max-width: 140px; object-fit: contain;
  border-radius: 6px; margin-right: 8px; vertical-align: middle;
}
.player {
  display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap;
}
.player .tag {
  font-size: 12px; color: var(--gold); border: 1px solid var(--line2);
  background: var(--tag-bg); padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  max-width: 46vw; overflow: hidden; text-overflow: ellipsis;
}
.player .tag.z { color: var(--muted); }

.btn {
  border: 1px solid var(--line2); background: linear-gradient(180deg, var(--btn1), var(--btn2));
  color: var(--text); border-radius: 8px; padding: 7px 14px; font-size: 14px;
  cursor: pointer; transition: .15s; user-select: none; white-space: nowrap;
}
.btn:hover { border-color: var(--gold2); color: var(--gold); }
.btn.primary {
  background: linear-gradient(180deg, #b9963f, #8f6f28);
  border-color: #d9b95e; color: #1a1409; font-weight: 700;
}
.btn.primary:hover { filter: brightness(1.08); color: #1a1409; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 6px; }

/* ===== 标签页 ===== */
.tabs {
  display: flex; gap: 6px; max-width: 1100px; margin: 10px auto 0; padding: 0 14px;
  overflow-x: auto;
}
.tab {
  padding: 8px 18px; border: 1px solid var(--line); border-bottom: none;
  border-radius: 9px 9px 0 0; background: var(--tab-bg); color: var(--muted);
  cursor: pointer; font-size: 14px; white-space: nowrap;
}
.tab.active {
  background: var(--panel); color: var(--gold); border-color: var(--line2);
  font-weight: 700;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 14px; }

/* ===== 工具行 ===== */
.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px;
}
.search {
  flex: 1; min-width: 200px; position: relative;
}
.search input {
  width: 100%; padding: 10px 14px 10px 36px; font-size: 15px;
  background: var(--bg2); border: 1px solid var(--line2); color: var(--text);
  border-radius: 9px; outline: none;
}
.search input:focus { border-color: var(--gold2); box-shadow: 0 0 0 2px rgba(231,200,119,.08); }
.search::before {
  content: "🔍"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: .7;
}
.counts { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.counts .c {
  border: 1px solid var(--line); background: var(--bg2); border-radius: 20px;
  padding: 5px 12px; color: var(--muted);
}
.counts .c b { color: var(--gold); }
.counts .c.red b { color: var(--red); }
.counts .c.green b { color: var(--green); }
.counts .c.blue b { color: var(--blue); }

/* ===== 分类栏 ===== */
.cats {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0;
}
.cat {
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel); color: var(--muted); font-size: 13px; cursor: pointer;
}
.cat.active { border-color: var(--gold2); color: var(--gold); background: var(--active); }
.cat .n { font-size: 11px; opacity: .65; margin-left: 4px; }

/* ===== 物品网格 ===== */
.items {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}
.item {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 10px; position: relative;
  transition: .12s;
}
.item:hover { border-color: var(--line2); }
.item .nm { flex: 1; min-width: 0; }
.item .nm .name {
  font-size: 14.5px; color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.item .nm .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.item .ops { display: flex; gap: 4px; flex-shrink: 0; }
.op {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; border: 1px solid var(--line); background: var(--bg2);
  color: var(--muted); font-size: 13px; cursor: pointer; user-select: none;
  transition: .12s;
}
.op:hover { border-color: var(--gold2); }
.op.f.on { background: rgba(212,85,63,.18); border-color: var(--red); color: #ff8f7c; }
.op.r.on { background: rgba(95,174,98,.15); border-color: var(--green); color: #8fd992; }
.op.s.on { background: rgba(91,155,213,.15); border-color: var(--blue); color: #8fc0ee; }

.item.is-f { border-color: rgba(212,85,63,.55); }
.item.is-r { border-color: rgba(95,174,98,.5); }
.item.is-s { border-color: rgba(91,155,213,.5); }

.item .badge {
  position: absolute; top: -7px; left: 10px; font-size: 10px;
  padding: 1px 7px; border-radius: 10px; letter-spacing: 1px;
}
.badge.f { background: var(--red); color: #fff; }
.badge.r { background: var(--green); color: #10240f; }
.badge.s { background: var(--blue); color: #0b1a2a; }

.empty {
  text-align: center; color: var(--muted); padding: 60px 20px; font-size: 14px;
}

/* ===== 底部保存栏 ===== */
.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: linear-gradient(0deg, #17120cf5, #17120ce8);
  border-top: 1px solid var(--line2);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.savebar .inner {
  max-width: 1100px; margin: 0 auto; display: flex; gap: 10px; align-items: center;
}
.savebar .hint { font-size: 12px; color: var(--muted); flex: 1; line-height: 1.5; }
.savebar .hint b { color: var(--gold); }

.toast {
  position: fixed; left: 50%; top: 16%; transform: translateX(-50%);
  background: var(--tag-bg); border: 1px solid var(--gold2); color: var(--gold);
  padding: 12px 22px; border-radius: 10px; font-size: 14px; z-index: 99;
  box-shadow: 0 10px 40px rgba(0,0,0,.5); opacity: 0; pointer-events: none;
  transition: .25s; max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; }
.toast.err { border-color: var(--red); color: #ff9a86; }

/* 底部留白 */
.footer-space { height: 84px; }

.tips {
  margin: 12px 0 0; border: 1px dashed var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 12.5px; color: var(--muted); line-height: 1.9;
}
.tips b { color: var(--gold); }
.tips .r { color: #ff8f7c; }
.tips .g { color: #8fd992; }
.tips .b { color: #8fc0ee; }

.loading { text-align: center; padding: 50px; color: var(--muted); }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 12px;
  border: 3px solid var(--line2); border-top-color: var(--gold);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 仓库 / 克隆码 ===== */
.storage-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.claim-banner {
  border: 1px solid var(--gold2); background: rgba(231,200,119,.08); color: var(--gold);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 10px; line-height: 1.8;
}
.storage-list { display: flex; flex-direction: column; gap: 8px; }
.storage-row {
  display: flex; align-items: center; gap: 10px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.storage-row .nm { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.storage-row .qty { font-size: 12px; color: var(--gold); white-space: nowrap; }
.storage-row input {
  width: 74px; padding: 6px 8px; font-size: 13px; background: var(--bg2);
  border: 1px solid var(--line2); border-radius: 7px; color: var(--text); outline: none;
}

.modal {
  position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-box {
  width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line2);
  border-radius: 14px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.modal-box h3 { margin: 0 0 8px; color: var(--gold); font-size: 17px; }
.clone-row { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.clone-row .pselect { flex: 1; }
.clone-row .pinput {
  flex: 1; padding: 9px 12px; background: var(--bg2); border: 1px solid var(--line2);
  border-radius: 8px; color: var(--text); font-size: 14px; outline: none;
}
.clone-code {
  margin-top: 12px; text-align: center; font-size: 28px; letter-spacing: 6px;
  color: var(--gold); background: var(--bg2); border: 1px dashed var(--gold2);
  border-radius: 10px; padding: 14px; cursor: pointer; font-family: Consolas, monospace;
}

/* ===== 资料库 ===== */
.lib-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lib-tab {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--muted); font-size: 13.5px; cursor: pointer;
}
.lib-tab.active { border-color: var(--gold2); color: var(--gold); background: var(--active); font-weight: 700; }

.lib-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.lib-body { display: grid; grid-template-columns: 38% 1fr; gap: 12px; align-items: start; }
.lib-body.rank-mode { grid-template-columns: minmax(0, 1fr) 380px; }
.chk-related { display: inline-flex; align-items: center; gap: 6px; font-size: 13px;
  color: var(--muted); cursor: pointer; white-space: nowrap; }
.chk-related input { accent-color: var(--gold2); }
.lib-list-wrap { min-width: 0; }
.lib-meta { font-size: 12px; color: var(--muted); margin: 2px 0 8px; }
.lib-list { display: flex; flex-direction: column; gap: 6px; }
.lib-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 11px; cursor: pointer; transition: .12s;
}
.lib-row:hover { border-color: var(--line2); }
.lib-row.active { border-color: var(--gold2); background: var(--active); }
.lib-row .t { flex: 1; min-width: 0; }
.lib-row .t .n { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-row .t .s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.lib-row .v { font-size: 12px; color: var(--gold); white-space: nowrap; }
.lib-row .v small { color: var(--muted); }

.lib-detail {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; min-height: 200px;
}
.lib-detail .empty { color: var(--muted); text-align: center; padding: 50px 10px; font-size: 13px; }
.lib-back { display: none; }
.dt-title { font-size: 17px; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.dt-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.dt-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.dt-tag {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px; background: var(--bg2);
}
.dt-tag b { color: var(--gold); font-weight: 600; }
.dt-section { margin-top: 14px; }
.dt-section h4 {
  margin: 0 0 8px; font-size: 13px; color: var(--gold);
  border-left: 3px solid var(--gold2); padding-left: 8px; font-weight: 700;
}
.dt-section h4 span { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.dt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.dt-stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font-size: 12px; color: var(--muted); }
.dt-stat b { display: block; color: var(--text); font-size: 13px; margin-top: 2px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--muted); font-weight: 400; font-size: 12px; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td.q { color: var(--gold); white-space: nowrap; }
.tbl .lnk { color: var(--gold); cursor: pointer; }
.tbl .lnk:hover { text-decoration: underline; }
.tbl .cond { color: var(--muted); font-size: 11px; }
/* 整行可点击（材料/货币查询）：名字、数量、使用地点任意位置都能打开右侧详情 */
.tbl-click tr.row-click { cursor: pointer; }
.tbl-click tr.row-click:hover td { background: var(--hover); }
.tbl-click tr.row-click:hover td.lnk { text-decoration: underline; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12px; color: var(--text); border: 1px solid var(--line);
  background: var(--bg2); border-radius: 20px; padding: 4px 11px; cursor: pointer;
}
.chip:hover { border-color: var(--gold2); color: var(--gold); }
.chip .x { color: var(--muted); margin-left: 4px; }

.rank-block { margin-bottom: 18px; }
.rank-block h4 { margin: 0 0 8px; font-size: 14px; color: var(--gold); }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 13px; border-bottom: 1px dashed var(--line); }
.rank-item .no { width: 26px; color: var(--muted); font-size: 12px; }
.rank-item .no.top { color: var(--gold); font-weight: 700; }
.rank-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.rank-item .bar { width: 120px; height: 6px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.rank-item .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); }
.rank-item .num { width: 56px; text-align: right; color: var(--gold); font-size: 12px; }

@media (max-width: 820px) {
  .lib-body { grid-template-columns: 1fr; }
  .lib-body.show-detail .lib-list-wrap { display: none; }
  .lib-body.show-detail .lib-detail { display: block; }
  .lib-body:not(.show-detail) .lib-detail { display: none; }
  .lib-back { display: inline-block; margin-bottom: 10px; }
  .rank-item .bar { width: 70px; }
}
@media (min-width: 821px) {
  .lib-detail { position: sticky; top: 118px; max-height: calc(100vh - 140px); overflow: auto; }
}

@media (max-width: 640px) {
  .items { grid-template-columns: 1fr 1fr; gap: 6px; }
  .item { padding: 8px; gap: 6px; }
  .item .nm .sub { display: none; }
  .item .ops { gap: 3px; }
  .op { width: 26px; height: 26px; font-size: 12px; }
  .brand { font-size: 16px; }
  .toolbar { padding: 10px; }
}
@media (max-width: 380px) {
  .items { grid-template-columns: 1fr; }
}


/* ===== 网站配色方案（生成器「网站配置」设默认，玩家可在右上角自选并记住） ===== */
.theme-sel { padding: 5px 8px; font-size: 12.5px; border-radius: 7px; cursor: pointer; max-width: 112px; }
body.theme-green {
  --bg:#0b120c; --bg2:#111a12; --panel:#162017; --panel2:#1b2a1d;
  --line:#243326; --line2:#31452f; --gold:#8fe0a0; --gold2:#3f9c55;
  --text:#e8f2e6; --muted:#8fa58c;
  --active:#1b2d1f; --hover:#1a2b1e; --tag-bg:#16241a;
  --btn1:#22321f; --btn2:#182417; --tab-bg:#0e1a11;
  --topbar1:#0f1a12f2; --topbar2:#0b140df2;
  --glow:rgba(143,224,160,.07); --glow2:rgba(30,110,60,.12);
}
body.theme-blue {
  --bg:#0a0f16; --bg2:#0f1722; --panel:#141e2b; --panel2:#1a2737;
  --line:#223247; --line2:#2e4560; --gold:#8ec5ff; --gold2:#4f8fd0;
  --text:#e6eef8; --muted:#8ba0b8;
  --active:#17293c; --hover:#16273a; --tag-bg:#132030;
  --btn1:#1b2b3d; --btn2:#131f2d; --tab-bg:#0c141d;
  --topbar1:#0d1522f2; --topbar2:#0a1018f2;
  --glow:rgba(142,197,255,.07); --glow2:rgba(40,90,160,.12);
}
body.theme-purple {
  --bg:#0d0a12; --bg2:#141020; --panel:#1a1428; --panel2:#221a33;
  --line:#332a4a; --line2:#493a66; --gold:#c9a7ff; --gold2:#8b5cf6;
  --text:#ece5fb; --muted:#9a8fb5;
  --active:#241c3a; --hover:#221a36; --tag-bg:#1b1530;
  --btn1:#2a2140; --btn2:#1d1730; --tab-bg:#100c1a;
  --topbar1:#140f20f2; --topbar2:#0f0b17f2;
  --glow:rgba(201,167,255,.07); --glow2:rgba(110,60,190,.14);
}
body.theme-red {
  --bg:#120a09; --bg2:#1a100e; --panel:#211413; --panel2:#2b1a18;
  --line:#432622; --line2:#5c342f; --gold:#ffb08f; --gold2:#d9533c;
  --text:#f8e7e1; --muted:#b39289;
  --active:#37201c; --hover:#301d19; --tag-bg:#241614;
  --btn1:#33201b; --btn2:#221613; --tab-bg:#150c0b;
  --topbar1:#1a1010f2; --topbar2:#130b0af2;
  --glow:rgba(255,176,143,.07); --glow2:rgba(180,60,30,.14);
}
body.theme-teal {
  --bg:#08110f; --bg2:#0d1816; --panel:#102220; --panel2:#152c29;
  --line:#1e3a36; --line2:#2b5350; --gold:#7fe3d5; --gold2:#3aa393;
  --text:#e2f4f1; --muted:#87a8a2;
  --active:#173a35; --hover:#163530; --tag-bg:#112826;
  --btn1:#1b3a35; --btn2:#122824; --tab-bg:#0a1413;
  --topbar1:#0c1a17f2; --topbar2:#081110f2;
  --glow:rgba(127,227,213,.07); --glow2:rgba(20,120,110,.14);
}
/* 霜白：亮色方案（白天/户外可视性好） */
body.theme-light {
  --bg:#f3f5f8; --bg2:#eceff4; --panel:#ffffff; --panel2:#f7f9fc;
  --line:#e0e5ee; --line2:#c6cfdd; --gold:#a97b16; --gold2:#c9a227;
  --text:#1f2733; --muted:#6b7787;
  --active:#fbf3de; --hover:#f6f8fc; --tag-bg:#f1f4f9;
  --btn1:#ffffff; --btn2:#f0f3f8; --tab-bg:#e7ebf2;
  --topbar1:#ffffffef; --topbar2:#f4f6faef;
  --glow:rgba(201,162,39,.10); --glow2:rgba(120,150,200,.10);
  --red:#c23b26; --green:#2e8b46; --blue:#2f6fb0;
}
body.theme-light .brand { text-shadow: none; }
body.theme-light .btn.primary { color:#2a1f05; border-color:#d9b95e; background:linear-gradient(180deg,#e8c766,#c9a227); }
body.theme-light .topbar { box-shadow: 0 2px 10px rgba(20,30,50,.06); }
body.theme-light .tip-box { background:#1c1a16; color:#f0e6d2; }

/* ===== 物品名字颜色（与游戏内 256 色一致，sc<Color> 对应 DB 的 Color 字段） ===== */
.sc0{color:#000000}
.sc1{color:#800000}
.sc2{color:#008000}
.sc3{color:#808000}
.sc4{color:#000080}
.sc5{color:#800080}
.sc6{color:#008080}
.sc7{color:#c0c0c0}
.sc8{color:#558097}
.sc9{color:#9db9c8}
.sc10{color:#7b7373}
.sc11{color:#2d2929}
.sc12{color:#5a5252}
.sc13{color:#635a5a}
.sc14{color:#423939}
.sc15{color:#1d1818}
.sc16{color:#181010}
.sc17{color:#291818}
.sc18{color:#100808}
.sc19{color:#f27971}
.sc20{color:#e1675f}
.sc21{color:#ff5a5a}
.sc22{color:#ff3131}
.sc23{color:#d65a52}
.sc24{color:#941000}
.sc25{color:#942918}
.sc26{color:#390800}
.sc27{color:#731000}
.sc28{color:#b51800}
.sc29{color:#bd6352}
.sc30{color:#421810}
.sc31{color:#ffaa99}
.sc33{color:#733929}
.sc34{color:#a54a31}
.sc35{color:#947b73}
.sc36{color:#bd5231}
.sc37{color:#522110}
.sc38{color:#7b3118}
.sc39{color:#2d1810}
.sc40{color:#8c4a31}
.sc41{color:#942900}
.sc42{color:#bd3100}
.sc43{color:#c67352}
.sc44{color:#6b3118}
.sc45{color:#c66b42}
.sc46{color:#ce4a00}
.sc47{color:#a56339}
.sc48{color:#5a3118}
.sc49{color:#2a1000}
.sc50{color:#150800}
.sc51{color:#3a1800}
.sc52{color:#080000}
.sc53{color:#290000}
.sc54{color:#4a0000}
.sc55{color:#9d0000}
.sc56{color:#dc0000}
.sc57{color:#de0000}
.sc58{color:#fb0000}
.sc59{color:#9c7352}
.sc60{color:#946b4a}
.sc61{color:#734a29}
.sc62{color:#523118}
.sc63{color:#8c4a18}
.sc64{color:#884411}
.sc65{color:#4a2100}
.sc66{color:#211810}
.sc67{color:#d6945a}
.sc68{color:#c66b21}
.sc69{color:#ef6b00}
.sc70{color:#ff7700}
.sc71{color:#a59484}
.sc72{color:#423121}
.sc73{color:#181008}
.sc74{color:#291808}
.sc75{color:#211000}
.sc76{color:#392918}
.sc77{color:#8c6339}
.sc78{color:#422910}
.sc79{color:#6b4218}
.sc80{color:#7b4a18}
.sc81{color:#944a00}
.sc82{color:#8c847b}
.sc83{color:#6b635a}
.sc84{color:#4a4239}
.sc85{color:#292118}
.sc86{color:#463929}
.sc87{color:#b5a594}
.sc88{color:#7b6b5a}
.sc89{color:#ceb194}
.sc90{color:#a58c73}
.sc91{color:#8c735a}
.sc92{color:#b59473}
.sc93{color:#d6a573}
.sc94{color:#efa54a}
.sc95{color:#efc68c}
.sc96{color:#7b6342}
.sc97{color:#6b5639}
.sc98{color:#bd945a}
.sc99{color:#633900}
.sc100{color:#d6c6ad}
.sc101{color:#524229}
.sc102{color:#946318}
.sc103{color:#efd6ad}
.sc104{color:#a58c63}
.sc105{color:#635a4a}
.sc106{color:#bda57b}
.sc107{color:#5a4218}
.sc108{color:#bd8c31}
.sc109{color:#353129}
.sc110{color:#948463}
.sc111{color:#7b6b4a}
.sc112{color:#a58c5a}
.sc113{color:#5a4a29}
.sc114{color:#9c7b39}
.sc115{color:#423110}
.sc116{color:#efad21}
.sc117{color:#181000}
.sc118{color:#292100}
.sc119{color:#9c6b00}
.sc120{color:#94845a}
.sc121{color:#524218}
.sc122{color:#6b5a29}
.sc123{color:#7b6321}
.sc124{color:#9c7b21}
.sc125{color:#dea500}
.sc126{color:#5a5239}
.sc127{color:#312910}
.sc128{color:#cebd7b}
.sc129{color:#635a39}
.sc130{color:#94844a}
.sc131{color:#c6a529}
.sc132{color:#109c18}
.sc133{color:#428c4a}
.sc134{color:#318c42}
.sc135{color:#109429}
.sc136{color:#081810}
.sc137{color:#081818}
.sc138{color:#082910}
.sc139{color:#184229}
.sc140{color:#a5b5ad}
.sc141{color:#6b7373}
.sc142{color:#182929}
.sc143{color:#18424a}
.sc144{color:#31424a}
.sc145{color:#63c6de}
.sc146{color:#44ddff}
.sc147{color:#8cd6ef}
.sc148{color:#736b39}
.sc149{color:#f7de39}
.sc150{color:#f7ef8c}
.sc151{color:#f7e700}
.sc152{color:#6b6b5a}
.sc153{color:#5a8ca5}
.sc154{color:#39b5ef}
.sc155{color:#4a9cce}
.sc156{color:#3184b5}
.sc157{color:#31526b}
.sc158{color:#deded6}
.sc159{color:#bdbdb5}
.sc160{color:#8c8c84}
.sc161{color:#f7f7de}
.sc162{color:#000818}
.sc163{color:#081839}
.sc164{color:#081029}
.sc165{color:#081800}
.sc166{color:#082900}
.sc167{color:#0052a5}
.sc168{color:#007bde}
.sc169{color:#10294a}
.sc170{color:#10396b}
.sc171{color:#10528c}
.sc172{color:#215aa5}
.sc173{color:#10315a}
.sc174{color:#104284}
.sc175{color:#315284}
.sc176{color:#182131}
.sc177{color:#4a5a7b}
.sc178{color:#526ba5}
.sc179{color:#293963}
.sc180{color:#104ade}
.sc181{color:#292921}
.sc182{color:#4a4a39}
.sc183{color:#292918}
.sc184{color:#4a4a29}
.sc185{color:#7b7b42}
.sc186{color:#9c9c4a}
.sc187{color:#5a5a29}
.sc188{color:#424214}
.sc189{color:#393900}
.sc190{color:#595900}
.sc191{color:#ca352c}
.sc192{color:#6b7321}
.sc193{color:#293100}
.sc194{color:#313910}
.sc195{color:#313918}
.sc196{color:#424a00}
.sc197{color:#526318}
.sc198{color:#5a7329}
.sc199{color:#314a18}
.sc200{color:#182100}
.sc201{color:#183100}
.sc202{color:#183910}
.sc203{color:#63844a}
.sc204{color:#6bbd4a}
.sc205{color:#63b54a}
.sc206{color:#63bd4a}
.sc207{color:#5a9c4a}
.sc208{color:#4a8c39}
.sc209{color:#63c64a}
.sc210{color:#63d64a}
.sc211{color:#52844a}
.sc212{color:#317329}
.sc213{color:#63c65a}
.sc214{color:#52bd4a}
.sc215{color:#10ff00}
.sc216{color:#182918}
.sc217{color:#4a884a}
.sc218{color:#4ae74a}
.sc219{color:#005a00}
.sc220{color:#008800}
.sc221{color:#009400}
.sc222{color:#00de00}
.sc223{color:#00ee00}
.sc224{color:#00fb00}
.sc225{color:#4a5a94}
.sc226{color:#6373b5}
.sc227{color:#7b8cd6}
.sc228{color:#6b7bd6}
.sc229{color:#7788ff}
.sc230{color:#c6c6ce}
.sc231{color:#94949c}
.sc232{color:#9c94c6}
.sc233{color:#313139}
.sc234{color:#291884}
.sc235{color:#180084}
.sc236{color:#4a4252}
.sc237{color:#52427b}
.sc238{color:#635a73}
.sc239{color:#ceb5f7}
.sc240{color:#8c7b9c}
.sc241{color:#7722cc}
.sc242{color:#ddaaff}
.sc243{color:#f0b42a}
.sc244{color:#df009f}
.sc245{color:#e317b3}
.sc246{color:#fffbf0}
.sc247{color:#a0a0a4}
.sc248{color:#808080}
.sc249{color:#ff0000}
.sc250{color:#00ff00}
.sc251{color:#ffff00}
.sc252{color:#0000ff}
.sc253{color:#ff00ff}
.sc254{color:#00ffff}
.sc255{color:#ffffff}

/* ===== 物品悬浮提示（仿游戏内） ===== */
.tip-box{position:fixed;z-index:99999;display:none;max-width:340px;max-height:72vh;overflow:auto;
  background:#000;color:#fff;border:1px solid #181818;outline:1px solid #8c715a;
  box-shadow:0 0 3px 3px #181818;padding:10px 12px;font-size:12px;line-height:1.65;
  font-family:"Microsoft YaHei","宋体",Arial,sans-serif;pointer-events:none;}
.tip-box b{font-weight:normal;color:#fff;display:inline-block;min-width:66px;}
.tip-name{font-size:13px;font-weight:bold;margin-bottom:4px;}
.tip-sec{color:#44ddff;margin-top:8px;}
.tip-src{color:#ff5a5a;margin-top:8px;}
.tip-src-i{color:#00ff00;}
.tip-desc{margin-top:6px;}
.tip-line{white-space:pre-wrap;}
.dt-desc{margin-top:10px;padding:10px 12px;background:#0b0b0b;border:1px solid #2a2a2a;
  border-radius:8px;line-height:1.7;font-size:12.5px;}
