/* AO3 落地页样式表 —— 框架沿用对标站，配色替换为 AO3 官网红 + 黑色点缀 */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f6f6;
  --bg-elev: #ffffff;
  --bg-panel: #ffffff;
  --line: #dcdcdc;
  --line-mid: #c9c9c9;
  --line-accent: rgba(143, 29, 33, 0.55);
  --accent: #8f1d21;
  --accent-soft: #a52127;
  --accent-deep: #6d1418;
  --ink: #1c1a1b;
  --text: #2b2b2b;
  --muted: #676767;
  --radius: 3px;
  --wrap: min(1240px, calc(100% - 2.5rem));
  --font-display: Georgia, "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", Arial, sans-serif;
  --shadow-frame: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: #f5f5f5;
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.tx-page-frame {
  display: none;
}

.tx-wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Corner marks stay out of this layout */
.tx-corner {
  display: none;
}

.tx-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-frame);
}

.tx-frame--accent {
  border-color: var(--line-accent);
}

.tx-frame--pad {
  padding: 8px;
  background: var(--bg-elev);
}

.tx-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line-accent);
  border-radius: var(--radius);
  background: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
}

/* Header */
.tx-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--accent);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 2px 10px rgba(28, 26, 27, 0.18);
}

.tx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.tx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: #fff;
}

.tx-brand img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  background: #fff;
}

.tx-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.tx-nav a {
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tx-nav a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.tx-nav__cta {
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #ffffff !important;
}

.tx-nav__cta > span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: #8f1d21;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.tx-nav__cta:hover > span {
  background: #000;
}

.tx-burger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 1px solid rgb(0 0 0 / 22%);
  border-radius: 8px;
  background: #8f1d21;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tx-burger:hover {
  background: rgb(0 0 0 / 20%);
}

.tx-burger:active {
  transform: scale(0.96);
}

.tx-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: #ffffff;
}

/* Hero */
.tx-hero {
  position: relative;
  min-height: auto;
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(143, 29, 33, 0.06), transparent 42%),
    var(--bg);
}

.tx-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  gap: 2.75rem;
  align-items: center;
}

.tx-hero__copy {
  max-width: 34rem;
}

.tx-hero__stage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.tx-hero-shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(100%, 600px);
  padding: 14px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 32px rgba(28, 26, 27, 0.12);
}

.tx-hero__badge {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.05rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--accent);
}

.tx-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 7.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--accent);
  animation: tx-title-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tx-hero__lead {
  margin: 1rem 0 0.55rem;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.tx-hero__desc {
  margin: 0 0 0.7rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.tx-hero__desc + .tx-hero__desc {
  margin-top: -0.1rem;
}

.tx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.tx-hero__meta {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 26rem;
}

.tx-hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 2px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
}

.tx-hero__meta strong {
  color: var(--ink);
  font-weight: 700;
  min-width: 4.2rem;
}

.tx-btn-shell {
  display: inline-flex;
  transition: transform 0.2s ease;
}

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

.tx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.68rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tx-btn--primary {
  color: #fff;
  border-color: var(--accent-deep);
  background: var(--accent);
}

.tx-btn-shell:hover .tx-btn--primary {
  background: var(--accent-deep);
}

.tx-btn--ghost {
  border-color: var(--line-mid);
  background: #fff;
  color: var(--ink);
}

.tx-btn-shell:hover .tx-btn--ghost {
  border-color: var(--ink);
}

.tx-btn--lg {
  min-height: 52px;
  padding-inline: 1.7rem;
  font-size: 1rem;
}

/* Hero shots — full image, framed */
.tx-hardshot {
  position: relative;
  margin: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.tx-hardshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product row — large cards, drag for more */
.tx-row-wrap {
  margin-top: 0.35rem;
  overflow: visible;
  padding-top: 0.35rem;
}

.tx-row {
  display: flex;
  gap: 1rem;
  align-items: end;
  padding: 3rem 0.25rem 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 29, 33, 0.45) #e6e6e6;
}

.tx-row.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.tx-row::-webkit-scrollbar {
  height: 6px;
}

.tx-row::-webkit-scrollbar-track {
  background: #e6e6e6;
}

.tx-row::-webkit-scrollbar-thumb {
  background: rgba(143, 29, 33, 0.45);
}

.tx-row__item {
  --h: 1;
  flex: 0 0 calc((100% - 3.2rem) / 4.3);
  margin: 0;
  transform: translateY(calc(var(--h) * -16px));
  scroll-snap-align: start;
}

.tx-row__frame {
  position: relative;
  padding: 7px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: 0 8px 22px rgba(28, 26, 27, 0.1);
  pointer-events: none;
}

.tx-row__frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  background: #ffffff;
}

.tx-row__item figcaption {
  margin-top: 0.55rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-row__hint {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sections */
.tx-section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--line);
}

.tx-section--tight {
  padding-bottom: 4.5rem;
}

#gallery,
#reviews {
  background: var(--bg-alt);
}

.tx-section__head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.tx-section__head h2 {
  margin: 0.9rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tx-section__head p {
  margin: 0;
  color: var(--muted);
}

.tx-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tx-panel {
  position: relative;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-panel);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.tx-panel:hover {
  border-color: var(--line-mid);
  border-top-color: var(--accent-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(28, 26, 27, 0.1);
}

.tx-panel__index {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.16rem 0.5rem;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.tx-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.16rem;
  color: var(--ink);
}

.tx-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Trust */
.tx-trust__box {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.6rem;
  padding: 2rem 1.8rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.tx-trust__copy h2 {
  margin: 0.9rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  color: var(--ink);
}

.tx-trust__copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 38rem;
}

.tx-trust__list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.tx-trust__list li {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.92rem;
}

.tx-trust__side {
  display: grid;
  place-items: center;
}

.tx-trust__card {
  width: min(100%, 250px);
  padding: 1.6rem 1.1rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
}

.tx-trust__card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line-mid);
  background: #fff;
  margin-bottom: 0.5rem;
}

.tx-trust__card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.tx-trust__card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.tx-trust__domain {
  margin-top: 0.5rem !important;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line-accent);
  border-radius: 2px;
  background: rgba(143, 29, 33, 0.06);
  color: var(--accent) !important;
  font-weight: 700;
}

/* Reviews */
.tx-reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tx-review {
  position: relative;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tx-review:hover {
  border-color: var(--line-accent);
  box-shadow: 0 10px 24px rgba(28, 26, 27, 0.08);
}

.tx-review__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.tx-review__top strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink);
}

.tx-review__top time {
  color: var(--muted);
  font-size: 0.8rem;
}

.tx-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-accent);
  border-radius: 50%;
  background: rgba(143, 29, 33, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.tx-review p {
  margin: 0;
  color: #474747;
  font-size: 0.95rem;
}

/* CTA */
.tx-cta {
  padding: 4.5rem 0 5rem;
}

.tx-cta__box {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.tx-cta__box h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: #fff;
}

.tx-cta__box p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
}

.tx-cta__box .tx-btn--primary {
  border-color: transparent;
  background: var(--accent);
}

.tx-cta__box .tx-btn-shell:hover .tx-btn--primary {
  background: var(--accent-soft);
}

/* Footer */
.tx-footer {
  border-top: 3px solid var(--accent);
  padding: 1.6rem 0 2rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.tx-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.tx-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.tx-footer__brand img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
  background: #fff;
}

.tx-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
}

.tx-footer__site {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tx-footer__site:hover {
  color: #f2b7b5;
  border-bottom-color: #f2b7b5;
}

.tx-footer__cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  color: #fff;
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tx-footer__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* FAQ */
.tx-faq {
  display: grid;
  gap: 0.7rem;
  max-width: 58rem;
}

.tx-faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  transition: border-color 0.2s ease;
}

.tx-faq__item[open] {
  border-color: var(--line-accent);
}

.tx-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  transition: color 0.2s ease;
}

.tx-faq__item summary::-webkit-details-marker {
  display: none;
}

.tx-faq__item summary::after {
  content: "＋";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-accent);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.86rem;
  line-height: 1;
}

.tx-faq__item summary:hover {
  color: var(--accent);
}

.tx-faq__item[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--accent);
}

.tx-faq__item[open] summary::after {
  content: "－";
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tx-faq__item p {
  margin: 0;
  padding: 1rem 1.2rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Reveal motion */
.js .tx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .tx-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes tx-title-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .tx-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tx-hero__stage {
    justify-content: center;
  }

  .tx-hero-shots {
    width: min(100%, 540px);
    margin-inline: auto;
  }

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

  .tx-nav {
    gap: 1.05rem;
  }

  .tx-nav a {
    font-size: 0.9rem;
  }

  .tx-trust__box {
    grid-template-columns: 1fr;
  }

  .tx-row {
    gap: 0.85rem;
  }

  .tx-row__item {
    flex-basis: calc((100% - 1.9rem) / 3.25);
    transform: translateY(calc(var(--h) * -12px));
  }
}

@media (max-width: 760px) {
  :root {
    --wrap: min(1180px, calc(100% - 1.5rem));
  }

  .tx-header__inner {
    min-height: 66px;
  }

  .tx-burger {
    display: grid;
  }

  .tx-nav {
    position: fixed;
    top: 70px;
    left: 6px;
    right: 6px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem;
    border: 1px solid #8e1d21;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 18px 40px rgba(28, 26, 27, 0.24);
    z-index: 45;
  }

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

  .tx-nav a {
    padding: 0.9rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-size: 1rem;
  }

  .tx-nav a:last-child {
    border-bottom: 0;
  }

  .tx-nav a:hover {
    background: var(--bg-alt);
    color: var(--accent);
    border-bottom-color: var(--line);
  }

  .tx-nav__cta {
    padding: 0.5rem 0 0.2rem !important;
  }

  .tx-nav__cta > span {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    background: var(--accent);
    border-color: var(--accent-deep);
    font-size: 0.98rem;
  }

  .tx-nav__cta:hover > span {
    background: var(--accent-deep);
  }

  .tx-hero {
    padding-top: 3rem;
    min-height: auto;
  }

  .tx-hero__title {
    font-size: clamp(3.2rem, 15vw, 4.6rem);
  }

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

  .tx-hero-shots {
    width: min(100%, 420px);
    gap: 8px;
    padding: 10px;
  }

  .tx-row__item {
    flex-basis: calc((100% - 0.7rem) / 2);
    transform: translateY(calc(var(--h) * -10px));
  }

  .tx-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .tx-reveal {
    opacity: 1;
    transform: none;
  }
}
