/* 《天仙月》官网 GEO 工程化样式表（响应式桌面 + 手机端，零外部字体/CDN 依赖） */
:root {
  --txy-ink: #0f2530;
  --txy-ink-soft: #264250;
  --txy-muted: #526a76;
  --txy-paper: #f6f8f6;
  --txy-card: #ffffff;
  --txy-jade: #0e7c7b;
  --txy-jade-dark: #0a5c5c;
  --txy-jade-soft: #e6f5f4;
  --txy-sky: #1677b3;
  --txy-gold: #c9922b;
  --txy-gold-soft: #fdf6e7;
  --txy-border: #d8e4e2;
  --txy-shadow: 0 12px 32px rgba(15, 37, 48, 0.08);
  --txy-radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.txy-site {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--txy-ink);
  background: var(--txy-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.txy-site a {
  color: var(--txy-jade);
  text-decoration: none;
}

body.txy-site a:hover {
  text-decoration: underline;
}

.txy-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.txy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 34, 44, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.txy-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.txy-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.txy-brand:hover {
  text-decoration: none !important;
}

.txy-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.txy-brand-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(201, 146, 43, 0.22);
  border: 1px solid rgba(246, 213, 139, 0.52);
  color: #f6d58b;
}

.txy-nav-links {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
}

.txy-nav-divider {
  color: rgba(255, 255, 255, 0.28);
  font-size: 13px;
  user-select: none;
}

.txy-nav-links a {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 14px;
  font-weight: 500;
}

.txy-nav-links a:hover,
.txy-nav-links a.active {
  color: #f6d58b !important;
  text-decoration: none !important;
}

.txy-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.txy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.25;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.txy-btn:hover {
  text-decoration: none !important;
  transform: translateY(-1px);
}

.txy-btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.txy-btn-gold {
  color: #1f1604 !important;
  background: linear-gradient(135deg, #f3d184, #d99f32);
  box-shadow: 0 6px 16px rgba(217, 159, 50, 0.3);
}

.txy-btn-android {
  color: #fff !important;
  background: linear-gradient(135deg, #279d5f, #1b7847);
}

.txy-btn-ios {
  color: #fff !important;
  background: linear-gradient(135deg, #1f3340, #0f1d26);
}

.txy-btn-pc {
  color: #fff !important;
  background: linear-gradient(135deg, #1fa3d6, #1171a8);
}

.txy-btn-wx {
  color: #fff !important;
  background: linear-gradient(135deg, #1aad19, #128512);
}

.txy-btn-jade {
  color: #fff !important;
  background: linear-gradient(135deg, #109493, #0a6766);
}

#phone-download[aria-busy="true"],
#download-android[aria-busy="true"],
#download-ios[aria-busy="true"] {
  cursor: progress;
  opacity: 0.65;
}

/* Hero */
.txy-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(96deg, rgba(10, 31, 43, 0.88) 0%, rgba(13, 47, 63, 0.74) 56%, rgba(14, 48, 64, 0.14) 84%, rgba(14, 48, 64, 0.04) 100%),
    url("/assets/banner.jpg") right center / cover no-repeat;
  color: #fff;
  padding: 54px 0 64px;
}

.txy-hero-content {
  max-width: 780px;
}

.txy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e9f9f8;
  margin-bottom: 12px;
}

.txy-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.txy-hero-subtitle {
  margin: 0 0 12px;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
  color: #f6d58b;
}

.txy-hero-lead {
  margin: 0 0 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
}

.txy-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.txy-hero-badge {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff !important;
}

.txy-hero-badge:hover {
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.22);
}

.txy-hero-badge strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.txy-hero-badge span {
  display: block;
  font-size: 12px;
  color: rgba(235, 248, 247, 0.86);
}

/* Download + WeChat QR + Stores Hub */
.txy-download-box {
  background: rgba(255, 255, 255, 0.96);
  color: var(--txy-ink);
  border-radius: var(--txy-radius);
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(8, 24, 34, 0.28);
}

.txy-download-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 152px;
  gap: 18px;
  align-items: center;
}

.txy-download-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--txy-ink-soft);
  margin-bottom: 10px;
}

.txy-download-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.txy-download-actions .txy-btn {
  flex-direction: column;
  padding: 11px 10px;
  gap: 3px;
  text-align: center;
}

.txy-btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.txy-platform-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--txy-muted);
}

.txy-highlight-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.txy-metric-line {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--txy-paper);
  border: 1px solid var(--txy-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--txy-ink-soft);
}

.txy-guide-stack {
  display: grid;
  gap: 36px;
}

.txy-guide-block h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--txy-ink);
}

.txy-tldr {
  margin: 0 0 16px;
  padding: 13px 16px;
  border-left: 4px solid var(--txy-jade);
  border-radius: 0 12px 12px 0;
  background: var(--txy-jade-soft);
  color: var(--txy-ink-soft);
  font-size: 14px;
}

.txy-guide-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

/* Legal Document Reading Card */
.txy-legal-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.txy-legal-card {
  background: var(--txy-card);
  border: 1px solid var(--txy-border);
  border-radius: var(--txy-radius);
  padding: 36px 40px;
  box-shadow: var(--txy-shadow);
}

.txy-legal-card .con_mode {
  color: var(--txy-ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.txy-legal-card .con_mode h1,
.txy-legal-card .con_mode h2 {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--txy-ink);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--txy-jade);
}

.txy-legal-card .con_mode > :first-child {
  margin-top: 0;
}

.txy-legal-card .con_mode p {
  margin: 0 0 14px;
  color: var(--txy-ink-soft);
  text-align: justify;
}

.txy-legal-card .con_mode br {
  display: none;
}

.txy-legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.txy-legal-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--txy-card);
  border: 1px solid var(--txy-border);
  color: var(--txy-ink-soft) !important;
}

.txy-legal-tab.active {
  background: var(--txy-jade);
  border-color: var(--txy-jade);
  color: #fff !important;
}

@media (max-width: 600px) {
  .txy-legal-card {
    padding: 22px 18px;
  }
}

.txy-wx-entry-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.txy-wx-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #cce7d2;
  background: #f3fbf5;
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.txy-wx-qr-card:hover {
  border-color: #8fd1a0;
  box-shadow: 0 8px 18px rgba(20, 122, 31, 0.14);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.txy-wx-qr-card[aria-busy="true"] {
  opacity: 0.78;
  cursor: wait;
}

.txy-wx-qr-card img {
  width: 118px;
  height: auto;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.txy-wx-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  width: 100%;
}

.txy-wx-card-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #147a1f;
}

.txy-wx-card-sub {
  font-size: 10.5px;
  line-height: 1.35;
  color: #4f6f58;
}

.txy-wx-cta-pill {
  display: none;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1aad19, #128512);
  box-shadow: 0 4px 10px rgba(26, 173, 25, 0.28);
}

.txy-wx-qr-card.is-direct-launch {
  border-color: #6bc47e;
  background: linear-gradient(180deg, #f3fcf5 0%, #e7f8eb 100%);
  box-shadow: 0 8px 18px rgba(20, 122, 31, 0.12);
}

.txy-wx-qr-card.is-direct-launch .txy-wx-cta-pill {
  display: inline-flex;
}

.txy-wx-qr-fallback-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #2f6c40;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.txy-wx-qr-fallback-btn:hover {
  color: #147a1f;
}

.txy-wx-entry-wrap.is-direct-launch .txy-wx-qr-fallback-btn {
  display: inline-flex;
}

.txy-wx-modal-launch {
  margin-top: 14px;
  width: 100%;
  padding: 11px 14px;
}

.txy-store-strip {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--txy-border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--txy-muted);
}

.txy-store-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--txy-jade-soft);
  color: var(--txy-ink) !important;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #bcded9;
}

.txy-store-chip.featured {
  background: var(--txy-gold-soft);
  border-color: #e6c67f;
  color: #6b4705 !important;
}

.txy-store-chip.upcoming {
  background: #eaf2fa;
  border-color: #b7cee6;
  color: #173a5e !important;
}

.txy-store-chip.static {
  cursor: default;
}

.txy-hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.txy-hero-visual img {
  width: min(390px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(8, 24, 34, 0.42));
}

/* Sections */
.txy-section {
  padding: 54px 0;
}

.txy-section.alt {
  background: #ecf3f2;
}

.txy-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.txy-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--txy-ink);
}

.txy-section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--txy-muted);
}

.txy-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

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

.txy-card {
  background: var(--txy-card);
  border: 1px solid var(--txy-border);
  border-radius: var(--txy-radius);
  padding: 20px 22px;
  box-shadow: var(--txy-shadow);
}

.txy-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--txy-ink);
}

.txy-card p {
  margin: 0;
  font-size: 14px;
  color: var(--txy-muted);
}

.txy-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--txy-jade-soft);
  color: var(--txy-jade);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

.txy-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--txy-jade-soft);
  color: var(--txy-jade);
  margin-bottom: 8px;
}

.txy-tag.gold {
  background: var(--txy-gold-soft);
  color: #825608;
}

.txy-card-action {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.txy-wx-inline-qr {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f3fbf5;
  border: 1px solid #cce7d2;
}

.txy-wx-inline-qr img {
  width: 96px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Tables */
.txy-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--txy-card);
  border: 1px solid var(--txy-border);
  border-radius: var(--txy-radius);
  box-shadow: var(--txy-shadow);
}

.txy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.txy-table th,
.txy-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--txy-border);
  vertical-align: top;
}

.txy-table thead th {
  background: #143646;
  color: #fff;
  font-weight: 600;
}

.txy-table tbody tr:last-child td {
  border-bottom: none;
}

.txy-table tbody tr:hover {
  background: #f6fbfa;
}

/* Keywords & FAQ */
.txy-keyword-panel {
  background: var(--txy-card);
  border: 1px solid var(--txy-border);
  border-radius: var(--txy-radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.txy-keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.txy-keyword-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--txy-paper);
  border: 1px solid var(--txy-border);
  font-size: 13px;
  color: var(--txy-ink-soft);
}

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

.txy-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.txy-faq-title-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.txy-faq-badge {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--txy-jade-soft);
  color: var(--txy-jade-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

details.txy-faq-item {
  background: var(--txy-card);
  border: 1px solid var(--txy-border);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(15, 37, 48, 0.04);
}

details.txy-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--txy-ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

details.txy-faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--txy-jade);
  font-weight: 700;
}

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

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

/* Subpage Hero */
.txy-sub-hero {
  background: linear-gradient(120deg, #102d3b, #145463);
  color: #fff;
  padding: 38px 0;
}

.txy-sub-hero h1 {
  margin: 8px 0;
  font-size: clamp(26px, 3.6vw, 38px);
}

.txy-sub-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 780px;
}

.txy-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.txy-breadcrumb a {
  color: #f6d58b !important;
}

/* Footer */
.txy-footer {
  background: #0d212b;
  color: rgba(255, 255, 255, 0.92);
  padding: 36px 0 42px;
  font-size: 14px;
}

.txy-footer-compliance {
  text-align: center;
  line-height: 1.9;
}

.txy-footer-compliance p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.txy-footer-compliance a {
  color: #7cd4f8 !important;
}

.txy-advisory-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 4px !important;
}

.txy-copyright {
  margin-top: 6px !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

/* Modals & Toast */
.txy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 22, 30, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.txy-modal-card {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  color: var(--txy-ink);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.txy-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #eef3f5;
  color: var(--txy-ink);
  font-size: 18px;
  cursor: pointer;
}

/* iOS Trust Guide Trigger & Visual Steps Modal */
.txy-ios-guide-bar {
  margin-top: 10px;
}

.txy-ios-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #d5e4e2;
  background: #f5faf9;
  color: var(--txy-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
  text-align: left;
  line-height: 1.4;
}

.txy-ios-guide-trigger:hover {
  background: #e9f5f3;
  border-color: var(--txy-jade);
  transform: translateY(-1px);
}

.txy-ios-guide-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: #182b36;
  color: #f6d58b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.txy-ios-modal-card {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  text-align: left;
  padding: 22px 22px 18px;
}

.txy-ios-modal-head {
  padding-right: 32px;
  margin-bottom: 14px;
}

.txy-ios-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--txy-jade-soft);
  color: var(--txy-jade);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.txy-ios-status-pill.is-downloading {
  background: #e6f6ec;
  color: #166534;
}

.txy-ios-modal-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--txy-ink);
}

.txy-ios-modal-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--txy-muted);
}

.txy-ios-guide-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.txy-ios-video-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.txy-ios-video-shell {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0d1e27;
  border: 2px solid #1d3c4a;
  box-shadow: 0 12px 28px rgba(10, 26, 36, 0.24);
}

.txy-ios-video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0d1e27;
}

.txy-ios-video-caption {
  margin: 0;
  font-size: 12px;
  color: #5b707d;
  text-align: center;
}

.txy-ios-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.txy-ios-step {
  background: #f5f8fa;
  border: 1px solid #dfe8ee;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.txy-ios-step:hover {
  background: #eef6f7;
  border-color: #9dc5c2;
}

.txy-ios-step.is-active {
  background: #fffdf5;
  border-color: #d99326;
  box-shadow: 0 4px 14px rgba(217, 147, 38, 0.14);
}

.txy-ios-step-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.txy-ios-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #102d3b, #145463);
  color: #f6d58b;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.txy-ios-step.is-active .txy-ios-step-num {
  background: linear-gradient(135deg, #b8730b, #e0a12d);
  color: #fff;
}

.txy-ios-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--txy-ink);
  line-height: 1.35;
}

.txy-ios-step-jump {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--txy-jade);
  background: var(--txy-jade-soft);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.txy-ios-step.is-active .txy-ios-step-jump {
  background: #fff1cc;
  color: #8a5300;
}

.txy-ios-step-note {
  margin: 0;
  padding-left: 30px;
  font-size: 12.5px;
  color: #526875;
  line-height: 1.55;
}

.txy-ios-step-note strong {
  color: #16303d;
}

.txy-ios-step-warn {
  color: #b91c1c !important;
  font-weight: 700;
}

.txy-ios-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.txy-ios-modal-actions .txy-btn {
  flex: 1;
  padding: 11px 14px;
  font-size: 14px;
  justify-content: center;
}

.txy-ios-support-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: #657c8a;
  line-height: 1.5;
}

.txy-ios-support-note a {
  color: var(--txy-jade);
  font-weight: 700;
}

@media (max-width: 720px) {
  .txy-ios-modal-card {
    width: min(460px, 100%);
    padding: 18px 15px 15px;
  }

  .txy-ios-guide-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .txy-ios-video-shell {
    max-width: 230px;
  }

  .txy-ios-modal-actions {
    flex-direction: column;
  }
}

.txy-toast {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  background: linear-gradient(135deg, #fffaf0, #fde9be);
  color: #2b1800;
  border: 2px solid #d99f32;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  z-index: 10080;
  display: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* 立即畅玩锚点防遮挡与高亮定位反馈 */
#download-hub,
#highlights,
#faq {
  scroll-margin-top: 88px;
}

.txy-download-box.is-focused {
  animation: txyHubFocus 1.6s ease;
}

@keyframes txyHubFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 159, 50, 0.85), 0 18px 40px rgba(8, 24, 34, 0.34);
  }
  35% {
    box-shadow: 0 0 0 6px rgba(243, 209, 132, 0.72), 0 20px 44px rgba(8, 24, 34, 0.38);
  }
  100% {
    box-shadow: 0 16px 36px rgba(8, 24, 34, 0.28);
  }
}

/* 微信 / 内置浏览器全屏下载引导遮罩（手机竖屏一眼锁死视线） */
.txy-inapp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 20, 0.9);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  z-index: 10060;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.txy-inapp-pointer {
  position: fixed;
  top: 8px;
  right: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #f6d58b;
  pointer-events: none;
  z-index: 10065;
  animation: txyArrowBounce 1.4s ease-in-out infinite;
}

.txy-inapp-pointer-pill {
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3d184, #d99f32);
  color: #1f1604;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(217, 159, 50, 0.46);
  white-space: nowrap;
}

.txy-inapp-pointer svg {
  width: 44px;
  height: 50px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(246, 213, 139, 0.55));
}

@keyframes txyArrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.txy-inapp-card {
  position: relative;
  margin: auto 0;
  width: min(440px, 100%);
  background: #ffffff;
  color: var(--txy-ink);
  border-radius: 20px;
  padding: 20px 18px 18px;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border: 2px solid #f3d184;
}

.txy-inapp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: #fff3d6;
  border: 1px solid #e6be6c;
  color: #825608;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.txy-inapp-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.38;
  color: var(--txy-ink);
  padding-right: 26px;
}

.txy-inapp-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--txy-muted);
}

.txy-inapp-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.txy-inapp-steps li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f2f8f7;
  border: 1px solid #d4e8e5;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--txy-ink);
}

.txy-inapp-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #109493, #0a6766);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.txy-inapp-copy-box {
  padding: 12px;
  border-radius: 12px;
  background: #f8faf9;
  border: 1px dashed #b9d2cf;
  margin-bottom: 12px;
}

.txy-inapp-url-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--txy-muted);
  margin-bottom: 6px;
}

.txy-inapp-url-text {
  display: block;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--txy-ink-soft);
  word-break: break-all;
  background: #fff;
  border: 1px solid #dce8e6;
  border-radius: 8px;
  padding: 7px 9px;
  margin-bottom: 10px;
  resize: none;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}

.txy-inapp-copy-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  justify-content: center;
}

.txy-inapp-copy-btn.is-copied {
  background: linear-gradient(135deg, #178a4e, #0f6b3a) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(15, 107, 58, 0.28) !important;
}

.txy-inapp-wx-btn {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  justify-content: center;
  margin-bottom: 10px;
  background: #edf9f1;
  color: #0f6b3a !important;
  border: 1px solid #b5e1c3;
}

.txy-inapp-dismiss {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #d5e2e0;
  background: #fff;
  color: var(--txy-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 720px) {
  .txy-toast {
    top: max(calc(env(safe-area-inset-top, 0px) + 76px), min(14vh, 124px));
    bottom: auto;
    width: calc(100vw - 32px);
    padding: 14px 18px;
    font-size: 15px;
  }

  .txy-inapp-overlay {
    padding: 66px 14px 20px;
  }

  .txy-inapp-card {
    padding: 16px 15px 14px;
  }

  .txy-inapp-card h3 {
    font-size: 16.5px;
    margin-bottom: 6px;
  }

  .txy-inapp-desc {
    font-size: 12.5px;
    margin-bottom: 10px;
  }

  .txy-inapp-steps {
    gap: 8px;
    margin-bottom: 12px;
  }

  .txy-inapp-steps li {
    padding: 9px 10px;
    font-size: 13px;
  }

  .txy-inapp-copy-box {
    padding: 10px;
    margin-bottom: 10px;
  }

  .txy-inapp-url-text {
    margin-bottom: 8px;
    padding: 6px 8px;
  }

  .txy-inapp-copy-btn {
    padding: 10px 14px;
    font-size: 14.5px;
  }

  .txy-inapp-wx-btn {
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 8px;
  }
}

.txy-invite-fab {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: none;
}

@media (max-width: 980px) {
  #download-hub,
  #highlights,
  #faq {
    scroll-margin-top: 148px;
  }

  .txy-hero-grid,
  .txy-grid-4,
  .txy-grid-3,
  .txy-grid-2,
  .txy-faq-grid,
  .txy-footer-grid,
  .txy-download-main {
    grid-template-columns: 1fr;
  }

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

  .txy-hero-visual img {
    width: 240px;
  }

  .txy-wx-qr-card {
    flex-direction: row;
    gap: 14px;
    justify-content: flex-start;
    padding: 10px 14px;
    text-align: left;
  }

  .txy-wx-qr-card img {
    width: 72px;
  }

  .txy-wx-card-body {
    align-items: flex-start;
    margin-top: 0;
  }

  .txy-wx-card-title {
    font-size: 14px;
  }

  .txy-wx-card-sub {
    font-size: 12px;
  }

  .txy-wx-qr-fallback-btn {
    align-self: flex-start;
    padding-left: 2px;
  }
}

@media (max-width: 600px) {
  #download-hub,
  #highlights,
  #faq {
    scroll-margin-top: 196px;
  }

  .txy-nav {
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .txy-nav-links {
    gap: 12px;
  }

  .txy-download-actions,
  .txy-badge-grid {
    grid-template-columns: 1fr;
  }
}
