:root {
  --bg: #050505;
  --bg-soft: #0b0907;
  --panel: rgba(16, 14, 11, 0.82);
  --panel-strong: rgba(22, 18, 12, 0.92);
  --line: rgba(218, 184, 112, 0.28);
  --line-strong: rgba(238, 204, 137, 0.72);
  --gold: #d9b66f;
  --gold-bright: #f5dda2;
  --text: #f6f1e7;
  --muted: #b9ae9b;
  --dim: #817767;
  --max: 1360px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 14%, rgba(217, 182, 111, 0.16), transparent 30rem),
    linear-gradient(180deg, #050505 0%, #090806 50%, #050505 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.62;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(217, 182, 111, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 182, 111, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
}

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 182, 111, 0.22);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  color: var(--gold-bright);
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(243, 217, 154, 0.18), rgba(217, 182, 111, 0.03));
  display: grid;
  place-items: center;
  box-shadow: 0 0 34px rgba(217, 182, 111, 0.16);
}

.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-bright);
  border-color: rgba(217, 182, 111, 0.38);
  outline: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 182, 111, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.99) 0%, rgba(5, 5, 5, 0.86) 36%, rgba(5, 5, 5, 0.18) 80%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.18) 0%, rgba(5, 5, 5, 0.16) 68%, #050505 100%),
    url("assets/hero-black-gold-ai.png") center right / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, #050505);
}

.hero-inner,
.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 112px 0 118px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-bright);
  font-size: 13px;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 52px;
  height: 1px;
  background: var(--line-strong);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.96;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.32;
}

.hero-subtitle {
  max-width: 820px;
  margin-bottom: 34px;
  color: #ded6c7;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.copy-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(10, 9, 7, 0.68);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible,
.copy-btn:hover,
.copy-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(217, 182, 111, 0.13);
  outline: none;
}

.btn.primary {
  color: #120e07;
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, #f5dfab, #c59a4f);
  font-weight: 700;
}

.section {
  padding: 92px 0;
  scroll-margin-top: 88px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.prompt-section-head {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.section-head p,
.module-heading p,
.prepare-item p,
.module-card p {
  color: var(--muted);
}

.prepare-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.prepare-item,
.module-card,
.module-detail,
.prompt-block {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(217, 182, 111, 0.08), transparent 36%),
    var(--panel);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

.prepare-item,
.module-card {
  padding: 22px;
}

.prepare-item span,
.module-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.module-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-card:hover,
.module-card:focus-visible {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(217, 182, 111, 0.14), transparent 42%),
    var(--panel-strong);
  outline: none;
}

.modules-detail {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.module-detail {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 26px;
  scroll-margin-top: 88px;
}

.module-detail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 221, 162, 0.75), transparent);
}

.module-heading {
  max-width: 860px;
  margin-bottom: 20px;
}

.module-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 2.6vw, 38px);
}

.module-heading p {
  margin-bottom: 0;
}

.module-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tool-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(238, 204, 137, 0.48);
  background: rgba(12, 10, 7, 0.72);
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tool-link::after {
  content: "↗";
  margin-left: 8px;
  font-size: 13px;
}

.tool-link:hover,
.tool-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(217, 182, 111, 0.13);
  outline: none;
}

.prompt-list {
  display: grid;
  gap: 12px;
}

.prompt-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.prompt-pair .prompt-block {
  min-width: 0;
}

.prompt-block {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(217, 182, 111, 0.055), transparent 120px),
    rgba(8, 8, 7, 0.82);
  transition: border-color 180ms ease, background 180ms ease;
}

.prompt-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.prompt-head h3 {
  flex: 1 1 auto;
  margin-bottom: 0;
  color: var(--gold-bright);
  font-size: 15px;
  line-height: 1.35;
}

.copy-btn {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 10px 22px;
  border-color: rgba(238, 204, 137, 0.48);
  color: var(--gold-bright);
  background: rgba(12, 10, 7, 0.82);
  font-size: 16px;
  font-weight: 700;
}

.toggle-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.toggle-btn:hover,
.toggle-btn:focus-visible {
  color: #fff0c2;
  background: rgba(217, 182, 111, 0.08);
  outline: none;
}

.prompt-block.is-collapsed {
  background: rgba(8, 8, 7, 0.66);
}

.prompt-block.is-collapsed .prompt-head {
  border-bottom-color: transparent;
}

.prompt-block.is-collapsed .prompt-content {
  display: none;
}

.prompt-block:not(.is-collapsed) {
  border-color: rgba(238, 204, 137, 0.5);
}

.prompt-block:not(.is-collapsed) .toggle-btn {
  transform: rotate(180deg);
}

.prompt-content {
  padding: 14px;
  border-top: 1px solid var(--line);
}

.prompt-body {
  border: 1px solid rgba(218, 184, 112, 0.28);
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(217, 182, 111, 0.045), transparent 90px),
    rgba(2, 2, 2, 0.46);
}

.prompt-content-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(218, 184, 112, 0.28);
  border-bottom: 0;
  background:
    linear-gradient(135deg, rgba(217, 182, 111, 0.06), transparent 48%),
    rgba(7, 7, 6, 0.88);
}

.prompt-label {
  color: rgba(245, 241, 232, 0.58);
  font-size: 20px;
  font-weight: 700;
}

.tool-note {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(218, 184, 112, 0.2);
  color: #e8dec9;
  font-size: 15px;
}

.reference-image {
  margin: 14px;
  border: 1px solid rgba(218, 184, 112, 0.34);
  background:
    linear-gradient(135deg, rgba(217, 182, 111, 0.08), transparent 46%),
    rgba(5, 5, 5, 0.74);
}

.reference-image img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #050505;
}

.reference-image figcaption {
  padding: 10px 14px;
  border-top: 1px solid rgba(218, 184, 112, 0.22);
  color: rgba(245, 241, 232, 0.62);
  font-size: 13px;
}

.tool-table-wrap {
  overflow-x: auto;
}

.tool-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: #e8dec9;
  font-size: 14px;
}

.tool-table th,
.tool-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(218, 184, 112, 0.18);
  text-align: left;
  vertical-align: middle;
}

.tool-table th {
  color: var(--gold-bright);
  background: rgba(217, 182, 111, 0.08);
  font-size: 13px;
  text-transform: uppercase;
}

.tool-table td:first-child {
  color: #f5f1e8;
  font-weight: 700;
}

.activation-table td:nth-child(3) {
  color: var(--gold-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tool-table a {
  color: #f5dda2;
  word-break: break-all;
}

.url-copy-btn {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(218, 184, 112, 0.34);
  background: rgba(12, 10, 7, 0.72);
  color: var(--gold-bright);
  cursor: pointer;
  white-space: nowrap;
}

.url-copy-btn:hover,
.url-copy-btn:focus-visible {
  border-color: var(--line-strong);
  background: rgba(217, 182, 111, 0.13);
  outline: none;
}

.all-url-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: pre;
}

.sub-prompt-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.sub-prompt {
  min-width: 0;
  border: 1px solid rgba(218, 184, 112, 0.3);
  background: rgba(5, 5, 5, 0.56);
}

.sub-prompt-head {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
  text-align: left;
}

.sub-prompt-head span {
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sub-prompt-head small {
  min-width: 0;
  grid-column: 1;
  color: rgba(245, 241, 232, 0.58);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sub-prompt-head b {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--gold-bright);
  font-size: 26px;
  line-height: 1;
}

.sub-prompt-content {
  min-width: 0;
  padding: 0 14px 14px;
}

.sub-prompt.is-collapsed .sub-prompt-content {
  display: none;
}

.sub-prompt:not(.is-collapsed) {
  border-color: rgba(238, 204, 137, 0.54);
}

.sub-prompt-bar {
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(218, 184, 112, 0.26);
  border-bottom: 0;
  background: rgba(8, 8, 7, 0.78);
  color: rgba(245, 241, 232, 0.62);
  font-weight: 700;
}

.sub-prompt-bar span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sub-copy-btn {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid rgba(238, 204, 137, 0.48);
  background: rgba(12, 10, 7, 0.82);
  color: var(--gold-bright);
  cursor: pointer;
  font-weight: 700;
}

.sub-copy-btn:hover,
.sub-copy-btn:focus-visible {
  border-color: var(--line-strong);
  background: rgba(217, 182, 111, 0.13);
  outline: none;
}

pre {
  max-width: 100%;
  max-height: 380px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(218, 184, 112, 0.28);
  border-top: 0;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(217, 182, 111, 0.045), transparent 90px),
    rgba(2, 2, 2, 0.46);
}

code {
  color: #e8dec9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 10, 7, 0.94);
  color: var(--gold-bright);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1061px) {
  .modules-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-detail {
    padding: 24px;
  }

  .module-heading {
    min-height: 158px;
    display: flex;
    flex-direction: column;
  }

  .module-heading h2 {
    font-size: clamp(30px, 2.15vw, 36px);
    line-height: 1.12;
  }

  .module-detail .kicker {
    margin-bottom: 12px;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.68)),
      linear-gradient(180deg, rgba(5, 5, 5, 0.16), #050505),
      url("assets/hero-black-gold-ai.png") center right / cover no-repeat;
  }

  .hero-inner,
  .section {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: 52px;
  }

  .prepare-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .prompt-pair {
    grid-template-columns: 1fr;
  }

  .module-detail {
    padding: 18px;
  }

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

  .prompt-content-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }
}
