/* 流放助手 · 自用工具站（poetool.cn）
 * 配色提取自品牌 Logo：黑曜石底色 + 锻造暖金强调，无外部字体或第三方资源依赖。
 */
:root {
  --bg: #0b0e13;
  --bg-elevated: #12161f;
  --bg-panel: #151a24;
  --bg-alt: #0f131a;
  --text: #f2ede2;
  --text-muted: #9ea7b6;
  --text-dim: #737d8e;
  --gold: #cfa85d;
  --gold-bright: #e5c47c;
  --gold-soft: rgba(207, 168, 93, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(207, 168, 93, 0.28);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-w: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(207, 168, 93, 0.09), transparent 60%),
    radial-gradient(760px 420px at 90% 5%, rgba(88, 124, 184, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
}

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

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

code,
pre {
  font-family: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
}

code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.42em;
  font-size: 0.88em;
  color: var(--gold-bright);
}

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

.is-hidden {
  display: none !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 14, 19, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.main-nav a {
  transition: color 0.18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(135deg, #d7b269 0%, #b88f45 100%);
  color: #14110a;
  box-shadow: 0 8px 24px rgba(207, 168, 93, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e5c47c 0%, #c89d50 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--border-gold);
  background: rgba(207, 168, 93, 0.08);
  color: var(--gold-bright);
}

.icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -120px auto auto 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 340px;
  background: radial-gradient(ellipse, rgba(207, 168, 93, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.badge-gold {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border-color: var(--border-gold);
  font-weight: 600;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.accent-text {
  color: var(--gold-bright);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-lead strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-pillars li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pillar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Hero Visual Window */
.window-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: #171c26;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.window-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-pill {
  font-size: 11px;
  color: var(--gold-bright);
  background: var(--gold-soft);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.window-stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0d1016;
  cursor: zoom-in;
  overflow: hidden;
}

.window-stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
}

.window-stage:hover img {
  transform: scale(1.015);
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--text);
  background: rgba(11, 14, 19, 0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.window-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  background: #131822;
  border-top: 1px solid var(--border);
}

.switch-tab {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.switch-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.switch-tab.is-active {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border-color: var(--border-gold);
}

/* Notice Strip */
.notice-strip {
  border-block: 1px solid var(--border);
  background: rgba(207, 168, 93, 0.04);
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.notice-inner p {
  margin: 0;
}

.notice-tag {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.25;
}

.section-title-sm {
  margin: 0 0 20px;
  font-size: 23px;
  line-height: 1.3;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.feature-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-tags li {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.gallery-card:hover {
  border-color: var(--border-gold);
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0d1016;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-trigger img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
}

.gallery-trigger:hover img {
  transform: scale(1.03);
}

.gallery-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px;
}

.gallery-card figcaption strong {
  font-size: 15px;
}

.gallery-card figcaption span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Quickstart Split */
.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.panel {
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.step-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
}

.step-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.step-list p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.spec-list {
  margin: 0 0 22px;
  display: grid;
  gap: 12px;
}

.spec-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-row dt {
  color: var(--text-dim);
}

.spec-row dd {
  margin: 0;
  color: var(--text);
}

.checksum-box {
  background: #0c1016;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.checksum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.copy-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(207, 168, 93, 0.24);
}

.checksum-box pre {
  margin: 0;
  overflow-x: auto;
}

.checksum-box pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  color: #dce4f0;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-item[open] {
  border-color: var(--border-gold);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold-bright);
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Compliance Card */
.compliance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px;
  background: linear-gradient(135deg, rgba(207, 168, 93, 0.08), rgba(21, 26, 36, 0.92) 55%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
}

.compliance-text {
  margin: 0;
  max-width: 660px;
  font-size: 14px;
  color: var(--text-muted);
}

.compliance-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #090b10;
  padding: 36px 0 42px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}

.sep {
  color: var(--text-dim);
}

.footer-disclaimer {
  margin: 0;
  max-width: 720px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-filing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: min(100%, 640px);
  font-size: 13px;
}

.filing-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  transition: color 0.16s ease;
}

.filing-link:hover,
.filing-link:focus-visible {
  color: var(--gold-bright);
  text-decoration: underline;
}

.filing-sep {
  color: var(--text-dim);
}

.mps-icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1120px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow);
}

.lightbox-dialog img {
  max-height: 78vh;
  width: auto;
  margin-inline: auto;
  border-radius: 8px;
}

.lightbox-caption {
  margin: 10px 4px 2px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  background: #171c26;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px 22px;
    background: rgba(11, 14, 19, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    padding: 46px 0 44px;
  }

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

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

  .section {
    padding: 54px 0;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
