@import "./tokens.css";

:root {
  --color-muted: var(--mogher-color-text-muted);
  --color-surface: var(--mogher-color-background-surface-muted);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--color-primary);
  font-family: var(--mogher-font-family-sans);
  font-size: var(--mogher-font-size-base);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--mogher-color-border-focus);
  outline-offset: 3px;
}

.scenicPage {
  min-height: 100vh;
  color: var(--color-inverse);
  background:
    linear-gradient(180deg, rgba(7, 26, 61, 0.28), rgba(7, 26, 61, 0.92)),
    url("/assets/homepage.png") center top / cover no-repeat,
    var(--color-page);
}

.scenicPage.inner {
  background:
    linear-gradient(180deg, rgba(7, 26, 61, 0.2), rgba(7, 26, 61, 0.82)),
    url("/assets/homepage.png") center top / cover fixed no-repeat,
    var(--color-page);
}

.siteHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mogher-space-8);
  width: min(var(--container-wide), calc(100% - 48px));
  height: var(--mogher-component-header-height);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--mogher-space-3);
  min-width: max-content;
}

.brandMark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--mogher-radius-md);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: var(--mogher-font-size-lg);
}

.brand small {
  color: var(--color-inverse-muted);
  font-size: var(--mogher-font-size-xs);
  font-weight: var(--mogher-font-weight-bold);
}

.primaryNav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  gap: var(--mogher-space-6);
}

.primaryNav a,
.navTrigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--mogher-font-size-base);
  font-weight: var(--mogher-font-weight-bold);
}

.navLink {
  color: #fff;
}

.navTrigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navLink.active::after,
.navTrigger.active::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.92);
  content: "";
}

.navDropdown,
.languageDropdown {
  position: relative;
}

.navDropdown {
  display: flex;
  align-items: center;
  height: 100%;
}

.navMenu,
.languageMenu {
  position: absolute;
  z-index: 20;
  display: none;
  min-width: 220px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--mogher-radius-md);
  background: rgba(248, 250, 255, 0.94);
  box-shadow: 0 24px 70px rgba(8, 20, 50, 0.24);
  backdrop-filter: blur(18px);
}

.navMenu {
  top: calc(50% + 20px);
  left: -18px;
}

.languageMenu {
  top: 52px;
  right: 0;
  min-width: 150px;
}

.navDropdown:hover .navMenu,
.navDropdown:focus-within .navMenu,
.languageDropdown:hover .languageMenu,
.languageDropdown:focus-within .languageMenu {
  display: grid;
}

.navMenuItem,
.languageMenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mogher-space-3);
  padding: 10px var(--mogher-space-3);
  color: #18345f;
  border-radius: 8px;
  font-weight: var(--mogher-font-weight-semibold);
}

.primaryNav .navMenuItem {
  padding: 10px 12px;
  color: #18345f;
}

.navMenuItem:hover,
.languageMenu a:hover {
  background: #eaf0ff;
  color: #0f46b7;
}

.navMenuItem.withDivider {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #d8e1f2;
  border-radius: 0 0 8px 8px;
}

.headerActions {
  display: flex;
  align-items: center;
  gap: var(--mogher-space-4);
}

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

.romanizationPreference select {
  min-height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  background: rgb(255 255 255 / 14%);
  color: #fff;
  font: inherit;
}

.characterActions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 16px;
}

.characterCopyIcon {
  position: relative;
  display: block;
  width: 14px;
  height: 15px;
  flex: 0 0 auto;
}

.characterCopySheet {
  position: absolute;
  display: block;
  width: 9px;
  height: 11px;
  box-sizing: border-box;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.characterCopySheet.back {
  top: 0;
  right: 0;
  opacity: 0.62;
}

.characterCopySheet.front {
  bottom: 0;
  left: 0;
  background: inherit;
}

.characterActions button,
.wxDetailNav [data-share-page],
.wxDesktopShareButton {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #cbd7ef;
  border-radius: 999px;
  color: #33476c;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.characterActions button:hover,
.wxDesktopShareButton:hover {
  border-color: #8d9df4;
  color: #435cff;
  background: #f7f8ff;
}

.characterActions button:focus-visible,
.wxDetailNav [data-share-page]:focus-visible,
.wxDesktopShareButton:focus-visible {
  outline: 3px solid rgba(91, 95, 239, 0.28);
  outline-offset: 2px;
}

.characterActions button.actionConfirmed,
.wxDetailNav [data-share-page].actionConfirmed,
.wxDesktopShareButton.actionConfirmed {
  border-color: #7acb9b;
  color: #166a3a;
  background: #effaf3;
}

.wxDetailNav [data-share-page] {
  min-width: 58px;
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.wxDesktopShareButton,
.regionalVariantsLabel {
  display: none;
}

.iconButton,
.languageButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.iconButton {
  width: 44px;
  height: 44px;
}

.languageButton {
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--mogher-font-size-sm);
  font-weight: var(--mogher-font-weight-semibold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: var(--mogher-space-16);
  width: min(1240px, calc(100% - 48px));
  margin: var(--mogher-space-8) auto 0;
}

.heroCopy h1 {
  margin: 0 0 var(--mogher-space-2);
  font-size: var(--mogher-font-size-hero);
  line-height: var(--mogher-font-line-height-tight);
}

.heroCopy p {
  margin: 0 0 var(--mogher-space-6);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--mogher-font-size-xl);
  line-height: var(--mogher-font-line-height-normal);
}

.searchForm {
  display: grid;
  grid-template-columns: 1fr var(--mogher-component-search-button-size);
  width: min(720px, 100%);
  min-height: var(--mogher-component-search-height);
  padding: var(--mogher-space-1);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--mogher-component-search-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-glass);
}

.searchForm.compact {
  width: min(680px, calc(100% - 48px));
  min-height: 52px;
  margin: 0 auto;
  grid-template-columns: 1fr 48px;
  border-radius: var(--mogher-radius-md);
}

.searchForm input {
  min-width: 0;
  padding: 0 var(--mogher-space-4);
  color: var(--color-primary);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--mogher-font-size-lg);
}

.searchForm.compact input {
  font-size: var(--mogher-font-size-base);
}

.searchForm button {
  border: 0;
  border-radius: var(--mogher-radius-md);
  color: #fff;
  background: var(--color-action);
  cursor: pointer;
}

.searchForm button:hover {
  background: var(--color-action-hover);
}

.searchHelpLink {
  display: inline-flex;
  min-height: 32px;
  margin: 8px 0 0 14px;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(31, 35, 84, 0.18);
}

.searchHelpIcon {
  display: grid;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(31, 35, 84, 0.12);
}

.searchHelpLink:hover {
  color: #fff;
}

.searchHelpLink:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.hotSearches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--mogher-space-3);
  margin-top: var(--mogher-space-4);
  font-size: var(--mogher-font-size-sm);
  font-weight: var(--mogher-font-weight-semibold);
}

.hotSearches a {
  padding: var(--mogher-space-2) var(--mogher-space-4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.glassPanel {
  border: 1px solid var(--color-glass-border);
  background: var(--color-glass);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px);
}

.dailyWord {
  min-height: 196px;
  padding: var(--mogher-space-5);
  border-radius: var(--mogher-radius-lg);
}

.dailyWord h2 {
  display: flex;
  align-items: center;
  gap: var(--mogher-space-3);
  margin: var(--mogher-space-5) 0 var(--mogher-space-2);
  font-size: var(--mogher-font-size-3xl);
  line-height: var(--mogher-font-line-height-tight);
}

.dailyWord .romanization {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--mogher-font-size-xl);
}

.dailyWord button {
  display: inline-flex;
  align-items: center;
  gap: var(--mogher-space-2);
  margin: var(--mogher-space-4) var(--mogher-space-2) 0 0;
  padding: 9px var(--mogher-space-4);
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.featureGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--mogher-space-4);
  width: min(1240px, calc(100% - 48px));
  margin: var(--mogher-space-10) auto var(--mogher-space-4);
}

.featureCard {
  position: relative;
  min-height: 166px;
  padding: var(--mogher-space-4);
  border-radius: var(--mogher-radius-lg);
}

.featureIcon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: var(--mogher-space-4);
  border-radius: var(--mogher-radius-md);
}

.featureCard.violet .featureIcon { background: linear-gradient(135deg, #735ff4, #5b5cf6); }
.featureCard.cyan .featureIcon { background: linear-gradient(135deg, #63d3e2, #4aa9c8); }
.featureCard.amber .featureIcon { background: linear-gradient(135deg, #f2ba64, #d88a39); }
.featureCard.rose .featureIcon { background: linear-gradient(135deg, #ee7e91, #d85e78); }
.featureCard.blue .featureIcon { background: linear-gradient(135deg, #75a2ff, #4d72d8); }

.featureCard strong {
  display: block;
  margin-bottom: var(--mogher-space-2);
  font-size: var(--mogher-font-size-lg);
  line-height: var(--mogher-font-line-height-normal);
}

.featureCard p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--mogher-font-size-sm);
  line-height: var(--mogher-font-line-height-relaxed);
}

.cardArrow {
  position: absolute;
  right: var(--mogher-space-5);
  bottom: var(--mogher-space-4);
  font-size: var(--mogher-font-size-2xl);
}

.resourceStrip {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: var(--mogher-space-4) var(--mogher-space-5);
  border-radius: 18px;
}

.resourceStrip div {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(255, 255, 255, 0.86);
}

.trustStrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  width: min(1240px, calc(100% - 48px));
  margin: var(--mogher-space-8) auto 0;
  padding: var(--mogher-space-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.trustStrip div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 16px;
  align-items: center;
}

.trustStrip svg {
  grid-row: span 2;
  opacity: 0.88;
}

.trustStrip span {
  color: var(--color-inverse-muted);
  line-height: 1.6;
}

.topSearch {
  padding: 0 0 30px;
}

.contentPanel {
  width: min(var(--container-content), calc(100% - 48px));
  margin: 0 auto 54px;
  padding: var(--mogher-space-8);
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-surface);
}

.querySummary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: var(--mogher-radius-lg);
  background: var(--mogher-color-background-surface-muted);
}

.querySummary span,
.querySummary small {
  color: var(--color-secondary);
}

.querySummary strong {
  color: var(--color-primary);
  font-size: var(--mogher-font-size-xl);
}

.englishResultList {
  display: grid;
  gap: 14px;
}

.englishEntry {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--mogher-radius-lg);
  background: #fff;
}

.englishEntryHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.englishEntryHeader strong {
  font-size: var(--mogher-font-size-2xl);
}

.englishEntryHeader span {
  color: var(--color-secondary);
}

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

.phraseChip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--mogher-radius-pill);
  color: var(--color-action);
  background: #eef2ff;
  font-weight: 600;
}

.quickNav {
  display: none;
}

.breadcrumb {
  margin: 0 0 18px;
  color: #52627f;
  font-weight: 600;
}

.contentPanel h1 {
  margin: 0 0 12px;
  font-size: var(--mogher-font-size-3xl);
  line-height: var(--mogher-font-line-height-tight);
}

.docPanel {
  padding: 0;
  overflow: hidden;
}

.docPanel .breadcrumb {
  margin: 0;
  padding: 28px 42px 0;
}

.docHero {
  padding: var(--mogher-space-6) var(--mogher-space-8) var(--mogher-space-8);
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(circle at 15% 10%, rgba(91, 92, 246, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff, #f7faff);
}

.docHero span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #145bd7;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.docHero h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: var(--mogher-font-size-3xl);
  line-height: var(--mogher-font-line-height-tight);
}

.docHero p {
  max-width: 760px;
  margin: 0;
  color: var(--color-secondary);
  font-size: var(--mogher-font-size-base);
  line-height: var(--mogher-font-line-height-relaxed);
}

.docLayout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
  padding: 34px 42px 42px;
}

.docSidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #f8faff;
}

.docSidebar strong {
  margin-bottom: 6px;
  color: #145bd7;
}

.docSidebar a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #435875;
  font-weight: 650;
}

.docSidebar a:hover {
  color: #0f46b7;
  background: #eaf0ff;
}

.docBody {
  display: grid;
  gap: 30px;
}

.docSection {
  min-width: 0;
}

.docSection h2 {
  margin: 0 0 14px;
  font-size: var(--mogher-font-size-2xl);
}

.docSection p,
.docSection li {
  color: #31435f;
  font-size: var(--mogher-font-size-base);
  line-height: var(--mogher-font-line-height-relaxed);
}

.contentPanel table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: var(--mogher-font-size-sm);
}

.contentPanel table th,
.contentPanel table td {
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.contentPanel table th {
  background: var(--color-surface);
  font-weight: 600;
}

.contentPanel table tr:hover td {
  background: rgba(91, 92, 246, 0.04);
}

.contentPanel .docTableWrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.docTable {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.docTable th,
.docTable td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.docTable th {
  color: #0b214a;
  background: #f2f6ff;
  font-weight: 800;
}

.docTable tr:last-child td {
  border-bottom: 0;
}

.docCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

/* Custom doc page components */
.soundPlayer {
  color: #145bd7;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.soundPlayer:hover {
  text-decoration: underline;
}

.soundPlayer.playing {
  color: #e53e3e;
}

.soundIndicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53e3e;
  margin-left: 2px;
  vertical-align: super;
  animation: soundPulse 0.8s infinite;
}

@keyframes soundPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.POJ {
  font-family: "Times New Roman", serif;
}

.fg-red {
  color: #e53e3e;
  font-weight: 500;
}

/* Tabbed page tabs */
.doc-tabs {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 2px solid var(--color-border);
}

.doc-tabs li {
  display: inline-flex;
}

.doc-tabs li a {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 10px 10px 0 0;
  color: var(--color-secondary);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-bottom: none;
  transition: background 0.15s;
}

.doc-tabs li.active a {
  background: #f2f6ff;
  color: #145bd7;
  border-bottom: 2px solid #f2f6ff;
  margin-bottom: -2px;
}

.doc-tabs li a:hover {
  background: #eaf0ff;
}

.tabbedPage .topSearch {
  padding-bottom: 34px;
}

.tabbedPanel {
  width: min(1260px, calc(100% - 96px));
  margin-bottom: 70px;
  padding: 0 32px 42px;
  border-color: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(248, 250, 255, 0.94);
  box-shadow: 0 34px 90px rgba(14, 31, 82, 0.3);
}

.tabbedHero {
  position: relative;
  padding: 34px 0 28px;
  overflow: hidden;
  border-bottom: 0;
  background: transparent;
}

.tabbedHeroCopy {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.tabbedHero h1 {
  margin-bottom: 16px;
  color: #0d1d3f;
  font-size: 34px;
}

.tabbedHint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #3262f2;
  font-size: var(--mogher-font-size-sm);
  font-weight: 800;
}

.tabbedHint b {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #5879ee;
  font-size: 15px;
  line-height: 1;
}

.tabbedBody {
  gap: 0;
  padding: 0;
}

.tabbedBody .doc-tabs {
  position: relative;
  z-index: 2;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 -20px 45px rgba(14, 31, 82, 0.08);
}

.tabbedBody .doc-tabs li a {
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px 14px 0 0;
  color: #4b5d7c;
  background: transparent;
  font-size: var(--mogher-font-size-base);
  font-weight: 800;
}

.tabbedBody .doc-tabs li.active a {
  position: relative;
  margin-bottom: 0;
  color: #3262f2;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(35, 59, 127, 0.08);
}

.tabbedBody .doc-tabs li.active a::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  content: "";
  background: #4c6ff3;
}

.tabbedBody .doc-tabs li a:hover {
  color: #3262f2;
  background: rgba(234, 240, 255, 0.78);
}

.tabMark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #4965d9;
  background: #eef3ff;
  box-shadow: inset 0 0 0 1px rgba(63, 83, 170, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.tabbedBody .doc-tabs li.active .tabMark {
  color: #fff;
  background: linear-gradient(135deg, #667cff, #4464ed);
}

.tabbedBody .tab-content {
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, 0.92);
}

.tabbedTableWrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #dfe5f1;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 42, 92, 0.08);
}

.tabbedTable {
  min-width: 980px;
  table-layout: fixed;
}

.tabbedTable th,
.tabbedTable td {
  height: 52px;
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
}

.tabbedTable th {
  color: #17213a;
  background: linear-gradient(180deg, #fbfcff, #f5f8ff);
  font-size: var(--mogher-font-size-base);
}

.tabbedTable td {
  color: #16223d;
  font-size: var(--mogher-font-size-base);
  font-weight: 750;
}

.tabbedTable .rhymeSoundRow td {
  font-family: var(--mogher-font-family-serif);
}

.tabbedTable .rhymeExampleRow td {
  color: #18233c;
  font-size: var(--mogher-font-size-sm);
}

.tabbedTable .soundPlayer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 26px;
  color: #356bf2;
  border-radius: 8px;
  font-size: var(--mogher-font-size-base);
  font-weight: 850;
  text-decoration: none;
}

.tabbedTable .soundPlayer:hover {
  color: #234dd7;
  background: #eef4ff;
  text-decoration: none;
}

.tabbedTable .soundPlayer.playing {
  color: #e2524c;
  background: #fff0f0;
}

.tabbedBody .doc-notes {
  margin: 28px 8px 0;
}

.tab-content .tab-pane {
  display: block;
}

.doc-notes {
  padding-left: 24px;
  line-height: 2;
  color: var(--color-secondary);
}

.doc-notes li {
  margin-bottom: 4px;
}

/* Initials table specific */
.initials-py td,
.initials-char td {
  text-align: center;
  font-size: 22px;
  font-family: "Times New Roman", serif;
}

.initials-char td {
  color: var(--color-secondary);
  font-family: inherit;
  font-size: 18px;
}

.initials-py td:empty::before,
.initials-char td:empty::before {
  content: "\00a0";
}

.docCard {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.docCard svg {
  color: #145bd7;
}

.docCard strong {
  font-size: 18px;
}

.docCard span {
  color: var(--color-secondary);
  line-height: 1.6;
}

.resourcePanel {
  padding: 0 0 42px;
}

.resourcePanel .breadcrumb {
  margin: 0;
  padding: 28px 42px 0;
}

.resourceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px 42px 0;
}

.resourceGroup {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

.resourceGroup h2 {
  margin: 0 0 8px;
}

.resourceGroup p {
  min-height: 52px;
  margin: 0 0 16px;
  color: var(--color-secondary);
  line-height: 1.6;
}

.resourceGroup div {
  display: grid;
  gap: 8px;
}

.resourceGroup a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 9px;
  color: #18345f;
  background: #f8faff;
  font-weight: 700;
}

.resourceGroup a:hover {
  color: #0f46b7;
  background: #eaf0ff;
}

.muted {
  color: var(--color-secondary);
}

.resultList {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.resultItem {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.resultItem strong {
  font-size: var(--mogher-font-size-3xl);
}

.wordResult {
  grid-template-columns: 120px 150px 120px minmax(0, 1fr);
}

.wordResult small {
  overflow: hidden;
  color: var(--color-secondary);
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plainLink {
  color: #145bd7;
  font-weight: 800;
}

.pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pager a {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: #145bd7;
  background: #fff;
  font-weight: 800;
}

.wxTopicDetailPage {
  min-height: 100vh;
  padding-bottom: 48px;
  background: #eef1f8;
  color: #101831;
  font-family: var(--mogher-font-family-sans);
}

.wxTopicNav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  min-height: 64px;
  padding: 10px 22px;
  box-sizing: border-box;
  align-items: center;
  grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr);
  background: rgba(238, 241, 248, 0.94);
  backdrop-filter: blur(14px);
}

.wxTopicBackButton {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: flex-start;
}

.wxTopicBackButton span {
  width: 13px;
  height: 13px;
  margin-left: 4px;
  border-bottom: 2px solid #111827;
  border-left: 2px solid #111827;
  transform: rotate(45deg);
}

.wxTopicNavTitle {
  max-width: 42vw;
  overflow: hidden;
  color: #101831;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxTopicNavRight {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
}

.wxTopicCountBadge {
  max-width: min(34vw, 190px);
  overflow: hidden;
  padding: 7px 13px;
  border-radius: 7px;
  background: #eef0fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #16244a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxTopicContent {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0 42px;
  box-sizing: border-box;
}

.wxTopicWordHeader {
  display: flex;
  padding: 28px 72px 24px;
  box-sizing: border-box;
  align-items: center;
  background: #eef1f8;
}

.wxTopicWordHeader span {
  color: #314061;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.wxTopicColWord {
  width: 144px;
  flex: 0 0 144px;
}

.wxTopicColReading {
  flex: 1;
  min-width: 0;
}

.wxTopicColMandarin {
  display: none;
}

.wxTopicWordList {
  padding: 0 36px;
  box-sizing: border-box;
}

.wxTopicWordRow {
  display: block;
  min-height: 64px;
  margin-bottom: 12px;
  padding: 13px 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(26, 35, 70, 0.04);
  box-sizing: border-box;
  color: inherit;
}

.wxTopicWordRow:hover {
  box-shadow: 0 8px 22px rgba(26, 35, 70, 0.08);
  transform: translateY(-1px);
}

.wxTopicRowMain {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wxTopicWordText {
  width: 144px;
  flex: 0 0 144px;
  overflow: hidden;
  color: #111a33;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxTopicWordReading {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #234cff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxTopicMandarin {
  display: block;
  margin-top: 6px;
  color: #66728a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  word-break: break-word;
}

.wxTopicPager {
  display: flex;
  min-height: 70px;
  padding: 20px 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
}

.wxTopicPager a {
  padding: 9px 15px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(26, 35, 70, 0.04);
  color: #234cff;
  font-size: 13px;
  font-weight: 800;
}

.wxTopicPager span {
  color: #a0a7b7;
  font-size: 13px;
  font-weight: 700;
}

.wxTopicStateWrap {
  display: flex;
  min-height: 50vh;
  padding: 96px 24px 40px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.wxTopicStateWrap strong {
  color: #111a33;
  font-size: 20px;
  font-weight: 850;
}

.wxTopicStateWrap span {
  color: #66728a;
  font-size: 14px;
  font-weight: 650;
}

.tileGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.miniTile {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.miniTile strong {
  color: #0b214a;
  font-size: 24px;
  line-height: 1.2;
}

.miniTile span {
  color: var(--color-secondary);
  font-weight: 650;
}

.compactMeta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tagRow a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #145bd7;
  background: #eaf0ff;
  font-weight: 800;
}

.characterHero {
  display: grid;
  grid-template-columns: minmax(160px, max-content) 1fr;
  gap: 32px;
  align-items: center;
  padding: 10px 0;
}

.characterMobileNav,
.characterHeroGlow,
.characterTabBar {
  display: none;
}

.characterGlyphGroup {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.bigCharacter {
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  border: 1px solid #dce3f3;
  border-radius: 8px;
  color: #071a3d;
  background:
    linear-gradient(45deg, transparent calc(50% - 0.5px), #e4e9f4 calc(50% - 0.5px), #e4e9f4 calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(-45deg, transparent calc(50% - 0.5px), #e4e9f4 calc(50% - 0.5px), #e4e9f4 calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), #e4e9f4 calc(50% - 0.5px), #e4e9f4 calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), #e4e9f4 calc(50% - 0.5px), #e4e9f4 calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    #f9fbff;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "DFKai-SB", "BiauKai", serif;
  font-size: 116px;
  font-weight: 700;
  line-height: 1;
}

.traditionalCharacter {
  display: grid;
  min-width: 72px;
  min-height: 72px;
  padding: 10px 14px;
  place-items: center;
  border: 1px solid #dce3f3;
  border-radius: 8px;
  color: #172a52;
  background: #f9fbff;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "DFKai-SB", "BiauKai", serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.characterSummary {
  min-width: 0;
}

.characterMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  margin: 26px 0 0;
}

.characterMeta div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid #dfe6f5;
}

.characterMeta div:first-child {
  padding-left: 0;
}

.characterMeta div:last-child {
  border-right: 0;
}

.characterMeta dt {
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 700;
}

.characterMeta dd {
  margin: 0;
  font-weight: 700;
}

.readingRows {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.readingRow {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
}

.readingRowLabel {
  color: #52627f;
  font-size: 14px;
  font-weight: 800;
}

.readingChips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.mandarinReading {
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.readingChip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 13px;
  border: 1px solid #cbd7ff;
  border-radius: 9px;
  color: #435cff;
  background: #f8faff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.readingChip:hover {
  background: #eef3ff;
  text-decoration: none;
}

.readingChip small {
  color: #5265d9;
  font-size: 13px;
  font-weight: 800;
}

.readingChip.soundPlayer {
  position: relative;
}

.readingChip.soundPlayer.playing {
  color: #e53e3e;
}

.pronunciationTooltip {
  position: relative;
  display: inline-flex;
}

.pronunciationTooltipContent {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  width: max-content;
  min-width: 160px;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(18, 45, 95, 0.2);
  border: 1px solid #d6e0f5;
  z-index: 50;
  pointer-events: none;
}

.pronunciationTooltip:hover .pronunciationTooltipContent {
  display: block;
}

.pronunciationTooltipContent::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.98);
}

.pronunciationTooltipRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.4;
}

.pronunciationTooltipRegion {
  color: #52627f;
  font-weight: 600;
}

.pronunciationTooltipReading {
  color: #435cff;
  font-weight: 700;
}

.pronunciationTooltipReading small {
  margin-left: 4px;
  color: #5265d9;
  font-size: 12px;
  font-weight: 800;
}

.definitionPronunciationTooltip .pronunciationTooltipContent {
  bottom: calc(100% + 8px);
}

.definitionSection {
  margin-top: 10px;
}

.glyphPanel,
.definitionPanel,
.englishMeaningPanel {
  padding: 22px;
  border: 1px solid rgba(226, 232, 246, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 48px rgba(18, 45, 95, 0.06);
}

.definitionSection h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 16px;
  font-size: var(--mogher-font-size-xl);
}

.definitionSection h2 span {
  color: #52627f;
  font-size: var(--mogher-font-size-base);
  font-weight: 700;
}

.definitionCards {
  display: grid;
  gap: 18px;
}

.pronunciationGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.pronunciationCard {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #f8faff;
}

.pronunciationCard span {
  color: #145bd7;
  font-size: var(--mogher-font-size-xl);
  font-weight: 800;
}

.pronunciationCard small {
  color: var(--color-secondary);
}

.definitionCard {
  overflow: hidden;
  border-top: 1px solid #e3e9f7;
}

.definitionCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px 0;
}

.definitionCardHeader > div {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.definitionPronunciation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.definitionCardHeader strong {
  color: #435cff;
  font-size: var(--mogher-font-size-lg);
  line-height: 1;
}

.definitionCardHeader small {
  color: #435cff;
  font-size: 14px;
  font-weight: 800;
}

.definitionCardHeader > span {
  flex: 1;
  min-width: 160px;
  color: #52627f;
  font-size: 14px;
  font-weight: 800;
}

.definitionCardHeader b {
  color: #435cff;
}

.definitionSound {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #435cff;
  background: #eef3ff;
  text-decoration: none;
}

.definitionSound:hover {
  background: #e1e8ff;
  text-decoration: none;
}

.definitionCardVariants {
  padding: 8px 18px 6px;
}

.definitionRegionalVariants {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

.regionalVariantChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f4f9;
  font-size: 13px;
  line-height: 1.4;
}

.regionalVariantRegion {
  color: #7a879f;
  font-weight: 600;
  font-size: 12px;
}

.regionalVariantReading {
  color: #5265d9;
  font-weight: 700;
}

.regionalVariantReading small {
  margin-left: 2px;
  color: #6b7db5;
  font-size: 11px;
  font-weight: 800;
}

.regionalVariantChip.soundPlayer {
  cursor: pointer;
  text-decoration: none;
}

.regionalVariantChip.soundPlayer:hover {
  background: #e8ecf5;
}

.regionalVariantChip.soundPlayer.playing,
.regionalVariantChip.soundPlayer.playing .regionalVariantRegion,
.regionalVariantChip.soundPlayer.playing .regionalVariantReading,
.regionalVariantChip.soundPlayer.playing .regionalVariantReading small {
  color: #e53e3e;
}

.definitionCard pre {
  margin: 0;
  padding: 5px 18px 5px;
  white-space: pre-wrap;
  color: var(--color-primary);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
}

.definitionCardSource {
  display: flex;
  justify-content: flex-end;
  padding: 2px 18px 10px;
}

.definitionCardSourceTag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f4fa;
  color: #6b7b96;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.englishMeaningPanel p {
  margin: 0;
  color: var(--color-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.guangyunPanel {
  margin-top: 10px;
  padding: 22px;
  border: 1px solid rgba(226, 232, 246, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 48px rgba(18, 45, 95, 0.06);
}

.guangyunPanel h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 16px;
  font-size: var(--mogher-font-size-xl);
}

.guangyunSubtitle {
  color: #52627f;
  font-size: var(--mogher-font-size-base);
  font-weight: 700;
}

.guangyunEntries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guangyunEntry {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 10px 16px;
  padding: 12px 0;
  border-top: 1px solid #e8edf7;
}

.guangyunEntry:first-child {
  border-top: 0;
  padding-top: 0;
}

.guangyunEntry:last-child {
  padding-bottom: 0;
}

.guangyunMain {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.guangyunHeader {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-width: 0;
}

.guangyunFanqie {
  font-family: "宋体", SimSun, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary);
}

.guangyunIndex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f0edff;
  color: #4e46df;
  font-size: 16px;
  font-weight: 800;
}

.guangyunMeta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.guangyunNotes {
  display: grid;
  gap: 8px;
}

.guangyunNote {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.guangyunNote span {
  display: inline-flex;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef3ff;
  color: #435cff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}

.guangyunOriginal span {
  background: #f4f1e8;
  color: #756137;
}

.guangyunNote p {
  margin: 0;
  color: #243451;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  white-space: pre-wrap;
}

.guangyunTag {
  font-size: 11px;
  padding: 1px 6px;
  background: rgba(138, 131, 39, 0.12);
  border-radius: 4px;
  color: #7a7120;
}

.guangyunRime,
.guangyunConsonne,
.guangyunPheng {
  font-size: 12px;
  color: #666;
}

.guangyunReadingLabel {
  flex: 0 0 auto;
  color: #617089;
  font-size: 13px;
  font-weight: 700;
}

.siteFooter {
  margin-top: 38px;
  padding: 20px 0 28px;
  color: rgba(255, 255, 255, 0.72);
}

.footerInner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 1080px) {
  .primaryNav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .featureGrid,
  .trustStrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resourceStrip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  html {
    scroll-behavior: smooth;
  }

  .siteHeader {
    width: calc(100% - 28px);
    gap: 16px;
  }

  .brand small,
  .headerActions .iconButton {
    display: none;
  }

  .hero,
  .featureGrid,
  .resourceStrip,
  .trustStrip,
  .contentPanel {
    width: calc(100% - 28px);
  }

  .hero {
    margin-top: 28px;
  }

  .heroCopy h1 {
    font-size: var(--mogher-font-size-hero-mobile);
  }

  .heroCopy p {
    font-size: var(--mogher-font-size-lg);
  }

  .searchFirstHome .siteFooter {
    color: #66718d;
  }

  .searchForm {
    grid-template-columns: 1fr 52px;
    min-height: 58px;
  }

  .searchForm input {
    font-size: 16px;
  }

  .featureGrid,
  .trustStrip {
    grid-template-columns: 1fr;
  }

  .contentPanel {
    padding: 26px 18px;
  }

  .scenicPage.inner:has(.characterPage) {
    color: #25305a;
    background: #eef1fa;
  }

  .scenicPage.inner:has(.characterPage) .siteHeader,
  .scenicPage.inner:has(.characterPage) .topSearch,
  .scenicPage.inner:has(.characterPage) .siteFooter,
  .characterPage > .breadcrumb {
    display: none;
  }

  .characterPage.contentPanel {
    width: 100%;
    margin: 0;
    padding: 0 0 28px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #f4f5fc 0%, #eef1fa 100%);
    box-shadow: none;
    overflow: visible;
  }

  .characterMobileNav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
    min-height: 76px;
    padding: max(12px, env(safe-area-inset-top)) 18px 8px;
    color: #fff;
    pointer-events: none;
  }

  .characterMobileBack {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    pointer-events: auto;
  }

  .characterMobileBack::before {
    content: "";
    width: 11px;
    height: 11px;
    margin-left: 4px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
  }

  .characterMobileTitle {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
  }

  .characterHero {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 92px 20px 18px;
    overflow: hidden;
    color: #fff;
    background:
      linear-gradient(180deg, rgba(41, 52, 120, 0.1), rgba(60, 70, 153, 0.28)),
      url("/assets/character-hero-bg.jpg") center top / cover no-repeat;
  }

  .characterHeroGlow {
    position: absolute;
    inset: 125px 0 auto;
    display: block;
    height: 210px;
    background:
      radial-gradient(ellipse at 76% 54%, rgba(17, 34, 79, 0.5), transparent 24%),
      linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(180, 173, 221, 0.34));
    opacity: 0.95;
    pointer-events: none;
  }

  .characterGlyphGroup {
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    min-height: 170px;
    gap: 0;
  }

  .bigCharacter {
    width: 148px;
    height: 148px;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    color: #fff;
    background:
      linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.35) calc(50% - 0.5px), rgba(255, 255, 255, 0.35) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
      linear-gradient(-45deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.35) calc(50% - 0.5px), rgba(255, 255, 255, 0.35) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
      linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.35) calc(50% - 0.5px), rgba(255, 255, 255, 0.35) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
      linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.35) calc(50% - 0.5px), rgba(255, 255, 255, 0.35) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
      rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 116px;
    text-shadow: 0 6px 15px rgba(29, 37, 90, 0.22);
  }

  .traditionalCharacter {
    position: relative;
    width: 80px;
    min-width: 80px;
    height: 80px;
    min-height: 80px;
    margin: 42px 48px 0 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    background:
      linear-gradient(45deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.28) calc(50% - 0.5px), rgba(255, 255, 255, 0.28) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
      linear-gradient(-45deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.28) calc(50% - 0.5px), rgba(255, 255, 255, 0.28) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
      linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.28) calc(50% - 0.5px), rgba(255, 255, 255, 0.28) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
      linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.28) calc(50% - 0.5px), rgba(255, 255, 255, 0.28) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
      rgba(255, 255, 255, 0.09);
    font-size: 58px;
  }

  .traditionalCharacter::after {
    content: "繁体";
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--mogher-font-family-sans);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
  }

  .characterSummary {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .characterHero .characterMeta,
  .characterHero .readingRowLabel,
  .characterHero .mandarinReading,
  .desktopAudioIcon {
    display: none;
  }

  .readingRows {
    min-width: 0;
    flex: 1;
    display: block;
    margin: 19px 0 0 10px;
  }

  .characterActions {
    flex: 0 0 auto;
    gap: 0;
    margin: 19px 10px 0 0;
  }

  .characterActions .characterShareButton {
    display: none;
  }

  .characterActions .characterCopyButton {
    display: grid;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 4px 10px rgba(30, 40, 102, 0.12);
    backdrop-filter: blur(9px);
  }

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

  .characterCopyButton .characterCopyIcon {
    width: 12px;
    height: 13px;
  }

  .characterCopyButton .characterCopySheet {
    width: 7.5px;
    height: 9px;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.96);
  }

  .characterCopyButton .characterCopySheet.front {
    background: rgba(111, 113, 202, 0.42);
  }

  .characterCopyButton.actionConfirmed .characterCopySheet {
    display: none;
  }

  .characterCopyButton.actionConfirmed .characterCopyIcon::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 10px;
    height: 6px;
    box-sizing: border-box;
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
  }

  .readingRow {
    display: block;
  }

  .readingRow:first-child {
    display: none;
  }

  .characterHero .readingChips {
    gap: 8px;
  }

  .characterHero .readingChip {
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    line-height: 28px;
  }

  .characterHero .readingChip small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
  }

  .characterTabBar {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 23px;
    height: 45px;
    padding: 0 12px;
    overflow-x: auto;
    background: rgba(65, 78, 159, 0.72);
    backdrop-filter: blur(11px);
  }

  .characterTabBar a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 45px;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .characterTabBar a.active {
    color: #fff;
    font-weight: 800;
  }

  .characterTabBar a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
    transform: translateX(-50%);
  }

  .glyphPanel,
  .definitionPanel,
  .englishMeaningPanel,
  .guangyunPanel {
    margin: 14px 14px 0;
    padding: 17px 16px;
    border: 1px solid rgba(100, 111, 180, 0.08);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 15px rgba(39, 48, 100, 0.08);
    scroll-margin-top: 56px;
  }

  .glyphPanel h2,
  .definitionSection h2,
  .guangyunPanel h2 {
    margin-bottom: 13px;
    color: #243568;
    font-size: 18px;
    font-weight: 800;
  }

  .definitionSection h2 span,
  .guangyunSubtitle {
    color: #818bae;
    font-size: 12px;
    font-weight: 700;
  }

  .glyphFacts {
    display: flex;
    gap: 10px 16px;
    margin: 0;
  }

  .characterMeta div {
    padding: 0;
    border-right: 0;
  }

  .glyphFacts div:last-child {
    flex-basis: 100%;
  }

  .characterMeta dt {
    color: #9aa3c2;
    font-size: 12px;
    font-weight: 500;
  }

  .characterMeta dd {
    color: #3a456d;
    font-size: 14px;
    font-weight: 600;
  }

  .readingRow {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guangyunPanel {
    padding: 17px 16px;
  }

  .guangyunPanel h2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .guangyunEntry {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 13px 0 15px;
  }

  .guangyunIndex {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #eef0fb;
    color: #6872aa;
    font-size: 12px;
  }

  .guangyunFanqie {
    font-size: 14px;
  }

  .guangyunMeta {
    grid-column: 2;
    justify-content: flex-start;
    padding-left: 0;
    border-left: 0;
  }

  .guangyunNote {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .guangyunNote span {
    justify-self: start;
  }

  .definitionCards {
    gap: 0;
  }

  .definitionCardHeader {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 13px 0 0;
  }

  .definitionCardHeader strong {
    color: #4a4fbd;
    font-size: 20px;
  }

  .definitionCardHeader > span {
    min-width: 0;
    color: #6f789d;
    font-size: 12px;
  }

  .definitionCardVariants {
    padding: 10px 0 6px;
  }

  .definitionRegionalVariants {
    padding: 9px;
    border: 1px solid rgba(111, 119, 201, 0.08);
    border-radius: 10px;
    background: #f6f7fd;
  }

  .regionalVariantChip {
    min-height: 24px;
    border-radius: 6px;
    background: #eceff8;
  }

  .definitionCard pre {
    padding: 8px 0 14px;
    color: #34416e;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.72;
  }

  .definitionCardSource {
    padding: 0 0 12px;
  }

  .wxTopicNav {
    padding: 8px 14px;
  }

  .wxTopicNavTitle {
    max-width: 38vw;
    font-size: 16px;
  }

  .wxTopicCountBadge {
    max-width: 34vw;
    padding: 6px 11px;
    font-size: 12px;
  }

  .wxTopicContent {
    padding: 0 0 34px;
  }

  .wxTopicWordHeader {
    padding: 18px 54px 14px;
  }

  .wxTopicColWord,
  .wxTopicWordText {
    width: 112px;
    flex-basis: 112px;
  }

  .wxTopicWordList {
    padding: 0 18px;
  }

  .wxTopicWordRow {
    padding: 13px 18px;
  }

  .wxTopicRowMain {
    gap: 12px;
  }

  .wxTopicWordText {
    font-size: 19px;
  }

  .wxTopicWordReading {
    font-size: 15px;
  }

  .docLayout,
  .resourceGrid,
  .resultItem,
  .wordResult {
    grid-template-columns: 1fr;
  }

  .docPanel .breadcrumb,
  .resourcePanel .breadcrumb,
  .docHero,
  .docLayout,
  .resourceGrid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .docHero h1 {
    font-size: 32px;
  }

  .tabbedPanel {
    padding: 0 14px 28px;
    border-radius: 18px;
  }

  .tabbedHero {
    min-height: 0;
    padding: 24px 0 26px;
  }

  .tabbedHero h1 {
    font-size: 28px;
  }

  .tabbedBody {
    padding: 0;
  }

  .tabbedBody .doc-tabs {
    gap: 6px;
    padding: 0 8px;
    overflow-x: auto;
  }

  .tabbedBody .doc-tabs li a {
    gap: 8px;
    min-height: 54px;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .tabbedTable {
    min-width: 820px;
  }

  .tabbedTable th,
  .tabbedTable td {
    height: 48px;
    padding: 9px 10px;
  }

  .docSidebar {
    position: static;
  }
}

.wxWordDetailPage,
.wxWordSearchPage {
  min-height: 100vh;
  background: #eef1f8;
  color: #101831;
  font-family: var(--mogher-font-family-sans);
}

.wxDetailNav,
.wxSearchNav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 22px;
  box-sizing: border-box;
}

.wxDetailNav {
  position: fixed;
  right: 0;
  left: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 26, 54, 0.5), rgba(20, 26, 54, 0));
}

.wxSearchNav {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(88, 98, 187, 0.96), rgba(102, 112, 200, 0.86)),
    #5b5fef;
  box-shadow: 0 6px 14px rgba(35, 45, 116, 0.12);
}

.wxSearchNav div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.wxSearchNav strong,
.wxDetailNav strong {
  max-width: 52vw;
  overflow: hidden;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxSearchNav span {
  max-width: 52vw;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxBackButton,
.wxNavSpacer {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.wxBackButton {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.wxBackButton span {
  width: 13px;
  height: 13px;
  margin-left: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg);
}

.wxWordHero {
  position: relative;
  min-height: 246px;
  overflow: hidden;
}

.wxWordHeroBg,
.wxWordHeroShade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wxWordHeroBg {
  object-fit: cover;
}

.wxWordHeroShade {
  background:
    linear-gradient(180deg, rgba(18, 24, 55, 0.34), rgba(18, 24, 55, 0.7)),
    linear-gradient(135deg, rgba(62, 80, 202, 0.48), rgba(14, 111, 117, 0.26));
}

.wxWordHeroContent {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 860px;
  margin: 0 auto;
  padding: 104px 28px 34px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 12px;
}

.wxWordHeroContent h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 8vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  word-break: break-word;
}

.wxReadingRow,
.wxMandarinRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wxReadingRow > span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.wxMandarinRow span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.wxMandarinRow strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.wxPlayButton {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.wxPlayButton span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #5b5fef;
}

.wxWordContent {
  position: relative;
  max-width: 860px;
  margin: -12px auto 0;
  padding: 0 16px 48px;
  box-sizing: border-box;
}

.wxSectionCard {
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(26, 35, 70, 0.06);
}

.wxCompactCard {
  padding: 14px 15px 12px;
}

.wxSectionTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.wxSectionTitleRow h2 {
  margin: 0;
  color: #101831;
  font-size: 17px;
  font-weight: 900;
}

.wxSectionTitleRow span {
  color: #52627f;
  font-size: 13px;
  font-weight: 700;
}

.wxDefinitionItem + .wxDefinitionItem {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #dde4f0;
}

.wxDefinitionItem span,
.wxSourceRow span,
.wxRegionChip span {
  display: block;
  color: #52627f;
  font-size: 13px;
  font-weight: 800;
}

.wxDefinitionItem p {
  margin: 5px 0 0;
  color: #14203f;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.wxWordImageList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wxWordImageFrame {
  width: 100%;
  min-height: 130px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.wxWordImageFrame img {
  display: block;
  width: 100%;
}

.wxRegionGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wxRegionChip {
  display: flex;
  min-height: 54px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #dde4f0;
  border-radius: 12px;
  background: #f5f7fc;
}

.wxRegionChip strong {
  color: #5b5fef;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  word-break: break-word;
}

.wxTopicChipRow {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.wxCharacterChip,
.wxTagChip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.wxCharacterChip {
  min-width: 30px;
  padding: 0 10px;
  color: #5b5fef;
  background: rgba(91, 124, 247, 0.12);
}

.wxTagChip {
  gap: 6px;
  padding: 0 10px;
  color: #12695c;
  background: #eef9f6;
}

.wxTagChip span {
  width: 6px;
  height: 6px;
  border-top: 2px solid rgba(18, 105, 92, 0.48);
  border-right: 2px solid rgba(18, 105, 92, 0.48);
  transform: rotate(45deg);
}

.wxTietienList {
  display: grid;
  gap: 10px;
}

.wxTietienItem {
  display: block;
  padding: 12px 0 0;
  border-top: 1px solid #dde4f0;
}

.wxTietienItem:first-child {
  padding-top: 0;
  border-top: 0;
}

.wxTietienHead {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.wxTietienHead strong {
  color: #101831;
  font-size: 17px;
  font-weight: 900;
}

.wxTietienHead span {
  color: #5b5fef;
  font-size: 14px;
  font-weight: 800;
}

.wxTietienItem p {
  margin: 6px 0 0;
  color: #52627f;
  font-size: 13px;
  font-weight: 600;
}

.wxSourceCard {
  background: #f9fafe;
}

.wxSourceRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}

.wxSourceRow strong {
  flex: 1;
  min-width: 0;
  color: #14203f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.wxSearchPill {
  display: grid;
  grid-template-columns: 1fr 58px;
  width: min(920px, calc(100% - 32px));
  min-height: 58px;
  margin: 20px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(26, 35, 70, 0.08);
}

.wxSearchPill input {
  min-width: 0;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: #101831;
  background: transparent;
  font-size: 18px;
}

.wxSearchPill button {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #6557f5;
}

.wxResultSummary,
.wxWordResultArea {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.wxResultSummary {
  padding: 34px 0 22px;
}

.wxResultSummary h1 {
  margin: 0 0 4px;
  color: #101831;
  font-size: 28px;
  font-weight: 900;
}

.wxResultSummary p {
  margin: 0;
  color: #52627f;
  font-size: 14px;
  font-weight: 600;
}

.wxQuerySummary {
  display: flex;
  min-height: 58px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 39, 68, 0.04);
}

.wxQuerySummary span,
.wxQuerySummary small {
  color: #52627f;
  font-weight: 700;
}

.wxQuerySummary strong {
  color: #101831;
  font-size: 20px;
  font-weight: 900;
}

.wxWordCardList {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.wxWordCardWrap,
.wxTopicWordWrap {
  position: relative;
}

.wxWordCardWrap .wxWordCard,
.wxTopicWordWrap .wxTopicWordRow {
  padding-right: 62px;
}

.wxCardAudio {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.wxWordCard {
  display: block;
  min-width: 0;
  padding: 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(26, 35, 70, 0.05);
}

.wxWordCardHead {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wxWordCardHead strong {
  max-width: 42%;
  overflow: hidden;
  color: #101831;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxWordCardHead span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #5b5fef;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wxWordCard p {
  margin: 8px 0 0;
  color: #52627f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.wxPager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  color: #7a879e;
  font-size: 14px;
  font-weight: 700;
}

.wxPager a {
  color: #5b5fef;
}

.wxStateWrap {
  min-height: 260px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
}

.wxEmptyMark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: #5b5fef;
  background: rgba(91, 124, 247, 0.12);
  font-size: 20px;
  font-weight: 900;
}

.wxStateWrap strong {
  color: #111a33;
  font-size: 17px;
  font-weight: 900;
}

.wxStateWrap span {
  color: #52627f;
  font-size: 14px;
  font-weight: 700;
}

.wxEmptyActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
}

.wxEmptyActions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid #d8def3;
  border-radius: 999px;
  color: #4f56db;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.wxReadingPage {
  min-height: 100vh;
  padding-bottom: 48px;
  color: #182033;
  background: #f6f8ff;
  font-family: var(--mogher-font-family-sans);
}

.readingModeSurface,
.readingQuerySummary,
.readingResultHeader,
.fuzzy-panel,
.readingResultList,
.result-state {
  width: min(920px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.readingModeSurface {
  padding: 30px 0 0;
}

.mode-tabs {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 39, 68, 0.04);
}

.mode-tab {
  display: flex;
  flex: 1;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.mode-tab.active {
  background: #5b5fef;
  box-shadow: 0 6px 16px rgba(90, 84, 243, 0.24);
}

.mode-tab-text {
  color: #7b8498;
  font-size: 15px;
  font-weight: 700;
}

.mode-tab.active .mode-tab-text {
  color: #fff;
}

.readingPanel {
  padding: 28px 0 0;
}

.section-header {
  margin-bottom: 15px;
}

.section-title {
  margin: 0;
  color: #182033;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.homophone-search-box {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 4px 4px 4px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 39, 68, 0.04);
}

.homophone-input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #182033;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
}

.homophone-search-btn {
  display: grid;
  min-width: 86px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #7b8498;
  background: #f6f8ff;
  cursor: pointer;
}

.homophone-search-btn.ready,
.homophone-search-btn:hover {
  color: #fff;
  background: #5b5fef;
}

.homophone-search-text {
  font-size: 15px;
  font-weight: 800;
}

.homophone-helper {
  display: block;
  min-height: 26px;
  margin: 10px 0 0;
  color: #7b8498;
  font-size: 14px;
  font-weight: 600;
}

.homophone-helper.visible {
  opacity: 1;
}

.reading-choice-section {
  margin-top: 26px;
}

.reading-choice-list {
  display: grid;
  gap: 14px;
}

.reading-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 2px solid rgba(91, 95, 239, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(91, 95, 239, 0.08), #fff 42%);
  box-shadow: 0 12px 28px rgba(90, 84, 243, 0.08);
}

.reading-choice-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #5b5fef;
}

.reading-choice-index-text {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.reading-choice-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.reading-choice-reading {
  color: #5b5fef;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.reading-choice-gloss {
  color: #52627f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.reading-play-btn,
.play-all-btn,
.fuzzy-icon-btn {
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.reading-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f6f8ff;
}

.reading-play-icon,
.play-all-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #5b5fef;
}

.tone-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tone-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  color: #182033;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(29, 39, 68, 0.035);
}

.tone-item:hover {
  color: #fff;
  background: #5b5fef;
}

.tone-label,
.tone-number {
  font-size: 14px;
  font-weight: 800;
}

.step-header {
  margin-bottom: 26px;
}

.step-tabs {
  display: flex;
  height: 50px;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 39, 68, 0.04);
}

.step-tab {
  display: flex;
  flex: 1;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.step-tab.active {
  background: #5b5fef;
  box-shadow: 0 6px 16px rgba(90, 84, 243, 0.28);
}

.step-tab-text {
  color: #7b8498;
  font-size: 15px;
  font-weight: 700;
}

.step-tab.active .step-tab-text {
  color: #fff;
}

.step-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 62px;
  margin-top: 16px;
  align-items: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 39, 68, 0.04);
}

.step-value {
  display: grid;
  min-width: 0;
  place-items: center;
}

.step-value-text {
  max-width: 100%;
  overflow: hidden;
  color: #182033;
  font-size: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.options-section {
  margin-bottom: 24px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.option-item {
  display: grid;
  min-height: 66px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.option-text {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 14px;
  color: #182033;
  background: #fff;
  box-shadow: 0 12px 26px rgba(29, 39, 68, 0.035);
}

.option-roman {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.option-hanzi {
  margin-top: 4px;
  color: #7b8498;
  font-size: 12px;
  font-weight: 700;
}

.option-item.selected .option-text,
.option-item:hover .option-text {
  color: #fff;
  background: #5b5fef;
  box-shadow: 0 10px 18px rgba(90, 84, 243, 0.26);
}

.option-item.selected .option-hanzi,
.option-item:hover .option-hanzi {
  color: rgba(255, 255, 255, 0.78);
}

.readingActionBar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(246, 248, 255, 0), #f6f8ff 24%);
}

.selected-summary {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 16px;
  background: #fff;
}

.summary-label {
  color: #7b8498;
  font-size: 15px;
  font-weight: 800;
}

.summary-value {
  min-width: 0;
  overflow: hidden;
  color: #5b5fef;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-btn {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #5b5fef;
  box-shadow: 0 8px 18px rgba(90, 84, 243, 0.24);
  cursor: pointer;
}

.action-btn.disabled {
  color: #a1a8b8;
  background: #fff;
  box-shadow: none;
  cursor: default;
}

.action-btn-text {
  font-size: 17px;
  font-weight: 900;
}

.query-summary {
  margin-top: 26px;
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 72px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 39, 68, 0.04);
}

.summary-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
}

.summary-item-label {
  color: #7b8498;
  font-size: 12px;
  font-weight: 700;
}

.summary-item-value {
  max-width: 100%;
  overflow: hidden;
  color: #182033;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item.edit {
  color: #5b5fef;
}

.summary-edit-text {
  color: #5b5fef;
  font-size: 14px;
  font-weight: 800;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  margin-bottom: 16px;
}

.result-title {
  margin: 0;
  color: #182033;
  font-size: 20px;
  font-weight: 900;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fuzzy-icon-btn,
.play-all-btn {
  width: 52px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(29, 39, 68, 0.06);
}

.fuzzy-icon-glyph {
  width: 23px;
  height: 23px;
  background: #7b8498;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 5h6'/%3E%3Cpath d='M14 5h6'/%3E%3Ccircle cx='12' cy='5' r='1.8'/%3E%3Cpath d='M4 12h10'/%3E%3Cpath d='M18 12h2'/%3E%3Ccircle cx='16' cy='12' r='1.8'/%3E%3Cpath d='M4 19h4'/%3E%3Cpath d='M12 19h8'/%3E%3Ccircle cx='10' cy='19' r='1.8'/%3E%3C/g%3E%3C/svg%3E") no-repeat 50% 50%;
  mask-size: contain;
}

.fuzzy-icon-btn.open .fuzzy-icon-glyph,
.fuzzy-icon-btn.has-active .fuzzy-icon-glyph {
  background: #5b5fef;
}

.fuzzy-panel {
  display: grid;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 39, 68, 0.04);
}

.fuzzy-panel[hidden] {
  display: none;
}

.fuzzy-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 70px;
  align-items: center;
  border-bottom: 1px solid rgba(161, 168, 184, 0.22);
}

.fuzzy-option:last-child {
  border-bottom: 0;
}

.fuzzy-switch {
  grid-column: 3;
  grid-row: 1;
  width: 18px;
  height: 18px;
  accent-color: #5b5fef;
}

.fuzzy-mark {
  display: grid;
  width: 28px;
  height: 28px;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  border-radius: 999px;
  background: #f6f8ff;
}

.fuzzy-mark-core {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #a1a8b8;
}

.fuzzy-option.primary.active .fuzzy-mark-core { background: #5b5fef; }
.fuzzy-option.warm.active .fuzzy-mark-core { background: #f5a623; }
.fuzzy-option.cool.active .fuzzy-mark-core { background: #44c7d8; }
.fuzzy-option.fresh.active .fuzzy-mark-core { background: #2db080; }

.fuzzy-copy {
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
}

.fuzzy-title {
  color: #182033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.fuzzy-subtitle {
  margin-top: 3px;
  color: #7b8498;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.result-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: #7b8498;
  font-size: 15px;
  font-weight: 700;
}

.readingResultList {
  display: grid;
  gap: 10px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(29, 39, 68, 0.035);
}

.result-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.result-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.result-char,
.result-word-text {
  max-width: 42%;
  overflow: hidden;
  color: #182033;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-reading,
.result-word-reading {
  min-width: 0;
  overflow: hidden;
  color: #5b5fef;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-def {
  color: #52627f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.result-arrow {
  width: 9px;
  height: 9px;
  border-top: 2px solid #a1a8b8;
  border-right: 2px solid #a1a8b8;
  transform: rotate(45deg);
}

@media (min-width: 721px) {
  .wxWordHeroContent,
  .wxWordContent,
  .wxResultSummary,
  .wxWordResultArea,
  .wxSearchPill {
    max-width: 920px;
  }
}

@media (max-width: 720px) {
  .wxDetailNav,
  .wxSearchNav {
    min-height: 56px;
    padding: 8px 14px;
  }

  .wxSearchPill {
    width: calc(100% - 32px);
    margin-top: 18px;
  }

  .wxResultSummary,
  .wxWordResultArea {
    width: calc(100% - 32px);
  }

  .wxWordHeroContent {
    padding: 92px 22px 29px;
  }

  .wxWordContent {
    padding-inline: 16px;
  }
}

.wxArticlePage {
  --article-shell-background: #eef1fa;
  --article-card-border: rgba(100, 111, 180, 0.08);
  --article-card-shadow: 0 5px 15px rgba(39, 48, 100, 0.08);
  --article-heading-color: #243568;
  --article-body-color: #3f4a72;
  --article-muted-color: #818bae;
  --article-table-surface: #ffffff;
  --article-table-cell-background: rgba(255, 255, 255, 0.92);
  --article-table-header-background: #f4f6ff;
  --article-table-border: rgba(129, 139, 174, 0.16);
  --article-table-header-text: #243568;
  min-height: 100vh;
  background: var(--article-shell-background);
  color: var(--article-body-color);
  font-family: var(--mogher-font-family-sans);
}

.wxArticleNav {
  position: sticky;
  top: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 64px;
  padding: 10px 28px;
  background:
    linear-gradient(180deg, rgba(52, 64, 143, 0.96), rgba(75, 88, 171, 0.84)),
    rgba(72, 82, 166, 0.9);
  box-shadow: 0 5px 13px rgba(35, 45, 116, 0.16);
  backdrop-filter: blur(12px);
}

.wxArticleMobileToc {
  position: sticky;
  top: 56px;
  z-index: 120;
  display: flex;
  height: 50px;
  padding: 0 10px;
  overflow-x: auto;
  background: linear-gradient(180deg, rgba(89, 99, 187, 0.96), rgba(91, 101, 186, 0.9));
  box-shadow: 0 5px 12px rgba(35, 45, 116, 0.12);
  scrollbar-width: none;
}

.wxArticleMobileToc::-webkit-scrollbar {
  display: none;
}

.wxArticleMobileToc[hidden] {
  display: none;
}

.wxArticleMobileTocLink {
  position: relative;
  display: grid;
  min-width: max-content;
  padding: 0 15px;
  place-items: center;
  color: rgba(255, 255, 255, 0.64);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.wxArticleMobileTocLink.active {
  color: #fff;
  font-weight: 800;
}

.wxArticleMobileTocLink.active::after {
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translateX(-50%);
}

.wxArticleNavSide {
  display: flex;
  flex: 0 0 90px;
  align-items: center;
}

.wxArticleNavCenter {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.wxArticleNavTitle {
  display: block;
  max-width: 360px;
  margin: 0 auto;
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 3px 8px rgba(22, 31, 86, 0.18);
  white-space: nowrap;
}

.wxArticleBack {
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.wxArticleBackArrow {
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
}

.wxArticleContent {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: min(100%, 820px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 24px 28px 56px;
  background: linear-gradient(180deg, #f4f5fc 0%, var(--article-shell-background) 100%);
}

.wxArticleCard {
  position: relative;
  box-sizing: border-box;
  padding: 17px 16px;
  border: 1px solid var(--article-card-border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--article-card-shadow);
}

.wxArticleMetaCard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.wxArticleEyebrow {
  color: #5b5fef;
  font-size: 13px;
  font-weight: 800;
}

.wxArticleDesktopTitle {
  display: none;
  margin: 0;
}

.wxArticleMetaCard p {
  margin: 0;
  color: var(--article-body-color);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.62;
}

.wxArticleSectionList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wxArticleBody.docBody,
.wxArticleBody {
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-x: auto;
}

.wxArticleBody h2,
.wxArticleBody h3,
.wxArticleBody h4 {
  margin: 0;
  color: var(--article-heading-color);
  font-weight: 800;
  letter-spacing: 0;
}

.wxArticleBody h2 {
  margin-top: 1px;
  font-size: 21px;
  line-height: 1.34;
}

.wxArticleBody h2:not(:first-child) {
  margin-top: 18px;
  padding-top: 30px;
  border-top: 1px solid rgba(129, 139, 174, 0.14);
}

.wxArticleBody h3 {
  margin-top: 1px;
  font-size: 18px;
  line-height: 1.42;
}

.wxArticleBody h4 {
  font-size: 16px;
  line-height: 1.4;
}

.wxArticleBody p,
.wxArticleBody li {
  margin: 0;
  color: var(--article-body-color);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.78;
  text-align: justify;
}

.wxArticleBody ul,
.wxArticleBody ol {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding-left: 24px;
}

.wxArticleBody li::marker {
  color: #5b5fef;
  font-weight: 800;
}

.wxArticleBody strong,
.wxArticleBody b {
  color: var(--article-heading-color);
  font-weight: 800;
}

.wxArticleBody em {
  font-style: italic;
}

.wxArticleBody code {
  margin: 0 2px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(91, 95, 239, 0.1);
  color: #5b5fef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wxArticleBody a,
.wxArticleBody article-link,
.wxArticleBody audio-chip {
  color: #5b5fef;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.docAudioChip {
  display: inline;
  margin: 0 1px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: #5b5fef;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

[data-audio-state="loading"] {
  cursor: progress;
  opacity: 0.65;
}

[data-audio-state="playing"] {
  box-shadow: 0 0 0 3px rgba(91, 95, 239, 0.3);
}

[data-audio-state="unavailable"] {
  border-color: #c84b5c !important;
  color: #a72f42 !important;
  box-shadow: 0 0 0 2px rgba(200, 75, 92, 0.18);
}

.wxArticleBody audio-chip {
  display: inline;
  margin: 0 1px;
  padding: 0 1px;
  cursor: default;
  text-decoration-style: dotted;
}

.wxArticleBody mark {
  background: transparent;
  color: #5b5fef;
  font-weight: 800;
}

.wxArticleBody table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--article-table-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  background: var(--article-table-surface);
  font-size: 13px;
}

.wxArticleBody th,
.wxArticleBody td {
  min-height: 36px;
  padding: 9px 8px;
  border-right: 1px solid var(--article-table-border);
  border-bottom: 1px solid var(--article-table-border);
  background: var(--article-table-cell-background);
  color: var(--article-body-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.36;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.wxArticleBody th {
  background: var(--article-table-header-background);
  color: var(--article-table-header-text);
  font-weight: 800;
}

.wxArticleBody tr:last-child td,
.wxArticleBody tr:last-child th {
  border-bottom: 0;
}

.wxArticleBody td:last-child,
.wxArticleBody th:last-child {
  border-right: 0;
}

.docStatGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.docStatItem {
  display: flex;
  min-height: 88px;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 12px;
  background: var(--article-table-header-background);
}

.docStatItem strong {
  font-size: 16px;
}

.docStatItem span {
  color: var(--article-muted-color);
  font-size: 13px;
  font-weight: 700;
}

.docFeatureGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.docFeatureItem {
  display: flex;
  min-height: 112px;
  padding: 18px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 8px;
  border-radius: 12px;
  background: var(--article-table-header-background);
}

.docFeatureItem strong {
  font-size: 16px;
}

.docFeatureItem span {
  color: var(--article-body-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.docNotice {
  padding: 18px 20px;
  border-left: 4px solid #5b5fef;
  border-radius: 4px 12px 12px 4px;
  background: rgba(91, 95, 239, 0.07);
}

.docNoticeRestricted {
  border-left-color: #bf7852;
  background: rgba(191, 120, 82, 0.08);
}

.docNotice > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.docSlug-guide .wxArticleBody,
.docSlug-copyright .wxArticleBody,
.docSlug-about .wxArticleBody {
  gap: 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.docAboutStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 20px 14px;
  border: 1px solid var(--article-card-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--article-card-shadow);
}

.docAboutStat {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.docAboutStat > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 12px;
  background: #f4f6ff;
}

.docAboutStat img {
  width: 25px;
  height: 25px;
}

.docAboutStat strong {
  color: var(--article-heading-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.docAboutStat small {
  margin-top: 3px;
  color: #a0a8c0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.docSlug-about .docArticleSection h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.docSlug-about .docArticleSection p {
  color: #3f4967;
  font-weight: 400;
}

.docSlug-about .docArticleSection h2::before {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: #eef0ff url("/assets/icons/about-doc.svg") center / 17px 17px no-repeat;
  content: "";
}

.docSlug-about .docArticleSection:last-child h2::before {
  background-image: url("/assets/icons/about-location.svg");
}

.docCultureCard {
  display: flex;
  min-height: 180px;
  padding: 28px 24px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(16, 42, 86, 0.74), rgba(91, 95, 239, 0.34)),
    url("/assets/homepage.png") center / cover no-repeat;
  box-shadow: var(--article-card-shadow);
}

.wxArticleBody .docCultureCard strong {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.docCultureCard span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
}

.docSlug-about_chao_dian .wxArticleMetaCard {
  display: none;
}

.docSlug-about_chao_dian .wxArticleBody {
  gap: 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.chaodianHero {
  display: flex;
  min-height: 220px;
  padding: 28px 24px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 42, 86, 0.96), rgba(28, 94, 121, 0.84));
  box-shadow: var(--article-card-shadow);
}

.chaodianHero > span {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.wxArticleBody .chaodianHero > strong {
  color: #fff;
  font-size: 30px;
  font-weight: 850;
  line-height: 1.12;
}

.wxArticleBody .chaodianHero > p {
  max-width: 68ch;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  line-height: 1.68;
}

.chaodianStats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chaodianStats > div {
  display: flex;
  min-height: 82px;
  padding: 16px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--article-card-shadow);
}

.wxArticleBody .chaodianStats strong {
  color: #5b5fef;
  font-size: 18px;
}

.chaodianStats span {
  color: var(--article-muted-color);
  font-size: 13px;
  font-weight: 600;
}

.chaodianSection {
  display: flex;
  padding: 22px 20px;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--article-card-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--article-card-shadow);
}

.wxArticleBody .chaodianSection h2,
.wxArticleBody .chaodianSection h3 {
  margin: 0;
  padding: 0;
  border: 0;
}

.wxArticleBody .chaodianSection h2 {
  font-size: 20px;
}

.wxArticleBody .chaodianSection h3 {
  font-size: 15px;
}

.wxArticleBody .chaodianSection > p {
  max-width: none;
  font-weight: 400;
  line-height: 1.75;
}

.chaodianTimeline {
  display: flex;
  flex-direction: column;
}

.chaodianTimeline > div {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
}

.chaodianTimeline > div:last-child {
  padding-bottom: 0;
}

.chaodianTimeline > div::after {
  position: absolute;
  top: 13px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: rgba(68, 199, 216, 0.28);
  content: "";
}

.chaodianTimeline > div:last-child::after {
  display: none;
}

.chaodianTimeline i {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #44c7d8;
  box-shadow: 0 0 0 4px rgba(68, 199, 216, 0.14);
}

.chaodianTimeline div > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.chaodianTimeline strong {
  font-size: 14px;
}

.chaodianTimeline small {
  color: var(--article-muted-color);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}

.chaodianPrinciples {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chaodianPrinciples > div {
  display: flex;
  padding: 14px 16px;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  background: #f4f6ff;
}

.chaodianPrinciples strong {
  font-size: 14px;
}

.chaodianPrinciples span {
  color: var(--article-muted-color);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.chaodianCredits {
  gap: 18px;
}

.chaodianCreditGroup {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chaodianCreditList {
  overflow: hidden;
  border-radius: 12px;
  background: #f4f6ff;
}

.chaodianCreditList > div {
  display: flex;
  padding: 13px 14px;
  flex-direction: column;
  gap: 5px;
}

.chaodianCreditList > div + div {
  border-top: 1px solid rgba(129, 139, 174, 0.14);
}

.chaodianCreditList div > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chaodianCreditList strong {
  flex-shrink: 0;
  font-size: 14px;
}

.chaodianCreditList small {
  color: #929ab3;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

.wxArticleBody .chaodianCreditList p {
  max-width: none;
  color: var(--article-muted-color);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.docArticleSection {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--article-card-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--article-card-shadow);
}

.docArticleSectionNumber {
  color: #5b5fef;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
}

.docExampleList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docExample {
  display: flex;
  min-height: 56px;
  padding: 12px 14px;
  box-sizing: border-box;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  background: #f4f6ff;
}

.wxArticleBody .docExample > b {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #7366ff, #574cff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.wxArticleBody .docExample > strong {
  flex: 0 0 auto;
  color: #5b5fef;
  font-size: 15px;
  font-weight: 800;
}

.docExample > span {
  min-width: 0;
  color: var(--article-muted-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.wxArticleBody .docArticleSection h2,
.wxArticleBody .docArticleSection h2:not(:first-child) {
  margin: 0;
  padding: 0;
  border: 0;
}

.docSlug-guide .docFeatureItem {
  min-height: 104px;
  background: #f4f6ff;
}

.docSlug-guide .docNotice {
  border: 1px solid rgba(111, 119, 201, 0.08);
  border-left: 4px solid #5b5fef;
  border-radius: 12px;
  background: #f4f6ff;
}

.docStepList {
  display: grid;
  gap: 10px;
}

.docStep {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--article-table-header-background);
}

.docStep > b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #5b5fef;
}

.docStep > span {
  color: var(--article-body-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.docStep > span > strong {
  display: block;
  margin-bottom: 2px;
}

.docSlug-change_log .wxArticleBody h3 {
  position: relative;
  margin-top: 8px;
  padding-left: 22px;
}

.docSlug-change_log .wxArticleBody h3::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #5b5fef;
  box-shadow: 0 0 0 5px rgba(91, 95, 239, 0.1);
}

.docSlug-change_log .wxArticleBody h3 + ul {
  margin-left: 6px;
  padding: 2px 0 22px 32px;
  border-left: 1px solid rgba(91, 95, 239, 0.2);
}

@media (max-width: 720px) {
  .docSlug-guide .wxArticleMetaCard {
    display: none;
  }

  .chaodianHero {
    min-height: 165px;
    padding: 21px 19px;
    border-radius: 14px;
  }

  .wxArticleBody .chaodianHero > strong {
    font-size: 24px;
  }

  .chaodianSection {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .wxArticleBody .chaodianSection h2 {
    scroll-margin-top: 70px;
    font-size: 18px;
  }

  .wxArticleContent,
  .wxArticleWorkspace,
  .wxArticleSectionList,
  .wxArticleBody,
  .docArticleSection {
    min-width: 0;
    max-width: 100%;
  }

  .wxArticleBody .docArticleSection h2 {
    scroll-margin-top: 118px;
    font-size: 18px;
  }

  .docArticleSectionNumber {
    font-size: 17px;
  }

  .docExample {
    min-height: 56px;
    padding: 12px;
  }

  .wxArticleBody,
  .docArticleSection {
    overflow-x: hidden;
  }

  .wxArticleBody p,
  .wxArticleBody li,
  .docFeatureItem span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .docStatGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docFeatureGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .docSlug-guide .wxArticleBody,
  .docSlug-copyright .wxArticleBody,
  .docSlug-about .wxArticleBody {
    padding: 0;
  }

  .docAboutStats {
    padding: 17px 8px;
    border-radius: 14px;
  }

  .docAboutStat > span {
    width: 40px;
    height: 40px;
  }

  .docAboutStat img {
    width: 22px;
    height: 22px;
  }

  .docAboutStat strong {
    font-size: 12px;
  }

  .docAboutStat small {
    font-size: 11px;
  }

  .docArticleSection {
    gap: 16px;
    padding: 22px 16px;
    border-radius: 13px;
  }

  .docSlug-guide .docFeatureItem {
    min-height: 104px;
    padding: 18px 16px;
    border-radius: 12px;
  }

  .wxArticleNav {
    min-height: 56px;
    padding: 8px 14px;
  }

  .wxArticleNavSide {
    flex-basis: 64px;
  }

  .wxArticleNavTitle {
    max-width: 220px;
    font-size: 17px;
  }

  .wxArticleContent {
    width: 100%;
    min-height: calc(100vh - 56px);
    padding: 18px 14px 42px;
  }

  .wxArticleCard {
    padding: 17px 16px;
    border-radius: 13px;
  }

  .wxArticleBody h2 {
    font-size: 21px;
  }
}

.friend-links-wrapper {
  text-align: center;
}

.friend-link-item {
  display: inline-block;
  text-align: center;
  width: 180px;
  vertical-align: top;
  margin: 10px 30px;
}

.friend-link-item img {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  object-fit: cover;
}

/* ============================================
   Dictionary Index Pages — Pinyin & Radicals
   ============================================ */

/* Page header block */
.pageHeader {
  margin-bottom: 28px;
}

.pageHeader.compact {
  margin-bottom: 16px;
}

.pageHeader h1 {
  font-size: var(--mogher-font-size-3xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px;
  line-height: 1.2;
}

.pageHeaderDesc {
  color: var(--color-secondary);
  font-size: var(--mogher-font-size-base);
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

/* Region hub cards */
.regionCardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.regionCard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  border-radius: var(--mogher-radius-lg);
  background: var(--mogher-color-background-surface-muted);
  border-left: 4px solid var(--region-accent, var(--mogher-color-brand-violet));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.regionCard:hover {
  transform: translateY(-2px);
  box-shadow: var(--mogher-shadow-surface);
  background: #fff;
}

.regionCardName {
  font-size: var(--mogher-font-size-2xl);
  font-weight: 700;
  color: var(--color-primary);
}

.regionCardDesc {
  font-size: var(--mogher-font-size-sm);
  color: var(--color-secondary);
}

.regionCardSlug {
  font-size: var(--mogher-font-size-xs);
  color: var(--color-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Region switcher tabs */
.regionSwitcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.regionTab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: var(--mogher-radius-pill);
  font-size: var(--mogher-font-size-sm);
  font-weight: 500;
  color: var(--color-secondary);
  background: var(--mogher-color-background-surface-muted);
  transition: background 120ms ease, color 120ms ease;
}

.regionTab:hover {
  background: #e8ecf5;
  color: var(--color-primary);
}

.regionTab.active {
  background: var(--color-action);
  color: #fff;
  font-weight: 600;
}

/* Alphabet sticky navigator */
.alphabetNav {
  position: sticky;
  top: 8px;
  z-index: 10;
  margin: 0 -24px 24px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.alphabetNavInner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--container-content);
  margin: 0 auto;
}

.alphabetNavItem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--mogher-radius-sm);
  font-size: var(--mogher-font-size-sm);
  font-weight: 600;
  color: var(--color-secondary);
  background: var(--mogher-color-background-surface-muted);
  transition: background 120ms ease, color 120ms ease;
}

.alphabetNavItem:hover {
  background: var(--color-action);
  color: #fff;
}

/* Pinyin initial group */
.pinyinInitialGroup {
  scroll-margin-top: 120px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.pinyinInitialGroup:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pinyinInitialHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.initialBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--mogher-radius-md);
  background: var(--mogher-color-brand-night);
  color: #fff;
  font-size: var(--mogher-font-size-xl);
  font-weight: 700;
}

/* Pinyin syllable grid */
.pinyinSyllableGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.pinyinSyllableTile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 68px;
  padding: 10px 8px;
  border-radius: var(--mogher-radius-md);
  background: var(--mogher-color-background-surface-muted);
  border: 1px solid transparent;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.pinyinSyllableTile:hover {
  border-color: var(--color-action);
  background: #fff;
  transform: translateY(-1px);
}

.pinyinSyllableTile strong {
  font-size: var(--mogher-font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
}

.pinyinSyllableTile .sampleChar {
  font-size: var(--mogher-font-size-sm);
  color: var(--color-secondary);
}

/* Pinyin detail hero */
.pinyinHero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  margin: 0 -24px 28px;
  background: linear-gradient(135deg, var(--mogher-color-brand-night), #0d2a5e);
  color: #fff;
}

.pinyinHeroMain {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pinyinHeroMain h1 {
  font-size: var(--mogher-font-size-hero);
  font-weight: 800;
  margin: 0;
  color: #fff;
  letter-spacing: 0.02em;
}

.pinyinAudioBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--mogher-radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: var(--mogher-font-size-sm);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: background 120ms ease;
  text-decoration: none;
  cursor: pointer;
}

.pinyinAudioBtn:hover {
  background: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

.pinyinAudioBtn.playing {
  background: rgba(238, 126, 145, 0.35);
  border-color: rgba(238, 126, 145, 0.6);
}

.pinyinMetaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pinyinMetaCard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--mogher-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pinyinMetaLabel {
  font-size: var(--mogher-font-size-xs);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pinyinMetaValue {
  font-size: var(--mogher-font-size-sm);
  font-weight: 600;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Section title */
.sectionTitle {
  font-size: var(--mogher-font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 16px;
}

/* Tone groups */
.toneGroups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toneGroup {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.toneGroup:last-child {
  border-bottom: 0;
}

.toneGroupHeader {
  margin: 0 0 12px;
  font-size: var(--mogher-font-size-lg);
}

.toneGroupHeader a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: var(--mogher-radius-sm);
  background: var(--mogher-color-background-surface-muted);
  color: var(--color-action);
  font-weight: 600;
  transition: background 120ms ease;
}

.toneGroupHeader a:hover {
  background: #e8ecf5;
}

/* Stroke navigation for radicals */
.strokeNav {
  position: sticky;
  top: 8px;
  z-index: 10;
  margin: 0 -24px 24px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.strokeNavInner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--container-content);
  margin: 0 auto;
}

.strokeNavItem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--mogher-radius-sm);
  font-size: var(--mogher-font-size-sm);
  font-weight: 500;
  color: var(--color-secondary);
  background: var(--mogher-color-background-surface-muted);
  transition: background 120ms ease, color 120ms ease;
}

.strokeNavItem:hover {
  background: var(--color-action);
  color: #fff;
}

.strokeNavItem.active {
  background: var(--color-action);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 95, 239, 0.18);
}

/* Stroke group */
.strokeGroup {
  scroll-margin-top: 100px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.strokeGroup:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.strokeGroupHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.strokeBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: var(--mogher-radius-sm);
  background: var(--mogher-color-brand-night);
  color: #fff;
  font-size: var(--mogher-font-size-sm);
  font-weight: 600;
}

/* Radical tiles */
.radicalTileGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.radicalTile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 76px;
  padding: 10px 8px;
  border-radius: var(--mogher-radius-md);
  background: var(--mogher-color-background-surface-muted);
  border: 1px solid transparent;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.radicalTile:hover {
  border-color: var(--color-action);
  background: #fff;
  transform: translateY(-1px);
}

.radicalTile strong {
  font-size: var(--mogher-font-size-2xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.radicalCount {
  font-size: var(--mogher-font-size-xs);
  color: var(--color-muted);
  font-weight: 500;
}

/* Radical character groups */
.radicalCharacterGroups {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Responsive adjustments for dictionary index pages */
@media (max-width: 720px) {
  .pageHeader h1 {
    font-size: var(--mogher-font-size-2xl);
  }

  .regionCardGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .regionCard {
    padding: 16px 14px;
  }

  .regionCardName {
    font-size: var(--mogher-font-size-xl);
  }

  .regionSwitcher {
    gap: 6px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .regionTab {
    min-height: 32px;
    padding: 0 12px;
    font-size: var(--mogher-font-size-xs);
  }

  .alphabetNav,
  .strokeNav {
    margin: 0 -18px 16px;
    padding: 8px 18px;
    top: 0;
  }

  .alphabetNavInner,
  .strokeNavInner {
    gap: 4px;
  }

  .alphabetNavItem {
    width: 30px;
    height: 30px;
    font-size: var(--mogher-font-size-xs);
  }

  .pinyinSyllableGrid {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
  }

  .pinyinSyllableTile {
    min-height: 60px;
    padding: 8px 6px;
  }

  .pinyinHero {
    margin: 0 -18px 20px;
    padding: 18px;
  }

  .pinyinHeroMain {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pinyinHeroMain h1 {
    font-size: var(--mogher-font-size-3xl);
  }

  .pinyinMetaRow {
    gap: 6px;
  }

  .pinyinMetaCard {
    padding: 5px 10px;
  }

  .radicalTileGrid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
  }

  .radicalTile {
    min-height: 64px;
    padding: 8px 6px;
  }

  .initialBadge {
    width: 36px;
    height: 36px;
    font-size: var(--mogher-font-size-lg);
  }
}

@media (max-width: 720px) {
  body {
    background: #f0f2f8;
  }

  .scenicPage {
    min-height: 100vh;
    padding-bottom: 28px;
    color: var(--color-primary);
    background: #f0f2f8;
  }

  .scenicPage > .siteHeader {
    position: absolute;
    top: 0;
    right: 14px;
    left: 14px;
    z-index: 5;
    width: auto;
    color: #fff;
  }

  .hero {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 128px 20px 170px;
    overflow: hidden;
    color: #fff;
  }

  .hero::before,
  .hero::after {
    position: absolute;
    inset: 0;
    content: "";
  }

  .hero::before {
    background: url("/assets/homepage.png") center top / cover no-repeat;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(80, 65, 195, 0.78) 0%,
      rgba(130, 115, 225, 0.52) 26%,
      rgba(185, 180, 240, 0.22) 46%,
      rgba(240, 242, 248, 0.18) 70%,
      #f0f2f8 100%
    );
  }

  .heroCopy {
    position: relative;
    z-index: 1;
  }

  .heroCopy h1 {
    max-width: 10em;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }

  .heroCopy p {
    max-width: 21em;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
  }

  .searchForm {
    display: grid;
    grid-template-columns: 1fr 52px;
    min-height: 54px;
    padding: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }

  .searchForm input {
    padding-left: 18px;
    font-size: 16px;
  }

  .searchForm button {
    width: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b5fef, #7a5cff);
  }

  .hotSearches {
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
  }

  .hotSearches a {
    padding: 4px 9px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
  }

  .featureGrid {
    position: relative;
    z-index: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: calc(100% - 32px);
    margin: -118px auto 18px;
  }

  .featureCard {
    min-height: 128px;
    padding: 16px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(29, 39, 68, 0.06);
  }

  .featureCard::after {
    position: absolute;
    right: -22px;
    bottom: -24px;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: rgba(91, 95, 239, 0.09);
    content: "";
  }

  .featureCard.cyan::after { background: rgba(60, 201, 168, 0.12); }
  .featureCard.amber::after { background: rgba(255, 138, 43, 0.13); }
  .featureCard.rose::after { background: rgba(240, 101, 124, 0.12); }
  .featureCard.blue::after { background: rgba(91, 124, 247, 0.11); }

  .featureIcon {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    color: #fff;
    border-radius: 12px;
  }

  .featureCard strong {
    color: var(--color-primary);
    font-size: 16px;
  }

  .featureCard p {
    color: var(--color-secondary);
    font-size: 12px;
    line-height: 1.45;
  }

  .cardArrow,
  .resourceStrip,
  .trustStrip {
    display: none;
  }

  .scenicPage.inner {
    padding-top: 0;
    color: var(--color-primary);
    background: #f0f2f8;
  }

  .scenicPage.inner > .siteHeader {
    display: none;
  }

  .topSearch {
    padding: 18px 0 14px;
  }

  .searchForm.compact {
    width: calc(100% - 32px);
    border-radius: 999px;
  }

  .contentPanel,
  .wxMobilePanel {
    width: calc(100% - 32px);
    margin-bottom: 24px;
    padding: 20px 16px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
  }

  .contentPanel h1 {
    font-size: 24px;
  }

  .breadcrumb {
    display: none;
  }

  .querySummary {
    min-height: 58px;
    margin: 0 0 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(29, 39, 68, 0.04);
  }

  .resultList {
    gap: 10px;
  }

  .mobileResultItem,
  .resultItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(29, 39, 68, 0.035);
  }

  .resultItem strong,
  .wordResult strong {
    color: var(--color-primary);
    font-size: 20px;
  }

  .resultItem span {
    color: var(--color-action);
    font-size: 14px;
    font-weight: 600;
  }

  .resultItem small {
    display: block;
    max-width: 100%;
    color: var(--color-secondary);
    font-size: 13px;
  }

  .strokeNav.quickStrokeNav {
    position: static;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .strokeNavInner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .strokeNavItem {
    flex: 0 0 auto;
    min-width: 38px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(29, 39, 68, 0.04);
  }

  .quickNav {
    position: fixed;
    top: 50%;
    right: -6px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 7px;
    border-radius: 14px 0 0 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
  }

.quickNavItem {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    color: var(--color-secondary);
    font-size: 11px;
    font-weight: 600;
  }

  .quickNavItem.active {
    color: #fff;
    background: var(--color-action);
    box-shadow: 0 2px 8px rgba(91, 95, 239, 0.24);
  }

  .strokeGroup {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .strokeGroupHeader {
    margin-bottom: 10px;
  }

  .strokeGroupHeader h2 {
    margin: 0;
  }

  .groupCount {
    color: var(--color-secondary);
    font-size: 13px;
  }

  .radicalTileGrid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    padding-right: 28px;
  }

  .radicalTile {
    min-height: 72px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .radicalTile strong {
    font-size: 22px;
  }

  .tileGrid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
    padding-right: 28px;
  }

  .miniTile {
    min-height: 72px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
}

/* Desktop refinement layer: keep the mobile app language, but restore wide-screen structure. */
.wxDesktopShellNav,
.wxDesktopShellFooter {
  display: none;
}

@media (min-width: 721px) {
  .wxDesktopShellNav,
  .wxDesktopShellFooter {
    display: block;
  }

  .wxDesktopShellNav {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 14px 0 8px;
    background: transparent;
  }

  .wxDesktopShellNav .siteHeader {
    position: static;
    top: auto;
    width: min(var(--container-wide), calc(100% - 64px));
    height: 68px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(7, 26, 61, 0.22);
    box-shadow: 0 18px 50px rgba(2, 8, 23, 0.16);
    backdrop-filter: blur(18px);
  }

  .wxDesktopShellNav .brand {
    color: #fff;
  }

  .wxDesktopShellNav .brandMark {
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.92);
    background: transparent;
  }

  .wxDesktopShellNav .brand small {
    color: var(--color-inverse-muted);
  }

  .wxDesktopShellNav .primaryNav a,
  .wxDesktopShellNav .navTrigger {
    color: rgba(255, 255, 255, 0.9);
  }

  .wxDesktopShellNav .navLink {
    color: #fff;
  }

  .wxDesktopShellNav .navLink.active::after,
  .wxDesktopShellNav .navTrigger.active::after {
    background: rgba(255, 255, 255, 0.92);
  }

  .wxDesktopShellNav .iconButton,
  .wxDesktopShellNav .languageButton {
    color: #fff;
  }

  .wxDesktopShellNav .navMenu,
  .wxDesktopShellNav .languageMenu {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(248, 250, 255, 0.96);
    box-shadow: 0 24px 70px rgba(8, 20, 50, 0.24);
  }

  .wxDesktopShellFooter .siteFooter {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.72);
  }

  .wxDesktopShellFooter .footerInner {
    width: min(var(--container-wide), calc(100% - 64px));
  }

  .wxWordDetailPage .wxDetailNav,
  .wxWordSearchPage .wxSearchNav,
  .wxReadingPage .wxSearchNav,
  .wxTopicDetailPage .wxTopicNav,
  .wxArticlePage .wxArticleNav {
    display: none;
  }

  .wxWordDetailPage,
  .wxWordSearchPage,
  .wxTopicDetailPage,
  .wxReadingPage,
  .wxArticlePage {
    min-height: 100vh;
    background:
      linear-gradient(180deg, rgba(7, 26, 61, 0.18), rgba(7, 26, 61, 0.9)),
      url("/assets/homepage.png") center top / cover fixed no-repeat,
      var(--color-page);
  }

  .wxWordHero {
    width: min(1180px, calc(100% - 64px));
    min-height: 330px;
    margin: 20px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(23, 36, 70, 0.16);
  }

  .wxWordHeroContent {
    max-width: none;
    min-height: 330px;
    justify-content: flex-end;
    padding: 64px clamp(42px, 6vw, 76px) 48px;
  }

  .wxWordHeroContent h1 {
    max-width: 12em;
    font-size: clamp(48px, 5vw, 72px);
  }

  .wxReadingRow > span {
    font-size: 24px;
  }

  .wxMandarinRow strong {
    font-size: 26px;
  }

  .wxWordContent {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
    gap: 18px;
    max-width: none;
    width: min(1180px, calc(100% - 64px));
    margin-top: 20px;
    padding: 0 0 28px;
  }

  .wxSectionCard {
    min-width: 0;
    margin-bottom: 0;
    padding: 22px;
    border: 1px solid rgba(214, 224, 241, 0.86);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(30, 45, 78, 0.08);
  }

  .wxImageSection {
    grid-column: 1 / -1;
  }

  .wxWordImageList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .wxRegionGrid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .wxDefinitionItem p {
    font-size: 17px;
  }

  .wxWordSearchPage .wxSearchPill,
  .wxResultSummary,
  .wxWordResultArea {
    width: min(1040px, calc(100% - 64px));
    max-width: none;
  }

  .wxWordSearchPage .wxSearchPill {
    min-height: 64px;
    margin-top: 30px;
    border: 1px solid rgba(214, 224, 241, 0.86);
    border-radius: 18px;
  }

  .wxResultSummary {
    padding: 34px 0 20px;
  }

  .wxResultSummary h1 {
    font-size: 34px;
  }

  .wxWordCard {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid rgba(214, 224, 241, 0.86);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(30, 45, 78, 0.055);
  }

  .wxWordCardHead strong {
    max-width: 50%;
  }

  .wxWordCard p {
    margin: 0;
    font-size: 15px;
  }

  .wxTopicContent {
    max-width: none;
    width: min(1120px, calc(100% - 64px));
    padding: 30px 0 34px;
  }

  .wxTopicWordHeader,
  .wxTopicWordRow {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(220px, 0.8fr);
    gap: 24px;
    align-items: center;
  }

  .wxTopicWordHeader {
    padding: 12px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.54);
  }

  .wxTopicWordHeader span {
    color: #617089;
  }

  .wxTopicColWord,
  .wxTopicWordText {
    width: auto;
    flex-basis: auto;
  }

  .wxTopicColMandarin {
    display: inline;
  }

  .wxTopicWordList {
    padding: 12px 0 0;
  }

  .wxTopicWordRow {
    min-height: 74px;
    padding: 16px 24px;
    border: 1px solid rgba(214, 224, 241, 0.82);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(30, 45, 78, 0.055);
  }

  .wxTopicRowMain {
    display: contents;
  }

  .wxTopicMandarin {
    margin-top: 0;
    font-size: 15px;
  }

  .wxTopicStateWrap {
    width: min(900px, calc(100% - 64px));
    min-height: 420px;
    margin: 30px auto;
    border: 1px solid rgba(214, 224, 241, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
  }

  .readingModeSurface,
  .readingQuerySummary,
  .readingResultHeader,
  .fuzzy-panel,
  .readingResultList,
  .result-state {
    width: min(1040px, calc(100% - 64px));
    max-width: none;
  }

  .readingModeSurface {
    padding-top: 32px;
  }

  .readingPanel {
    margin-top: 18px;
    padding: 28px;
    border: 1px solid rgba(214, 224, 241, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 46px rgba(30, 45, 78, 0.07);
  }

  .mode-tabs,
  .step-tabs,
  .step-values,
  .homophone-search-box,
  .selected-summary,
  .summary-row,
  .fuzzy-panel,
  .result-item {
    border: 1px solid rgba(214, 224, 241, 0.78);
    box-shadow: 0 10px 28px rgba(30, 45, 78, 0.055);
  }

  .options-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tone-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .readingActionBar {
    position: static;
    margin-top: 20px;
    padding: 0;
    background: transparent;
  }

  .readingQuerySummary {
    margin-top: 32px;
  }

  .result-header {
    margin-top: 28px;
  }

  .fuzzy-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    padding: 8px 18px;
  }

  .fuzzy-option:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .readingResultList {
    gap: 12px;
  }

  .result-item {
    min-height: 76px;
    border-radius: 16px;
  }

  .wxArticleContent {
    width: min(1120px, calc(100% - 64px));
    min-height: auto;
    margin-top: 22px;
    padding: 34px 38px 48px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(2, 8, 23, 0.18);
  }

  .wxArticleMetaCard {
    padding: 0 0 22px;
    border: 0;
    border-bottom: 1px solid rgba(129, 139, 174, 0.16);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .wxArticleMetaCard p {
    max-width: 820px;
    font-size: 16px;
  }

  .wxArticleBody.docBody,
  .wxArticleBody {
    gap: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .wxArticleBody h2 {
    font-size: 26px;
  }

  .wxArticleBody p,
  .wxArticleBody li {
    max-width: 78ch;
    font-size: 16px;
    text-align: left;
  }
}

@media (min-width: 1081px) {
  .scenicPage {
    padding-bottom: 36px;
    background:
      linear-gradient(180deg, rgba(7, 26, 61, 0.18), rgba(7, 26, 61, 0.9)),
      url("/assets/homepage.png") center top / cover fixed no-repeat,
      var(--color-page);
  }

  .scenicPage.inner {
    background:
      linear-gradient(180deg, rgba(7, 26, 61, 0.16), rgba(7, 26, 61, 0.82)),
      url("/assets/homepage.png") center top / cover fixed no-repeat,
      var(--color-page);
  }

  .siteHeader {
    position: sticky;
    top: 12px;
    z-index: 50;
    height: 68px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(7, 26, 61, 0.22);
    box-shadow: 0 18px 50px rgba(2, 8, 23, 0.16);
    backdrop-filter: blur(18px);
  }

  .scenicPage.inner > .siteHeader {
    margin-bottom: 22px;
  }

  .scenicPage.inner .topSearch {
    padding-top: 10px;
  }

  .contentPanel {
    padding: 38px 42px 44px;
    border-radius: 22px;
  }

  .contentPanel h1,
  .pageHeader h1 {
    font-size: clamp(32px, 3vw, 44px);
    text-wrap: balance;
  }

  .resultItem {
    min-height: 76px;
    border-radius: 14px;
    transition: transform var(--mogher-motion-duration-fast) cubic-bezier(var(--mogher-motion-easing-standard)),
      box-shadow var(--mogher-motion-duration-fast) cubic-bezier(var(--mogher-motion-easing-standard)),
      border-color var(--mogher-motion-duration-fast) cubic-bezier(var(--mogher-motion-easing-standard));
  }

  .resultItem:hover,
  .miniTile:hover,
  .radicalTile:hover,
  .pinyinSyllableTile:hover,
  .regionCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(30, 45, 78, 0.1);
  }

  .wordResult {
    grid-template-columns: minmax(130px, 0.65fr) minmax(160px, 0.75fr) minmax(0, 2fr);
  }

  .tileGrid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  }

  .miniTile {
    min-height: 104px;
    border-radius: 14px;
    transition: transform var(--mogher-motion-duration-fast) cubic-bezier(var(--mogher-motion-easing-standard)),
      box-shadow var(--mogher-motion-duration-fast) cubic-bezier(var(--mogher-motion-easing-standard));
  }

  .regionCardGrid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .regionCard {
    position: relative;
    overflow: hidden;
    min-height: 144px;
    border: 1px solid rgba(214, 224, 241, 0.9);
    border-left: 1px solid rgba(214, 224, 241, 0.9);
    background: #fff;
    box-shadow: 0 10px 26px rgba(30, 45, 78, 0.055);
  }

  .regionCard::before {
    display: block;
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: var(--region-accent, var(--color-action));
    content: "";
  }

  .alphabetNav,
  .strokeNav {
    top: 92px;
    border-radius: 14px;
    border: 1px solid rgba(214, 224, 241, 0.8);
  }

  .pinyinSyllableGrid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  }

  .radicalTileGrid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  .pinyinHero {
    margin-right: 0;
    margin-left: 0;
    border-radius: 20px;
  }

  .docLayout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .docBody,
  .prose,
  .wxArticleBody {
    text-wrap: pretty;
  }
}
