/* ==========================================================================
   环之书 · MAJYO//TASK 主题皮肤
   暗色酒馆 + 金：底子仍是深色，只把强调色换成暖金，
   背景换成主站的酒馆插画，保留全息质感但更“书”。
   ========================================================================== */

body.theme-gmr,
html.theme-gmr {
  background-color: #120e0b;
  background-image:
    linear-gradient(rgba(18, 14, 11, 0.82), rgba(18, 14, 11, 0.9)),
    url('/img/tavern.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

body.theme-gmr .bg-scan { opacity: 0.42; }
body.theme-gmr .bg-grid { opacity: 0.5; }
body.theme-gmr .bg-glow {
  background:
    radial-gradient(760px 560px at 10% -6%, rgba(198, 163, 106, 0.16), transparent 62%),
    radial-gradient(700px 520px at 96% 4%, rgba(184, 100, 42, 0.1), transparent 64%),
    radial-gradient(900px 700px at 50% 112%, rgba(198, 163, 106, 0.06), transparent 72%);
}

body.theme-gmr {
  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

body.theme-gmr .page-title,
body.theme-gmr .hero-title,
body.theme-gmr .core-value {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

body.theme-gmr .brand-name b,
body.theme-gmr .boot-name span,
body.theme-gmr .boot-name .brand-b { color: #c6a36a; }

/* 面板：深褐玻璃 + 金描边 */
body.theme-gmr .panel {
  background-color: rgba(24, 18, 13, 0.84);
  background-image: linear-gradient(158deg, rgba(38, 29, 21, 0.8), rgba(18, 13, 10, 0.9));
  border-color: rgba(198, 163, 106, 0.26);
  box-shadow: 0 1px 0 rgba(244, 232, 208, 0.05) inset, 0 26px 60px -34px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}
body.theme-gmr .panel::before,
body.theme-gmr .panel::after {
  border-color: rgba(198, 163, 106, 0.62);
  opacity: 0.7;
}

body.theme-gmr .topbar {
  background: rgba(18, 14, 11, 0.76);
  border-bottom-color: rgba(198, 163, 106, 0.3);
}
body.theme-gmr .topbar::after {
  background: linear-gradient(90deg, transparent, rgba(198, 163, 106, 0.45), transparent);
}
body.theme-gmr .rail {
  background: linear-gradient(180deg, rgba(22, 17, 13, 0.95), rgba(14, 10, 8, 0.92));
  border-right-color: rgba(198, 163, 106, 0.24);
}
body.theme-gmr .rail::after {
  background: linear-gradient(to bottom, #c6a36a, transparent);
}
body.theme-gmr .statusline {
  background: rgba(12, 9, 7, 0.62);
  border-top-color: rgba(198, 163, 106, 0.22);
}

body.theme-gmr .btn {
  background: rgba(244, 232, 208, 0.05);
  border-color: rgba(198, 163, 106, 0.36);
}
body.theme-gmr .btn:hover {
  background: rgba(244, 232, 208, 0.12);
  border-color: rgba(231, 211, 168, 0.7);
  box-shadow: 0 10px 26px -18px rgba(198, 163, 106, 0.9);
}
body.theme-gmr .btn-primary {
  background: #c6a36a;
  border-color: #c6a36a;
  color: #2a1c12;
}
body.theme-gmr .btn-primary:hover {
  background: #e0c58f;
  border-color: #e0c58f;
  color: #221609;
  box-shadow: 0 12px 30px -18px rgba(198, 163, 106, 0.95);
}
body.theme-gmr .input,
body.theme-gmr .textarea,
body.theme-gmr .select {
  background: rgba(14, 10, 8, 0.72);
  border-color: rgba(198, 163, 106, 0.28);
}
body.theme-gmr .input:focus,
body.theme-gmr .textarea:focus,
body.theme-gmr .select:focus {
  background: rgba(20, 15, 11, 0.9);
  border-color: rgba(231, 211, 168, 0.7);
  box-shadow: 0 0 0 1px rgba(198, 163, 106, 0.16), 0 0 24px -14px rgba(198, 163, 106, 0.85);
}
body.theme-gmr select option { background: #1a1310; color: #f3e6c4; }

body.theme-gmr .nav-item.active {
  border-color: rgba(198, 163, 106, 0.26);
  background: linear-gradient(90deg, rgba(198, 163, 106, 0.16), rgba(198, 163, 106, 0.02));
}
body.theme-gmr .nav-item.active::before {
  background: #c6a36a;
  box-shadow: 0 0 12px rgba(198, 163, 106, 0.6);
}
body.theme-gmr .nav-item.active .icon,
body.theme-gmr .nav-item.active .nav-idx { color: #c6a36a; }

body.theme-gmr ::-webkit-scrollbar-track { background: #0d0a08; }
body.theme-gmr ::-webkit-scrollbar-thumb { background: rgba(198, 163, 106, 0.3); border-color: #0d0a08; }
body.theme-gmr ::selection { background: rgba(198, 163, 106, 0.3); color: #fff8ea; }

body.theme-gmr .boot { background: #0c0907; }
body.theme-gmr .boot-mark::before { border-color: rgba(198, 163, 106, 0.6); }
body.theme-gmr .boot-mark i { background: #c6a36a; box-shadow: 0 0 24px rgba(198, 163, 106, 0.7); }
body.theme-gmr .boot-scan { background: linear-gradient(90deg, transparent, #c6a36a, transparent); box-shadow: 0 0 24px rgba(198, 163, 106, 0.6); }
body.theme-gmr .boot-bar { background: rgba(198, 163, 106, 0.14); }
body.theme-gmr .boot-bar i { background: #c6a36a; box-shadow: 0 0 16px rgba(198, 163, 106, 0.6); }

body.theme-gmr .pm-icp a { color: #c6a36a; }
