:root {
  --bg: #f4f7fa;
  --bg-soft: #ffffff;
  --paper: rgba(255, 255, 255, 0.92);
  --card: rgba(255, 255, 255, 0.98);
  --line: rgba(74, 83, 95, 0.12);
  --text: #27221d;
  --muted: #6d6258;
  --accent: #9d4022;
  --accent-2: #cf6b2c;
  --accent-deep: #5d2b17;
  --surface-soft: rgba(247, 248, 250, 0.94);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-border: rgba(74, 83, 95, 0.12);
  --shadow: 0 18px 48px rgba(31, 35, 42, 0.07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1240px;
}

html.theme-dark {
  --bg: #171411;
  --bg-soft: #1d1915;
  --paper: rgba(35, 28, 22, 0.88);
  --card: rgba(31, 26, 21, 0.96);
  --line: rgba(255, 222, 187, 0.12);
  --text: #f3eadf;
  --muted: #c6b6a2;
  --accent: #df8e4e;
  --accent-2: #c4572f;
  --accent-deep: #ffe4c1;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html.theme-dark {
  --surface-soft: rgba(56, 45, 36, 0.9);
  --surface-strong: rgba(73, 58, 45, 0.95);
  --surface-border: rgba(255, 228, 193, 0.14);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #171411;
    --bg-soft: #1d1915;
    --paper: rgba(35, 28, 22, 0.88);
    --card: rgba(31, 26, 21, 0.96);
    --line: rgba(255, 222, 187, 0.12);
    --text: #f3eadf;
    --muted: #c6b6a2;
    --accent: #df8e4e;
    --accent-2: #c4572f;
    --accent-deep: #ffe4c1;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --surface-soft: rgba(56, 45, 36, 0.9);
    --surface-strong: rgba(73, 58, 45, 0.95);
    --surface-border: rgba(255, 228, 193, 0.14);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 56%, #eef2f6 100%);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html.theme-dark body,
html[data-theme="auto"].theme-dark body {
  background:
    radial-gradient(circle at top left, rgba(196, 87, 47, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(223, 142, 78, 0.14), transparent 24%),
    linear-gradient(180deg, #191612 0%, #15120f 45%, #120f0d 100%);
}

body.modal-open {
  overflow: hidden;
}

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

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

textarea,
input,
select,
button {
  font: inherit;
}

.top-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 950;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.member-menu {
  position: relative;
}

.member-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  box-shadow: 0 12px 26px rgba(31, 35, 42, 0.1);
  border: 1px solid var(--line);
}

.member-link-ghost {
  background: rgba(255, 255, 255, 0.94);
}

.member-link-login {
  font-weight: 700;
}

.member-link-label {
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-menu-toggle {
  font-weight: 700;
}

.member-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 176px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(31, 35, 42, 0.12);
}

.member-menu-user {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
  word-break: break-all;
}

.member-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 400;
}

.member-menu-item:hover {
  background: rgba(217, 123, 45, 0.12);
}

.member-menu-form {
  margin: 0;
}

.member-menu-item-button {
  border: none;
  background: transparent;
  text-align: left;
  justify-content: flex-start;
  box-shadow: none;
  color: var(--text);
  font-weight: 400;
}

.top-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(31, 35, 42, 0.1);
}

html.theme-dark .top-icon-btn,
html[data-theme="auto"].theme-dark .top-icon-btn {
  background: rgba(52, 41, 32, 0.94) !important;
  color: #f0d2aa;
  border: 1px solid rgba(255, 228, 193, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark .member-link,
html[data-theme="auto"].theme-dark .member-link {
  background: rgba(52, 41, 32, 0.94);
  color: #f0d2aa;
  border: 1px solid rgba(255, 228, 193, 0.14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

html.theme-dark .member-menu-panel,
html[data-theme="auto"].theme-dark .member-menu-panel {
  background: rgba(29, 24, 20, 0.98);
  border-color: var(--surface-border);
}

html.theme-dark .member-menu-user,
html[data-theme="auto"].theme-dark .member-menu-user {
  border-bottom-color: rgba(255, 228, 193, 0.12);
}

html.theme-dark .member-menu-item,
html[data-theme="auto"].theme-dark .member-menu-item {
  color: var(--text);
}

html.theme-dark .member-menu-item:hover,
html[data-theme="auto"].theme-dark .member-menu-item:hover {
  background: rgba(223, 142, 78, 0.18);
}

.icon-svg,
.theme-menu-svg,
.notice-tab-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-menu {
  position: relative;
}

.theme-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 244px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(31, 35, 42, 0.12);
}

html.theme-dark .theme-menu-panel,
html[data-theme="auto"].theme-dark .theme-menu-panel {
  background: rgba(29, 24, 20, 0.98);
  border-color: var(--surface-border);
}

.theme-menu-item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  justify-content: start;
  padding: 12px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.theme-menu-item:hover,
.theme-menu-item-active {
  background: rgba(217, 123, 45, 0.12);
}

html.theme-dark .theme-menu-item,
html[data-theme="auto"].theme-dark .theme-menu-item {
  color: var(--text);
}

html.theme-dark .theme-menu-item:hover,
html.theme-dark .theme-menu-item-active,
html[data-theme="auto"].theme-dark .theme-menu-item:hover,
html[data-theme="auto"].theme-dark .theme-menu-item-active {
  background: rgba(223, 142, 78, 0.18);
}

.theme-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
}

.theme-menu-copy {
  display: grid;
  gap: 2px;
}

.theme-menu-copy strong {
  font-size: 1rem;
}

.theme-menu-copy small {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 28px 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.site-footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer-police img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}

.brand strong,
.hero h1,
.results-head h2 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
}

.brand-logo {
  display: block;
  width: 68px;
  max-width: 100%;
  height: auto;
}

.brand-tagline {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.article-head-row {
  display: block;
}

.article-head-row h3 {
  margin: 0;
}

.favorite-btn {
  flex: 0 0 auto;
  min-width: 82px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(157, 64, 34, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  box-shadow: none;
}

.favorite-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn-active {
  background: rgba(157, 64, 34, 0.12);
  color: var(--accent-deep);
}

html.theme-dark .favorite-btn,
html[data-theme="auto"].theme-dark .favorite-btn {
  background: rgba(56, 45, 36, 0.9);
  border-color: rgba(255, 228, 193, 0.16);
  color: #f0d2aa;
}

html.theme-dark .favorite-btn-active,
html[data-theme="auto"].theme-dark .favorite-btn-active {
  background: linear-gradient(135deg, rgba(223, 142, 78, 0.2), rgba(196, 87, 47, 0.26));
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.flash-message {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(31, 35, 42, 0.08);
}

.flash-success {
  border-color: rgba(62, 111, 79, 0.3);
}

.flash-error {
  border-color: rgba(157, 64, 34, 0.32);
}

.ghost-btn,
.primary-link {
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ghost-btn:hover,
.primary-link:hover,
.pill:hover,
.article-card:hover,
.notice-close:hover,
.notice-tab:hover,
.top-icon-btn:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(157, 64, 34, 0.16);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 245, 0.9));
  box-shadow: var(--shadow);
}

.hero.hero-search-only {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.search-panel,
.article-card,
.account-panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(31, 35, 42, 0.06);
}

.search-panel {
  padding: 20px;
  border-radius: 26px;
  backdrop-filter: blur(16px);
}

.compact-search-panel {
  padding: 18px;
}

.hero-search-only .compact-search-panel {
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.search-form {
  display: grid;
  gap: 12px;
}

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

.compact-search-form {
  gap: 10px;
}

.field-label {
  font-size: 0.95rem;
  color: var(--muted);
}

.search-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.search-input-shell {
  display: flex;
  position: relative;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.search-select-wrap {
  position: relative;
  flex: 0 0 132px;
  border-right: 1px solid var(--surface-border);
  background: var(--surface-soft);
}

.search-field-select {
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 30px 0 14px;
  font-weight: 700;
  color: var(--accent-deep);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search-select-wrap::after {
  content: "▼";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--muted);
  pointer-events: none;
}

.search-keyword-wrap {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: stretch;
}

.search-input-shell input[type="search"] {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 12px 40px 12px 14px;
}

.search-keyword-wrap input[type="search"]::-webkit-search-cancel-button,
.search-keyword-wrap input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear-inline {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(157, 64, 34, 0.14);
  background: rgba(157, 64, 34, 0.08);
  color: var(--accent-deep);
  box-shadow: none;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.search-clear-inline:hover {
  background: rgba(157, 64, 34, 0.14);
  transform: translateY(-50%);
}

.search-input-shell:focus-within {
  border-color: rgba(157, 64, 34, 0.5);
  box-shadow: 0 0 0 5px rgba(157, 64, 34, 0.08);
}

.search-action-group {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

.search-submit {
  min-width: 86px;
  padding: 12px 16px;
  border-radius: 15px;
}

.inline-reset {
  min-width: 88px;
}

input[type="search"],
input[type="email"],
input[type="number"],
input[type="text"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 15px 16px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

html.theme-dark input[type="search"],
html.theme-dark input[type="email"],
html.theme-dark input[type="number"],
html.theme-dark input[type="text"],
html.theme-dark input[type="url"],
html.theme-dark input[type="password"],
html.theme-dark select,
html.theme-dark textarea,
html[data-theme="auto"].theme-dark input[type="search"],
html[data-theme="auto"].theme-dark input[type="email"],
html[data-theme="auto"].theme-dark input[type="number"],
html[data-theme="auto"].theme-dark input[type="text"],
html[data-theme="auto"].theme-dark input[type="url"],
html[data-theme="auto"].theme-dark input[type="password"],
html[data-theme="auto"].theme-dark select,
html[data-theme="auto"].theme-dark textarea {
  background: var(--surface-soft);
  color: var(--text);
  border-color: var(--surface-border);
}

html.theme-dark .search-input-shell,
html[data-theme="auto"].theme-dark .search-input-shell {
  background: var(--surface-soft);
  border-color: var(--surface-border);
}

html.theme-dark .search-select-wrap,
html[data-theme="auto"].theme-dark .search-select-wrap {
  background: rgba(73, 58, 45, 0.74);
  border-right-color: rgba(255, 228, 193, 0.1);
}

html.theme-dark .search-field-select,
html[data-theme="auto"].theme-dark .search-field-select {
  color: #ffe4c1;
}

html.theme-dark .search-clear-inline,
html[data-theme="auto"].theme-dark .search-clear-inline {
  background: rgba(223, 142, 78, 0.14);
  border-color: rgba(255, 228, 193, 0.16);
  color: #ffe4c1;
}

html.theme-dark .search-clear-inline:hover,
html[data-theme="auto"].theme-dark .search-clear-inline:hover {
  background: rgba(223, 142, 78, 0.22);
}

html.theme-dark .account-combobox-toggle,
html[data-theme="auto"].theme-dark .account-combobox-toggle,
html.theme-dark .account-combobox-panel,
html[data-theme="auto"].theme-dark .account-combobox-panel {
  color: var(--text);
  border-color: var(--surface-border);
}

html.theme-dark .account-combobox-toggle,
html[data-theme="auto"].theme-dark .account-combobox-toggle {
  background: var(--surface-soft);
}

html.theme-dark .account-combobox-panel,
html[data-theme="auto"].theme-dark .account-combobox-panel {
  background: rgba(37, 31, 26, 0.98);
}

html.theme-dark .account-option,
html[data-theme="auto"].theme-dark .account-option {
  color: var(--text);
}

html.theme-dark .account-option:hover,
html.theme-dark .account-option-active,
html[data-theme="auto"].theme-dark .account-option:hover,
html[data-theme="auto"].theme-dark .account-option-active {
  background: rgba(223, 142, 78, 0.18);
  color: #fff3df;
}

textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.75;
}

input[type="search"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(157, 64, 34, 0.5);
  box-shadow: 0 0 0 5px rgba(157, 64, 34, 0.08);
}

button,
.primary-link {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fffaf4;
  padding: 14px 18px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(157, 64, 34, 0.18);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  cursor: pointer;
}

html.theme-dark .ghost-btn,
html[data-theme="auto"].theme-dark .ghost-btn {
  background: var(--surface-soft);
  color: var(--accent-deep);
  border-color: var(--surface-border);
}

.ghost-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.account-panel {
  margin-top: 18px;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.account-panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

html.theme-dark .account-panel,
html[data-theme="auto"].theme-dark .account-panel {
  background: transparent;
  border-color: transparent;
}

.account-pills {
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.account-pills-expanded {
  flex-wrap: wrap;
}

.account-panel-actions {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.account-more-btn {
  min-width: 62px;
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

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

.pill-form,
.empty-action-form {
  margin: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

button.pill {
  cursor: pointer;
  box-shadow: none;
  color: inherit;
}

html.theme-dark .pill,
html[data-theme="auto"].theme-dark .pill {
  background: var(--surface-soft);
  border-color: var(--surface-border);
  color: var(--text);
}

html.theme-dark .pill small,
html[data-theme="auto"].theme-dark .pill small {
  color: var(--muted);
}

.pill-active {
  background: linear-gradient(135deg, rgba(157, 64, 34, 0.2), rgba(217, 123, 45, 0.28));
  border-color: rgba(157, 64, 34, 0.36);
  color: var(--accent-deep);
  box-shadow: 0 10px 24px rgba(157, 64, 34, 0.12);
  font-weight: 700;
}

html.theme-dark .pill-active,
html[data-theme="auto"].theme-dark .pill-active {
  background: linear-gradient(135deg, rgba(223, 142, 78, 0.26), rgba(196, 87, 47, 0.3));
  border-color: rgba(255, 228, 193, 0.18);
  color: #fff3df;
}

.pill small {
  color: var(--muted);
}

.results-panel {
  display: grid;
  gap: 18px;
}

.results-panel-wide {
  margin-top: 24px;
}

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

.results-head-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.results-filter-group {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.25fr) minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: min(100%, 660px);
}

.results-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.results-sort-form,
.results-year-form {
  display: flex;
  min-width: 0;
}

.results-year-form select,
.results-sort-form select {
  min-width: 0;
  height: 50px;
  min-height: 50px;
  padding: 0 36px 0 14px;
  line-height: 50px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-combobox {
  position: relative;
  min-width: 0;
  z-index: 20;
}

.account-combobox-toggle {
  width: 100%;
  height: 50px;
  min-height: 50px;
  padding: 0 36px 0 14px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
  justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  line-height: 50px;
}

.account-combobox-toggle::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
}

.account-combobox-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 320px);
  max-width: calc(100vw - 24px);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(31, 35, 42, 0.14);
}

.account-combobox-search {
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.account-combobox-list {
  display: grid;
  gap: 6px;
  max-height: 280px;
  margin-top: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.account-option-form {
  margin: 0;
}

.account-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-align: left;
}

.account-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-option small {
  color: var(--muted);
  flex: 0 0 auto;
}

.account-option:hover,
.account-option-active {
  background: rgba(217, 123, 45, 0.12);
  color: var(--accent-deep);
}

.account-combobox-empty {
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
}

.article-card[data-card-link] {
  cursor: pointer;
}

.article-card[data-card-link]:focus-visible {
  outline: 3px solid rgba(157, 64, 34, 0.28);
  outline-offset: 3px;
}

.article-body {
  display: grid;
  gap: 10px;
}

.article-card h3 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.36;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.pinned-badge {
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(157, 64, 34, 0.12);
  border: 1px solid rgba(157, 64, 34, 0.22);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.metrics {
  display: flex;
  gap: 8px 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.article-stats-row {
  gap: 6px 10px;
}

.metric-with-icon {
  gap: 5px;
}

.metric-with-icon img {
  width: 16px;
  height: 16px;
  color: currentColor;
  opacity: 0.82;
}

html.theme-dark .metric-with-icon img,
html[data-theme="auto"].theme-dark .metric-with-icon img {
  filter: brightness(0) saturate(100%) invert(88%) sepia(20%) saturate(390%) hue-rotate(344deg) brightness(101%) contrast(91%);
  opacity: 0.94;
}

.article-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.article-footer-row form {
  flex: 0 0 auto;
  margin: 0;
}

.article-footer-row .favorite-btn {
  min-width: 74px;
}

.article-account-actions {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.metric-account {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(157, 64, 34, 0.16), rgba(217, 123, 45, 0.22));
  color: var(--accent-deep);
  font-weight: 700;
}

html.theme-dark .metric-account,
html[data-theme="auto"].theme-dark .metric-account {
  background: linear-gradient(135deg, rgba(223, 142, 78, 0.24), rgba(196, 87, 47, 0.28));
  color: #fff1dc;
}

.account-intro-form {
  display: inline-flex;
}

.account-intro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid rgba(157, 64, 34, 0.22);
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.account-intro-btn:hover {
  background: rgba(157, 64, 34, 0.12);
}

html.theme-dark .account-intro-btn,
html[data-theme="auto"].theme-dark .account-intro-btn {
  border-color: rgba(255, 228, 193, 0.18);
  background: rgba(52, 41, 32, 0.74);
  color: #fff1dc;
}

.account-profile-page {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.account-profile-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.account-profile-action-form {
  margin: 0;
}

.account-profile-back,
.account-profile-primary {
  min-width: 96px;
}

.account-profile-primary,
.account-profile-list-actions .search-submit {
  font-size: 0.9rem;
}

.account-profile-main,
.account-profile-latest {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.account-profile-main {
  padding: 28px;
}

.account-profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.account-profile-title-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.account-profile-title-row h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
  min-width: 0;
  font-weight: 800;
}

.account-profile-count {
  flex: 0 0 auto;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
}

.account-profile-intro {
  margin-top: 24px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.85;
}

.account-profile-intro p {
  margin: 0;
}

.account-profile-latest {
  padding: 20px;
}

.account-profiles-main {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

.account-profiles-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.account-profiles-title-row h1 {
  margin: 0;
  font-size: 1.35rem;
}

.account-profiles-title-row span {
  color: var(--muted);
  white-space: nowrap;
}

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

.account-profile-list-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.account-profile-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.account-profile-list-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.account-profile-list-head span {
  flex: 0 0 auto;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 400;
  white-space: nowrap;
}

.account-profile-list-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.account-profile-list-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.account-profile-list-actions form {
  margin: 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 1.1rem;
}

.account-profile-article-list {
  display: grid;
  gap: 8px;
}

.account-profile-article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid transparent;
}

.account-profile-article:hover {
  border-color: rgba(157, 64, 34, 0.2);
}

.account-profile-article span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.account-profile-article small {
  flex: 0 0 auto;
  color: var(--muted);
}

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

.compact-pagination {
  justify-content: center;
  gap: 8px;
}

.compact-pagination .page-nav-btn {
  width: 42px;
  min-width: 42px;
  height: 38px;
  padding: 0;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1;
}

.compact-pagination .page-label-full {
  display: none;
}

.compact-pagination .page-label-mobile {
  display: inline;
}

.compact-pagination .page-indicator {
  min-width: 116px;
  text-align: center;
  font-weight: 700;
}

.compact-pagination .page-jump-form {
  gap: 6px;
  margin-left: 6px;
}

.compact-pagination .page-jump-input {
  flex-basis: 58px;
  width: 58px !important;
  min-width: 58px;
  max-width: 58px;
  height: 38px;
  padding: 7px 8px;
  border-radius: 12px;
}

.compact-pagination .page-jump-btn {
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
}

.page-indicator {
  color: var(--muted);
}

.page-jump-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 0;
  flex: 0 0 auto;
}

.page-jump-label {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.page-jump-input {
  flex: 0 0 88px;
  width: 88px !important;
  min-width: 88px;
  max-width: 88px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
}

.page-jump-btn {
  flex: 0 0 auto;
  min-width: 76px;
}

.empty-state {
  padding: 42px 24px;
  border-radius: 28px;
  border: 1px dashed rgba(97, 35, 16, 0.2);
  text-align: center;
  background: rgba(255, 253, 249, 0.8);
}

html.theme-dark .empty-state,
html[data-theme="auto"].theme-dark .empty-state {
  background: rgba(37, 31, 26, 0.88);
  border-color: var(--surface-border);
}

.empty-state h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.notice-modal[hidden] {
  display: none;
}

.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.feedback-modal[hidden] {
  display: none;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.42);
  backdrop-filter: blur(4px);
}

.notice-dialog {
  position: relative;
  width: min(calc(100% - 28px), 560px);
  margin: min(14vh, 120px) auto 0;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(157, 64, 34, 0.18);
  box-shadow: 0 24px 60px rgba(31, 35, 42, 0.18);
}

html.theme-dark .notice-dialog,
html[data-theme="auto"].theme-dark .notice-dialog {
  background: rgba(30, 24, 20, 0.98) !important;
  border-color: rgba(255, 228, 193, 0.14) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42) !important;
}

.notice-announcement {
  width: min(calc(100% - 28px), 920px);
  padding: 28px 28px 24px;
}

.notice-announcement-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
}

.notice-announcement-top h2 {
  margin: 0;
  font-size: 2rem;
}

html.theme-dark .notice-announcement-top h2,
html[data-theme="auto"].theme-dark .notice-announcement-top h2 {
  color: #fff0da;
}

.notice-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.notice-tab {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(157, 64, 34, 0.1);
  color: var(--accent);
  box-shadow: none;
  font-weight: 700;
}

html.theme-dark .notice-tab,
html[data-theme="auto"].theme-dark .notice-tab {
  background: rgba(223, 142, 78, 0.14);
  color: #f4c88f;
}

.notice-tab-active {
  background: rgba(157, 64, 34, 0.14);
}

html.theme-dark .notice-tab-active,
html[data-theme="auto"].theme-dark .notice-tab-active {
  background: linear-gradient(135deg, rgba(223, 142, 78, 0.2), rgba(196, 87, 47, 0.26));
}

.notice-tab-icon {
  margin-right: 6px;
}

.notice-tab-svg {
  margin-right: 6px;
  width: 16px;
  height: 16px;
}

.notice-tab-passive {
  color: var(--muted);
  font-size: 1rem;
}

html.theme-dark .notice-tab-passive,
html[data-theme="auto"].theme-dark .notice-tab-passive {
  color: #cbb79f;
}

.notice-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-deep);
  box-shadow: none;
  font-size: 28px;
  line-height: 1;
}

html.theme-dark .notice-close,
html[data-theme="auto"].theme-dark .notice-close {
  background: rgba(73, 58, 45, 0.96) !important;
  color: #ffe4c1 !important;
  border: 1px solid rgba(255, 228, 193, 0.16) !important;
}

.notice-content {
  margin-top: 16px;
  color: var(--text);
  line-height: 1.85;
  font-size: 1rem;
}

html.theme-dark .notice-content,
html[data-theme="auto"].theme-dark .notice-content {
  color: #f1e5d7;
}

.notice-announcement-content {
  margin-top: 28px;
  font-size: 1.08rem;
  line-height: 1.9;
  min-height: 140px;
}

.notice-content p {
  margin: 0 0 12px;
}

html.theme-dark .notice-content p,
html[data-theme="auto"].theme-dark .notice-content p {
  color: #e5d5c3;
}

.notice-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.notice-announcement-actions {
  gap: 12px;
  margin-top: 24px;
}

.notice-soft-btn {
  background: var(--surface-soft);
}

html.theme-dark .notice-soft-btn,
html[data-theme="auto"].theme-dark .notice-soft-btn {
  background: rgba(73, 58, 45, 0.96) !important;
  color: #ffe4c1 !important;
  border-color: rgba(255, 228, 193, 0.16) !important;
}

.notice-confirm {
  min-width: 120px;
}

.feedback-dialog {
  position: relative;
  width: min(calc(100% - 28px), 640px);
  margin: min(12vh, 110px) auto 0;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(157, 64, 34, 0.18);
  box-shadow: 0 24px 60px rgba(31, 35, 42, 0.18);
}

html.theme-dark .feedback-dialog,
html[data-theme="auto"].theme-dark .feedback-dialog {
  background: rgba(30, 24, 20, 0.98);
  border-color: rgba(255, 228, 193, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.feedback-header h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.feedback-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feedback-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.feedback-actions {
  gap: 12px;
  margin-top: 6px;
}

.member-auth-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 36px;
}

.member-auth-card {
  width: min(100%, 760px);
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.member-auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.member-auth-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.member-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.member-auth-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(157, 64, 34, 0.12);
}

.member-auth-form-single {
  max-width: 520px;
  margin-top: 22px;
  margin-left: auto;
  margin-right: auto;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  width: 100%;
  padding-right: 78px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 56px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(157, 64, 34, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-deep);
  box-shadow: none;
}

.password-toggle:hover {
  background: rgba(217, 123, 45, 0.12);
}

.member-auth-form h2 {
  margin: 0;
  font-size: 1.05rem;
}

.member-auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}

.member-auth-note {
  max-width: 520px;
  margin: -2px auto 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(157, 64, 34, 0.08);
  border: 1px solid rgba(157, 64, 34, 0.14);
  color: var(--muted);
  line-height: 1.7;
}

.member-auth-tips {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(157, 64, 34, 0.12);
}

.member-auth-tips strong {
  display: block;
  margin-bottom: 8px;
}

html.theme-dark .flash-message,
html[data-theme="auto"].theme-dark .flash-message {
  background: rgba(43, 34, 27, 0.96);
  border-color: var(--surface-border);
  color: var(--text);
}

html.theme-dark .password-toggle,
html[data-theme="auto"].theme-dark .password-toggle {
  background: rgba(54, 43, 34, 0.92);
  border-color: rgba(255, 228, 193, 0.18);
  color: #f6ddbc;
}

html.theme-dark .password-toggle:hover,
html[data-theme="auto"].theme-dark .password-toggle:hover {
  background: rgba(223, 142, 78, 0.18);
}

html.theme-dark .member-auth-card,
html[data-theme="auto"].theme-dark .member-auth-card {
  background: rgba(31, 26, 21, 0.96);
  border-color: rgba(255, 228, 193, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

html.theme-dark .member-auth-form,
html[data-theme="auto"].theme-dark .member-auth-form {
  background: rgba(54, 43, 34, 0.92);
  border-color: rgba(255, 228, 193, 0.14);
}

html.theme-dark .member-auth-note,
html[data-theme="auto"].theme-dark .member-auth-note {
  background: rgba(223, 142, 78, 0.14);
  border-color: rgba(255, 228, 193, 0.14);
  color: #f3eadf;
}

html.theme-dark .member-auth-tips,
html[data-theme="auto"].theme-dark .member-auth-tips {
  background: rgba(54, 43, 34, 0.92);
  border-color: rgba(255, 228, 193, 0.12);
  color: #f3eadf;
}

html.theme-dark .member-auth-card h1,
html[data-theme="auto"].theme-dark .member-auth-card h1,
html.theme-dark .member-auth-card p,
html[data-theme="auto"].theme-dark .member-auth-card p,
html.theme-dark .member-auth-form .field-label,
html[data-theme="auto"].theme-dark .member-auth-form .field-label {
  color: #f3eadf;
}

html.theme-dark .member-auth-form .password-field input,
html[data-theme="auto"].theme-dark .member-auth-form .password-field input,
html.theme-dark .member-auth-form input[type="text"],
html.theme-dark .member-auth-form input[type="password"],
html[data-theme="auto"].theme-dark .member-auth-form input[type="text"],
html[data-theme="auto"].theme-dark .member-auth-form input[type="password"] {
  background: rgba(31, 26, 21, 0.96);
  border-color: rgba(255, 228, 193, 0.14);
  color: #f3eadf;
}

html.theme-dark .member-auth-form input::placeholder,
html[data-theme="auto"].theme-dark .member-auth-form input::placeholder {
  color: rgba(211, 194, 170, 0.72);
}

.help-hero {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.help-hero h1 {
  margin: 0;
  font-size: 2.05rem;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
}

.help-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 62ch;
}

.help-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.help-search-form input {
  min-width: 260px;
  flex: 1 1 260px;
}

.help-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.help-categories {
  display: grid;
  gap: 10px;
  align-content: start;
}

.help-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(31, 35, 42, 0.06);
}

.help-category-active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.help-main {
  min-width: 0;
}

.help-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.help-list-head h2 {
  margin: 0;
  font-size: 1.22rem;
}

.help-list-head span {
  color: var(--muted);
}

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

.help-list-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(31, 35, 42, 0.06);
}

.help-list-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.help-list-item h3 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
}

.help-list-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.help-detail {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.help-breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}

.help-detail-article {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(31, 35, 42, 0.06);
}

.help-detail-head h1 {
  margin: 10px 0;
  font-size: 1.9rem;
  font-family: "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
}

.help-detail-head p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.75;
}

.help-detail-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(157, 64, 34, 0.12);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.help-content {
  display: grid;
  gap: 12px;
  line-height: 1.85;
  margin-top: 18px;
}

.help-content h2 {
  margin: 8px 0 4px;
  font-size: 1.18rem;
}

.help-content h3 {
  margin: 8px 0 4px;
  font-size: 1.02rem;
}

.help-content p {
  margin: 0;
}

.help-content ul {
  margin: 0;
  padding-left: 1.3rem;
  display: grid;
  gap: 8px;
}

.help-image {
  margin: 10px 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.help-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 760px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.help-image figcaption {
  color: var(--muted);
  font-size: 0.92rem;
}

html.theme-dark .help-category,
html[data-theme="auto"].theme-dark .help-category,
html.theme-dark .help-list-item,
html[data-theme="auto"].theme-dark .help-list-item,
html.theme-dark .help-detail-article,
html[data-theme="auto"].theme-dark .help-detail-article {
  background: rgba(31, 26, 21, 0.96);
  border-color: rgba(255, 228, 193, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html.theme-dark .help-category,
html[data-theme="auto"].theme-dark .help-category {
  color: #f3eadf;
}

html.theme-dark .help-hero h1,
html[data-theme="auto"].theme-dark .help-hero h1,
html.theme-dark .help-hero p,
html[data-theme="auto"].theme-dark .help-hero p,
html.theme-dark .help-list-head h2,
html[data-theme="auto"].theme-dark .help-list-head h2 {
  color: #f3eadf;
}

html.theme-dark .help-search-form input,
html[data-theme="auto"].theme-dark .help-search-form input {
  background: rgba(31, 26, 21, 0.96);
  border-color: rgba(255, 228, 193, 0.14);
  color: #f3eadf;
}

html.theme-dark .help-search-form input::placeholder,
html[data-theme="auto"].theme-dark .help-search-form input::placeholder {
  color: rgba(211, 194, 170, 0.7);
}

html.theme-dark .help-category-active,
html[data-theme="auto"].theme-dark .help-category-active {
  background: linear-gradient(135deg, rgba(223, 142, 78, 0.92), rgba(196, 87, 47, 0.94));
  border-color: transparent;
  color: #fff7ec;
}

html.theme-dark .help-list-item h3,
html[data-theme="auto"].theme-dark .help-list-item h3,
html.theme-dark .help-detail-head h1,
html[data-theme="auto"].theme-dark .help-detail-head h1,
html.theme-dark .help-content h2,
html[data-theme="auto"].theme-dark .help-content h2,
html.theme-dark .help-content h3,
html[data-theme="auto"].theme-dark .help-content h3 {
  color: #fff2de;
}

html.theme-dark .help-list-item-top,
html[data-theme="auto"].theme-dark .help-list-item-top,
html.theme-dark .help-list-item p,
html[data-theme="auto"].theme-dark .help-list-item p,
html.theme-dark .help-detail-head p,
html[data-theme="auto"].theme-dark .help-detail-head p,
html.theme-dark .help-breadcrumb,
html[data-theme="auto"].theme-dark .help-breadcrumb,
html.theme-dark .help-list-head span,
html[data-theme="auto"].theme-dark .help-list-head span {
  color: #d0bba4;
}

html.theme-dark .help-detail-category,
html[data-theme="auto"].theme-dark .help-detail-category {
  background: rgba(223, 142, 78, 0.16);
  color: #f3c88d;
}

html.theme-dark .help-image img,
html[data-theme="auto"].theme-dark .help-image img {
  background: rgba(31, 26, 21, 0.96);
  border-color: rgba(255, 228, 193, 0.14);
}

.help-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 16px), var(--max-width));
  }

  .top-actions {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .top-icon-btn {
    width: 38px;
    height: 38px;
  }

  .article-card h3 {
    font-size: 1.18rem;
    line-height: 1.34;
  }

  .theme-menu-panel {
    width: 226px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-width: 0;
  }

  .brand-logo {
    flex: 0 0 auto;
    width: 58px;
  }

  .member-auth-form-single {
    max-width: none;
  }

  .brand-tagline {
    flex: 1 1 auto;
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .search-input-row,
  .pagination,
  .results-head-main {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-row {
    display: flex;
    flex-direction: row;
  }

  .search-input-shell {
    min-width: 0;
  }

  .search-keyword-wrap {
    min-width: 0;
  }

  .search-select-wrap {
    flex-basis: 92px;
  }

  .search-action-group button,
  .search-submit,
  .inline-reset {
    min-width: 66px;
    padding-inline: 12px;
  }

  .search-keyword-wrap .search-clear-inline {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    padding: 0;
    right: 7px;
  }

  .results-head-main {
    display: flex;
  }

  .results-count {
    font-size: 0.86rem;
  }

  .page-jump-form {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .compact-pagination {
    display: grid;
    grid-template-columns: 34px 34px minmax(96px, 1fr) 34px 34px;
    gap: 6px;
    align-items: center;
  }

  .compact-pagination .page-nav-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.94rem;
  }

  .compact-pagination .page-indicator {
    min-width: 0;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .compact-pagination .page-jump-form {
    grid-column: 1 / -1;
    width: auto;
    justify-content: center;
    gap: 6px;
    margin-left: 0;
  }

  .page-jump-input {
    flex-basis: 76px;
    width: 76px !important;
    min-width: 76px;
    max-width: 76px;
  }

  .compact-pagination .page-jump-input {
    flex-basis: 52px;
    width: 52px !important;
    min-width: 52px;
    max-width: 52px;
    height: 34px;
    padding: 6px 8px;
  }

  .compact-pagination .page-jump-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    border-radius: 12px;
  }

  .results-filter-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    justify-content: stretch;
    margin-left: 0;
    min-width: 0;
  }

  .results-year-form,
  .results-year-form select,
  .results-sort-form,
  .results-sort-form select {
    width: 100%;
  }

  .results-year-form select,
  .results-sort-form select,
  .account-combobox-toggle {
    height: 46px;
    min-height: 46px;
    line-height: 46px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 12px;
    font-size: 0.9rem;
  }

  .account-combobox-toggle {
    padding-right: 28px;
  }

  .account-combobox-toggle::after {
    right: 10px;
  }

  .account-combobox-panel {
    left: 50%;
    right: auto;
    width: min(calc(100vw - 24px), 360px);
    transform: translateX(-50%);
  }

  .account-panel {
    display: none;
  }

  .account-pills {
    gap: 8px;
  }

  .account-panel-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .account-pills,
  .account-pills:not(.account-pills-expanded) {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 42px;
    padding-bottom: 0;
  }

  .account-pills-expanded {
    flex-wrap: wrap;
    overflow: visible;
    max-height: none;
    padding-bottom: 0;
  }

  .account-more-btn {
    min-width: 58px;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.88rem;
  }

  .pill {
    padding: 7px 11px;
  }

  .article-footer-row {
    align-items: center;
  }

  .article-account-actions {
    gap: 6px;
  }

  .account-intro-btn {
    min-height: 28px;
    padding: 3px 8px;
  }

  .account-profile-head {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .account-profile-back,
  .account-profile-primary {
    min-width: 0;
  }

  .account-profile-back {
    flex: 1;
  }

  .account-profile-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
  }

  .account-profile-action-form {
    justify-self: end;
  }

  .account-profile-primary {
    width: auto;
    min-height: 36px;
    padding: 8px 14px;
    white-space: nowrap;
  }

  .account-profile-main {
    padding: 20px;
  }

  .account-profile-title-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .account-profile-article {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .account-profile-article span {
    white-space: normal;
  }

  .account-profiles-main {
    padding: 18px;
  }

  .account-profiles-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .account-profiles-grid {
    grid-template-columns: 1fr;
  }

  .account-profile-list-actions {
    justify-content: stretch;
  }

  .account-profile-list-actions form,
  .account-profile-list-actions button {
    flex: 1;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .feedback-detail-grid {
    grid-template-columns: 1fr;
  }

  .member-auth-grid {
    grid-template-columns: 1fr;
  }

  .notice-dialog,
  .notice-announcement {
    width: min(calc(100% - 20px), 560px);
    margin-top: 72px;
    padding: 18px;
  }

  .notice-announcement-top {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .notice-tabs {
    grid-column: 1 / -1;
  }

  .notice-announcement-top h2 {
    font-size: 1.55rem;
  }

  .notice-announcement-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-dialog {
    width: min(calc(100% - 20px), 560px);
    margin-top: 72px;
    padding: 18px;
  }

  .feedback-detail-dialog {
    width: min(calc(100% - 20px), 760px);
    margin-top: 72px;
    padding: 18px;
  }

  .help-hero,
  .help-layout,
  .help-list-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .help-hero {
    align-items: start;
  }

  .help-search-form input {
    min-width: 0;
    width: 100%;
  }

}
