/* 环宇同天官网 — 静态站点样式 */
:root {
  --brand: #e74246;
  --brand-dark: #c93438;
  --brand-soft: #fff5f5;
  --ink: #161823;
  --ink-secondary: #4e5969;
  --ink-muted: #86909c;
  --line: #e5e6eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-dark: #0f1117;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 40px rgba(22, 24, 35, 0.08);
  --max: 1120px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 230, 235, 0.8);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand img { width: 36px; height: 36px; border-radius: 10px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 15px;
  color: var(--ink-secondary);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active { color: var(--brand); }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { padding: 14px 32px; font-size: 16px; }

.btn-block { width: 100%; }

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(231, 66, 70, 0.08), transparent),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 17px;
  color: var(--ink-secondary);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-meta strong { color: var(--ink); }

/* Phone mockup */
.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  width: 280px;
  height: 560px;
  border-radius: 36px;
  background: var(--ink);
  padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.1) inset;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-status {
  height: 28px;
  background: var(--brand);
  opacity: 0.95;
}

.phone-nav {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.phone-nav span {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--bg-soft);
  color: var(--ink-secondary);
}

.phone-nav span.on {
  background: var(--brand);
  color: #fff;
}

.phone-cards { padding: 10px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.phone-card {
  border-radius: 10px;
  background: var(--bg-soft);
  overflow: hidden;
}

.phone-card .thumb {
  height: 72px;
  background: linear-gradient(135deg, #ffd6d6, #fff5f5);
}

.phone-card .txt { padding: 8px 10px; }

.phone-card .t1 {
  height: 8px;
  width: 85%;
  background: #ddd;
  border-radius: 4px;
  margin-bottom: 6px;
}

.phone-card .t2 {
  height: 6px;
  width: 55%;
  background: #eee;
  border-radius: 4px;
}

.phone-tabbar {
  display: flex;
  border-top: 1px solid var(--line);
  padding: 8px 0 6px;
}

.phone-tabbar div {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: var(--ink-muted);
}

.phone-tabbar div.on { color: var(--brand); font-weight: 600; }

.phone-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(231, 66, 70, 0.12);
  border-radius: 50%;
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--bg-soft); }

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

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-secondary);
  font-size: 16px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(231, 66, 70, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.stat-item .val {
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}

.stat-item .lbl {
  font-size: 14px;
  color: var(--ink-secondary);
}

/* CTA band */
.cta-band {
  padding: 64px 0;
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  font-size: 16px;
}

/* Download page */
.download-hero {
  padding: 56px 0 72px;
  background: var(--bg-soft);
  text-align: center;
}

.download-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.download-hero p {
  color: var(--ink-secondary);
  max-width: 560px;
  margin: 0 auto 8px;
}

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

.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}

.download-card .platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.download-card h3 { font-size: 20px; margin-bottom: 8px; }

.download-card .hint {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  min-height: 42px;
}

.download-card .size {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 12px;
}

.qr-section {
  margin-top: 48px;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-box {
  width: 180px;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.qr-box img { width: 100%; height: 100%; object-fit: contain; }

.qr-text h3 { margin-bottom: 8px; }
.qr-text p { color: var(--ink-secondary); font-size: 14px; }

.steps {
  margin-top: 48px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-item {
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  position: relative;
  padding-top: 48px;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h4 { margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--ink-secondary); }

/* About block on index */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-block .lead {
  font-size: 18px;
  color: var(--ink-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--ink-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 2px solid var(--brand);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.72);
  padding: 48px 0 32px;
}

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

.footer-brand .name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p { font-size: 14px; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* Legal modal / page */
.legal-page {
  padding: 48px 0 80px;
  max-width: 760px;
}

.legal-page h1 { margin-bottom: 8px; }
.legal-page .updated { color: var(--ink-muted); font-size: 14px; margin-bottom: 32px; }
.legal-page h2 { font-size: 18px; margin: 28px 0 12px; }
.legal-page p { color: var(--ink-secondary); margin-bottom: 12px; line-height: 1.8; }

.loading { text-align: center; padding: 80px 0; color: var(--ink-muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-block,
  .features-grid,
  .stats-row,
  .download-grid,
  .steps-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .phone-wrap { order: -1; }
  .phone { width: 240px; height: 480px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }

  .nav.open { display: flex; }

  .nav-toggle { display: block; }

  .header-cta { display: none; }

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

  .section { padding: 56px 0; }

  .qr-section { flex-direction: column; text-align: center; }
}

.filing-links a { color: inherit; }
.filing-links img { display: inline-block; margin-right: 4px; vertical-align: text-bottom; }
