:root {
  --paper: #faf3f1;
  --paper-soft: #f5e5ea;
  --white: #fffaf9;
  --ink: #3a2b35;
  --muted: #8a7783;
  --line: #eadbe1;
  --accent: #d85f8a;
  --accent-deep: #b9436f;
  --green: #4a3141;
  --green-soft: #f4e7ec;
  --gold: #d89a72;
  --card-shadow: 6px 6px 0 rgba(216, 95, 138, 0.1);
}

html[data-theme="dark"] {
  --paper: #2a2027;
  --paper-soft: #372832;
  --white: #32252e;
  --ink: #f5eef0;
  --muted: #c5aeb8;
  --line: #5b4350;
  --accent: #ed84a8;
  --accent-deep: #d45f87;
  --green: #241a20;
  --green-soft: #402c38;
  --gold: #e2aa78;
  --card-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg use {
  pointer-events: none;
}

.ao3-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ao3-skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 400;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.ao3-skip:focus {
  left: 14px;
}

.ao3-shell {
  width: min(100%, 1440px);
  margin: auto;
  background: var(--white);
  box-shadow: 0 0 45px rgba(58, 43, 53, 0.14);
}

.ao3-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 26px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ao3-statusbar b {
  color: var(--gold);
}

.ao3-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 249, 0.96);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .ao3-header {
  background: rgba(50, 37, 46, 0.96);
}

.ao3-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ao3-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 7px;
  object-fit: cover;
}

.ao3-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: var(--accent);
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 15px;
  font-weight: 700;
}

.ao3-brand-copy {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.ao3-brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ao3-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 12px;
  font-weight: 800;
}

.ao3-nav a {
  transition: color 140ms ease;
}

.ao3-nav a:hover {
  color: var(--accent);
}

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

.ao3-header-actions svg,
.ao3-hero-actions svg,
.ao3-help-intro svg,
.ao3-feedback svg,
.ao3-modal-close svg,
.ao3-screen svg,
.ao3-faq-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ao3-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.ao3-ghost-button,
.ao3-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.ao3-button {
  min-height: 42px;
  padding: 0 16px;
}

.ao3-button-solid {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}

.ao3-button-solid:hover {
  background: var(--accent-deep);
}

.ao3-button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ao3-menu {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
}

.ao3-menu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.ao3-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 650px;
  background: var(--paper);
}

.ao3-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 70px 8% 64px;
  border-right: 1px solid var(--line);
}

.ao3-eyebrow {
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ao3-hero h1 {
  max-width: 640px;
  margin: 14px 0 18px;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 48px;
  line-height: 1.16;
}

.ao3-lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.ao3-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.ao3-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 44px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.ao3-hero-meta div {
  display: flex;
  flex-direction: column;
}

.ao3-hero-meta dd {
  order: 1;
  margin: 0;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 700;
}

.ao3-hero-meta dt {
  order: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.ao3-desk {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 58px 8%;
}

.ao3-desk-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.ao3-desk-top span:first-child {
  display: flex;
  flex-direction: column;
  color: var(--ink);
}

.ao3-desk-top b {
  font-size: 13px;
  font-weight: 900;
}

.ao3-desk-work {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 10px 10px 0 var(--green-soft);
}

.ao3-desk-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.ao3-rating {
  display: grid;
  width: 46px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--white);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.ao3-desk-heading h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.ao3-desk-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.ao3-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.ao3-progress-track {
  height: 8px;
  background: var(--paper-soft);
}

.ao3-progress-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.ao3-progress span {
  color: var(--muted);
  font-size: 10px;
}

.ao3-desk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}

.ao3-desk-actions button,
.ao3-work-meta button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}

.ao3-desk-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.ao3-desk-stats div {
  position: relative;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ao3-desk-stats span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 10px;
}

.ao3-desk-stats b {
  display: block;
  margin-top: 10px;
  font-size: 12px;
}

.ao3-desk-stats small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ao3-desk-stats em {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: normal;
}

.ao3-section {
  padding: 84px 28px;
}

.ao3-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.ao3-section-head h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 30px;
  line-height: 1.2;
}

.ao3-section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.ao3-features {
  background: var(--paper);
}

.ao3-screen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ao3-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ao3-product {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.ao3-product img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: top;
}

.ao3-product figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-top: 1px solid var(--line);
}

.ao3-product figcaption b {
  font-size: 11px;
}

.ao3-product figcaption span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
}

.ao3-screen {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--card-shadow);
}

.ao3-screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.ao3-screen-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.ao3-screen-bar span:first-child {
  background: var(--accent);
}

.ao3-screen-bar b {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.ao3-screen-body {
  min-height: 270px;
  padding: 18px;
}

.ao3-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.ao3-search-row svg {
  flex: 0 0 16px;
  color: var(--muted);
}

.ao3-search-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.ao3-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.ao3-chip-row span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 9px;
}

.ao3-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.ao3-result-line b {
  color: var(--accent);
  font-size: 12px;
}

.ao3-result-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.ao3-result-row i {
  display: grid;
  width: 28px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: normal;
}

.ao3-result-row p {
  margin: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ao3-result-row em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.ao3-screen-read {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ao3-read-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ao3-screen-read h3 {
  margin: 12px 0;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 20px;
  line-height: 1.3;
}

.ao3-screen-read p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.ao3-screen-read .ao3-progress {
  margin-top: 22px;
}

.ao3-bookmark-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.ao3-bookmark-row svg {
  color: var(--accent);
}

.ao3-bookmark-row b {
  display: block;
  font-size: 12px;
}

.ao3-bookmark-row span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ao3-bookmark-row em {
  padding: 3px 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.ao3-sync-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--green);
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 800;
}

.ao3-sync-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.ao3-sync-list span {
  color: var(--muted);
}

.ao3-sync-list b {
  color: var(--green);
  text-align: right;
}

.ao3-reading {
  background: var(--white);
}

.ao3-reading-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}

.ao3-tabs {
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.ao3-tabs strong {
  display: block;
  padding: 12px 14px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
}

.ao3-tab {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--white);
  font-size: 12px;
  text-align: left;
}

.ao3-tab:hover {
  background: var(--paper);
}

.ao3-tab.ao3-active {
  color: var(--white);
  background: var(--accent);
}

.ao3-tab em {
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: normal;
  opacity: 0.78;
}

.ao3-work-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.ao3-work {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.ao3-work:hover {
  border-color: var(--accent);
  box-shadow: 5px 5px 0 var(--paper-soft);
}

.ao3-work[hidden] {
  display: none;
}

.ao3-work-copy {
  min-width: 0;
}

.ao3-work-copy h3 {
  margin: 0;
  font-size: 14px;
}

.ao3-work-copy p {
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.ao3-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ao3-tags span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 9px;
}

.ao3-work-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
}

.ao3-work-meta b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.ao3-work-meta button {
  margin-top: 5px;
}

.ao3-saved {
  color: var(--white);
  background: var(--green);
}

.ao3-saved .ao3-section-head {
  border-color: rgba(255, 255, 255, 0.5);
}

.ao3-saved .ao3-section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.ao3-saved .ao3-eyebrow {
  color: var(--gold);
}

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

.ao3-query {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.ao3-query-index {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ao3-query h3 {
  margin: 12px 0 8px;
  font-size: 15px;
  line-height: 1.4;
}

.ao3-query p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.7;
}

.ao3-query footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.ao3-query footer b {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 15px;
}

.ao3-help {
  background: var(--paper);
}

.ao3-help-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 44px;
}

.ao3-help-intro h2 {
  margin: 10px 0 14px;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 32px;
}

.ao3-help-intro p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.ao3-faq-list {
  border-top: 1px solid var(--ink);
}

.ao3-faq {
  border-bottom: 1px solid var(--ink);
}

.ao3-faq-toggle {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  text-align: left;
}

.ao3-faq-toggle span {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 10px;
}

.ao3-faq-toggle strong {
  font-size: 13px;
}

.ao3-faq-toggle svg {
  color: var(--muted);
  transition: transform 180ms ease;
}

.ao3-faq.ao3-open .ao3-faq-toggle svg {
  transform: rotate(180deg);
}

.ao3-faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.ao3-faq.ao3-open .ao3-faq-body {
  grid-template-rows: 1fr;
}

.ao3-faq-body > div {
  overflow: hidden;
}

.ao3-faq-body p {
  margin: 0;
  padding: 0 24px 18px 82px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.ao3-reviews {
  background: var(--white);
}

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

.ao3-note {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--card-shadow);
}

.ao3-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.ao3-note-head svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ao3-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
}

.ao3-note a {
  color: var(--accent);
  font-weight: 800;
}

.ao3-note a:hover {
  text-decoration: underline;
}

.ao3-note footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ao3-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.ao3-note footer b,
.ao3-note footer div span {
  display: block;
}

.ao3-note footer b {
  font-size: 11px;
}

.ao3-note footer div span {
  color: var(--muted);
  font-size: 9px;
}

.ao3-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 28px;
  border-top: 10px solid var(--accent);
  color: var(--white);
  background: var(--green);
}

.ao3-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.ao3-footer-brand .ao3-logo {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.ao3-footer-brand .ao3-mark {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  color: var(--accent);
  background: var(--white);
  font-size: 13px;
}

.ao3-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
}

.ao3-footer nav a:hover {
  color: var(--gold);
}

.ao3-footer > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.ao3-feedback {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 800;
}

body.ao3-modal-open {
  overflow: hidden;
}

.ao3-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.ao3-modal.ao3-open {
  visibility: visible;
  opacity: 1;
}

.ao3-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 26, 32, 0.66);
}

.ao3-modal-panel {
  position: relative;
  width: min(100%, 430px);
  padding: 36px 32px 30px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.18);
  transform: translateY(10px);
  transition: transform 180ms ease;
}

.ao3-modal.ao3-open .ao3-modal-panel {
  transform: translateY(0);
}

.ao3-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
}

.ao3-modal-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ao3-modal-panel h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Microsoft YaHei", serif;
  font-size: 28px;
}

.ao3-modal-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.ao3-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  max-width: min(calc(100% - 40px), 440px);
  padding: 12px 18px;
  color: var(--white);
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.ao3-toast.ao3-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1120px) {
  .ao3-header {
    grid-template-columns: 200px 1fr auto;
  }

  .ao3-nav {
    gap: 16px;
  }

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

@media (max-width: 920px) {
  .ao3-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .ao3-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .ao3-nav.ao3-open {
    display: flex;
  }

  .ao3-nav a {
    padding: 11px 12px;
  }

  .ao3-menu {
    display: grid;
  }

  .ao3-header-actions .ao3-ghost-button,
  .ao3-header-actions .ao3-button {
    display: none;
  }

  .ao3-product img {
    height: 370px;
  }

  .ao3-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ao3-hero-copy {
    padding: 58px 7% 48px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ao3-desk {
    padding: 48px 7% 60px;
  }

  .ao3-reading-layout {
    grid-template-columns: 1fr;
  }

  .ao3-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 1px solid var(--ink);
  }

  .ao3-tabs strong {
    grid-column: 1 / -1;
  }

  .ao3-help-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .ao3-section {
    padding: 62px 22px;
  }

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

  .ao3-section-head p {
    max-width: none;
  }

  .ao3-query-grid,
  .ao3-note-grid {
    grid-template-columns: 1fr;
  }

  .ao3-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .ao3-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .ao3-product img {
    height: 290px;
  }
}

@media (max-width: 420px) {
  .ao3-product img {
    height: 255px;
  }
}

@media (max-width: 600px) {
  .ao3-statusbar {
    padding: 0 16px;
  }

  .ao3-statusbar span:first-child {
    display: none;
  }

  .ao3-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .ao3-brand-copy small {
    display: none;
  }

  .ao3-hero h1 {
    font-size: 36px;
  }

  .ao3-hero-meta dd {
    font-size: 22px;
  }

  .ao3-desk-stats {
    grid-template-columns: 1fr;
  }

  .ao3-desk-stats div {
    min-height: 82px;
  }

  .ao3-screen-grid {
    grid-template-columns: 1fr;
  }

  .ao3-screen-body {
    min-height: 240px;
  }

  .ao3-work {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .ao3-work-meta {
    grid-column: 1 / -1;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 8px 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .ao3-work-meta button {
    margin-top: 0;
    justify-self: end;
  }

  .ao3-faq-toggle {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    padding: 0 10px;
  }

  .ao3-faq-body p {
    padding: 0 12px 16px 62px;
  }

  .ao3-footer {
    padding: 26px 22px;
  }
}
