:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --subtle: #64748b;
  --line: #dbe4f0;
  --accent: #1f3f77;
  --accent-soft: #e9f0ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 36px;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.hero {
  padding: 20px 20px 18px;
  margin-bottom: 14px;
}

.hero-bottom {
  margin-top: 14px;
  margin-bottom: 0;
  order: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 12px;
}

.hero-title {
  margin: 14px 0 8px;
  line-height: 1.24;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  margin: 0;
  color: var(--subtle);
  font-size: 16px;
  line-height: 1.6;
}

.menu-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 18px;
  line-height: 1.4;
}

.menu-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-right: 0;
  font-weight: 500;
}

.menu-link:not(:last-child)::after {
  content: " | ";
  color: #6b7382;
  margin: 0 6px;
  font-weight: 400;
}

.menu-link.active {
  color: #0b1220;
  font-weight: 800;
  text-decoration: none;
}

.content-card {
  padding: 16px 18px;
  order: 1;
}

.app-store-cta {
  margin: 14px 0 18px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.app-store-cta-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1220;
}

.app-store-cta-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-store-badge-link {
  display: inline-block;
  flex: 1 1 auto;
}

.app-store-badge {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.app-store-qr-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.app-store-qr {
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.value-shot {
  margin: 10px 0 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.value-shot img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  height: auto;
  border-radius: 8px;
}

.meta {
  margin: 0 0 10px;
  color: var(--subtle);
  font-size: 13px;
}

h1,
h2,
h3 {
  margin: 18px 0 10px;
  line-height: 1.3;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

h3 {
  font-size: 18px;
}

p,
li {
  color: #1e293b;
  font-size: 15px;
  line-height: 1.72;
}

ol,
ul {
  padding-left: 22px;
  margin: 10px 0 14px;
}

a {
  color: var(--accent);
}

strong {
  color: #0b1220;
}

@media (max-width: 640px) {
  .shell {
    padding: 14px 10px 22px;
  }

  .hero,
  .content-card {
    border-radius: 14px;
  }

  .menu-links {
    font-size: 16px;
    row-gap: 4px;
  }

  h2 {
    font-size: 18px;
  }

  p,
  li {
    font-size: 14px;
  }

  .app-store-cta-body {
    align-items: flex-start;
  }

  .app-store-qr {
    width: 74px;
    height: 74px;
  }
}
