:root {
  --teal: #20565b;
  --teal-dark: #173f43;
  --paper: #f7f4ee;
  --surface: #fffdf8;
  --ink: #273536;
  --muted: #59696a;
  --gold: #c7a343;
  --line: #d5ddd7;
  --rust: #a24438;
  --soft: #e8efeb;
  --serif: "Noto Serif SC", "Songti SC", Georgia, serif;
  --sans: "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
html {
  scroll-padding-top: 80px;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a,
button {
  transition:
    background-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
a:hover {
  color: var(--teal-dark);
}
:focus-visible {
  outline: 3px solid #a97818;
  outline-offset: 4px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--teal);
  line-height: 1.25;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
h1 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 600;
}
h2 {
  font-size: clamp(25px, 2.6vw, 32px);
  font-weight: 600;
}
h3 {
  font-size: 21px;
}
p {
  margin: 0 0 16px;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
button svg,
a svg {
  pointer-events: none;
}
main {
  min-height: 65vh;
}
input,
select,
textarea {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #9daea8;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
}
input::placeholder,
textarea::placeholder {
  color: #66716b;
}
select {
  cursor: pointer;
}
label {
  font-weight: 500;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.container {
  width: min(1200px, 100% - 64px);
  margin-inline: auto;
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: #fffdf8;
  background: var(--teal);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.45;
}
.button:hover {
  background: var(--teal-dark);
  color: white;
}
.button:active {
  background: #102f32;
}
.button.secondary {
  background: transparent;
  color: var(--teal);
}
.button.secondary:hover {
  background: var(--soft);
}
.button.text {
  background: transparent;
  border-color: transparent;
  color: var(--teal);
  padding-inline: 8px;
}
.button.login {
  background: #a95a2c;
  border-color: #a95a2c;
  color: #fffdf8;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--surface);
  padding: 16px;
}
.skip-link:focus {
  top: 8px;
}
.badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 13px;
  background: var(--soft);
  color: var(--teal);
  line-height: 1.4;
}
.badge[data-category="announcement"] {
  background: #f4e1dc;
  color: #853d35;
}
.badge[data-category="guide"] {
  background: #e1edf1;
  color: #254e62;
}
.badge[data-category="deals"] {
  background: #e4ecdd;
  color: #3d5934;
}
.badge[data-category="community"] {
  background: #f4e8cc;
  color: #755220;
}
.page-section {
  padding-block: 32px 64px;
}
.gold-title:after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--gold);
  margin-top: 12px;
}
.notice {
  padding: 16px 20px;
  background: #f9eae2;
  border-left: 3px solid var(--rust);
  border-radius: 4px;
  color: #803e34;
}
.empty-state {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed #a5b5ad;
  border-radius: 8px;
  background: var(--surface);
}
.empty-state h2 {
  margin-top: 16px;
}
.loading {
  padding: 64px;
  text-align: center;
}
.pending-bar {
  height: 3px;
  background: var(--gold);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}
.source-note {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 767px) {
  .container {
    width: calc(100% - 32px);
  }
  .page-section {
    padding-block: 24px 40px;
  }
  h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 25px;
  }
  .button {
    padding: 10px 14px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    width: calc(100% - 48px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
