:root {
  --bg: #0a1018;
  --bg-soft: #101a26;
  --panel: rgba(16, 24, 36, 0.92);
  --panel-strong: rgba(20, 29, 44, 0.98);
  --panel-light: rgba(255, 244, 221, 0.06);
  --text: #f5ead3;
  --text-soft: #d9ccb2;
  --muted: #a9997f;
  --brand: #c89a56;
  --brand-strong: #e1bd81;
  --brand-deep: #8f622f;
  --line: rgba(212, 178, 119, 0.22);
  --line-strong: rgba(212, 178, 119, 0.34);
  --success: #82c69c;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(156, 111, 41, 0.25), transparent 34%),
    linear-gradient(180deg, #101823 0%, #0b121b 42%, #090e15 100%);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 225, 170, 0.04), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(200, 154, 86, 0.08), transparent 28%);
  pointer-events: none;
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #f5d49f;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.m-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 13, 20, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 178, 119, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.m-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.m-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
}

.m-logo-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 238, 212, 0.08);
  padding: 4px;
}

.m-logo-link span {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-menu-toggle {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 243, 219, 0.08), rgba(255, 243, 219, 0.02));
  color: var(--brand-strong);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 240, 214, 0.08);
}

.m-nav {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}

.m-nav.is-open {
  display: grid;
}

.m-nav a {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 246, 228, 0.08), rgba(255, 246, 228, 0.02));
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.m-page {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 14px 12px;
}

.card {
  background: linear-gradient(180deg, rgba(18, 27, 40, 0.96), rgba(11, 18, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}

.section-eyebrow,
.m-eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.m-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(229, 185, 117, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(41, 24, 12, 0.92), rgba(18, 27, 40, 0.98) 55%, rgba(14, 21, 31, 0.98));
}

.m-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.m-hero-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex: 0 0 70px;
  border-radius: 16px;
  padding: 6px;
  background: rgba(255, 241, 210, 0.06);
  border: 1px solid rgba(229, 185, 117, 0.18);
}

.m-hero-copy h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.m-hero-copy p {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.m-hero-summary {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.m-hero-actions,
.m-quick-grid,
.m-link-grid,
.m-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-hero-actions {
  margin-top: 16px;
}

.m-hero-actions a,
.m-link-grid a,
.m-footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.m-hero-actions a {
  color: #201609;
  background: linear-gradient(180deg, #f1d198 0%, #c9964b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 239, 0.7);
}

.m-hero-actions a.is-secondary {
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 244, 221, 0.12), rgba(255, 244, 221, 0.04));
  border: 1px solid rgba(255, 225, 170, 0.18);
}

.m-hero-actions a.is-ghost {
  color: var(--brand-strong);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.m-quick-grid {
  margin-top: 14px;
}

.m-quick-grid a,
.m-shortcut-grid a {
  display: block;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(212, 178, 119, 0.18);
  background: rgba(255, 244, 221, 0.04);
}

.m-quick-grid strong,
.m-shortcut-grid strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.m-quick-grid span,
.m-shortcut-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.m-card-head,
.m-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.m-card-head h2,
.m-section-title,
.m-section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: var(--text);
}

.m-card-head a,
.m-section-head a {
  flex: 0 0 auto;
  color: var(--brand-strong);
  font-size: 13px;
  white-space: nowrap;
}

.m-subtext,
.m-section-note,
.m-page-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.m-section-desc {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.m-notice-card {
  background:
    linear-gradient(180deg, rgba(44, 26, 12, 0.86), rgba(17, 25, 36, 0.96)),
    linear-gradient(135deg, rgba(224, 187, 127, 0.06), transparent);
}

.m-notice-tag,
.m-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232, 190, 120, 0.34);
  background: rgba(255, 233, 190, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.m-notice-card h2,
.m-notice-card h3,
.m-version-points h3,
.m-board-group h3,
.m-gallery-copy strong,
.m-assist-card h3,
.m-page-hero h1,
.m-article h1 {
  margin: 0;
}

.m-notice-card h3 {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.35;
}

.m-notice-card p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.m-notice-meta,
.m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.m-notice-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
}

.m-version-points {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.m-version-points li {
  list-style: none;
  position: relative;
  padding: 12px 12px 12px 40px;
  border-radius: 14px;
  border: 1px solid rgba(212, 178, 119, 0.12);
  background: rgba(255, 244, 221, 0.04);
  color: var(--text-soft);
  font-size: 14px;
}

.m-version-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #f8db9f 0%, #c58e45 70%, #8d5b22 100%);
  box-shadow: 0 0 0 4px rgba(245, 208, 145, 0.08);
}

.m-board {
  display: grid;
  gap: 12px;
}

.m-board-group {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 178, 119, 0.14);
  background: rgba(255, 244, 221, 0.035);
}

.m-board-group h3 {
  font-size: 16px;
  line-height: 1.3;
}

.m-board-group p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.m-list,
.m-mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.m-list li,
.m-mini-list li {
  border-bottom: 1px dashed rgba(212, 178, 119, 0.14);
}

.m-list li:last-child,
.m-mini-list li:last-child {
  border-bottom: 0;
}

.m-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
}

.m-list .title {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-list time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.5;
}

.m-list-tight a {
  padding: 10px 0;
}

.m-list-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  max-width: 74px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 178, 119, 0.18);
  background: rgba(255, 244, 221, 0.06);
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-list-rich a {
  grid-template-columns: auto 1fr auto;
}

.m-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m-subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 221, 0.04);
  color: var(--text-soft);
  font-size: 13px;
}

.m-subnav a.is-active {
  color: #201609;
  background: linear-gradient(180deg, #f0d39f 0%, #c48f45 100%);
  border-color: rgba(227, 189, 129, 0.4);
}

.m-page-hero {
  background:
    radial-gradient(circle at top right, rgba(227, 189, 129, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(35, 22, 11, 0.92), rgba(18, 27, 40, 0.96));
}

.m-page-hero h1,
.m-article h1 {
  font-size: 24px;
  line-height: 1.3;
}

.m-page-hero .m-page-summary {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
}

.m-link-grid a {
  color: var(--text);
  background: rgba(255, 244, 221, 0.05);
  border: 1px solid rgba(212, 178, 119, 0.18);
}

.m-block-top {
  margin-top: 12px;
}

.m-block-top-sm {
  margin-top: 10px;
}

.m-assist-grid {
  display: grid;
  gap: 14px;
}

.m-assist-card h3 {
  font-size: 18px;
  line-height: 1.3;
}

.m-assist-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.m-mini-list a {
  display: block;
  padding: 10px 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.m-gallery-grid {
  display: grid;
  gap: 12px;
}

.m-gallery-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(212, 178, 119, 0.14);
  background: rgba(255, 244, 221, 0.04);
}

.m-gallery-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
}

.m-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-gallery-copy {
  display: block;
  padding: 12px 14px 14px;
}

.m-gallery-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}

.m-gallery-copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.m-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.m-pagination a,
.m-pagination span,
.m-pagination .cpb,
.m-pagination .active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 221, 0.04);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1;
}

.m-pagination .cpb,
.m-pagination .active {
  color: #201609;
  background: linear-gradient(180deg, #f0d39f 0%, #c48f45 100%);
  border-color: rgba(227, 189, 129, 0.4);
}

.m-article-body {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
  word-break: break-word;
}

.m-article-body h1,
.m-article-body h2,
.m-article-body h3,
.m-article-body h4,
.m-article-body h5 {
  margin: 18px 0 10px;
  line-height: 1.4;
  color: var(--text);
}

.m-article-body h2 {
  padding: 10px 12px;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(200, 154, 86, 0.2), rgba(200, 154, 86, 0));
  color: #f8dfb0;
  font-size: 18px;
  font-weight: 700;
}

.m-article-body h3 {
  color: var(--brand-strong);
  font-size: 16px;
  font-weight: 700;
}

.m-article-body p {
  margin: 0 0 14px;
}

.m-article-body strong,
.m-article-body .contentbot-link-tip {
  color: #f4cf8f;
  font-weight: 700;
}

.m-article-body a {
  color: #f2d39f;
  font-weight: 700;
  border-bottom: 1px dotted rgba(244, 207, 143, 0.45);
}

.m-article-body a.m-image-link {
  border-bottom: 0;
}

.m-article-body ul,
.m-article-body ol {
  margin: 0 0 14px 18px;
  padding: 0;
}

.m-article-body li {
  margin-bottom: 8px;
}

.m-article-body img {
  max-width: 100% !important;
  height: auto !important;
  margin: 12px auto;
  border-radius: 14px;
  cursor: zoom-in;
}

body.image-viewer-open {
  overflow: hidden;
}

.m-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  padding: 56px 12px 18px;
  background: rgba(9, 7, 4, 0.88);
}

.m-image-viewer.is-open {
  display: block;
}

.m-image-viewer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 72px;
  height: 38px;
  border: 1px solid rgba(242, 211, 159, 0.45);
  border-radius: 999px;
  background: rgba(31, 22, 12, 0.92);
  color: #f8dfb0;
  font-size: 14px;
  font-weight: 700;
}

.m-image-viewer-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.m-image-viewer-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.m-article-body table {
  width: 100% !important;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid rgba(212, 178, 119, 0.18);
  border-radius: 12px;
}

.m-article-body td,
.m-article-body th {
  min-width: 96px;
  padding: 8px;
  border: 1px solid rgba(212, 178, 119, 0.12);
}

.m-article-body th {
  color: var(--text);
  background: rgba(200, 154, 86, 0.1);
}

.m-drop-search {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(212, 178, 119, 0.18);
  border-radius: 16px;
  background: rgba(255, 244, 221, 0.04);
}

.m-drop-search h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.4;
  color: #f8dfb0;
}

.m-drop-search p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 14px;
}

.m-drop-search-row {
  display: grid;
  gap: 10px;
}

.m-drop-search-input,
.m-drop-search-button,
.m-drop-search-reset {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  font-size: 14px;
}

.m-drop-search-input {
  border: 1px solid rgba(212, 178, 119, 0.22);
  background: rgba(8, 13, 20, 0.76);
  color: var(--text);
  padding: 0 12px;
}

.m-drop-search-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.m-drop-search-button {
  border: 0;
  background: linear-gradient(180deg, #f0d39f 0%, #c48f45 100%);
  color: #201609;
  font-weight: 700;
}

.m-drop-search-reset {
  border: 1px solid rgba(212, 178, 119, 0.22);
  background: transparent;
  color: var(--text-soft);
  font-weight: 700;
}

.m-drop-search-result {
  color: var(--muted);
  font-size: 13px;
}

.m-drop-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m-drop-keywords a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 178, 119, 0.18);
  background: rgba(255, 244, 221, 0.05);
  color: var(--brand-strong);
  font-size: 13px;
}

.m-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 0 14px 6px;
}

.m-footer-card {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 27, 40, 0.96), rgba(11, 18, 28, 0.96));
  box-shadow: var(--shadow);
}

.m-footer-links a {
  color: var(--text);
  background: rgba(255, 244, 221, 0.04);
  border: 1px solid rgba(212, 178, 119, 0.16);
}

.m-footer-meta p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.m-footer-meta p + p {
  margin-top: 4px;
}

@media (min-width: 640px) {
  .m-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .m-hero-actions,
  .m-quick-grid,
  .m-link-grid,
  .m-footer-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .m-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .m-assist-grid {
    grid-template-columns: 1fr 1fr;
  }
}
