:root {
  --bg: #0e1218;
  --bg-elev: #161c26;
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --ink: #1a1f28;
  --muted: #5e6573;
  --line: #d8d2c4;
  --gold: #c9a45c;
  --gold-deep: #9a7430;
  --teal: #1d6b63;
  --danger: #b42318;
  --ok: #157a3c;
  --link: #184a8c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

[name],
.list-title,
.panel {
  scroll-margin-top: 108px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #243049 0%, transparent 55%),
    var(--bg);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold-deep);
}

.wrap {
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 18, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  color: #f3ead7;
  font-size: clamp(1.22rem, 2.8vw, 1.55rem);
  letter-spacing: 0.08em;
}

.brand span {
  color: var(--gold);
  font-size: 0.9rem;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 92, 0.45);
  color: #f3ead7;
  font-size: 0.96rem;
}

.subnav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 12px;
}

.subnav-inner {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
  color: #e8e2d4;
  font-size: 1.02rem;
  white-space: nowrap;
}

.subnav a img {
  width: 16px;
  height: 16px;
}

.calendar-card {
  margin: 16px auto 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1d2533, #151b24);
  color: #f4efe4;
  box-shadow: var(--shadow);
}

.riqi {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
}

.hero {
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero img,
.banner img,
.xjct img {
  width: 100%;
}

.panel {
  margin: 16px 0;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.list-title {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--gold);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}

.KJ-TabBox {
  --kj-bg: #ffffff;
  --kj-text: #333333;
  --kj-tab: #eeeeee;
  --kj-tab-text: #333333;
  --kj-cur: #1fb61d;
  --kj-cur-text: #ffffff;
  isolation: isolate;
  color-scheme: light;
  position: relative;
  z-index: 1;
  margin: 16px 0;
  padding: 0;
  color: var(--kj-text);
  background: var(--kj-bg);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
}

.KJ-TabBox,
.KJ-TabBox ul,
.KJ-TabBox li,
.KJ-TabBox div {
  background-color: var(--kj-bg);
  color: var(--kj-text);
}

.KJ-TabBox #navList {
  display: flex !important;
  visibility: visible !important;
  width: 100%;
  height: auto !important;
  min-height: 44px;
  margin: 0;
  padding: 8px 8px 0;
  gap: 8px;
  list-style: none;
  box-sizing: border-box;
  border-bottom: 2px solid #ffffff;
  background: #ffffff !important;
}

.KJ-TabBox #navList li {
  display: block !important;
  visibility: visible !important;
  flex: 1 1 0;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: var(--kj-tab) !important;
  color: var(--kj-tab-text) !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.KJ-TabBox #navList li.cur {
  color: var(--kj-cur-text) !important;
  background: var(--kj-cur) !important;
}

.KJ-TabBox > div {
  display: none;
  background: #ffffff !important;
}

.KJ-TabBox > div.cur {
  display: block !important;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff !important;
}

.KJ-TabBox .KJ-IFRAME {
  display: block;
  width: 100%;
  min-height: 180px;
  border: 0;
  background: #ffffff;
  transform-origin: top left;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

td, th {
  padding: 9px 10px;
  border: 1px solid var(--line);
  font-size: 1.08rem;
  word-break: break-word;
}

.after-colon,
.after-colon a {
  color: #d01212 !important;
  font-weight: 700;
}

.promo-table td {
  text-align: center;
  background: #eef7f1;
}

.promo-table a {
  color: var(--link);
  font-weight: 600;
}

.notice td {
  text-align: center;
  background: #f3efe4;
}

.qxtable td,
.duilianpt td,
.yxym td,
.gg td,
.gongshi td,
.blgg td {
  background: #fff;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.post-list li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.copyright {
  margin: 8px 0;
  color: #c9c3b6;
  font-size: 0.95rem;
}

.foot {
  padding: 24px 0 40px;
  color: #c9c3b6;
}

.back-top {
  display: flex;
  justify-content: center;
  padding: 8px 0 28px;
}

.back-top a {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
}

@media (min-width: 760px) {
  .post-list {
    grid-template-columns: 1fr 1fr;
  }

  .gongshi td,
  .blgg td {
    width: 50%;
  }
}

@media (max-width: 720px) {
  .stack-sm tr,
  .qxtable tr,
  .gg tr {
    display: block;
  }

  .stack-sm td,
  .qxtable td,
  .gg td {
    display: block;
    width: 100% !important;
  }

  .KJ-TabBox #navList li {
    font-size: 17px;
  }
}
