/* Exness 台湾 · 简体中文信息站 — exness-taiwan-zh.com */
:root {
  --bg: hsl(198 20% 6%);
  --bg-elevated: hsl(198 18% 9%);
  --border: hsla(198 22% 90% / 0.11734485540539027);
  --text: hsl(198 13% 93%);
  --muted: hsl(198 13% 53%);
  --accent: hsl(230 61% 60%);
  --accent-strong: hsl(230 67% 54%);
  --gold: hsl(14 83% 53%);
  --danger: hsl(364 83% 59%);
  --radius: 12px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui,
    sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 20% -15%, hsla(230 61% 45% / 0.18), transparent),
    radial-gradient(ellipse 70% 45% at 95% 20%, hsla(198 30% 40% / 0.1), transparent);
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 16, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav {
  display: none;
  width: 100%;
  flex-basis: 100%;
}

.nav.is-open {
  display: block;
}

@media (min-width: 900px) {
  .nav {
    display: flex !important;
    width: auto;
    flex: 1;
    justify-content: flex-end;
    flex-basis: auto;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px hsla(230 67% 40% / 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1rem 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero .lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.page-hero {
  padding: 2rem 1rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.prose {
  max-width: 68ch;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.65rem;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-inner h3 {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-inner a {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.footer-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 72ch;
}
