/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #d9b45c;
  --gold-l: #f3dda0;
  --gold-d: #a8842f;
  --ink: #080a16;
  --panel: rgba(16, 20, 42, .72);
  --panel-2: rgba(20, 25, 52, .86);
  --line: rgba(217, 180, 92, .30);
  --line-s: rgba(217, 180, 92, .16);
  --txt: #e8e4d8;
  --sub: #9aa0b8;
  --red: #ff9a9a;
  --blue: #7fb6ea;
  --green: #6fd39a;
  --kai: "STKaiti", "KaiTi", "Noto Serif SC", serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "SimHei", sans-serif;
  background: var(--ink);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
}
/* 背景光晕 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70% 55% at 12% 4%, rgba(217, 180, 92, .16), transparent 62%),
    radial-gradient(60% 50% at 92% 18%, rgba(94, 122, 220, .13), transparent 65%),
    linear-gradient(180deg, #080a16 0%, #0b0f1f 40%, #080a16 100%);
}
.wrap { max-width: 1560px; margin: 0 auto; padding: 0 28px; }
a { color: var(--gold-l); text-decoration: none; }
a:hover { text-decoration: none; }

/* 花瓣粒子 */
.petal { position: fixed; top: -30px; z-index: 1; pointer-events: none; color: rgba(243, 221, 160, .45); animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translateY(-4vh) rotate(0); opacity: 0; }
  8% { opacity: 1; }
  100% { transform: translateY(105vh) rotate(340deg); opacity: .12; }
}

/* ============ 头部 ============ */
header {
  position: relative;
  background: rgba(8, 10, 22, .62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-s);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { font-size: 19px; font-weight: 800; white-space: nowrap; font-family: var(--kai); letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.logo span {
  background: linear-gradient(180deg, #f7e8bd, #dcb45e 60%, #a8842f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a {
  position: relative; color: #c9cee0; font-size: 14.5px; font-weight: 500; letter-spacing: 1px;
  padding: 5px 2px; border-bottom: 2px solid transparent; transition: color .25s, border-color .25s;
}
.nav a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transition: width .3s, left .3s; }
.nav a:hover { color: var(--gold-l); border-bottom-color: transparent; }
.nav a:hover::after { width: 100%; left: 0; }
.nav a.out { color: var(--gold-l); border: 1px solid var(--line); border-radius: 16px; padding: 6px 14px; font-size: 13px; background: rgba(217, 180, 92, .08); }
.nav a.out:hover { background: rgba(217, 180, 92, .20); border-bottom: 1px solid var(--gold); }
.nav a.out::after { display: none; }

/* ============ Hero ============ */
.hero {
  position: relative; margin: 26px 0 10px; min-height: 340px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-s);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(217, 180, 92, .08);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("hero.webp") center 32% / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.12); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 18% 50%, rgba(217, 180, 92, .18), transparent 60%),
    linear-gradient(105deg, rgba(8, 10, 22, .95) 6%, rgba(8, 10, 22, .74) 44%, rgba(10, 13, 24, .38) 100%);
}
.hero-txt { position: relative; z-index: 2; padding: 62px 52px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 6px;
  color: var(--gold-l); padding: 6px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(217, 180, 92, .10);
}
.hero-txt h1 {
  margin-top: 18px; font-family: var(--kai); font-size: clamp(32px, 5.2vw, 54px); letter-spacing: 8px; line-height: 1.24;
  color: #fff; text-shadow: 0 4px 26px rgba(0, 0, 0, .8), 0 0 46px rgba(217, 180, 92, .22);
}
.hero-txt p { margin-top: 14px; font-size: clamp(13px, 1.6vw, 16px); letter-spacing: 2px; color: #ded6c2; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hero-up { display: inline-block; margin-top: 16px; width: fit-content; padding: 5px 15px; border-radius: 999px; font-size: 12.5px !important; color: var(--gold-l); border: 1px solid var(--line); background: rgba(10, 13, 24, .5); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 26px; border-radius: 26px;
  font-size: 14.5px; letter-spacing: 2px; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-main { color: #1c1607; background: linear-gradient(180deg, #f6e6b4, #dcb45e 55%, #ad8632); box-shadow: 0 6px 24px rgba(217, 180, 92, .40); }
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(217, 180, 92, .65); }
.btn-ghost { color: var(--gold-l); border: 1px solid var(--line); background: rgba(10, 13, 24, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 28px rgba(217, 180, 92, .22); background: rgba(30, 24, 10, .55); }

/* ============ 区块 ============ */
main { padding: 18px 0 40px; }
section { margin: 46px 0; scroll-margin-top: 76px; }
.sec-title {
  font-family: var(--kai); font-size: clamp(24px, 3.2vw, 32px); letter-spacing: 5px; font-weight: 700;
  padding-left: 16px; margin-bottom: 8px; position: relative;
  background: linear-gradient(180deg, #f7e8bd, #dcb45e 58%, #a8842f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-title::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 5px; border-radius: 4px; background: linear-gradient(180deg, #f3dda0, #a8842f); }
.sec-desc { color: var(--sub); font-size: 13.8px; margin-bottom: 18px; padding-left: 16px; line-height: 1.85; }

/* ============ 卡片通用 ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line-s); border-radius: 14px;
  padding: 18px 20px; transition: transform .25s, box-shadow .25s, border-color .25s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(243, 221, 160, .10), transparent);
  transition: left .7s; pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: rgba(217, 180, 92, .5); box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 24px rgba(217, 180, 92, .12); }
.card:hover::before { left: 130%; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; position: relative; }
.card-ico { font-size: 24px; }
.card-head b { font-size: 16.5px; color: #f2ecd9; letter-spacing: 1px; }
.card-tag {
  margin-left: auto; font-size: 11.5px; padding: 2px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap;
  background: rgba(217, 180, 92, .16); color: var(--gold-l); border: 1px solid var(--line);
}
.card-tag.blue { background: rgba(127, 182, 234, .14); color: var(--blue); border-color: rgba(127, 182, 234, .3); }
.card-tag.green { background: rgba(111, 211, 154, .14); color: var(--green); border-color: rgba(111, 211, 154, .3); }
.card p { font-size: 13.6px; color: var(--sub); }

/* ============ 每周节奏 ============ */
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.day-card {
  position: relative; background: var(--panel); border: 1px solid var(--line-s); border-radius: 14px;
  padding: 16px 16px 18px; min-height: 210px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.day-card:hover { transform: translateY(-4px); border-color: rgba(217, 180, 92, .45); box-shadow: 0 14px 32px rgba(0, 0, 0, .5); }
.day-card.today {
  border: 1px solid rgba(217, 180, 92, .8);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .55), 0 0 26px rgba(217, 180, 92, .18);
  background: linear-gradient(165deg, rgba(217, 180, 92, .14), rgba(16, 20, 42, .74));
}
.day-badge {
  position: absolute; top: -11px; right: 12px; color: #1c1607; font-size: 12px; font-weight: 800;
  padding: 2px 12px; border-radius: 999px; background: linear-gradient(180deg, #f3dda0, #d9b45c);
}
.day-name { font-size: 17.5px; font-weight: 800; color: var(--gold-l); margin-bottom: 4px; letter-spacing: 1px; }
.day-date { font-size: 12px; color: var(--sub); margin-bottom: 10px; }
.day-card ul { list-style: none; }
.day-card li { font-size: 13.2px; padding: 5px 0; border-top: 1px dashed var(--line-s); color: var(--txt); }
.day-card li:first-child { border-top: none; }
.day-card li b { color: #f0e9d5; font-weight: 600; }
.day-card li span { display: block; font-size: 12px; color: var(--sub); }
.day-card li.key { color: var(--gold-l); font-weight: 700; }

/* ============ 表格 ============ */
.table-wrap {
  background: rgba(14, 18, 38, .78); border: 1px solid var(--line-s); border-radius: 14px;
  overflow: hidden; overflow-x: auto; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sched-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.sched-table th {
  background: linear-gradient(180deg, rgba(217, 180, 92, .22), rgba(217, 180, 92, .08));
  color: var(--gold-l); font-size: 14px; letter-spacing: 2px; font-weight: 600;
  padding: 12px 18px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.sched-table td { padding: 13px 18px; font-size: 14px; border-top: 1px solid var(--line-s); vertical-align: top; color: #ded8c8; }
.sched-table tr:hover td { background: rgba(217, 180, 92, .07); }
.sched-table td:first-child { font-weight: 700; white-space: nowrap; color: var(--gold-l); }
.sched-table .t-time { white-space: nowrap; color: var(--red); font-weight: 700; }
.sched-table .t-mut { color: var(--sub); font-weight: 400 !important; }
.today-val { font-size: 15px; font-weight: 700; color: #f6f0dc; }
.today-val.blue { color: var(--blue); }
.today-val.green { color: var(--green); }
.today-val.hot { color: var(--red); }
.hot-txt { color: var(--red); }

/* ============ 小贴士 ============ */
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tip {
  background: var(--panel); border: 1px solid var(--line-s); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 15px 20px; font-size: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s;
}
.tip:hover { transform: translateY(-3px); border-left-color: var(--gold-l); }
.tip b { display: block; margin-bottom: 4px; color: var(--gold-l); letter-spacing: 1px; }
.tip p { color: var(--sub); }

/* ============ 实时日历 ============ */
.sub-title {
  font-size: 18px; font-weight: 700; margin: 28px 0 10px; letter-spacing: 1px;
  display: flex; align-items: baseline; gap: 10px; color: #f2ecd9;
}
.sub-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: linear-gradient(180deg, #f3dda0, #a8842f); flex: none; align-self: center; }
.mini-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--gold-l); }
.sub-note { font-size: 12.5px; font-weight: 400; color: var(--sub); }
.today-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.today-card { border-left: 3px solid var(--gold); }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.live-block {
  min-width: 0; background: rgba(14, 18, 38, .55); border: 1px solid var(--line-s);
  border-radius: 16px; padding: 18px 20px 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.weekly-box {
  background: var(--panel); border: 1px solid var(--line-s); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 14px 20px; display: grid; gap: 8px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.wk-row { font-size: 14.2px; color: var(--txt); }
.wk-row b { color: var(--gold-l); }
.foot-note { font-size: 12.5px; color: var(--sub); margin-top: 8px; }
.row-today td { background: rgba(217, 180, 92, .13) !important; color: #fff6e0; }

/* ============ 美人图排期 ============ */
.mr-list { display: flex; flex-direction: column; gap: 10px; }
.mr-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line-s);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.mr-row:hover { transform: translateX(3px); border-color: rgba(217, 180, 92, .45); }
.mr-row.is-today {
  border-color: rgba(217, 180, 92, .85);
  background: linear-gradient(120deg, rgba(217, 180, 92, .18), rgba(16, 20, 42, .78));
  box-shadow: 0 0 24px rgba(217, 180, 92, .14);
}
.mr-date { font-size: 13.5px; font-weight: 700; color: var(--gold-l); min-width: 92px; letter-spacing: 1px; }
.mr-week { font-size: 12px; color: var(--sub); margin-left: 4px; }
.mr-draws { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 220px; }
.mr-draw {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.8px; color: #ece5d1;
  padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(217, 180, 92, .08);
  border: 1px solid var(--line-s);
}
.mr-body {
  display: inline-block; font-size: 11px; font-weight: 700; color: #10121f;
  border-radius: 999px; padding: 1px 8px; letter-spacing: 1px;
}
.mr-rel { margin-left: auto; font-size: 12px; color: var(--sub); white-space: nowrap; }
.mr-tag {
  font-size: 11px; font-weight: 700; color: #1c1607; padding: 2px 9px; border-radius: 999px;
  background: linear-gradient(180deg, #f3dda0, #cfa64a); white-space: nowrap;
}
.mr-tag.next { background: linear-gradient(180deg, #a9c8f2, #5b8fd0); color: #0d1a2b; }
.mr-empty { color: var(--sub); font-size: 13.5px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }

/* ============ 页脚 ============ */
footer {
  margin-top: 40px; padding: 40px 0 34px; text-align: center;
  background: linear-gradient(180deg, rgba(8, 10, 22, 0), rgba(16, 20, 42, .55) 60%);
  border-top: 1px solid var(--line-s);
  color: var(--sub); font-size: 13.5px;
}
.footer-inner { text-align: center; }
.footer-links { margin-top: 8px; font-size: 13px; }
.footer-links a { color: var(--gold-l); }

/* ============ 返回顶部 ============ */
#topBtn {
  position: fixed; right: 22px; bottom: 26px; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(16, 20, 42, .78); backdrop-filter: blur(8px);
  color: var(--gold-l); font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s;
}
#topBtn.show { opacity: 1; pointer-events: auto; }
#topBtn:hover { transform: translateY(-3px); border-color: var(--gold); }

/* ============ reveal 动画 ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.noanim .reveal { opacity: 1; transform: none; transition: none; }
.noanim .petal { display: none; }
.noanim .hero-bg { animation: none; }

/* ============ 响应式 ============ */
@media (max-width: 1400px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============ 长表格滚动 + 预测标签 ============ */
.scroll-table { max-height: 560px; overflow-y: auto; border-radius: 12px; }
.scroll-table thead th { position: sticky; top: 0; z-index: 2; background: #131a34; background: linear-gradient(180deg, #1b2242, #131a34); }
.est-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 11px; font-weight: 600; color: var(--gold-l); background: rgba(217, 180, 92, .14); border: 1px solid var(--line); border-radius: 999px; vertical-align: middle; }
@media (max-width: 1100px) { .live-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .header-inner { flex-direction: column; height: auto; padding: 10px 0; gap: 8px; }
  .nav { margin-left: 0; justify-content: center; gap: 14px; }
  .hero-txt { padding: 40px 26px; }
  .hero-txt h1 { font-size: 30px; letter-spacing: 4px; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 移动端紧凑排版 ============ */
@media (max-width: 760px) {
  .wrap { padding: 0 12px; }
  section { margin: 26px 0; scroll-margin-top: 108px; }
  .sec-title { font-size: 21px; padding-left: 12px; letter-spacing: 3px; }
  .sec-desc { font-size: 13px; padding-left: 12px; margin-bottom: 12px; }
  .sub-title { font-size: 16.5px; margin: 20px 0 8px; flex-wrap: wrap; gap: 6px; }
  .sub-note { font-size: 11.5px; }

  /* 移动端：活动排期表可横向滑动，左列日期粘性固定不消失 */
  .table-wrap, .scroll-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sched-table { min-width: 660px; width: auto; table-layout: auto; }
  .sched-table th { font-size: 13px; padding: 10px 12px; white-space: nowrap; }
  .sched-table td { font-size: 13px; padding: 10px 12px; white-space: nowrap; }
  .sched-table th:first-child, .sched-table td:first-child {
    position: sticky; left: 0; z-index: 3;
    background: linear-gradient(180deg, #1b2242, #131a34);
    box-shadow: 1px 0 0 rgba(217,180,92,.18);
  }
  .sched-table td:first-child { font-weight: 700; color: var(--gold-l); }
  .scroll-table thead th:first-child { z-index: 4; }
  .scroll-table { max-height: 460px; }

  #luckyTable th:nth-child(5), #luckyTable td:nth-child(5) { display: none; }
  #qiyuTable th:nth-child(5), #qiyuTable td:nth-child(5) { display: none; }

  .today-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 12px 14px; border-radius: 12px; }
  .card-head { gap: 7px; margin-bottom: 5px; }
  .card-ico { font-size: 19px; }
  .card-head b { font-size: 14.5px; }
  .card p { font-size: 13px; }
  .today-val { font-size: 13.5px; }
  .card-tag { font-size: 11px; padding: 1px 8px; }

  .cards { grid-template-columns: 1fr; gap: 12px; }
  .tips-grid { grid-template-columns: 1fr; gap: 12px; }
  .week-grid { grid-template-columns: 1fr; gap: 12px; }
  .day-card { min-height: 0; padding: 13px 14px 15px; }

  .live-grid { gap: 14px; }
  .live-block { padding: 14px 14px 16px; border-radius: 14px; }
  .hero { min-height: 0; margin: 14px 0 6px; border-radius: 14px; }
  .hero-btns { gap: 10px; margin-top: 18px; }
  .btn { padding: 10px 18px; font-size: 13px; }
  .weekly-box { padding: 12px 14px; }
  .wk-row { font-size: 13px; }
  .fame-row { padding: 6px 8px; font-size: 12.5px; }
  .fame-time { min-width: 34px; font-size: 11.5px; }
  .fame-site { font-size: 11.5px; }
  .fame-stage { font-size: 12.5px; }
  .fame-tab { font-size: 12px; padding: 4px 10px; }
  .horse-row { font-size: 12.5px; gap: 5px; }
  .horse-map { font-size: 12.5px; }
  .horse-time { font-size: 11.5px; }
  .horse-icons { min-width: 40px; }
  .horse-icons img { width: 18px; height: 18px; }
  .mr-row { padding: 10px 12px; gap: 8px; }
  .mr-date { min-width: 0; }
  .mr-rel { margin-left: 0; }
}

@media (max-width: 400px) {
  .today-cards { grid-template-columns: 1fr; }
  .sched-table th { font-size: 12.5px; padding: 8px 6px; }
  .sched-table td { font-size: 12.5px; padding: 8px 6px; }
}

/* ============ 名望 & 抓马 ============ */
select {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(16, 20, 42, .9); color: var(--txt); font-size: 14px; font-family: inherit;
}
select option { background: #131a34; }
.fame-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fame-tab {
  border: 1px solid var(--line); background: rgba(16, 20, 42, .7); color: var(--sub);
  border-radius: 20px; font-size: 13px; padding: 5px 14px; cursor: pointer; font-family: inherit;
  transition: all .18s;
}
.fame-tab:hover { border-color: var(--gold); color: var(--gold-l); }
.fame-tab.active {
  background: linear-gradient(180deg, #f3dda0, #d9b45c); border-color: var(--gold); color: #1c1607; font-weight: 700;
}
.fame-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-s);
}
.fame-head b { color: var(--gold-l); font-size: 16px; }
.fame-head span { color: var(--sub); font-size: 12.5px; }
.fame-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.35;
  background: rgba(16, 20, 42, .6); border: 1px solid transparent; margin-bottom: 5px;
}
.fame-row.current { background: rgba(217, 180, 92, .16); border-color: var(--gold); }
.fame-time { color: var(--sub); font-size: 12px; min-width: 40px; }
.fame-icon { width: 18px; height: 18px; border-radius: 4px; vertical-align: middle; }
.fame-site { color: var(--txt); font-size: 12.5px; }
.fame-stage { font-weight: 700; color: var(--gold-l); font-size: 13.5px; margin-left: auto; text-align: right; }
.fame-live { display: block; font-style: normal; font-weight: 600; font-size: 11px; color: var(--gold); }

.horse-srv { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.horse-srv span { color: var(--sub); white-space: nowrap; }
.horse-srv select { flex: 1; min-width: 0; max-width: 100%; }
.horse-srv-name { font-size: 12.5px; color: var(--sub); margin-bottom: 8px; }
.horse-srv-name b { color: var(--gold-l); }
.srv-ok { color: var(--green); font-weight: 700; }
.srv-bad { color: #8b8fa3; font-weight: 700; }
.horse-cd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line-s); border-radius: 10px;
  margin-bottom: 8px; background: rgba(16, 20, 42, .6);
}
.horse-cd b { color: var(--gold-l); font-size: 13.5px; }
.horse-cd span { color: var(--sub); font-size: 11.5px; }
.horse-list { display: flex; flex-direction: column; gap: 5px; }
.horse-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; font-size: 13.5px;
  background: rgba(16, 20, 42, .6);
}
.horse-row:nth-child(odd) { background: rgba(22, 27, 54, .7); }
.horse-icons { display: flex; gap: 3px; min-width: 48px; }
.horse-icons img { width: 22px; height: 22px; }
.horse-map { font-weight: 700; color: var(--txt); }
.horse-time { margin-left: auto; color: var(--sub); font-size: 12px; white-space: nowrap; }
.horse-icons.horse-approx img { opacity: .55; }
.horse-tag {
  font-size: 11.5px; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  color: var(--sub); border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
}
.horse-tag.tag-alive { color: #ffd76a; border-color: rgba(255, 215, 106, .45); background: rgba(255, 215, 106, .12); }
.horse-tag.tag-soon { color: #7ee0a1; border-color: rgba(126, 224, 161, .45); background: rgba(126, 224, 161, .12); }
.pred-passed { opacity: .45; }

/* ============ 接口令牌按钮 & 弹窗 ============ */
.tk-btn {
  font: inherit; font-size: 13.5px; color: var(--gold-l); cursor: pointer;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(217, 180, 92, .10);
  transition: all .18s ease; white-space: nowrap;
}
.tk-btn:hover { background: rgba(217, 180, 92, .20); border-color: var(--gold); transform: translateY(-1px); }
.tk-btn.done { color: var(--green); border-color: rgba(111, 211, 154, .5); background: rgba(111, 211, 154, .12); }
.tk-mask { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4, 6, 14, .78); backdrop-filter: blur(4px); }
.tk-mask[hidden] { display: none; }
.tk-panel { width: min(520px, 100%); padding: 24px 26px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0, 0, 0, .55); }
.tk-panel h3 { font-size: 18px; color: var(--gold-l); margin-bottom: 10px; }
.tk-desc { font-size: 13px; color: var(--sub); margin-bottom: 8px; line-height: 1.65; }
.tk-desc code { padding: 1px 6px; border-radius: 5px; background: rgba(217, 180, 92, .14); color: var(--gold-l); }
.tk-panel input {
  width: 100%; margin: 10px 0 6px; padding: 11px 13px; font-size: 14px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(8, 10, 22, .9); color: var(--txt);
  font-family: ui-monospace, Menlo, Consolas, monospace; outline: none;
}
.tk-panel input:focus { border-color: var(--gold); }
.tk-state { font-size: 12.5px; color: var(--sub); min-height: 20px; margin-bottom: 12px; }
.tk-state.ok { color: var(--green); }
.tk-state.err { color: var(--red); }
.tk-actions { display: flex; gap: 10px; }
.tk-actions .btn { padding: 9px 18px; font-size: 14px; }

/* ============ 三关 · 关隘首领 ============ */
.mine-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mine-bar .horse-srv { margin-bottom: 0; min-width: 220px; flex: 0 0 auto; }
.mine-bar .sub-note { font-size: 12.5px; }
.mine-card {
  padding: 10px 12px; border-radius: 10px; margin-bottom: 8px;
  background: rgba(16, 20, 42, .62); border: 1px solid var(--line-s);
  display: flex; flex-direction: column; gap: 3px;
}
.mine-card.is-open { border-color: var(--gold); background: rgba(217, 180, 92, .14); }
.mine-card.is-ended { opacity: .55; }
.mine-top { display: flex; align-items: center; gap: 8px; }
.mine-castle { font-weight: 700; color: var(--gold-l); font-size: 14px; }
.mine-leader { font-size: 13px; color: var(--txt); }
.mine-badge { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-s); color: var(--sub); white-space: nowrap; }
.mine-badge.open { color: var(--gold); border-color: var(--gold); background: rgba(217, 180, 92, .14); }
.mine-badge.pending { color: var(--blue); border-color: rgba(127, 182, 234, .5); background: rgba(127, 182, 234, .12); }
.mine-badge.ended { color: #8b8fa3; }
.mine-mid { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mine-cd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; color: var(--gold-l); letter-spacing: .5px; }
.mine-cd.open { color: var(--red); }
.mine-cd-label { font-size: 12px; color: var(--sub); }
.mine-meta { font-size: 12px; color: var(--sub); }
.mine-meta b { color: var(--txt); font-weight: 600; }
@media (max-width: 640px) {
  .mine-bar .horse-srv { min-width: 100%; }
  .mine-cd { font-size: 15px; }
}


/* 顶部导航取消后：接口令牌按钮改为正文右上角浮动小按钮 */
.tool-float { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.tool-float .tk-btn { font-size: 12.5px; padding: 5px 12px; }
@media (max-width: 700px) { .tool-float { margin-bottom: 6px; } }
