:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --mint: #ccfbf1;
  --mint-soft: #f0fdfa;
  --gold: #fbbf24;
  --gold-soft: #fef3c7;
  --coral: #fb7185;
  --sky: #38bdf8;
  --purple: #a78bfa;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 16px rgba(13, 148, 136, 0.08);
  --shadow-md: 0 12px 40px rgba(13, 148, 136, 0.14);
  --shadow-lg: 0 24px 64px rgba(13, 148, 136, 0.18);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
  position: relative;
}

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin: 0 -6px 0 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-input:checked + .nav-toggle-btn .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-input:checked + .nav-toggle-btn .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked + .nav-toggle-btn .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--teal-dark);
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.25);
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}

.logo-text small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 0.92rem;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
  background: var(--mint);
  color: var(--teal-dark);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 700;
}

/* ── Poster Hero ── */

.poster-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(20, 184, 166, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(251, 191, 36, 0.15), transparent 50%),
    linear-gradient(165deg, #ecfdf5 0%, #f0fdfa 35%, #f8fafc 100%);
}

.poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
}

.poster-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.poster-copy {
  max-width: 560px;
}

.poster-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 16px 8px 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-dark);
  box-shadow: var(--shadow-sm);
}

.poster-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-light);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.92); }
}

.poster-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.poster-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--teal-dark), var(--teal-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.poster-tagline {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 36px rgba(13, 148, 136, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--teal-dark);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--teal-dark);
}

.poster-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.55;
}

.poster-note-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ── Poster Visual ── */

.poster-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 24px;
}

.poster-orbit {
  position: relative;
  width: min(100%, 420px);
  height: 420px;
  flex-shrink: 0;
}

.poster-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(calc(100% - 72px), 288px);
  transform: translate(-50%, -50%);
  padding: 28px 24px 32px;
  background: linear-gradient(160deg, #ffffff 0%, #f0fdfa 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.5), rgba(56, 189, 248, 0.3), rgba(251, 191, 36, 0.4));
  z-index: -1;
  opacity: 0.65;
}

.poster-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.poster-logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.28);
  object-fit: cover;
}

.poster-card-title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.poster-card-sub {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.poster-lang-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.lang-chip {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-chip--teal { background: var(--mint); color: var(--teal-dark); }
.lang-chip--sky { background: #e0f2fe; color: #0369a1; }
.lang-chip--gold { background: var(--gold-soft); color: #b45309; }
.lang-chip--coral { background: #ffe4e6; color: #be123c; }

.float-chip {
  position: absolute;
  z-index: 4;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

/* 等边三角：顶 · 左下 · 右下（相对 orbit 外框，不被卡片遮挡） */
.float-chip--1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: float-top 5s ease-in-out infinite;
  animation-delay: 0s;
}

.float-chip--2 {
  bottom: 0;
  left: 0;
  animation: float-side 5s ease-in-out infinite;
  animation-delay: 1.6s;
}

.float-chip--3 {
  bottom: 0;
  right: 0;
  left: auto;
  animation: float-side 5s ease-in-out infinite;
  animation-delay: 3.2s;
}

@keyframes float-top {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes float-side {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(13, 148, 136, 0.18);
  pointer-events: none;
}

.deco-ring--1 {
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.deco-ring--2 {
  width: 72%;
  height: 72%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(56, 189, 248, 0.15);
}

/* ── Features Section ── */

.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

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

.feature-card {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  font-size: 1.5rem;
}

.feature-icon--teal { background: var(--mint); }
.feature-icon--sky { background: #e0f2fe; }
.feature-icon--gold { background: var(--gold-soft); }
.feature-icon--purple { background: #ede9fe; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Content pages ── */

.page-banner {
  padding: 40px 0 32px;
  background: linear-gradient(165deg, #ecfdf5, #f8fafc);
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 900;
}

.page-banner p {
  margin: 0;
  color: var(--text-soft);
}

.content-page {
  padding: 40px 0 72px;
  flex: 1;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 40px;
  box-shadow: var(--shadow-sm);
}

.content-page .updated {
  margin: 0 0 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

.content-page h2 {
  margin: 32px 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.content-page p,
.content-page li {
  color: var(--text-soft);
}

.content-page ul,
.content-page ol {
  padding-left: 1.3rem;
}

.legal-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text-soft);
}

.legal-table th {
  background: var(--surface-2, #f7f8fa);
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.legal-table a {
  word-break: break-all;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-list li:last-child {
  border-bottom: none;
}

/* ── Footer ── */

.site-footer {
  margin-top: auto;
  padding: 48px 0 36px;
  background: var(--text);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #fff;
}

.footer-brand p {
  margin: 0;
  line-height: 1.55;
}

.footer-links h4 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: 1.8;
}

.footer-bottom p {
  margin: 0 0 8px;
  word-break: break-word;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom a:hover {
  color: var(--mint);
}

/* ── Download ── */

.section-download {
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.download-grid--home .download-card {
  text-align: center;
}

.download-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.download-card--primary {
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 12px 32px rgba(13, 148, 136, 0.12);
}

.download-card h2,
.download-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.download-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.download-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.download-platform-icon {
  font-size: 2rem;
  line-height: 1;
}

.download-card-meta {
  margin: 4px 0 0 !important;
  font-size: 0.9rem;
}

.download-btn {
  width: 100%;
  max-width: 320px;
}

.download-fineprint {
  margin: 16px 0 0 !important;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-fineprint code {
  font-size: 0.82rem;
  padding: 2px 6px;
  background: #f1f5f9;
  border-radius: 4px;
}

.download-steps ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.9;
}

.download-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f0fdfa;
  border-radius: 10px;
  color: var(--text-muted);
}

.download-more {
  margin: 28px 0 0;
  text-align: center;
}

.download-more a {
  font-weight: 600;
  color: var(--teal);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav-toggle-btn {
    display: flex;
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
    flex-wrap: nowrap;
    position: absolute;
    top: calc(100% + 1px);
    left: max(-16px, calc(-1 * env(safe-area-inset-left, 0px)));
    right: max(-16px, calc(-1 * env(safe-area-inset-right, 0px)));
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 200;
  }

  .nav-toggle-input:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
  }

  .poster-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .poster-copy {
    display: contents;
  }

  .poster-badge {
    order: 1;
  }

  .poster-title {
    order: 2;
  }

  .poster-tagline {
    order: 3;
  }

  .poster-visual {
    order: 4;
    padding: 0;
    margin: 4px 0 8px;
  }

  .poster-actions {
    order: 5;
    margin-bottom: 16px;
  }

  .poster-note {
    order: 6;
    text-align: left;
    position: relative;
    z-index: 1;
  }

  .poster-orbit {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
  }

  .poster-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(100%, 280px);
    margin: 0 auto;
    padding: 22px 18px 26px;
  }

  .poster-logo {
    width: 96px;
    height: 96px;
  }

  .float-chip,
  .deco-ring {
    display: none;
  }

  .poster-badge,
  .poster-title,
  .poster-tagline {
    text-align: center;
    width: 100%;
  }

  .poster-badge,
  .poster-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .poster-hero {
    padding: 32px 0 48px;
  }

  .poster-tagline {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .logo {
    font-size: 1.05rem;
    gap: 10px;
    min-width: 0;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-text small {
    display: none;
  }

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

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .page-banner {
    padding: 28px 0 24px;
  }

  .content-card {
    padding: 24px 18px 28px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .poster-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .poster-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .site-footer {
    padding: 36px 0 max(28px, env(safe-area-inset-bottom, 0px));
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .poster-card {
    width: min(100%, 260px);
  }

  .poster-card-title {
    font-size: 1.35rem;
  }
}
