:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-warm: #fff8e6;
  --text: #172033;
  --muted: #64748b;
  --line: #dbe3ef;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --yellow: #f7c948;
  --orange: #f97316;
  --red: #dc2626;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 260px),
    var(--bg);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  color: #ffffff;
  background: var(--teal-dark);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 32px;
}

.hero {
  padding: 24px 0 20px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-size: 17px;
  font-weight: 800;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 36rem;
  margin: 0;
  color: #43536a;
  font-size: 17px;
}

.action-section,
.info-section,
.privacy-section,
.fallback-panel {
  margin-top: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.status-line {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.platform-button {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.platform-button:focus-visible,
.copy-button:focus-visible,
.fallback-url:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.25);
  outline-offset: 3px;
}

.platform-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
  flex: 0 0 auto;
}

.platform-meituan .platform-icon {
  color: #172033;
  background: var(--yellow);
}

.platform-taobao .platform-icon {
  background: var(--orange);
}

.platform-jd .platform-icon {
  background: var(--red);
}

.platform-text {
  min-width: 0;
}

.platform-text strong,
.platform-text small {
  display: block;
}

.platform-text strong {
  font-size: 21px;
  line-height: 1.2;
}

.platform-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.platform-arrow {
  color: #94a3b8;
  font-size: 34px;
  line-height: 1;
}

.fallback-panel {
  background: var(--surface-warm);
  border-color: #f1c75b;
}

.fallback-panel[hidden] {
  display: none;
}

.fallback-panel h2 {
  margin-bottom: 8px;
}

.fallback-actions {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.fallback-url,
.copy-button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 13px;
  border-radius: 8px;
  font-weight: 800;
}

.fallback-url {
  color: #ffffff;
  background: var(--teal-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.fallback-url.secondary {
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid rgba(17, 94, 89, 0.28);
}

.copy-button {
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid rgba(17, 94, 89, 0.28);
  cursor: pointer;
}

.manual-line {
  color: #334155;
  font-size: 15px;
}

.manual-hint {
  margin-top: 6px;
  color: #6b4e16;
  font-size: 14px;
}

.info-section p,
.privacy-section p {
  margin-top: 8px;
  color: #475569;
}

.plain-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: #475569;
}

.site-footer {
  padding: 22px 4px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (min-width: 640px) {
  .app-shell {
    padding: 34px 24px 44px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .action-section,
  .info-section,
  .privacy-section,
  .fallback-panel {
    padding: 22px;
  }

  .section-heading {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .status-line {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
